Home
last modified time | relevance | path

Searched refs:mWifiScanner (Results 1 – 9 of 9) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java80 @Mock private WifiScanner mWifiScanner; field in ScanRequestProxyTest
107 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
113 doNothing().when(mWifiScanner).registerScanListener( in setUp()
115 doNothing().when(mWifiScanner).startScan( in setUp()
120 mInOrder = inOrder(mWifiScanner, mWifiConfigManager, in setUp()
143 verifyNoMoreInteractions(mWifiScanner, mWifiConfigManager, mContext, mWifiMetrics); in cleanUp()
153 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testEnableScanning()
154 mInOrder.verify(mWifiScanner).setScanningEnabled(true); in testEnableScanning()
164 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testDisableScanning()
165 mInOrder.verify(mWifiScanner).setScanningEnabled(false); in testDisableScanning()
[all …]
DWakeupControllerTest.java76 @Mock private WifiScanner mWifiScanner; field in WakeupControllerTest
97 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
283 verify(mWifiScanner).registerScanListener(any()); in startRegistersScanListener()
294 verify(mWifiScanner).deregisterScanListener(any()); in stopDeresgistersScanListener()
344 when(mWifiScanner.getSingleScanResults()) in startInitializesWakeupLockWithSavedScanResults()
382 when(mWifiScanner.getSingleScanResults()) in startInitializesWakeupLockWithNetworkSuggestions()
424 when(mWifiScanner.getSingleScanResults()) in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions()
463 when(mWifiScanner.getSingleScanResults()) in startFiltersOutDfsScanResults()
494 verify(mWifiScanner).registerScanListener(scanListenerArgumentCaptor.capture()); in onResultsUpdatesWakeupLockForSavedNetworks()
523 verify(mWifiScanner).registerScanListener(scanListenerArgumentCaptor.capture()); in onResultsUpdatesWakeupLockForNetworkSuggestions()
[all …]
DWifiConnectivityManagerTest.java95 mWifiScanner = mockWifiScanner(); in setUp()
98 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
132 private WifiScanner mWifiScanner; field in WifiConnectivityManagerTest
1053 verify(mWifiScanner, times(1)).startScan(anyObject(), anyObject(), anyObject()); in checkMinimumPeriodicScanIntervalWhenScreenOnAndConnected()
1100 verify(mWifiScanner, times(1)).startScan(anyObject(), anyObject(), anyObject()); in scanImmediatelyWhenScreenOnAndDisconnected()
1112 verify(mWifiScanner, times(2)).startScan(anyObject(), anyObject(), anyObject()); in scanImmediatelyWhenScreenOnAndDisconnected()
1190 }}).when(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1199 verify(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkSingleScanSettingsWhenConnectedWithLowDataRate()
1234 }}).when(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
1243 verify(mWifiScanner).startScan(anyObject(), anyObject(), anyObject()); in checkPartialScanRequestedWithHighDataRateWithoutFwRoaming()
[all …]
DWifiNetworkFactoryTest.java130 @Mock WifiScanner mWifiScanner; field in WifiNetworkFactoryTest
185 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
189 when(mWifiScanner.getSingleScanResults()).thenReturn(Collections.emptyList()); in setUp()
523 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifier()
558 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierForHiddenNetwork()
578 verify(mWifiScanner, times(1)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest()
590 verify(mWifiScanner, times(2)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest()
610 verify(mWifiScanner).startScan(any(), any(), any()); in testHandleNetworkReleaseWithSpecifier()
1678 verify(mWifiScanner, times(2)).getSingleScanResults(); in testHandleNewNetworkRequestWithSpecifierWhenScanning()
1679 verify(mWifiScanner, times(2)).startScan(any(), any(), any()); in testHandleNewNetworkRequestWithSpecifierWhenScanning()
[all …]
DClientModeImplTest.java351 @Mock WifiScanner mWifiScanner; field in ClientModeImplTest
424 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java81 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/
DScanRequestProxy.java89 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()
496 mWifiScanner.startScan(settings, new ScanRequestProxyScanListener(), workSource); in startScan()
DWifiNetworkFactory.java128 private WifiScanner mWifiScanner; field in WifiNetworkFactory
1038 if (mWifiScanner != null) return; in retrieveWifiScanner()
1039 mWifiScanner = mWifiInjector.getWifiScanner(); in retrieveWifiScanner()
1040 checkNotNull(mWifiScanner); in retrieveWifiScanner()
1091 mWifiScanner.startScan(mScanSettings, mScanListener, workSource); in startScan()
1373 List<ScanResult> cachedScanResults = mWifiScanner.getSingleScanResults(); in getFilteredCachedScanResults()
DWifiInjector.java134 private WifiScanner mWifiScanner; field in WifiInjector
592 if (mWifiScanner == null) { in getWifiScanner()
593 mWifiScanner = new WifiScanner(mContext, in getWifiScanner()
598 return mWifiScanner; in getWifiScanner()