Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java89 @Mock private WifiScannerInternal mWifiScanner; field in ScanRequestProxyTest
127 WifiLocalServices.addService(WifiScannerInternal.class, mWifiScanner); in setUp()
135 doNothing().when(mWifiScanner).registerScanListener( in setUp()
137 doNothing().when(mWifiScanner).startScan( in setUp()
141 mInOrder = inOrder(mWifiScanner, mWifiConfigManager, in setUp()
166 verifyNoMoreInteractions(mWifiScanner, mWifiConfigManager, mWifiMetrics); in cleanUp()
173 mInOrder.verify(mWifiScanner).registerScanListener(any()); in enableScanning()
174 mInOrder.verify(mWifiScanner).setScanningEnabled(true); in enableScanning()
202 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testEnableScanning()
203 mInOrder.verify(mWifiScanner).setScanningEnabled(true); in testEnableScanning()
[all …]
DWifiConnectivityManagerTest.java166 WifiLocalServices.addService(WifiScannerInternal.class, mWifiScanner); in setUp()
296 @Mock private WifiScannerInternal mWifiScanner; field in WifiConnectivityManagerTest
483 doNothing().when(mWifiScanner).registerScanListener(allSingleScanListenerCaptor.capture()); in mockWifiScanner()
502 }}).when(mWifiScanner).startScan(anyObject(), anyObject()); in mockWifiScanner()
530 }}).when(mWifiScanner).startPnoScan( in mockWifiScanner()
2263 verify(mWifiScanner).startScan((ScanSettings) argThat(new WifiPartialScanSettingMatcher()), in testHighMovementTriggerPartialScan()
2971 verify(mWifiScanner, times(scanTimes)).startScan(anyObject(), anyObject()); in verifyScanTimesAndIntervals()
2980 verify(mWifiScanner, times(entry.getValue())).startScan( in verifyScanTimesAndIntervals()
3005 verify(mWifiScanner, times(scanTimes)).startScan(any(), any()); in verifyScanTimesAndFirstInterval()
3578 verify(mWifiScanner, times(1)).startScan(anyObject(), anyObject()); in checkMinimumPeriodicScanIntervalWhenScreenOnAndConnected()
[all …]
DWifiNetworkFactoryTest.java171 @Mock WifiScanner mWifiScanner; field in WifiNetworkFactoryTest
267 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
276 when(mWifiScanner.getSingleScanResults()).thenReturn(Collections.emptyList()); in setUp()
722 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), any(), in testHandleNetworkRequestWithSpecifier()
745 verifyNoMoreInteractions(mWifiScanner, mWifiConnectivityManager, mWifiMetrics); in testHandleNetworkRequestWithUnsupportedSpecifier()
774 verify(mWifiScanner).startScan(mScanSettingsArgumentCaptor.capture(), any(), any(), in testHandleNetworkRequestWithSpecifierForHiddenNetwork()
795 verify(mWifiScanner, times(1)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest()
808 verify(mWifiScanner, times(2)).startScan(mScanSettingsArgumentCaptor.capture(), any(), in testHandleNetworkRequestWithSpecifierAfterPreviousHiddenNetworkRequest()
827 verify(mWifiScanner).startScan(any(), any(), any(), any()); in testHandleNetworkReleaseWithSpecifier()
2495 verify(mWifiScanner, times(2)).getSingleScanResults(); in testHandleNewNetworkRequestWithSpecifierWhenScanning()
[all …]
DWakeupControllerTest.java91 @Mock private WifiScanner mWifiScanner; field in WakeupControllerTest
126 when(mWifiInjector.getWifiScanner()).thenReturn(mWifiScanner); in setUp()
381 verify(mWifiScanner).registerScanListener(any(), any()); in startRegistersScanListener()
392 verify(mWifiScanner).unregisterScanListener(any()); in stopDeresgistersScanListener()
642 verify(mWifiScanner).registerScanListener(any(), scanListenerArgumentCaptor.capture()); in onResultsUpdatesWakeupLockForSavedNetworks()
672 verify(mWifiScanner).registerScanListener(any(), scanListenerArgumentCaptor.capture()); in onResultsUpdatesWakeupLockForNetworkSuggestions()
695 verify(mWifiScanner).registerScanListener(any(), scanListenerArgumentCaptor.capture()); in onResultsUpdatesWakeupLockWithOnlySavedNetworks()
715 verify(mWifiScanner).registerScanListener(any(), scanListenerArgumentCaptor.capture()); in onResultsFiltersOutDfsScanResults()
742 verify(mWifiScanner).registerScanListener(any(), scanListenerArgumentCaptor.capture()); in onResultsSearchesForViableNetworkWhenWakeupLockIsUnlocked()
765 verify(mWifiScanner).registerScanListener(any(), scanListenerArgumentCaptor.capture()); in onResultsUpdatesIfNotOnboarded()
[all …]
DWifiHealthMonitorTest.java134 private WifiScannerInternal mWifiScanner; field in WifiHealthMonitorTest
190 mWifiScanner = mockWifiScanner(WifiScanner.WIFI_BAND_ALL); in setUp()
381 mWifiScanner.startScan(mScanSettings, mScanListenerArgumentCaptor.getValue()); in makeSerializedExample()
457 mWifiScanner.startScan(mScanSettings, mScanListenerArgumentCaptor.getValue()); in testSerializationDeserialization()
721 mWifiScanner.startScan(mScanSettings, mScanListenerArgumentCaptor.getValue()); in testFullBandScan()
734 mWifiScanner = mockWifiScanner(WifiScanner.WIFI_BAND_24_GHZ); in test2GScan()
737 mWifiScanner.startScan(mScanSettings, mScanListenerArgumentCaptor.getValue()); in test2GScan()
792 mWifiScanner = mockWifiScanner(WifiScanner.WIFI_BAND_ALL); in testPostBootAbnormalScanDetection()
796 mWifiScanner.startScan(mScanSettings, mScanListenerArgumentCaptor.getValue()); in testPostBootAbnormalScanDetection()
DWifiShellCommandTest.java109 @Mock WifiScanner mWifiScanner; field in WifiShellCommandTest
137 when(mContext.getSystemService(WifiScanner.class)).thenReturn(mWifiScanner); in setUp()
1023 verify(mWifiScanner).getAvailableChannels(eq(WifiScanner.WIFI_BAND_24_GHZ)); in testGetAllowedChannel()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiScannerTest.java96 private WifiScanner mWifiScanner; field in WifiScannerTest
108 mWifiScanner = new WifiScanner(mContext, mService, mLooper.getLooper()); in setUp()
273 mWifiScanner.isScanning(); in testIsScanning()
286 mWifiScanner.startScan(scanSettings, scanListener); in testStartScan()
308 List<ScanResult> results = mWifiScanner.getSingleScanResults(); in testGetSingleScanResults()
324 List<ScanResult> results = mWifiScanner.getSingleScanResults(); in testGetSingleScanResultsIncorrectResponse()
338 mWifiScanner.startScan(scanSettings, scanListener); in testStopScan()
341 mWifiScanner.stopScan(scanListener); in testStopScan()
365 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnSuccess()
392 mWifiScanner.startScan(scanSettings, scanListener); in testStartScanListenerOnResults()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanRequestProxy.java104 private WifiScannerInternal mWifiScanner; field in ScanRequestProxy
276 if (mWifiScanner == null) { in retrieveWifiScannerIfNecessary()
277 mWifiScanner = WifiLocalServices.getService(WifiScannerInternal.class); in retrieveWifiScannerIfNecessary()
280 if (mWifiScanner != null) { in retrieveWifiScannerIfNecessary()
281 mWifiScanner.registerScanListener( in retrieveWifiScannerIfNecessary()
286 return mWifiScanner != null; in retrieveWifiScannerIfNecessary()
308 mWifiScanner.setScanningEnabled(enable); in enableScanningInternal()
560 mWifiScanner.startScan(settings, in startScan()
DWifiNetworkFactory.java158 private WifiScanner mWifiScanner; field in WifiNetworkFactory
1514 if (mWifiScanner != null) return; in retrieveWifiScanner()
1515 mWifiScanner = mWifiInjector.getWifiScanner(); in retrieveWifiScanner()
1516 checkNotNull(mWifiScanner); in retrieveWifiScanner()
1644 mWifiScanner.startScan( in startScan()
2030 List<ScanResult> cachedScanResults = mWifiScanner.getSingleScanResults(); in getFilteredCachedScanResults()
DWifiInjector.java204 private WifiScanner mWifiScanner; field in WifiInjector
949 if (mWifiScanner == null) { in getWifiScanner()
950 mWifiScanner = mContext.getSystemService(WifiScanner.class); in getWifiScanner()
952 return mWifiScanner; in getWifiScanner()
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java128 private @Nullable WifiScanner mWifiScanner; field in CarProjectionService
329 if (mWifiScanner == null) { in getAvailableWifiChannels()
330 mWifiScanner = mContext.getSystemService(WifiScanner.class); in getAvailableWifiChannels()
332 scanner = mWifiScanner; in getAvailableWifiChannels()
925 writer.println("WifiScanner: " + mWifiScanner); in dump()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java118 private WifiScanner mWifiScanner; field in CarProjectionServiceTest
400 when(mWifiScanner.getAvailableChannels(anyInt())).thenReturn(expectedWifiChannels); in getWifiChannels()
401 when(mContext.getSystemService(WifiScanner.class)).thenReturn(mWifiScanner); in getWifiChannels()