/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 113 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 …]
|
D | ActiveModeWardenTest.java | 145 @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 …]
|
D | WifiNetworkSelectorTest.java | 113 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 …]
|
D | WifiServiceImplTest.java | 336 @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 …]
|
D | WifiShellCommandTest.java | 95 @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()
|
D | DppManagerTest.java | 139 ScanRequestProxy mScanRequestProxy; field in DppManagerTest 184 mWifiConfigManager, mContext, mDppMetrics, mScanRequestProxy, mWifiPermissionsUtil); in createDppManager() 831 when(mScanRequestProxy.getScanResults()).thenReturn(scanResults); in addTestNetworkInScanResult()
|
D | ClientModeImplTest.java | 456 @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/ |
D | WifiNetworkSelector.java | 110 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()
|
D | WifiInjector.java | 193 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()
|
D | DppManager.java | 78 private final ScanRequestProxy mScanRequestProxy; field in DppManager 121 mScanRequestProxy = scanRequestProxy; in DppManager() 775 for (ScanResult scanResult : mScanRequestProxy.getScanResults()) { in isEnrolleeCompatibleWithNetwork()
|
D | WifiServiceImpl.java | 188 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);
|
D | ActiveModeWarden.java | 110 private final ScanRequestProxy mScanRequestProxy; field in ActiveModeWarden 270 mScanRequestProxy = wifiInjector.getScanRequestProxy(); in ActiveModeWarden() 1363 mScanRequestProxy.enableScanning(scanEnabled, scanningForHiddenNetworksEnabled); in updateClientScanMode()
|
D | WifiShellCommand.java | 161 private final ScanRequestProxy mScanRequestProxy; field in WifiShellCommand 221 mScanRequestProxy = wifiInjector.getScanRequestProxy(); in WifiShellCommand() 996 mScanRequestProxy.enableScanning(enabled, hiddenEnabled); in onCommand()
|
D | ClientModeImpl.java | 236 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);
|