/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 142 private WifiConfigManager mWifiConfigManager; field in WifiConfigManagerTest 219 mWifiConfigManager.setOnSavedNetworkUpdateListener(mWcmListener); in setUp() 261 assertTrue(mWifiConfigManager.getConfiguredNetworks().isEmpty()); in testGetConfiguredNetworksBeforeLoadFromStore() 262 assertTrue(mWifiConfigManager.getConfiguredNetworksWithPasswords().isEmpty()); in testGetConfiguredNetworksBeforeLoadFromStore() 274 mWifiConfigManager.addOrUpdateNetwork(openNetwork, TEST_CREATOR_UID).isSuccess()); in testAddNetworkIsRejectedBeforeLoadFromStore() 283 assertFalse(mWifiConfigManager.saveToStore(true)); in testSaveToStoreIsRejectedBeforeLoadFromStore() 286 assertTrue(mWifiConfigManager.loadFromStore()); in testSaveToStoreIsRejectedBeforeLoadFromStore() 289 assertTrue(mWifiConfigManager.saveToStore(true)); in testSaveToStoreIsRejectedBeforeLoadFromStore() 307 mWifiConfigManager.getConfiguredNetworksWithPasswords(); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails() 328 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 | 356 @Mock WifiConfigManager mWifiConfigManager; field in ClientModeImplTest 416 when(mWifiInjector.getWifiConfigManager()).thenReturn(mWifiConfigManager); in setUp() 676 when(mWifiConfigManager.removeNetwork(eq(0), anyInt())).thenReturn(true); in canRemoveNetwork() 682 verify(mWifiConfigManager).removeNetwork(anyInt(), anyInt()); in canRemoveNetwork() 704 when(mWifiConfigManager.removeNetwork(eq(0), anyInt())).thenReturn(true); in canForgetNetwork() 707 verify(mWifiConfigManager).removeNetwork(anyInt(), anyInt()); in canForgetNetwork() 731 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in canSaveNetworkConfig() 733 when(mWifiConfigManager.enableNetwork(eq(networkId), eq(false), anyInt())) in canSaveNetworkConfig() 741 verify(mWifiConfigManager).addOrUpdateNetwork(any(WifiConfiguration.class), anyInt()); in canSaveNetworkConfig() 742 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 | 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 | 75 @Mock private WifiConfigManager mWifiConfigManager; field in WakeupControllerTest 133 mWifiConfigManager, in initializeWakeupController() 333 when(mWifiConfigManager.getSavedNetworks(anyInt())) in startInitializesWakeupLockWithSavedScanResults() 406 when(mWifiConfigManager.getSavedNetworks(anyInt())) in startInitializesWakeupLockWithSavedScanResultsAndNetworkSuggestions() 452 when(mWifiConfigManager.getSavedNetworks(anyInt())) in startFiltersOutDfsScanResults() 481 when(mWifiConfigManager.getSavedNetworks(anyInt())) in onResultsUpdatesWakeupLockForSavedNetworks() 535 when(mWifiConfigManager.getSavedNetworks(anyInt())).thenReturn(Collections.emptyList()); in onResultsUpdatesWakeupLockWithOnlySavedNetworks() 710 when(mWifiConfigManager.getSavedNetworks(anyInt())).thenReturn(Collections.emptyList()); in lastConnectedNetworkAddedToLock() 736 when(mWifiConfigManager.getSavedNetworks(anyInt())).thenReturn(Collections.emptyList()); in expiredLastConnectedNetworkNotAddedToLock()
|
D | OpenNetworkNotifierTest.java | 84 @Mock private WifiConfigManager mWifiConfigManager; field in OpenNetworkNotifierTest 120 mWifiConfigManager, mWifiConfigStore, mClientModeImpl, mNotificationBuilder); in setUp() 131 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp() 394 verify(mWifiConfigManager).saveToStore(false /* forceWrite */); in userDismissedNotification_shouldBlacklistNetwork() 420 verify(mWifiConfigManager).saveToStore(false /* forceWrite */); in userConnectedNotification_shouldBlacklistNetwork() 786 verify(mWifiConfigManager, never()).saveToStore(false /* forceWrite */); in removeNetworkFromBlacklist_handlesNull() 795 verify(mWifiConfigManager, never()).saveToStore(false /* forceWrite */); in removeNetworkFromBlacklist_returnsEarlyIfNothingIsRemoved() 808 verify(mWifiConfigManager, times(2)).saveToStore(false /* forceWrite */); in connectToNetwork_shouldRemoveSsidFromBlacklist()
|
/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 | 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 | WifiInjector.java | 121 private final WifiConfigManager mWifiConfigManager; field in WifiInjector 246 mWifiConfigManager = new WifiConfigManager(mContext, mClock, in WifiInjector() 253 mWifiMetrics.setWifiConfigManager(mWifiConfigManager); in WifiInjector() 260 mWifiConfigManager, mClock, mConnectivityLocalLog, mWifiMetrics, mWifiNative); in WifiInjector() 269 mWifiConfigManager, mClock, mConnectivityLocalLog, mWifiConnectivityHelper, in WifiInjector() 273 mWifiConfigManager, mWifiConfigStore, mWifiMetrics, mWifiKeyStore); in WifiInjector() 275 mWifiConfigManager, mConnectivityLocalLog); in WifiInjector() 277 mFrameworkFacade, mNetworkScoreManager, mWifiConfigManager, mConnectivityLocalLog, in WifiInjector() 279 mCarrierNetworkEvaluator = new CarrierNetworkEvaluator(mWifiConfigManager, in WifiInjector() 284 mSimAccessor, new PasspointObjectFactory(), mWifiConfigManager, mWifiConfigStore, in WifiInjector() [all …]
|
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 | 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 | 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 | 198 private final WifiConfigManager mWifiConfigManager; field in ClientModeImpl 359 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(mTargetNetworkId); in clearTargetBssid() 801 mWifiConfigManager = mWifiInjector.getWifiConfigManager(); in ClientModeImpl() 812 mFacade.makeSupplicantStateTracker(context, mWifiConfigManager, getHandler()); in ClientModeImpl() 1112 mWifiConfigManager.enableVerboseLogging(verbose); in enableVerboseLogging() 1157 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(netId); in connectToUserSelectNetwork() 1162 if (!mWifiConfigManager.enableNetwork(netId, true, uid) in connectToUserSelectNetwork() 1163 || !mWifiConfigManager.updateLastConnectUid(netId, uid)) { in connectToUserSelectNetwork() 2040 mWifiConfigManager.dump(fd, pw, args); in dump() 2213 key = mWifiConfigManager.getLastSelectedNetworkConfigKey(); in getLogRecString() [all …]
|
D | WifiShellCommand.java | 48 private final WifiConfigManager mWifiConfigManager; field in WifiShellCommand 55 mWifiConfigManager = wifiInjector.getWifiConfigManager(); in WifiShellCommand() 176 mWifiConfigManager.clearDeletedEphemeralNetworks(); in onCommand()
|
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 boolean isSuccess = mWifiConfigManager.tryEnableNetwork(existingNetwork.networkId); in createWifiConfigForProvider() 248 mWifiConfigManager.addOrUpdateNetwork(config, Process.WIFI_UID); in createWifiConfigForProvider() 253 mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID); in createWifiConfigForProvider() 254 mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), in createWifiConfigForProvider() [all …]
|