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