Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java113 private ScanRequestProxy mScanRequestProxy; field in ScanRequestProxyTest
157 mScanRequestProxy = in setUp()
173 mScanRequestProxy.enableScanning(true, false); in enableScanning()
202 mScanRequestProxy.enableScanning(true, false); in testEnableScanning()
213 mScanRequestProxy.enableScanning(false, false); in testDisableScanning()
225 assertFalse(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanFailWithoutScanner()
235 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccess()
252 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSettings()
272 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard()
286 mScanRequestProxy.enableScanning(true, false); in testStartScanWithHiddenNetworkScanningDisabled()
[all …]
DActiveModeWardenTest.java145 @Mock ScanRequestProxy mScanRequestProxy; field in ActiveModeWardenTest
185 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
332 verify(mScanRequestProxy).enableScanning(true, true); in enterClientModeActiveState()
374 verify(mScanRequestProxy).enableScanning(true, false); in enterScanOnlyModeActiveState()
443 verify(mScanRequestProxy).enableScanning(false, false); in enterStaDisabledMode()
619 verify(mScanRequestProxy).enableScanning(true, true); in testScanOnlyModeScanHiddenNetworks()
638 reset(mBatteryStats, mScanRequestProxy); in testEnterSoftApModeFromDifferentState()
681 reset(mBatteryStats, mScanRequestProxy); in testSwitchModeWhenScanOnlyModeActiveState()
695 reset(mBatteryStats, mScanRequestProxy); in testSwitchModeWhenConnectModeActiveState()
3706 verify(mScanRequestProxy).enableScanning(true, false); in indicateStartOfEmergencyScan()
[all …]
DWifiNetworkSelectorTest.java113 mScanRequestProxy); in setUp()
283 @Mock private ScanRequestProxy mScanRequestProxy; field in WifiNetworkSelectorTest
2108 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testSaeAutoUpgradeWithPskNetworkWhenAutoUpgradeEnabled()
2138 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(networkSelectorChoice.SSID))) in testSaeAutoUpgradeWithPskNetworkWhenAutoUpgradeEnabled()
2158 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testSaeNoAutoUpgradeWithPskNetworkWhenAutoUpgradeDisabled()
2190 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testSaeNoAutoUpgradeWithPskNetworkWhenSaeNotSupported()
2224 when(mScanRequestProxy.isOpenOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testOweAutoUpgradeWithOpenNetworkWhenAutoUpgradeEnabled()
2246 when(mScanRequestProxy.isOpenOnlyNetworkInRange(eq(networkSelectorChoice.SSID))) in testOweAutoUpgradeWithOpenNetworkWhenAutoUpgradeEnabled()
2263 when(mScanRequestProxy.isOpenOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testOweNoAutoUpgradeWithOpenNetworkWhenAutoUpgradeDisabled()
2294 when(mScanRequestProxy.isOpenOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testOweNoAutoUpgradeWithOweNetworkWhenOweNotSupported()
[all …]
DWifiServiceImplTest.java336 @Mock ScanRequestProxy mScanRequestProxy; field in WifiServiceImplTest
450 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
496 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(true); in setUp()
2291 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureAppOpsIgnored()
2305 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInCanAccessScanResultsPermission()
2318 verify(mScanRequestProxy, never()).startScan(anyInt(), eq(SCAN_PACKAGE_NAME)); in testStartScanFailureInRunWithScissors()
2326 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(false); in testStartScanFailureFromScanRequestProxy()
2331 verify(mScanRequestProxy).startScan(Binder.getCallingUid(), SCAN_PACKAGE_NAME); in testStartScanFailureFromScanRequestProxy()
2653 when(mScanRequestProxy.getScanResults()).thenReturn(scanResultList); in testGetScanResults()
2661 verify(mScanRequestProxy).getScanResults(); in testGetScanResults()
[all …]
DWifiShellCommandTest.java95 @Mock ScanRequestProxy mScanRequestProxy; field in WifiShellCommandTest
118 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
840 verify(mScanRequestProxy).enableScanning(true, false); in testEnableScanning()
849 verify(mScanRequestProxy).enableScanning(true, true); in testEnableScanningWithHiddenNetworkOption()
DDppManagerTest.java139 ScanRequestProxy mScanRequestProxy; field in DppManagerTest
184 mWifiConfigManager, mContext, mDppMetrics, mScanRequestProxy, mWifiPermissionsUtil); in createDppManager()
831 when(mScanRequestProxy.getScanResults()).thenReturn(scanResults); in addTestNetworkInScanResult()
DClientModeImplTest.java456 @Mock ScanRequestProxy mScanRequestProxy; field in ClientModeImplTest
673 mDeviceConfigFacade, mScanRequestProxy, mWifiInfo, mWifiConnectivityManager, in initializeCmi()
944 when(mScanRequestProxy.getScanResult(eq(TEST_BSSID_STR))).thenReturn(scanResult); in connect()
5097 when(mScanRequestProxy.getScanResults()).thenReturn(Arrays.asList(scanResult)); in setupFilsEnabledApInScanResult()
5098 when(mScanRequestProxy.getScanResult(eq(TEST_BSSID_STR))).thenReturn(scanResult); in setupFilsEnabledApInScanResult()
5896 when(mScanRequestProxy.getScanResult(TEST_BSSID_STR)).thenReturn( in setupPasspointConnection()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNetworkSelector.java110 private final ScanRequestProxy mScanRequestProxy; field in WifiNetworkSelector
956 mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
957 mScanRequestProxy.isWpa3PersonalOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
963 mScanRequestProxy.isOpenOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
964 mScanRequestProxy.isOweOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
969 mScanRequestProxy.isWpa2EnterpriseOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
970 mScanRequestProxy.isWpa3EnterpriseOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
1285 mScanRequestProxy = scanRequestProxy; in WifiNetworkSelector()
DWifiInjector.java193 private final ScanRequestProxy mScanRequestProxy; field in WifiInjector
383 mScanRequestProxy = new ScanRequestProxy(mContext, in WifiInjector()
393 mScanRequestProxy); in WifiInjector()
435 mWifiConfigManager, mContext, mDppMetrics, mScanRequestProxy, mWifiPermissionsUtil); in WifiInjector()
544 mScanRequestProxy.enableVerboseLogging(verbose); in enableVerboseLogging()
733 mDeviceConfigFacade, mScanRequestProxy, wifiInfo, mWifiConnectivityManager, in makeClientModeImpl()
923 return mScanRequestProxy; in getScanRequestProxy()
DDppManager.java78 private final ScanRequestProxy mScanRequestProxy; field in DppManager
121 mScanRequestProxy = scanRequestProxy; in DppManager()
775 for (ScanResult scanResult : mScanRequestProxy.getScanResults()) { in isEnrolleeCompatibleWithNetwork()
DWifiServiceImpl.java188 private final ScanRequestProxy mScanRequestProxy; field in WifiServiceImpl
331 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in WifiServiceImpl()
616 mScanRequestProxy.startScan(callingUid, packageName), null); in startScan()
3218 mScanRequestProxy::getScanResults, Collections.emptyList()); in getScanResults()
3252 networkSuggestions, mScanRequestProxy.getScanResults()); in getMatchingScanResults()
3712 mScanRequestProxy.clearScanRequestTimestampsForApp(pkgName, uid);
3875 fd, pw, args, mScanRequestProxy.getScanResults());
5156 mWifiThreadRunner.post(()-> mScanRequestProxy.setScanThrottleEnabled(enable));
5168 return mWifiThreadRunner.call(()-> mScanRequestProxy.isScanThrottleEnabled(), true);
DActiveModeWarden.java110 private final ScanRequestProxy mScanRequestProxy; field in ActiveModeWarden
270 mScanRequestProxy = wifiInjector.getScanRequestProxy(); in ActiveModeWarden()
1363 mScanRequestProxy.enableScanning(scanEnabled, scanningForHiddenNetworksEnabled); in updateClientScanMode()
DWifiShellCommand.java161 private final ScanRequestProxy mScanRequestProxy; field in WifiShellCommand
221 mScanRequestProxy = wifiInjector.getScanRequestProxy(); in WifiShellCommand()
996 mScanRequestProxy.enableScanning(enabled, hiddenEnabled); in onCommand()
DClientModeImpl.java236 private final ScanRequestProxy mScanRequestProxy; field in ClientModeImpl
732 mScanRequestProxy = scanRequestProxy; in ClientModeImpl()
2461 ScanResult matchingScanResult = mScanRequestProxy.getScanResult(bssid);
4398 scanResult = mScanRequestProxy.getScanResult(mLastBssid);
6220 List<ScanResult> scanResults = mScanRequestProxy.getScanResults();
6340 scanResult = mScanRequestProxy.getScanResult(mLastBssid);
6518 ScanResult scanResult = mScanRequestProxy.getScanResult(mLastBssid);
6655 ScanResult scanResult = mScanRequestProxy.getScanResult(associatedBssid);