/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 75 @Mock private WifiScanner mWifiScanner; field in ScanRequestProxyTest 100 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp() 102 doNothing().when(mWifiScanner).registerScanListener( in setUp() 104 doNothing().when(mWifiScanner).startScan( in setUp() 109 mInOrder = inOrder(mWifiScanner, mWifiConfigManager, mContext); in setUp() 131 verifyNoMoreInteractions(mWifiScanner, mWifiConfigManager, mContext, mWifiMetrics); in cleanUp() 141 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testEnableScanning() 142 mInOrder.verify(mWifiScanner).setScanningEnabled(true); in testEnableScanning() 152 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testDisableScanning() 153 mInOrder.verify(mWifiScanner).setScanningEnabled(false); in testDisableScanning() [all …]
|
D | WakeupControllerTest.java | 74 @Mock private WifiScanner mWifiScanner; field in WakeupControllerTest 95 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp() 279 verify(mWifiScanner).registerScanListener(any()); in startRegistersScanListener() 290 verify(mWifiScanner).deregisterScanListener(any()); in stopDeresgistersScanListener() 340 when(mWifiScanner.getSingleScanResults()) in startInitializesWakeupLockWithSavedScanResults() 378 when(mWifiScanner.getSingleScanResults()) in startInitializesWakeupLockWithNetworkSuggestions() 420 when(mWifiScanner.getSingleScanResults()) in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 459 when(mWifiScanner.getSingleScanResults()) in startFiltersOutDfsScanResults() 490 verify(mWifiScanner).registerScanListener(scanListenerArgumentCaptor.capture()); in onResultsUpdatesWakeupLockForSavedNetworks() 519 verify(mWifiScanner).registerScanListener(scanListenerArgumentCaptor.capture()); in onResultsUpdatesWakeupLockForNetworkSuggestions() [all …]
|
D | WifiConnectivityManagerTest.java | 95 mWifiScanner = mockWifiScanner(); in setUp() 98 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp() 128 private WifiScanner mWifiScanner; field in WifiConnectivityManagerTest 1048 verify(mWifiScanner, times(1)).startScan(anyObject(), anyObject(), anyObject()); in checkMinimumPeriodicScanIntervalWhenScreenOnAndConnected() 1095 verify(mWifiScanner, times(1)).startScan(anyObject(), anyObject(), anyObject()); in scanImmediatelyWhenScreenOnAndDisconnected() 1107 verify(mWifiScanner, times(2)).startScan(anyObject(), anyObject(), anyObject()); in scanImmediatelyWhenScreenOnAndDisconnected() 1185 }}).when(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkSingleScanSettingsWhenConnectedWithLowDataRate() 1194 verify(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkSingleScanSettingsWhenConnectedWithLowDataRate() 1229 }}).when(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming() 1238 verify(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming() [all …]
|
D | WifiNetworkFactoryTest.java | 120 @Mock WifiScanner mWifiScanner; field in WifiNetworkFactoryTest 173 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp() 512 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifier() 547 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierForHiddenNetwork() 567 verify(mWifiScanner, times(1)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest() 579 verify(mWifiScanner, times(2)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest() 599 verify(mWifiScanner).startScan(any(), any(), any()); in testHandleNetworkReleaseWithSpecifier() 1601 verify(mWifiScanner, times(2)).startScan(any(), any(), any()); in testHandleNewNetworkRequestWithSpecifierWhenScanning() 1608 verifyNoMoreInteractions(mWifiConnectivityManager, mWifiScanner, mClientModeImpl, in testHandleNewNetworkRequestWithSpecifierWhenScanning() 1642 verify(mWifiScanner, times(2)).startScan(any(), any(), any()); in testHandleNewNetworkRequestWithSpecifierAfterMatch() [all …]
|
D | ClientModeImplTest.java | 344 @Mock WifiScanner mWifiScanner; field in ClientModeImplTest 417 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiScannerTest.java | 81 private WifiScanner mWifiScanner; field in WifiScannerTest 97 mWifiScanner = new WifiScanner(mContext, mService, mLooper.getLooper()); in setUp() 255 mWifiScanner.startScan(scanSettings, scanListener); in testStartScan() 283 mWifiScanner.startScan(scanSettings, scanListener); in testStopScan() 286 mWifiScanner.stopScan(scanListener); in testStopScan() 311 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnSuccess() 341 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnResults() 376 mWifiScanner.startDisconnectedPnoScan(scanSettings, pnoSettings, pnoScanListener); in testStartDisconnectedPnoScan() 406 mWifiScanner.startConnectedPnoScan(scanSettings, pnoSettings, pnoScanListener); in testStartConnectedPnoScan() 436 mWifiScanner.startDisconnectedPnoScan(scanSettings, pnoSettings, pnoScanListener); in testStopPnoScan() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScanRequestProxy.java | 89 private WifiScanner mWifiScanner; field in ScanRequestProxy 261 if (mWifiScanner == null) { in retrieveWifiScannerIfNecessary() 262 mWifiScanner = mWifiInjector.getWifiScanner(); in retrieveWifiScannerIfNecessary() 266 if (mWifiScanner != null) { in retrieveWifiScannerIfNecessary() 267 mWifiScanner.registerScanListener(new GlobalScanListener()); in retrieveWifiScannerIfNecessary() 270 return mWifiScanner != null; in retrieveWifiScannerIfNecessary() 296 mWifiScanner.setScanningEnabled(enable); in enableScanningInternal() 493 mWifiScanner.startScan(settings, new ScanRequestProxyScanListener(), workSource); in startScan()
|
D | WifiInjector.java | 132 private WifiScanner mWifiScanner; field in WifiInjector 583 if (mWifiScanner == null) { in getWifiScanner() 584 mWifiScanner = new WifiScanner(mContext, in getWifiScanner() 589 return mWifiScanner; in getWifiScanner()
|
D | WifiNetworkFactory.java | 122 private WifiScanner mWifiScanner; field in WifiNetworkFactory 1011 if (mWifiScanner != null) return; in retrieveWifiScanner() 1012 mWifiScanner = mWifiInjector.getWifiScanner(); in retrieveWifiScanner() 1013 checkNotNull(mWifiScanner); in retrieveWifiScanner() 1064 mWifiScanner.startScan(mScanSettings, mScanListener, workSource); in startScan()
|