Home
last modified time | relevance | path

Searched refs:wifiConfiguration (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkSuggestion.java345 final WifiConfiguration wifiConfiguration = new WifiConfiguration(); in buildWifiConfiguration() local
347 wifiConfiguration.SSID = "\"" + mSsid + "\""; in buildWifiConfiguration()
349 wifiConfiguration.BSSID = mBssid.toString(); in buildWifiConfiguration()
352 setSecurityParamsInWifiConfiguration(wifiConfiguration); in buildWifiConfiguration()
354 wifiConfiguration.hiddenSSID = mIsHiddenSSID; in buildWifiConfiguration()
355 wifiConfiguration.priority = mPriority; in buildWifiConfiguration()
356 wifiConfiguration.meteredOverride = in buildWifiConfiguration()
359 return wifiConfiguration; in buildWifiConfiguration()
448 public final WifiConfiguration wifiConfiguration; field in WifiNetworkSuggestion
476 this.wifiConfiguration = null; in WifiNetworkSuggestion()
[all …]
DWifiNetworkSpecifier.java303 final WifiConfiguration wifiConfiguration = new WifiConfiguration(); in buildWifiConfiguration() local
306 wifiConfiguration.SSID = "\"" + mSsidPatternMatcher.getPath() + "\""; in buildWifiConfiguration()
309 wifiConfiguration.BSSID = mBssidPatternMatcher.first.toString(); in buildWifiConfiguration()
311 setSecurityParamsInWifiConfiguration(wifiConfiguration); in buildWifiConfiguration()
312 wifiConfiguration.hiddenSSID = mIsHiddenSSID; in buildWifiConfiguration()
313 return wifiConfiguration; in buildWifiConfiguration()
464 public final WifiConfiguration wifiConfiguration; field in WifiNetworkSpecifier
488 @NonNull WifiConfiguration wifiConfiguration, in WifiNetworkSpecifier() argument
492 checkNotNull(wifiConfiguration); in WifiNetworkSpecifier()
497 this.wifiConfiguration = wifiConfiguration; in WifiNetworkSpecifier()
[all …]
DWifiNetworkAgentSpecifier.java64 public WifiNetworkAgentSpecifier(@NonNull WifiConfiguration wifiConfiguration, in WifiNetworkAgentSpecifier() argument
67 checkNotNull(wifiConfiguration); in WifiNetworkAgentSpecifier()
69 mWifiConfiguration = wifiConfiguration; in WifiNetworkAgentSpecifier()
81 WifiConfiguration wifiConfiguration = in.readParcelable(null);
85 wifiConfiguration, originalRequestorUid, originalRequestorPackageName);
132 checkNotNull(ns.wifiConfiguration.allowedKeyManagement); in satisfiesNetworkSpecifier()
149 if (!ns.wifiConfiguration.allowedKeyManagement.equals( in satisfiesNetworkSpecifier()
DWifiManager.java1455 void select(@NonNull WifiConfiguration wifiConfiguration); in select() argument
1510 void onUserSelectionConnectSuccess(@NonNull WifiConfiguration wifiConfiguration); in onUserSelectionConnectSuccess() argument
1519 void onUserSelectionConnectFailure(@NonNull WifiConfiguration wifiConfiguration); in onUserSelectionConnectFailure() argument
1536 public void select(@NonNull WifiConfiguration wifiConfiguration) { in select() argument
1539 + "wificonfiguration: " + wifiConfiguration); in select()
1542 mCallback.select(wifiConfiguration); in select()
1611 public void onUserSelectionConnectSuccess(WifiConfiguration wifiConfiguration) { in onUserSelectionConnectSuccess() argument
1614 + " wificonfiguration: " + wifiConfiguration); in onUserSelectionConnectSuccess()
1617 mCallback.onUserSelectionConnectSuccess(wifiConfiguration); in onUserSelectionConnectSuccess()
1622 public void onUserSelectionConnectFailure(WifiConfiguration wifiConfiguration) { in onUserSelectionConnectFailure() argument
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkSpecifierTest.java70 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
96 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
99 wifiNetworkSpecifier.wifiConfiguration.preSharedKey); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
129 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
131 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
133 assertTrue(wifiNetworkSpecifier.wifiConfiguration.hiddenSSID); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
135 wifiNetworkSpecifier.wifiConfiguration.enterpriseConfig.getEapMethod()); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
137 wifiNetworkSpecifier.wifiConfiguration.enterpriseConfig.getPhase2Method()); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
360 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testWifiNetworkSpecifierParcel() local
361 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierParcel()
[all …]
DWifiNetworkSuggestionTest.java56 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
57 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
62 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
63 assertEquals(-1, suggestion.wifiConfiguration.priority); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
81 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
82 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
85 suggestion.wifiConfiguration.preSharedKey); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
89 suggestion.wifiConfiguration.meteredOverride); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
90 assertEquals(0, suggestion.wifiConfiguration.priority); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
108 assertEquals("\"" + TEST_SSID + "\"", suggestion.wifiConfiguration.SSID); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
[all …]
DWifiNetworkAgentSpecifierTest.java431 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in createDefaultWifiConfiguration() local
432 wifiConfiguration.SSID = "\"" + TEST_SSID + "\""; in createDefaultWifiConfiguration()
433 wifiConfiguration.BSSID = TEST_BSSID; in createDefaultWifiConfiguration()
434 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createDefaultWifiConfiguration()
435 wifiConfiguration.preSharedKey = TEST_PRESHARED_KEY; in createDefaultWifiConfiguration()
436 return wifiConfiguration; in createDefaultWifiConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionEvaluatorTest.java139 setupAddToWifiConfigManager(suggestions[0].wifiConfiguration); in testSelectNetworkSuggestionForOneMatch()
153 verifyAddToWifiConfigManager(suggestions[0].wifiConfiguration); in testSelectNetworkSuggestionForOneMatch()
184 setupAddToWifiConfigManager(suggestions[0].wifiConfiguration, in testSelectNetworkSuggestionForMultipleMatch()
185 suggestions[1].wifiConfiguration); in testSelectNetworkSuggestionForMultipleMatch()
199 verifyAddToWifiConfigManager(suggestions[1].wifiConfiguration, in testSelectNetworkSuggestionForMultipleMatch()
200 suggestions[1].wifiConfiguration); in testSelectNetworkSuggestionForMultipleMatch()
231 setupAddToWifiConfigManager(suggestions[0].wifiConfiguration, in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
232 suggestions[1].wifiConfiguration); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
246 verifyAddToWifiConfigManager(suggestions[0].wifiConfiguration); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins()
281 setupAddToWifiConfigManager(suggestions[0].wifiConfiguration, in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions()
[all …]
DScanResultMatchInfoTest.java94 WifiConfiguration wifiConfiguration = in testEqualityRulesForTransitionMode() local
96 ScanDetail scanDetail = createScanDetailForWpa2Wpa3TransitionModeNetwork(wifiConfiguration, in testEqualityRulesForTransitionMode()
99 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(wifiConfiguration); in testEqualityRulesForTransitionMode()
101 ScanResultMatchInfo key3 = ScanResultMatchInfo.fromWifiConfiguration(wifiConfiguration); in testEqualityRulesForTransitionMode()
127 WifiConfiguration wifiConfiguration = in testEqualityRulesForPsk() local
129 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration, in testEqualityRulesForPsk()
132 ScanResultMatchInfo key1 = ScanResultMatchInfo.fromWifiConfiguration(wifiConfiguration); in testEqualityRulesForPsk()
134 ScanResultMatchInfo key3 = ScanResultMatchInfo.fromWifiConfiguration(wifiConfiguration); in testEqualityRulesForPsk()
161 WifiConfiguration wifiConfiguration = in testEqualityRulesForSae() local
163 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration, in testEqualityRulesForSae()
[all …]
DWifiNetworkSuggestionsManagerTest.java326 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion1.wifiConfiguration), any())) in testAddRemoveEnterpriseNetworkSuggestion()
328 when(mWifiKeyStore.updateNetworkKeys(eq(networkSuggestion2.wifiConfiguration), any())) in testAddRemoveEnterpriseNetworkSuggestion()
340 removingSuggestion.wifiConfiguration.SSID = networkSuggestion1.wifiConfiguration.SSID; in testAddRemoveEnterpriseNetworkSuggestion()
397 networkSuggestion.wifiConfiguration.meteredOverride = in testAddNetworkSuggestionsFailureOnInPlaceModification()
509 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatchForCarrierProvisioningApp()
537 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatch()
553 WifiConfiguration wifiConfiguration = WifiConfigurationTestUtil.createOpenNetwork(); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch() local
555 wifiConfiguration, false, false, TEST_UID_1, in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
559 wifiConfiguration, false, false, TEST_UID_2, in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
580 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion1.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
[all …]
DWifiNetworkFactoryTest.java715 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch() local
716 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch()
718 ssidPatternMatch, bssidPatternMatch, wifiConfiguration, TEST_UID_1, in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch()
758 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch() local
759 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch()
761 ssidPatternMatch, bssidPatternMatch, wifiConfiguration, TEST_UID_1, in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch()
802 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch() local
803 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch()
805 ssidPatternMatch, bssidPatternMatch, wifiConfiguration, TEST_UID_1, in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch()
846 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingOuiPrefixBssidMatch() local
[all …]
DNetworkSuggestionStoreDataTest.java177 configuration, deserializedSuggestion.wns.wifiConfiguration); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
180 deserializedSuggestion.wns.wifiConfiguration.enterpriseConfig); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
DSavedNetworkEvaluatorTest.java172 for (WifiConfiguration wifiConfiguration : savedConfigs) { in ignoreNetworksIfUseExternalScores()
173 wifiConfiguration.useExternalScores = true; in ignoreNetworksIfUseExternalScores()
199 for (WifiConfiguration wifiConfiguration : savedConfigs) { in ignoreEphemeralNetworks()
200 wifiConfiguration.ephemeral = true; in ignoreEphemeralNetworks()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkSuggestionEvaluator.java108 matchingNetworkSuggestion.wifiConfiguration.configKey()); in evaluateNetworks()
138 @NonNull WifiConfiguration wifiConfiguration, int uid, @NonNull String packageName) { in addCandidateToWifiConfigManager()
140 wifiConfiguration.ephemeral = true; in addCandidateToWifiConfigManager()
141 wifiConfiguration.fromWifiNetworkSuggestion = true; in addCandidateToWifiConfigManager()
144 mWifiConfigManager.addOrUpdateNetwork(wifiConfiguration, uid, packageName); in addCandidateToWifiConfigManager()
206 e -> e.wifiNetworkSuggestion.wifiConfiguration.priority, in getHighestPriorityNetworks()
267 matchedNetworkInfo.wifiNetworkSuggestion.wifiConfiguration, in findConnectableNetworksAndPickBest()
DWifiNetworkSuggestionsManager.java174 this.wns.wifiConfiguration.fromWifiNetworkSuggestion = true; in ExtendedWifiNetworkSuggestion()
175 this.wns.wifiConfiguration.ephemeral = true; in ExtendedWifiNetworkSuggestion()
176 this.wns.wifiConfiguration.creatorName = perAppInfo.packageName; in ExtendedWifiNetworkSuggestion()
177 this.wns.wifiConfiguration.creatorUid = wns.suggestorUid; in ExtendedWifiNetworkSuggestion()
444 extNetworkSuggestion.wns.wifiConfiguration); in addToScanResultMatchInfoMap()
446 if (!TextUtils.isEmpty(extNetworkSuggestion.wns.wifiConfiguration.BSSID)) { in addToScanResultMatchInfoMap()
450 extNetworkSuggestion.wns.wifiConfiguration.BSSID)); in addToScanResultMatchInfoMap()
476 extNetworkSuggestion.wns.wifiConfiguration); in removeFromScanResultMatchInfoMap()
478 if (!TextUtils.isEmpty(extNetworkSuggestion.wns.wifiConfiguration.BSSID)) { in removeFromScanResultMatchInfoMap()
482 extNetworkSuggestion.wns.wifiConfiguration.BSSID)); in removeFromScanResultMatchInfoMap()
[all …]
DNetworkSuggestionStoreData.java202 out, suggestion.wifiConfiguration, encryptionUtil); in serializeNetworkSuggestion()
205 if (suggestion.wifiConfiguration.enterpriseConfig != null in serializeNetworkSuggestion()
206 && suggestion.wifiConfiguration.enterpriseConfig.getEapMethod() in serializeNetworkSuggestion()
211 out, suggestion.wifiConfiguration.enterpriseConfig, encryptionUtil); in serializeNetworkSuggestion()
374 WifiConfiguration wifiConfiguration = parsedConfig.second; in parseNetworkSuggestion() local
376 wifiConfiguration.enterpriseConfig = enterpriseConfig; in parseNetworkSuggestion()
379 wifiConfiguration, isAppInteractionRequired, isUserInteractionRequired, in parseNetworkSuggestion()
DWifiNetworkFactory.java280 public void select(WifiConfiguration wifiConfiguration) { in select() argument
286 handleConnectToNetworkUserSelection(wifiConfiguration); in select()
591 wns.ssidPatternMatcher, wns.bssidPatternMatcher, wns.wifiConfiguration, in needNetworkFor()
781 new WifiConfiguration(mActiveSpecificNetworkRequestSpecifier.wifiConfiguration); in handleConnectToNetworkUserSelectionInternal()
1050 WifiConfiguration wifiConfiguration = wns.wifiConfiguration; in startPeriodicScans() local
1051 if (wifiConfiguration.hiddenSSID) { in startPeriodicScans()
1105 if (ScanResultMatchInfo.getNetworkType(wns.wifiConfiguration) in doesScanResultMatchWifiNetworkSpecifier()
DWifiBackupRestore.java742 WifiConfiguration wifiConfiguration = net.createWifiConfiguration(); in retrieveWifiConfigurations() local
743 if (wifiConfiguration != null) { in retrieveWifiConfigurations()
744 Log.v(TAG, "Parsed Configuration: " + wifiConfiguration.configKey()); in retrieveWifiConfigurations()
745 wifiConfigurations.add(wifiConfiguration); in retrieveWifiConfigurations()
DWakeupController.java338 ScanResultMatchInfo.fromWifiConfiguration(suggestion.wifiConfiguration)); in getGoodSavedNetworksAndSuggestions()
DWifiConfigurationUtil.java723 WifiConfiguration config = specifier.wifiConfiguration; in validateNetworkSpecifier()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java318 WifiConfiguration wifiConfiguration = wifiConfigurationCaptor.getValue(); in verifyWifiConfigurationForOsuNetwork() local
319 assertTrue(wifiConfiguration.isNoInternetAccessExpected()); in verifyWifiConfigurationForOsuNetwork()
320 assertTrue(wifiConfiguration.isEphemeral()); in verifyWifiConfigurationForOsuNetwork()
321 assertTrue(wifiConfiguration.osu); in verifyWifiConfigurationForOsuNetwork()
/frameworks/base/api/
Dsystem-current.txt5414 field public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration";
/frameworks/base/non-updatable-api/
Dsystem-current.txt5320 field public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration";