Home
last modified time | relevance | path

Searched refs:mScanRequestProxy (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java101 private ScanRequestProxy mScanRequestProxy; field in ScanRequestProxyTest
135 mScanRequestProxy = in setUp()
152 mScanRequestProxy.enableScanning(true, false); in testEnableScanning()
163 mScanRequestProxy.enableScanning(false, false); in testDisableScanning()
175 assertFalse(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanFailWithoutScanner()
184 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccess()
201 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSettings()
216 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard()
230 mScanRequestProxy.enableScanning(true, false); in testStartScanWithHiddenNetworkScanningDisabled()
235 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanWithHiddenNetworkScanningDisabled()
[all …]
DActiveModeWardenTest.java88 @Mock ScanRequestProxy mScanRequestProxy; field in ActiveModeWardenTest
113 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
196 verify(mScanRequestProxy).enableScanning(false, false); in enterClientModeActiveState()
198 verify(mScanRequestProxy).enableScanning(true, true); in enterClientModeActiveState()
224 verify(mScanRequestProxy).enableScanning(false, false); in enterScanOnlyModeActiveState()
226 verify(mScanRequestProxy).enableScanning(true, false); in enterScanOnlyModeActiveState()
255 verify(mScanRequestProxy, atLeastOnce()).enableScanning(false, false); in enterSoftApActiveMode()
293 reset(mBatteryStats, mScanRequestProxy); in testEnterSoftApModeFromDifferentState()
334 reset(mBatteryStats, mScanRequestProxy); in testSwitchModeWhenScanOnlyModeActiveState()
718 reset(mScanRequestProxy); in dumpCallsActiveModeManagers()
DWifiServiceImplTest.java256 @Mock ScanRequestProxy mScanRequestProxy; field in WifiServiceImplTest
385 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
408 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(true); in setUp()
1270 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureAppOpsIgnored()
1282 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInCanAccessScanResultsPermission()
1294 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInRunWithScissors()
1303 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(false); in testStartScanFailureFromScanRequestProxy()
1305 verify(mScanRequestProxy).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureFromScanRequestProxy()
1502 when(mScanRequestProxy.getScanResults()).thenReturn(scanResultList); in testGetScanResults()
1506 verify(mScanRequestProxy).getScanResults(); in testGetScanResults()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java63 private final ScanRequestProxy mScanRequestProxy; field in ActiveModeWarden
143 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in ActiveModeWarden()
362 mScanRequestProxy.enableScanning(scanEnabled, scanningForHiddenNetworksEnabled); in updateScanMode()
DWifiInjector.java147 private final ScanRequestProxy mScanRequestProxy; field in WifiInjector
298 mScanRequestProxy = new ScanRequestProxy(mContext, in WifiInjector()
383 mScanRequestProxy.enableVerboseLogging(verbose); in enableVerboseLogging()
759 return mScanRequestProxy; in getScanRequestProxy()
DWifiServiceImpl.java166 final ScanRequestProxy mScanRequestProxy; field in WifiServiceImpl
465 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in WifiServiceImpl()
642 scanSuccess.value = mScanRequestProxy.startScan(callingUid, packageName); in startScan()
2293 scanResults.addAll(mScanRequestProxy.getScanResults()); in getScanResults()
2738 mScanRequestProxy.clearScanRequestTimestampsForApp(pkgName, uid); in registerForBroadcasts()