/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 149 private WifiConfigManager mWifiConfigManager; field in WifiConfigManagerTest 233 mWifiConfigManager.setOnSavedNetworkUpdateListener(mWcmListener); in setUp() 274 assertTrue(mWifiConfigManager.getConfiguredNetworks().isEmpty()); in testGetConfiguredNetworksBeforeLoadFromStore() 275 assertTrue(mWifiConfigManager.getConfiguredNetworksWithPasswords().isEmpty()); in testGetConfiguredNetworksBeforeLoadFromStore() 287 mWifiConfigManager.addOrUpdateNetwork(openNetwork, TEST_CREATOR_UID).isSuccess()); in testAddNetworkIsRejectedBeforeLoadFromStore() 296 assertFalse(mWifiConfigManager.saveToStore(true)); in testSaveToStoreIsRejectedBeforeLoadFromStore() 299 assertTrue(mWifiConfigManager.loadFromStore()); in testSaveToStoreIsRejectedBeforeLoadFromStore() 302 assertTrue(mWifiConfigManager.saveToStore(true)); in testSaveToStoreIsRejectedBeforeLoadFromStore() 319 mWifiConfigManager.getConfiguredNetworksWithPasswords(); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails() 343 mWifiConfigManager.getConfiguredNetworksWithPasswords(); in testAddSingleOpenNetwork() [all …]
|
D | SavedNetworkEvaluatorTest.java | 79 new ScoringParams(mContext), mWifiConfigManager, in setUp() 92 @Mock private WifiConfigManager mWifiConfigManager; field in SavedNetworkEvaluatorTest 151 when(mWifiConfigManager.getLastSelectedNetwork()) in setupWifiConfigManager() 169 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreNetworksIfUseExternalScores() 196 freqs, caps, levels, securities, mWifiConfigManager, mClock); in ignoreEphemeralNetworks() 225 freqs, caps, levels, securities, mWifiConfigManager, mClock); in setCandidateScanResultsForAllSavedNetworks() 235 verify(mWifiConfigManager, atLeastOnce()).setNetworkCandidateScanResult( in setCandidateScanResultsForAllSavedNetworks() 239 verify(mWifiConfigManager, atLeastOnce()).setNetworkCandidateScanResult( in setCandidateScanResultsForAllSavedNetworks() 243 verify(mWifiConfigManager, atLeastOnce()).setNetworkCandidateScanResult( in setCandidateScanResultsForAllSavedNetworks() 264 freqs, caps, levels, securities, mWifiConfigManager, mClock); in chooseStrongerRssi2GNetwork() [all …]
|
D | ScoredNetworkEvaluatorTest.java | 74 @Mock private WifiConfigManager mWifiConfigManager; field in ScoredNetworkEvaluatorTest 99 mWifiConfigManager, new LocalLog(0), mScoreCache, mWifiPermissionsUtil); in setUp() 129 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_recommendationsDisabled() 153 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_emptyScanList() 171 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_allNetworksUnscored() 196 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_oneScored_oneUnscored() 226 verifyZeroInteractions(mWifiConfigManager, mNetworkScoreManager); in testEvaluateNetworks_recommendationsDisabled() 243 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResults() 266 ssids, bssids, freqs, caps, levels, securities, mWifiConfigManager, mClock); in testUpdate_externalScorerNotPermittedToSeeScanResultsWithException() 296 .setupEphemeralNetwork(mWifiConfigManager, 1, scanDetails.get(1), meteredHints[1]); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable() [all …]
|
D | NetworkSuggestionEvaluatorTest.java | 60 private @Mock WifiConfigManager mWifiConfigManager; field in NetworkSuggestionEvaluatorTest 71 mWifiNetworkSuggestionsManager, mWifiConfigManager, new LocalLog(100)); in setUp() 388 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt(), anyString())) in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager() 401 verify(mWifiConfigManager, times(scanSsids.length)) in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager() 403 verify(mWifiConfigManager).getConfiguredNetwork(eq( in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager() 405 verify(mWifiConfigManager).addOrUpdateNetwork(any(), anyInt(), anyString()); in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager() 408 verifyNoMoreInteractions(mWifiConfigManager); in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager() 439 when(mWifiConfigManager.getConfiguredNetwork(suggestions[0].wifiConfiguration.configKey())) in testSelectNetworkSuggestionForOneMatchForExistingNetwork() 455 verify(mWifiConfigManager, times(scanSsids.length)) in testSelectNetworkSuggestionForOneMatchForExistingNetwork() 457 verify(mWifiConfigManager).getConfiguredNetwork(candidate.configKey()); in testSelectNetworkSuggestionForOneMatchForExistingNetwork() [all …]
|
D | ClientModeImplTest.java | 363 @Mock WifiConfigManager mWifiConfigManager; field in ClientModeImplTest 423 when(mWifiInjector.getWifiConfigManager()).thenReturn(mWifiConfigManager); in setUp() 687 when(mWifiConfigManager.removeNetwork(eq(0), anyInt())).thenReturn(true); in canRemoveNetwork() 693 verify(mWifiConfigManager).removeNetwork(anyInt(), anyInt()); in canRemoveNetwork() 715 when(mWifiConfigManager.removeNetwork(eq(0), anyInt())).thenReturn(true); in canForgetNetwork() 718 verify(mWifiConfigManager).removeNetwork(anyInt(), anyInt()); in canForgetNetwork() 742 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in canSaveNetworkConfig() 744 when(mWifiConfigManager.enableNetwork(eq(networkId), eq(false), anyInt())) in canSaveNetworkConfig() 752 verify(mWifiConfigManager).addOrUpdateNetwork(any(WifiConfiguration.class), anyInt()); in canSaveNetworkConfig() 753 verify(mWifiConfigManager).enableNetwork(eq(networkId), eq(false), anyInt()); in canSaveNetworkConfig() [all …]
|
D | WifiNetworkSelectorTest.java | 87 mWifiConfigManager, mClock, in setUp() 172 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail); in evaluateNetworks() 173 mWifiConfigManager.setNetworkCandidateScanResult( in evaluateNetworks() 178 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache( in evaluateNetworks() 188 @Mock private WifiConfigManager mWifiConfigManager; field in WifiNetworkSelectorTest 257 when(mWifiConfigManager.getLastSelectedNetwork()) in setupWifiConfigManager() 280 freqs, caps, levels, securities, mWifiConfigManager, mClock); in emptyScanResults() 310 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumRssiThreshold() 341 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyMinimumTimeGapWhenConnected() 380 freqs, caps, levels, securities, mWifiConfigManager, mClock); in verifyNoMinimumTimeGapWhenDisconnected() [all …]
|
D | ConnectionFailureNotifierTest.java | 58 @Mock private WifiConfigManager mWifiConfigManager; field in ConnectionFailureNotifierTest 85 mFrameworkFacade, mWifiConfigManager, mWifiConnectivityManager, in setUp() 121 when(mWifiConfigManager.getConfiguredNetwork(config.networkId)).thenReturn(config); in testConnectionFailureSendRandomizationSettingsNotification() 147 verify(mWifiConfigManager).addOrUpdateNetwork( in testConnectionFailureSendRandomizationSettingsNotification() 160 when(mWifiConfigManager.getConfiguredNetwork(config.networkId)).thenReturn(config); in testWifiConfigurationMismatch() 172 when(mWifiConfigManager.getConfiguredNetwork(anyInt())) in testWifiConfigurationMismatch()
|
D | CarrierNetworkEvaluatorTest.java | 77 @Mock private WifiConfigManager mWifiConfigManager; field in CarrierNetworkEvaluatorTest 120 when(mWifiConfigManager.getConfiguredNetwork(networkId)).thenReturn(config); in answer() 145 when(mWifiConfigManager.enableNetwork(networkId, false, Process.WIFI_UID)).thenReturn(true); in configureNewSsid() 146 when(mWifiConfigManager.setNetworkCandidateScanResult(eq(networkId), any(), in configureNewSsid() 148 when(mWifiConfigManager.getConfiguredNetwork(networkId)).thenReturn(newConfig); in configureNewSsid() 158 mDut = new CarrierNetworkEvaluator(mWifiConfigManager, mCarrierNetworkConfig, mLocalLog, in setUp() 186 when(mWifiConfigManager.addOrUpdateNetwork(any(), eq(Process.WIFI_UID))).thenAnswer( in setUp() 190 when(mWifiConfigManager.getConfiguredNetworkForScanDetail(any())).thenAnswer( in setUp() 340 when(mWifiConfigManager.wasEphemeralNetworkDeleted(CARRIER1_SSID)) in testAvailableButPreviouslyUserDeleted() 377 when(mWifiConfigManager.getConfiguredNetwork(eq(blacklisted.configKey()))) in testAvailableButBlacklisted() [all …]
|
D | WakeupLockTest.java | 47 @Mock private WifiConfigManager mWifiConfigManager; field in WakeupLockTest 72 mWakeupLock = new WakeupLock(mWifiConfigManager, mWifiWakeMetrics, mClock); in setUp() 146 verify(mWifiConfigManager, times(2)).saveToStore(false); in addToLockSavesToStore() 249 verify(mWifiConfigManager).saveToStore(eq(false)); in initializeShouldSaveSsidsToStore() 261 verify(mWifiConfigManager, times(2)).saveToStore(eq(false)); in updateShouldOnlySaveIfLockChanges() 271 verify(mWifiConfigManager, times(1)).saveToStore(anyBoolean()); in updateShouldNotSaveIfLockDoesNotChange()
|
D | DppManagerTest.java | 94 WifiConfigManager mWifiConfigManager; field in DppManagerTest 136 DppManager dppManger = new DppManager(mLooper.getLooper(), mWifiNative, mWifiConfigManager, in createDppManager() 149 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn(null); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 173 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn( in testStartDppAsConfiguratorInitiatorFailAddPeer() 219 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn( in testStartDppAsConfiguratorInitiatorFailStart() 263 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn( in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa2Psk() 288 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn( in testStartDppAsConfiguratorInitiatorStartCorrectlyWpa3Sae() 312 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn( in testStartDppAsConfiguratorInitiatorFailOpenNetwork() 335 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn( in testStartDppAsConfiguratorInitiatorFailEapNetwork() 372 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn( in testStartDppAsConfiguratorInitiatorStartCorrectlyAndRejectConcurrentRequest() [all …]
|
D | WakeupOnboardingTest.java | 56 @Mock private WifiConfigManager mWifiConfigManager; field in WakeupOnboardingTest 81 mWakeupOnboarding = new WakeupOnboarding(mContext, mWifiConfigManager, mLooper.getLooper(), in setUp() 212 verify(mWifiConfigManager).saveToStore(false /* forceWrite */); in setOnboardedSavesToStore() 224 verify(mWifiConfigManager).saveToStore(false /* forceWrite */); in incrementingNotificationCountSavesToStore()
|
D | WakeupControllerTest.java | 77 @Mock private WifiConfigManager mWifiConfigManager; field in WakeupControllerTest 135 mWifiConfigManager, in initializeWakeupController() 337 when(mWifiConfigManager.getSavedNetworks(anyInt())) in startInitializesWakeupLockWithSavedScanResults() 410 when(mWifiConfigManager.getSavedNetworks(anyInt())) in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 456 when(mWifiConfigManager.getSavedNetworks(anyInt())) in startFiltersOutDfsScanResults() 485 when(mWifiConfigManager.getSavedNetworks(anyInt())) in onResultsUpdatesWakeupLockForSavedNetworks() 539 when(mWifiConfigManager.getSavedNetworks(anyInt())).thenReturn(Collections.emptyList()); in onResultsUpdatesWakeupLockWithOnlySavedNetworks() 714 when(mWifiConfigManager.getSavedNetworks(anyInt())).thenReturn(Collections.emptyList()); in lastConnectedNetworkAddedToLock() 740 when(mWifiConfigManager.getSavedNetworks(anyInt())).thenReturn(Collections.emptyList()); in expiredLastConnectedNetworkNotAddedToLock()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | CarrierNetworkEvaluator.java | 51 private final WifiConfigManager mWifiConfigManager; field in CarrierNetworkEvaluator 60 mWifiConfigManager = wifiConfigManager; in CarrierNetworkEvaluator() 111 if (mWifiConfigManager.wasEphemeralNetworkDeleted( in evaluateNetworks() 128 mWifiConfigManager.getConfiguredNetwork(config.configKey()); in evaluateNetworks() 131 && !mWifiConfigManager.tryEnableNetwork(existingNetwork.networkId)) { in evaluateNetworks() 138 NetworkUpdateResult result = mWifiConfigManager.addOrUpdateNetwork(config, in evaluateNetworks() 144 if (!mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID)) { in evaluateNetworks() 148 if (!mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), scanResult, in evaluateNetworks() 156 config = mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in evaluateNetworks() 167 mWifiConfigManager.updateScanDetailForNetwork(result.getNetworkId(), scanDetail); in evaluateNetworks()
|
D | ConnectionFailureNotifier.java | 46 private WifiConfigManager mWifiConfigManager; field in ConnectionFailureNotifier 60 mWifiConfigManager = wifiConfigManager; in ConnectionFailureNotifier() 96 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(networkId); in showFailedToConnectDueToNoRandomizedMacSupportNotification() 117 mWifiConfigManager.addOrUpdateNetwork(mConfig, Process.SYSTEM_UID); in onClick() 119 mWifiConfigManager.getConfiguredNetwork(mConfig.networkId); in onClick() 125 mWifiConfigManager.enableNetwork(updatedConfig.networkId, true, in onClick() 145 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(networkId); in showRandomizationSettingsDialog()
|
D | WifiInjector.java | 123 private final WifiConfigManager mWifiConfigManager; field in WifiInjector 254 mWifiConfigManager = new WifiConfigManager(mContext, mClock, in WifiInjector() 261 mWifiMetrics.setWifiConfigManager(mWifiConfigManager); in WifiInjector() 268 mWifiConfigManager, mClock, mConnectivityLocalLog, mWifiMetrics, mWifiNative); in WifiInjector() 277 mWifiConfigManager, mClock, mConnectivityLocalLog, mWifiConnectivityHelper, in WifiInjector() 281 mWifiConfigManager, mWifiConfigStore, mWifiMetrics, mWifiKeyStore); in WifiInjector() 283 mWifiConfigManager, mConnectivityLocalLog); in WifiInjector() 285 mFrameworkFacade, mNetworkScoreManager, mWifiConfigManager, mConnectivityLocalLog, in WifiInjector() 287 mCarrierNetworkEvaluator = new CarrierNetworkEvaluator(mWifiConfigManager, in WifiInjector() 292 mSimAccessor, new PasspointObjectFactory(), mWifiConfigManager, mWifiConfigStore, in WifiInjector() [all …]
|
D | WifiNetworkSelector.java | 102 private final WifiConfigManager mWifiConfigManager; field in WifiNetworkSelector 241 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in isCurrentNetworkSufficient() 248 if (mWifiConfigManager.getLastSelectedNetwork() == network.networkId in isCurrentNetworkSufficient() 250 - mWifiConfigManager.getLastSelectedTimeStamp()) in isCurrentNetworkSufficient() 475 if (mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail) != null) { in getFilteredScanDetailsForOpenUnsavedNetworks() 505 if (mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail) != null) { in getFilteredScanDetailsForCarrierUnsavedNetworks() 541 WifiConfiguration selected = mWifiConfigManager.getConfiguredNetwork(netId); in setUserConnectChoice() 550 mWifiConfigManager.updateNetworkSelectionStatus(netId, in setUserConnectChoice() 564 List<WifiConfiguration> configuredNetworks = mWifiConfigManager.getConfiguredNetworks(); in setLegacyUserConnectChoice() 573 mWifiConfigManager.clearNetworkConnectChoice(network.networkId); in setLegacyUserConnectChoice() [all …]
|
D | SavedNetworkEvaluator.java | 38 private final WifiConfigManager mWifiConfigManager; field in SavedNetworkEvaluator 64 mWifiConfigManager = configManager; in SavedNetworkEvaluator() 133 int lastUserSelectedNetworkId = mWifiConfigManager.getLastSelectedNetwork(); in calculateBssidScore() 137 - mWifiConfigManager.getLastSelectedTimeStamp(); in calculateBssidScore() 202 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail); in evaluateNetworks() 248 mWifiConfigManager.setNetworkCandidateScanResult( in evaluateNetworks() 261 mWifiConfigManager.getConfiguredNetwork(network.networkId), score); in evaluateNetworks() 270 mWifiConfigManager.setNetworkCandidateScanResult( in evaluateNetworks() 273 candidate = mWifiConfigManager.getConfiguredNetwork(network.networkId); in evaluateNetworks()
|
D | ScoredNetworkEvaluator.java | 53 private final WifiConfigManager mWifiConfigManager; field in ScoredNetworkEvaluator 68 mWifiConfigManager = wifiConfigManager; in ScoredNetworkEvaluator() 141 if (mWifiConfigManager.wasEphemeralNetworkDeleted( in evaluateNetworks() 147 mWifiConfigManager.getConfiguredNetworkForScanDetailAndCache(scanDetail); in evaluateNetworks() 251 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0); in trackUntrustedCandidate() 272 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0); in trackExternallyScoredCandidate() 303 mWifiConfigManager.addOrUpdateNetwork(mEphemeralConfig, in getCandidateConfiguration() 309 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in getCandidateConfiguration() 320 mWifiConfigManager.setNetworkCandidateScanResult(candidateNetworkId, in getCandidateConfiguration() 339 WifiConfiguration ans = mWifiConfigManager.getConfiguredNetwork( in getCandidateConfiguration()
|
D | NetworkSuggestionEvaluator.java | 62 private final WifiConfigManager mWifiConfigManager; field in NetworkSuggestionEvaluator 68 mWifiConfigManager = wifiConfigManager; in NetworkSuggestionEvaluator() 87 if (mWifiConfigManager.wasEphemeralNetworkDeleted( in evaluateNetworks() 107 mWifiConfigManager.getConfiguredNetwork( in evaluateNetworks() 111 && !mWifiConfigManager.tryEnableNetwork(wCmConfiguredNetwork.networkId)) { in evaluateNetworks() 144 mWifiConfigManager.addOrUpdateNetwork(wifiConfiguration, uid, packageName); in addCandidateToWifiConfigManager() 149 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in addCandidateToWifiConfigManager() 155 return mWifiConfigManager.getConfiguredNetwork(candidateNetworkId); in addCandidateToWifiConfigManager()
|
D | WakeupLock.java | 46 private final WifiConfigManager mWifiConfigManager; field in WakeupLock 58 mWifiConfigManager = wifiConfigManager; in WakeupLock() 82 mWifiConfigManager.saveToStore(false /* forceWrite */); in setLock() 163 mWifiConfigManager.saveToStore(false /* forceWrite */); in addToLock() 209 mWifiConfigManager.saveToStore(false /* forceWrite */); in removeFromLock()
|
D | WakeupOnboarding.java | 59 private final WifiConfigManager mWifiConfigManager; field in WakeupOnboarding 100 mWifiConfigManager = wifiConfigManager; in WakeupOnboarding() 147 mWifiConfigManager.saveToStore(false /* forceWrite */); in incrementTotalNotificationsShown() 186 mWifiConfigManager.saveToStore(false /* forceWrite */); in setOnboarded()
|
D | ClientModeImpl.java | 205 private final WifiConfigManager mWifiConfigManager; field in ClientModeImpl 369 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(mTargetNetworkId); in clearTargetBssid() 814 mWifiConfigManager = mWifiInjector.getWifiConfigManager(); in ClientModeImpl() 825 mFacade.makeSupplicantStateTracker(context, mWifiConfigManager, getHandler()); in ClientModeImpl() 1129 mWifiConfigManager.enableVerboseLogging(verbose); in enableVerboseLogging() 1174 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(netId); in connectToUserSelectNetwork() 1179 if (!mWifiConfigManager.enableNetwork(netId, true, uid) in connectToUserSelectNetwork() 1180 || !mWifiConfigManager.updateLastConnectUid(netId, uid)) { in connectToUserSelectNetwork() 2061 mWifiConfigManager.dump(fd, pw, args); in dump() 2234 key = mWifiConfigManager.getLastSelectedNetworkConfigKey(); in getLogRecString() [all …]
|
D | WakeupController.java | 63 private final WifiConfigManager mWifiConfigManager; field in WakeupController 147 mWifiConfigManager = wifiConfigManager; in WakeupController() 186 mWifiConfigManager.saveToStore(false /* forceWrite */); in setActive() 319 List<WifiConfiguration> savedNetworks = mWifiConfigManager.getSavedNetworks( in getGoodSavedNetworksAndSuggestions()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluatorTest.java | 85 @Mock WifiConfigManager mWifiConfigManager; field in PasspointNetworkEvaluatorTest 154 mEvaluator = new PasspointNetworkEvaluator(mPasspointManager, mWifiConfigManager, mLocalLog, in setUp() 221 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithNetworkMatchingHomeProvider() 223 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNetworkMatchingHomeProvider() 231 verify(mWifiConfigManager).addOrUpdateNetwork(addedConfig.capture(), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider() 237 verify(mWifiConfigManager).enableNetwork(eq(TEST_NETWORK_ID), eq(false), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider() 238 verify(mWifiConfigManager).setNetworkCandidateScanResult( in evaluateScansWithNetworkMatchingHomeProvider() 240 verify(mWifiConfigManager).updateScanDetailForNetwork( in evaluateScansWithNetworkMatchingHomeProvider() 264 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithNetworkMatchingRoamingProvider() 266 when(mWifiConfigManager.getConfiguredNetwork(TEST_NETWORK_ID)).thenReturn(TEST_CONFIG1); in evaluateScansWithNetworkMatchingRoamingProvider() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluator.java | 53 private final WifiConfigManager mWifiConfigManager; field in PasspointNetworkEvaluator 79 mWifiConfigManager = wifiConfigManager; in PasspointNetworkEvaluator() 116 if (!mWifiConfigManager.wasEphemeralNetworkDeleted( in evaluateNetworks() 164 mWifiConfigManager.setNetworkCandidateScanResult(currentNetwork.networkId, in evaluateNetworks() 166 mWifiConfigManager.updateScanDetailForNetwork(currentNetwork.networkId, in evaluateNetworks() 229 WifiConfiguration existingNetwork = mWifiConfigManager.getConfiguredNetwork( in createWifiConfigForProvider() 235 && !mWifiConfigManager.tryEnableNetwork(existingNetwork.networkId)) { in createWifiConfigForProvider() 244 mWifiConfigManager.addOrUpdateNetwork(config, Process.WIFI_UID); in createWifiConfigForProvider() 249 mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID); in createWifiConfigForProvider() 250 mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), in createWifiConfigForProvider() [all …]
|