/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiMetricsTest.java | 45 WifiMetrics mWifiMetrics; field in class:WifiMetricsTest 54 mWifiMetrics = new WifiMetrics(mClock); 64 mWifiMetrics.startConnectionEvent(null, "RED", 66 mWifiMetrics.endConnectionEvent( 70 mWifiMetrics.endConnectionEvent( 74 mWifiMetrics.startConnectionEvent(null, "BLUE", 76 mWifiMetrics.startConnectionEvent(null, "GREEN", 84 * Simulate how dumpsys gets the proto from mWifiMetrics, filter the proto bytes out and 95 mWifiMetrics.dump(null, writer, args); 112 mWifiMetrics [all...] |
H A D | WifiConnectivityManagerTest.java | 101 private WifiMetrics mWifiMetrics; field in class:WifiConnectivityManagerTest 236 mWifiMetrics = mock(WifiMetrics.class); 238 when(wifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); 496 verify(mWifiMetrics).incrementNumConnectivityWatchdogPnoBad(); 497 verify(mWifiMetrics, never()).incrementNumConnectivityWatchdogPnoGood(); 523 verify(mWifiMetrics).incrementNumConnectivityWatchdogPnoGood(); 524 verify(mWifiMetrics, never()).incrementNumConnectivityWatchdogPnoBad();
|
H A D | WifiLastResortWatchdogTest.java | 41 WifiMetrics mWifiMetrics; field in class:WifiLastResortWatchdogTest 54 mWifiMetrics = mock(WifiMetrics.class); 55 mLastResortWatchdog = new WifiLastResortWatchdog(mWifiMetrics); 1464 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggers(); 1465 verify(mWifiMetrics, times(1)).addCountToNumLastResortWatchdogAvailableNetworksTotal(5); 1466 verify(mWifiMetrics, times(1)) 1468 verify(mWifiMetrics, times(1)) 1470 verify(mWifiMetrics, times(1)) 1472 verify(mWifiMetrics, times(1)).incrementNumLastResortWatchdogTriggersWithBadAssociation(); 1473 verify(mWifiMetrics, time [all...] |
H A D | WifiStateMachineTest.java | 319 @Mock WifiMetrics mWifiMetrics; field in class:WifiStateMachineTest 346 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiInjector.java | 36 private final WifiMetrics mWifiMetrics = new WifiMetrics(mClock); field in class:WifiInjector 38 new WifiLastResortWatchdog(mWifiMetrics); 44 return mWifiMetrics;
|
H A D | WifiLastResortWatchdog.java | 81 private WifiMetrics mWifiMetrics; field in class:WifiLastResortWatchdog 84 mWifiMetrics = wifiMetrics; 341 mWifiMetrics.incrementNumLastResortWatchdogTriggers(); 342 mWifiMetrics.addCountToNumLastResortWatchdogAvailableNetworksTotal( 355 mWifiMetrics.addCountToNumLastResortWatchdogBadAuthenticationNetworksTotal(badAuth); 356 mWifiMetrics.incrementNumLastResortWatchdogTriggersWithBadAuthentication(); 359 mWifiMetrics.addCountToNumLastResortWatchdogBadAssociationNetworksTotal(badAssoc); 360 mWifiMetrics.incrementNumLastResortWatchdogTriggersWithBadAssociation(); 363 mWifiMetrics.addCountToNumLastResortWatchdogBadDhcpNetworksTotal(badDhcp); 364 mWifiMetrics [all...] |
H A D | WifiConnectivityManager.java | 130 private final WifiMetrics mWifiMetrics; field in class:WifiConnectivityManager 351 mWifiMetrics.incrementNumConnectivityWatchdogBackgroundBad(); 353 mWifiMetrics.incrementNumConnectivityWatchdogPnoBad(); 357 mWifiMetrics.incrementNumConnectivityWatchdogBackgroundGood(); 359 mWifiMetrics.incrementNumConnectivityWatchdogPnoGood(); 485 mWifiMetrics = wifiInjector.getWifiMetrics();
|
H A D | WifiStateMachine.java | 184 private WifiMetrics mWifiMetrics; field in class:WifiStateMachine 1001 mWifiMetrics = mWifiInjector.getWifiMetrics(); 2320 mWifiMetrics.dump(fd, pw, args); 2905 mWifiMetrics.setScreenState(screenOn); 3619 mWifiMetrics.endConnectionEvent(level2FailureCode, connectivityFailureCode); 5284 mWifiMetrics.setWifiState(WifiMetricsProto.WifiLog.WIFI_DISCONNECTED); 5296 mWifiMetrics.setWifiState(WifiMetricsProto.WifiLog.WIFI_DISABLED); 5759 mWifiMetrics.startConnectionEvent(config, mTargetRoamBSSID, 5763 mWifiMetrics.setConnectionEventRoamType( 5771 mWifiMetrics [all...] |
H A D | WifiServiceImpl.java | 162 private final WifiMetrics mWifiMetrics; field in class:WifiServiceImpl 327 mWifiMetrics = mWifiInjector.getWifiMetrics(); 1467 mWifiMetrics.dump(fd, pw, args);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
H A D | WifiScanningServiceTest.java | 86 WifiMetrics mWifiMetrics; field in class:WifiScanningServiceTest 98 mWifiMetrics = new WifiMetrics(mClock); 110 when(mWifiInjector.getWifiMetrics()).thenReturn(mWifiMetrics); 517 assertEquals(mWifiMetrics.getOneshotScanCount(), 1); 518 assertEquals(mWifiMetrics.getScanReturnEntry(WifiMetricsProto.WifiLog.SCAN_UNKNOWN), 1); 559 assertEquals(mWifiMetrics.getOneshotScanCount(), 1); 560 assertEquals(mWifiMetrics.getScanReturnEntry(WifiMetricsProto.WifiLog.SCAN_UNKNOWN), 1); 690 assertEquals(mWifiMetrics.getOneshotScanCount(), 2); 691 assertEquals(mWifiMetrics.getScanReturnEntry(WifiMetricsProto.WifiLog.SCAN_SUCCESS), 2); 806 assertEquals(mWifiMetrics [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/ |
H A D | WifiScanningServiceImpl.java | 257 private final WifiMetrics mWifiMetrics; field in class:WifiScanningServiceImpl 269 mWifiMetrics = wifiInjector.getWifiMetrics(); 524 mWifiMetrics.incrementScanReturnEntry( 537 mWifiMetrics.incrementOneshotScanCount(); 561 mWifiMetrics.incrementScanReturnEntry( 608 mWifiMetrics.incrementScanReturnEntry( 619 mWifiMetrics.incrementScanReturnEntry( 630 mWifiMetrics.incrementScanReturnEntry( 722 mWifiMetrics.incrementScanReturnEntry( 753 mWifiMetrics [all...] |