Home
last modified time | relevance | path

Searched refs:mWifiConfigManager (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java149 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 …]
DSavedNetworkEvaluatorTest.java79 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 …]
DScoredNetworkEvaluatorTest.java74 @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 …]
DNetworkSuggestionEvaluatorTest.java60 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 …]
DClientModeImplTest.java363 @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 …]
DWifiNetworkSelectorTest.java87 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 …]
DConnectionFailureNotifierTest.java58 @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()
DCarrierNetworkEvaluatorTest.java77 @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 …]
DWakeupLockTest.java47 @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()
DDppManagerTest.java94 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 …]
DWakeupOnboardingTest.java56 @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()
DWakeupControllerTest.java77 @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/
DCarrierNetworkEvaluator.java51 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()
DConnectionFailureNotifier.java46 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()
DWifiInjector.java123 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 …]
DWifiNetworkSelector.java102 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 …]
DSavedNetworkEvaluator.java38 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()
DScoredNetworkEvaluator.java53 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()
DNetworkSuggestionEvaluator.java62 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()
DWakeupLock.java46 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()
DWakeupOnboarding.java59 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()
DClientModeImpl.java205 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 …]
DWakeupController.java63 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/
DPasspointNetworkEvaluatorTest.java85 @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/
DPasspointNetworkEvaluator.java53 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 …]

12