Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanRequestProxyTest.java112 private ScanRequestProxy mScanRequestProxy; field in ScanRequestProxyTest
155 mScanRequestProxy = in setUp()
159 mScanRequestProxy.enableVerboseLogging(true); in setUp()
172 mScanRequestProxy.enableScanning(true, false); in enableScanning()
201 mScanRequestProxy.enableScanning(true, false); in testEnableScanning()
212 mScanRequestProxy.enableScanning(false, false); in testDisableScanning()
224 assertFalse(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanFailWithoutScanner()
234 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccess()
249 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSettings()
267 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard()
[all …]
DActiveModeWardenTest.java171 @Mock ScanRequestProxy mScanRequestProxy; field in ActiveModeWardenTest
220 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
400 verify(mScanRequestProxy, times(1)).enableScanning(true, true); in enterClientModeActiveState()
410 verify(mScanRequestProxy, times(4)).enableScanning(true, true); in enterClientModeActiveState()
454 verify(mScanRequestProxy).enableScanning(true, false); in enterScanOnlyModeActiveState()
523 verify(mScanRequestProxy).enableScanning(false, false); in enterStaDisabledMode()
699 verify(mScanRequestProxy).enableScanning(true, true); in testScanOnlyModeScanHiddenNetworks()
718 reset(mBatteryStats, mScanRequestProxy); in testEnterSoftApModeFromDifferentState()
761 reset(mBatteryStats, mScanRequestProxy); in testSwitchModeWhenScanOnlyModeActiveState()
775 reset(mBatteryStats, mScanRequestProxy); in testSwitchModeWhenConnectModeActiveState()
[all …]
DWifiNetworkSelectorTest.java144 mScanRequestProxy, in setUp()
324 @Mock private ScanRequestProxy mScanRequestProxy; field in WifiNetworkSelectorTest
2824 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testSaeAutoUpgradeWithPskNetworkWhenAutoUpgradeEnabled()
2855 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(networkSelectorChoice.SSID))) in testSaeAutoUpgradeWithPskNetworkWhenAutoUpgradeEnabled()
2879 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testSaeAutoUpgradeWithPskNetworkWhenPskTypeIsDisabled()
2914 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testSaeNoAutoUpgradeWithPskNetworkWhenAutoUpgradeDisabled()
2947 when(mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testSaeNoAutoUpgradeWithPskNetworkWhenSaeNotSupported()
2982 when(mScanRequestProxy.isOpenOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testOweAutoUpgradeWithOpenNetworkWhenAutoUpgradeEnabled()
3005 when(mScanRequestProxy.isOpenOnlyNetworkInRange(eq(networkSelectorChoice.SSID))) in testOweAutoUpgradeWithOpenNetworkWhenAutoUpgradeEnabled()
3024 when(mScanRequestProxy.isOpenOnlyNetworkInRange(eq(TEST_AUTO_UPGRADE_SSID))) in testOweAutoUpgradeWithOpenNetworkWhenOpenTypeIsDisabled()
[all …]
DWifiShellCommandTest.java106 @Mock ScanRequestProxy mScanRequestProxy; field in WifiShellCommandTest
133 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
138 when(mScanRequestProxy.getScanResults()).thenReturn(new ArrayList<>()); in setUp()
890 verify(mScanRequestProxy).enableScanning(true, false); in testEnableScanning()
899 verify(mScanRequestProxy).enableScanning(true, true); in testEnableScanningWithHiddenNetworkOption()
DWifiServiceImplTest.java433 @Mock ScanRequestProxy mScanRequestProxy; field in WifiServiceImplTest
602 when(mWifiInjector.getScanRequestProxy()).thenReturn(mScanRequestProxy); in setUp()
651 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(true); in setUp()
2949 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureAppOpsIgnored()
2963 verify(mScanRequestProxy, never()).startScan(Process.myUid(), SCAN_PACKAGE_NAME); in testStartScanFailureInCanAccessScanResultsPermission()
2976 verify(mScanRequestProxy, never()).startScan(anyInt(), eq(SCAN_PACKAGE_NAME)); in testStartScanFailureInRunWithScissors()
2986 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(false); in testStartScanFailureFromScanRequestProxy()
2991 verify(mScanRequestProxy).startScan(Binder.getCallingUid(), SCAN_PACKAGE_NAME); in testStartScanFailureFromScanRequestProxy()
3407 when(mScanRequestProxy.getScanResults()).thenReturn(scanResultList); in testGetScanResults()
3415 verify(mScanRequestProxy).getScanResults(); in testGetScanResults()
[all …]
DWifiBlocklistMonitorTest.java147 @Mock private ScanRequestProxy mScanRequestProxy; field in WifiBlocklistMonitorTest
261 mWifiBlocklistMonitor.setScanRequestProxy(mScanRequestProxy); in setup()
1179 when(mScanRequestProxy.getScanResult(TEST_BSSID_1)).thenReturn(fakeScanResult); in testReadRssiFromLatestScanResultsWhenInvalid()
1733 mWifiBlocklistMonitor.setScanRequestProxy(mScanRequestProxy); in testNetworkSelectionDisableReasonCustomConfigOverride()
DDppManagerTest.java143 ScanRequestProxy mScanRequestProxy; field in DppManagerTest
194 mWifiNative, mWifiConfigManager, mContext, mDppMetrics, mScanRequestProxy, in createDppManager()
873 when(mScanRequestProxy.getScanResults()).thenReturn(scanResults); in addTestNetworkInScanResult()
DClientModeImplTest.java572 @Mock ScanRequestProxy mScanRequestProxy; field in ClientModeImplTest
826 mDeviceConfigFacade, mScanRequestProxy, mWifiInfo, mWifiConnectivityManager, in initializeCmi()
1101 when(mScanRequestProxy.getScanResults()).thenReturn(Arrays.asList(scanResult)); in triggerConnectWithUpgradeType()
1124 when(mScanRequestProxy.getScanResults()).thenReturn(new ArrayList<>()); in triggerConnectWithLastUsedSecurityParams()
1232 when(mScanRequestProxy.getScanResult(eq(TEST_BSSID_STR))).thenReturn(scanResult); in connect()
1379 when(mScanRequestProxy.getScanResult(eq(TEST_BSSID_STR))).thenReturn(scanResult); in connectWithIpProvisionTimeout()
6923 when(mScanRequestProxy.getScanResults()).thenReturn(Arrays.asList(scanResult)); in setupFilsEnabledApInScanResult()
6924 when(mScanRequestProxy.getScanResult(eq(TEST_BSSID_STR))).thenReturn(scanResult); in setupFilsEnabledApInScanResult()
8162 when(mScanRequestProxy.getScanResult(TEST_BSSID_STR)).thenReturn( in setupPasspointConnection()
8415 when(mScanRequestProxy.getScanResults()).thenReturn(Arrays.asList(scanResult)); in verifyTransitionDisableEvent()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java213 private final ScanRequestProxy mScanRequestProxy; field in WifiInjector
453 mScanRequestProxy = new ScanRequestProxy(mContext, in WifiInjector()
458 mWifiBlocklistMonitor.setScanRequestProxy(mScanRequestProxy); in WifiInjector()
464 mScanRequestProxy, mWifiNative); in WifiInjector()
502 mWifiConfigManager, mContext, mDppMetrics, mScanRequestProxy, mWifiPermissionsUtil); in WifiInjector()
657 mScanRequestProxy.enableVerboseLogging(verboseEnabled); in enableVerboseLogging()
876 mDeviceConfigFacade, mScanRequestProxy, wifiInfo, mWifiConnectivityManager, in makeClientModeImpl()
1043 return mScanRequestProxy; in getScanRequestProxy()
DWifiNetworkSelector.java126 private final ScanRequestProxy mScanRequestProxy; field in WifiNetworkSelector
1418 mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
1419 mScanRequestProxy.isWpa3PersonalOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
1426 mScanRequestProxy.isOpenOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
1427 mScanRequestProxy.isOweOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
1433 mScanRequestProxy.isWpa2EnterpriseOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
1434 mScanRequestProxy.isWpa3EnterpriseOnlyNetworkInRange(config.SSID), in removeSecurityParamsIfNecessary()
1811 mScanRequestProxy = scanRequestProxy; in WifiNetworkSelector()
DDppManager.java81 private final ScanRequestProxy mScanRequestProxy; field in DppManager
141 mScanRequestProxy = scanRequestProxy; in DppManager()
942 for (ScanResult scanResult : mScanRequestProxy.getScanResults()) { in isEnrolleeCompatibleWithNetwork()
DWifiBlocklistMonitor.java133 private ScanRequestProxy mScanRequestProxy; field in WifiBlocklistMonitor
245 mScanRequestProxy = scanRequestProxy; in setScanRequestProxy()
495 if (mScanRequestProxy != null) { in handleBssidConnectionFailureInternal()
496 ScanResult scanResult = mScanRequestProxy.getScanResult(bssid); in handleBssidConnectionFailureInternal()
DClientModeImpl.java264 private final ScanRequestProxy mScanRequestProxy; field in ClientModeImpl
812 mScanRequestProxy = scanRequestProxy; in ClientModeImpl()
1382 if (!mScanRequestProxy.isWpa3PersonalOnlyNetworkInRange(config.SSID)) return; in updateSaeAutoUpgradeFlagForUserSelectNetwork()
1383 if (mScanRequestProxy.isWpa2PersonalOnlyNetworkInRange(config.SSID)) return; in updateSaeAutoUpgradeFlagForUserSelectNetwork()
1384 if (mScanRequestProxy.isWpa2Wpa3PersonalTransitionNetworkInRange(config.SSID)) return; in updateSaeAutoUpgradeFlagForUserSelectNetwork()
1405 List<ScanResult> scanResults = mScanRequestProxy.getScanResults().stream() in shouldDropConnectionRequest()
3135 ScanResult matchingScanResult = mScanRequestProxy.getScanResult(bssid); in findMatchingInfoElements()
5837 scanResult = mScanRequestProxy.getScanResult(mLastBssid); in processMessageImpl()
6030 ScanResult result = mScanRequestProxy.getScanResult(mLastBssid); in isValidTransitionDisableIndicationSource()
8150 List<ScanResult> scanResults = mScanRequestProxy.getScanResults(); in updateWifiConfigOnStartConnection()
[all …]
DWifiShellCommand.java212 private final ScanRequestProxy mScanRequestProxy; field in WifiShellCommand
463 mScanRequestProxy = wifiInjector.getScanRequestProxy(); in WifiShellCommand()
972 mScanRequestProxy.getScanResults(); in onCommand()
1446 mScanRequestProxy.enableScanning(enabled, hiddenEnabled); in onCommand()
2579 mScanRequestProxy.getScanResults() in buildNetworkRequest()
DActiveModeWarden.java136 private final ScanRequestProxy mScanRequestProxy; field in ActiveModeWarden
401 mScanRequestProxy = wifiInjector.getScanRequestProxy(); in ActiveModeWarden()
1751 mScanRequestProxy.enableScanning(scanEnabled, scanningForHiddenNetworksEnabled); in updateClientScanMode()
DWifiServiceImpl.java275 private final ScanRequestProxy mScanRequestProxy; field in WifiServiceImpl
530 mScanRequestProxy = mWifiInjector.getScanRequestProxy(); in WifiServiceImpl()
949 mScanRequestProxy.startScan(callingUid, packageName), null, in startScan()
4595 mScanRequestProxy::getScanResults, Collections.emptyList(), in getScanResults()
4637 List<ScanResult> scanResults = mScanRequestProxy.getScanResults(); in getChannelDataInternal()
4680 networkSuggestions, mScanRequestProxy.getScanResults()); in getMatchingScanResults()
5386 mScanRequestProxy.clearScanRequestTimestampsForApp(pkgName, uid);
7297 mScanRequestProxy.setScanThrottleEnabled(enable);
7306 final boolean enable = mScanRequestProxy.isScanThrottleEnabled();