Home
last modified time | relevance | path

Searched refs:wifiConfiguration (Results 1 – 22 of 22) 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.java1423 void select(@NonNull WifiConfiguration wifiConfiguration); in select() argument
1478 void onUserSelectionConnectSuccess(@NonNull WifiConfiguration wifiConfiguration); in onUserSelectionConnectSuccess() argument
1487 void onUserSelectionConnectFailure(@NonNull WifiConfiguration wifiConfiguration); in onUserSelectionConnectFailure() argument
1504 public void select(@NonNull WifiConfiguration wifiConfiguration) { in select() argument
1507 + "wificonfiguration: " + wifiConfiguration); in select()
1510 mCallback.select(wifiConfiguration); in select()
1579 public void onUserSelectionConnectSuccess(WifiConfiguration wifiConfiguration) { in onUserSelectionConnectSuccess() argument
1582 + " wificonfiguration: " + wifiConfiguration); in onUserSelectionConnectSuccess()
1585 mCallback.onUserSelectionConnectSuccess(wifiConfiguration); in onUserSelectionConnectSuccess()
1590 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.java442 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in createDefaultWifiConfiguration() local
443 wifiConfiguration.SSID = "\"" + TEST_SSID + "\""; in createDefaultWifiConfiguration()
444 wifiConfiguration.BSSID = TEST_BSSID; in createDefaultWifiConfiguration()
445 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createDefaultWifiConfiguration()
446 wifiConfiguration.preSharedKey = TEST_PRESHARED_KEY; in createDefaultWifiConfiguration()
447 return wifiConfiguration; in createDefaultWifiConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
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 …]
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 …]
DWifiNetworkSuggestionsManagerTest.java354 networkSuggestion.wifiConfiguration.meteredOverride = in testAddNetworkSuggestionsFailureOnInPlaceModification()
464 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatchForCarrierProvisioningApp()
492 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithOneMatch()
508 WifiConfiguration wifiConfiguration = WifiConfigurationTestUtil.createOpenNetwork(); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch() local
510 wifiConfiguration, false, false, TEST_UID_1, in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
514 wifiConfiguration, false, false, TEST_UID_2, in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
535 ScanDetail scanDetail = createScanDetailForNetwork(networkSuggestion1.wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch()
552 WifiConfiguration wifiConfiguration = WifiConfigurationTestUtil.createOpenNetwork(); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch() local
553 ScanDetail scanDetail = createScanDetailForNetwork(wifiConfiguration); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch()
554 wifiConfiguration.BSSID = scanDetail.getBSSIDString(); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidOneMatch()
[all …]
DWifiNetworkFactoryTest.java704 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch() local
705 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch()
707 ssidPatternMatch, bssidPatternMatch, wifiConfiguration, TEST_UID_1, in testNetworkSpecifierMatchSuccessUsingLiteralSsidMatch()
747 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch() local
748 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch()
750 ssidPatternMatch, bssidPatternMatch, wifiConfiguration, TEST_UID_1, in testNetworkSpecifierMatchSuccessUsingPrefixSsidMatch()
791 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch() local
792 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch()
794 ssidPatternMatch, bssidPatternMatch, wifiConfiguration, TEST_UID_1, in testNetworkSpecifierMatchSuccessUsingLiteralBssidMatch()
835 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testNetworkSpecifierMatchSuccessUsingOuiPrefixBssidMatch() local
[all …]
DNetworkSuggestionStoreDataTest.java174 configuration, deserializedSuggestion.wns.wifiConfiguration); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
177 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()
DNetworkSuggestionStoreData.java190 WifiConfigurationXmlUtil.writeToXmlForConfigStore(out, suggestion.wifiConfiguration); in serializeNetworkSuggestion()
193 if (suggestion.wifiConfiguration.enterpriseConfig != null in serializeNetworkSuggestion()
194 && suggestion.wifiConfiguration.enterpriseConfig.getEapMethod() in serializeNetworkSuggestion()
199 out, suggestion.wifiConfiguration.enterpriseConfig); in serializeNetworkSuggestion()
352 WifiConfiguration wifiConfiguration = parsedConfig.second; in parseNetworkSuggestion() local
354 wifiConfiguration.enterpriseConfig = enterpriseConfig; in parseNetworkSuggestion()
357 wifiConfiguration, isAppInteractionRequired, isUserInteractionRequired, in parseNetworkSuggestion()
DWifiNetworkSuggestionsManager.java427 extNetworkSuggestion.wns.wifiConfiguration); in addToScanResultMatchInfoMap()
429 if (!TextUtils.isEmpty(extNetworkSuggestion.wns.wifiConfiguration.BSSID)) { in addToScanResultMatchInfoMap()
433 extNetworkSuggestion.wns.wifiConfiguration.BSSID)); in addToScanResultMatchInfoMap()
459 extNetworkSuggestion.wns.wifiConfiguration); in removeFromScanResultMatchInfoMap()
461 if (!TextUtils.isEmpty(extNetworkSuggestion.wns.wifiConfiguration.BSSID)) { in removeFromScanResultMatchInfoMap()
465 extNetworkSuggestion.wns.wifiConfiguration.BSSID)); in removeFromScanResultMatchInfoMap()
888 @NonNull WifiConfiguration wifiConfiguration, @Nullable String bssid) { in getNetworkSuggestionsForWifiConfiguration()
892 ScanResultMatchInfo.fromWifiConfiguration(wifiConfiguration); in getNetworkSuggestionsForWifiConfiguration()
911 + approvedExtNetworkSuggestions + " for " + wifiConfiguration.SSID in getNetworkSuggestionsForWifiConfiguration()
912 + "[" + wifiConfiguration.allowedKeyManagement + "]"); in getNetworkSuggestionsForWifiConfiguration()
DWifiNetworkFactory.java301 public void select(WifiConfiguration wifiConfiguration) { in select() argument
307 handleConnectToNetworkUserSelection(wifiConfiguration); in select()
605 wns.ssidPatternMatcher, wns.bssidPatternMatcher, wns.wifiConfiguration, in needNetworkFor()
755 new WifiConfiguration(mActiveSpecificNetworkRequestSpecifier.wifiConfiguration); in handleConnectToNetworkUserSelectionInternal()
1023 WifiConfiguration wifiConfiguration = wns.wifiConfiguration; in startPeriodicScans() local
1024 if (wifiConfiguration.hiddenSSID) { in startPeriodicScans()
1078 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.java720 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.txt4716 field public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration";