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.java94 private ScanRequestProxy mScanRequestProxy; field in ScanRequestProxyTest
123 mScanRequestProxy = in setUp()
140 mScanRequestProxy.enableScanning(true, false); in testEnableScanning()
151 mScanRequestProxy.enableScanning(false, false); in testDisableScanning()
163 assertFalse(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanFailWithoutScanner()
172 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccess()
189 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSettings()
204 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard()
218 mScanRequestProxy.enableScanning(true, false); in testStartScanWithHiddenNetworkScanningDisabled()
223 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanWithHiddenNetworkScanningDisabled()
[all …]
DActiveModeWardenTest.java75 @Mock ScanRequestProxy mScanRequestProxy; field in ActiveModeWardenTest
100 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
183 verify(mScanRequestProxy).enableScanning(false, false); in enterClientModeActiveState()
185 verify(mScanRequestProxy).enableScanning(true, true); in enterClientModeActiveState()
211 verify(mScanRequestProxy).enableScanning(false, false); in enterScanOnlyModeActiveState()
213 verify(mScanRequestProxy).enableScanning(true, false); in enterScanOnlyModeActiveState()
242 verify(mScanRequestProxy, atLeastOnce()).enableScanning(false, false); in enterSoftApActiveMode()
280 reset(mBatteryStats, mScanRequestProxy); in testEnterSoftApModeFromDifferentState()
321 reset(mBatteryStats, mScanRequestProxy); in testSwitchModeWhenScanOnlyModeActiveState()
706 reset(mScanRequestProxy); in dumpCallsActiveModeManagers()
DWifiServiceImplTest.java250 @Mock ScanRequestProxy mScanRequestProxy; field in WifiServiceImplTest
378 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
401 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(true); in setUp()
1131 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureAppOpsIgnored()
1143 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInCanAccessScanResultsPermission()
1155 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInRunWithScissors()
1164 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(false); in testStartScanFailureFromScanRequestProxy()
1166 verify(mScanRequestProxy).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureFromScanRequestProxy()
1363 when(mScanRequestProxy.getScanResults()).thenReturn(scanResultList); in testGetScanResults()
1367 verify(mScanRequestProxy).getScanResults(); in testGetScanResults()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java61 private final ScanRequestProxy mScanRequestProxy; field in ActiveModeWarden
141 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in ActiveModeWarden()
360 mScanRequestProxy.enableScanning(scanEnabled, scanningForHiddenNetworksEnabled); in updateScanMode()
DWifiInjector.java145 private final ScanRequestProxy mScanRequestProxy; field in WifiInjector
290 mScanRequestProxy = new ScanRequestProxy(mContext, in WifiInjector()
374 mScanRequestProxy.enableVerboseLogging(verbose); in enableVerboseLogging()
726 return mScanRequestProxy; in getScanRequestProxy()
DWifiServiceImpl.java165 final ScanRequestProxy mScanRequestProxy; field in WifiServiceImpl
464 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in WifiServiceImpl()
645 scanSuccess.value = mScanRequestProxy.startScan(callingUid, packageName); in startScan()
2246 scanResults.addAll(mScanRequestProxy.getScanResults()); in getScanResults()
2694 mScanRequestProxy.clearScanRequestTimestampsForApp(pkgName, uid); in registerForBroadcasts()