Home
last modified time | relevance | path

Searched refs:allowedKeyManagement (Results 1 – 25 of 46) sorted by relevance

12

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiConfigurationTest.java194 config.allowedKeyManagement.clear(); in testIsOpenNetwork_IsOpen_NullWepKeys()
203 config.allowedKeyManagement.clear(); in testIsOpenNetwork_IsOpen_ZeroLengthWepKeysArray()
212 config.allowedKeyManagement.clear(); in testIsOpenNetwork_IsOpen_NullWepKeysArray()
221 config.allowedKeyManagement.clear(); in testIsOpenNetwork_NotOpen_HasWepKeys()
230 config.allowedKeyManagement.clear(); in testIsOpenNetwork_NotOpen_HasNullWepKeyFollowedByNonNullKey()
262 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testIsOpenNetwork_NotOpen_HasAuthTypeNoneAndMore()
263 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in testIsOpenNetwork_NotOpen_HasAuthTypeNoneAndMore()
315 config.allowedKeyManagement.set(KeyMgmt.WPA_EAP); in testGetKeyIdForCredentials()
322 config.allowedKeyManagement.set(KeyMgmt.WPA_EAP); in testGetKeyIdForCredentials()
329 config.allowedKeyManagement.clear(); in testGetKeyIdForCredentials()
[all …]
DWifiNetworkSpecifierTest.java76 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
102 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
135 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
137 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
166 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa3EapNetwork()
168 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa3EapNetwork()
170 assertFalse(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa3EapNetwork()
200 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa3EapNetworkWithStandardApi()
202 assertTrue(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa3EapNetworkWithStandardApi()
204 assertFalse(wifiNetworkSpecifier.wifiConfiguration.allowedKeyManagement in testWifiNetworkSpecifierBuilderForWpa3EapNetworkWithStandardApi()
[all …]
DWifiNetworkSuggestionTest.java75 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
104 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
135 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
166 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithNotMeteredAndReqUserInteraction()
194 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid()
220 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForOemPaidEnhancedOpenNetworkWithBssid()
248 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForOemPrivateEnhancedOpenNetworkWithBssid()
273 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa3PskNetwork()
300 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
302 assertTrue(suggestion.wifiConfiguration.allowedKeyManagement in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
[all …]
DWifiNetworkAgentSpecifierTest.java96 wifiConfiguration2.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
192 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
221 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
250 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
282 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern()
311 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierBandMatching()
356 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierLocalOnlyMatching()
422 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern()
455 wificonfigurationNetworkSpecifier.allowedKeyManagement in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidAndBssidPattern()
484 wificonfigurationNetworkSpecifier.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithDifferentKeyMgmt()
[all …]
DSecurityParamsTest.java345 BitSet allowedKeyManagement = new BitSet(); in testCommonSetterGetter() local
346 allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testCommonSetterGetter()
362 assertEquals(allowedKeyManagement, params.getAllowedKeyManagement()); in testCommonSetterGetter()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiConfiguration.java624 allowedKeyManagement = (BitSet) givenAllowedKeyManagement.clone(); in setSecurityParams()
716 if (!allowedKeyManagement.get(KeyMgmt.WPA_EAP) in isWpa3EnterpriseConfiguration()
717 && !allowedKeyManagement.get(KeyMgmt.IEEE8021X)) { in isWpa3EnterpriseConfiguration()
737 if (allowedKeyManagement.get(KeyMgmt.WAPI_CERT)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
739 } else if (allowedKeyManagement.get(KeyMgmt.WAPI_PSK)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
741 } else if (allowedKeyManagement.get(KeyMgmt.SUITE_B_192)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
743 } else if (allowedKeyManagement.get(KeyMgmt.DPP)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
745 } else if (allowedKeyManagement.get(KeyMgmt.OWE)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
747 } else if (allowedKeyManagement.get(KeyMgmt.SAE)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
749 } else if (allowedKeyManagement.get(KeyMgmt.OSEN)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
[all …]
DWifiNetworkAgentSpecifier.java129 checkNotNull(ns.wifiConfiguration.allowedKeyManagement); in satisfiesNetworkSpecifier()
132 checkNotNull(this.mWifiConfiguration.allowedKeyManagement); in satisfiesNetworkSpecifier()
153 if (!ns.wifiConfiguration.allowedKeyManagement.equals( in satisfiesNetworkSpecifier()
154 this.mWifiConfiguration.allowedKeyManagement)) { in satisfiesNetworkSpecifier()
165 mWifiConfiguration.allowedKeyManagement, in hashCode()
181 && Objects.equals(this.mWifiConfiguration.allowedKeyManagement, in equals()
182 lhs.mWifiConfiguration.allowedKeyManagement) in equals()
DWifiNetworkSpecifier.java727 mBand, wifiConfiguration.allowedKeyManagement); in hashCode()
746 && Objects.equals(this.wifiConfiguration.allowedKeyManagement, in equals()
747 lhs.wifiConfiguration.allowedKeyManagement); in equals()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java135 if (wifiConfiguration.allowedKeyManagement.get(KeyMgmt.NONE) in getPresharedKey()
165 if (config.allowedKeyManagement.get(KeyMgmt.SAE)) { in getSecurityString()
168 if (config.allowedKeyManagement.get(KeyMgmt.OWE)) { in getSecurityString()
171 if (config.allowedKeyManagement.get(KeyMgmt.WPA_PSK) || in getSecurityString()
172 config.allowedKeyManagement.get(KeyMgmt.WPA2_PSK)) { in getSecurityString()
499 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE)) { in getSecurityTypeFromWifiConfiguration()
502 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in getSecurityTypeFromWifiConfiguration()
505 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SUITE_B_192)) { in getSecurityTypeFromWifiConfiguration()
508 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in getSecurityTypeFromWifiConfiguration()
509 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in getSecurityTypeFromWifiConfiguration()
[all …]
DWifiNetworkConfig.java249 openNetworkWifiConfiguration.allowedKeyManagement.set(KeyMgmt.NONE); in getWifiConfigurations()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DWifiSecurityUtil.java54 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE)) { in getSecurity()
57 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in getSecurity()
60 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE)) { in getSecurity()
63 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in getSecurity()
64 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in getSecurity()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java86 config.allowedKeyManagement.clear(); in setConfigKeyManagementBySecurity()
90 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
93 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
98 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in setConfigKeyManagementBySecurity()
101 config.allowedKeyManagement.set(KeyMgmt.WPA_EAP); in setConfigKeyManagementBySecurity()
102 config.allowedKeyManagement.set(KeyMgmt.IEEE8021X); in setConfigKeyManagementBySecurity()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java150 populateAllowedKeyManagement(result.allowedKeyManagement, authType); in parseCredential()
174 private static void populateAllowedKeyManagement(BitSet allowedKeyManagement, short authType) { in populateAllowedKeyManagement() argument
177 allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in populateAllowedKeyManagement()
179 allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in populateAllowedKeyManagement()
181 allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in populateAllowedKeyManagement()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java430 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in createNetworkForConfigurationWithUnsupportedTag()
483 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
1050 expectedConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
1153 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in createNetworkForConfigurationWithV1_0Data()
1234 String allowedKeyManagement = ""; in writeConfigurationToWpaSupplicantConf() local
1235 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in writeConfigurationToWpaSupplicantConf()
1236 allowedKeyManagement += "NONE"; in writeConfigurationToWpaSupplicantConf()
1238 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in writeConfigurationToWpaSupplicantConf()
1239 allowedKeyManagement += "WPA-PSK "; in writeConfigurationToWpaSupplicantConf()
1241 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in writeConfigurationToWpaSupplicantConf()
[all …]
DWifiConfigurationUtilTest.java582 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testValidateNegativeCases_BadKeyMgmtPskEap()
596 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testValidateNegativeCases_BadKeyMgmtOpenPsk()
610 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testValidateNegativeCases_BadKeyMgmt()
624 config.allowedKeyManagement.clear(WifiConfiguration.KeyMgmt.IEEE8021X); in testValidateNegativeCases_BadSuiteBKeyMgmt()
625 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testValidateNegativeCases_BadSuiteBKeyMgmt()
658 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.FT_EAP + 1); in testValidateNegativeCases_InvalidKeyMgmt()
676 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testValidateNegativeCases_InvalidKeyMgmtWithPreSharedKey()
677 assertFalse(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.OSEN)); in testValidateNegativeCases_InvalidKeyMgmtWithPreSharedKey()
DWifiConfigurationTestUtil.java715 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertCommonConfigurationElementsEqual()
836 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertConfigurationEqualForSupplicant()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java115 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWpa()
127 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testWep()
138 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testWep2()
149 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testNone()
160 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testNull()
454 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in assertEAPAllowedKeyManagement()
455 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in assertEAPAllowedKeyManagement()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupRestore.java643 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createWifiConfiguration()
644 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in createWifiConfiguration()
657 configuration.allowedKeyManagement.set( in createWifiConfiguration()
660 configuration.allowedKeyManagement.set( in createWifiConfiguration()
663 configuration.allowedKeyManagement.set( in createWifiConfiguration()
666 configuration.allowedKeyManagement.set( in createWifiConfiguration()
669 configuration.allowedKeyManagement.set( in createWifiConfiguration()
672 configuration.allowedKeyManagement.set( in createWifiConfiguration()
DWifiConfigurationUtil.java336 if (!Objects.equals(existingConfig.allowedKeyManagement, in hasCredentialChanged()
337 newConfig.allowedKeyManagement)) { in hasCredentialChanged()
585 if (!validateBitSet(config.allowedKeyManagement, in validateBitSets()
588 + config.allowedKeyManagement); in validateBitSets()
707 if (!validateKeyMgmt(config.allowedKeyManagement)) { in validate()
879 if (!validateKeyMgmt(config.allowedKeyManagement)) { in validateNetworkSpecifier()
DWifiBackupDataV1Parser.java252 if (config.allowedKeyManagement.length() in clearAnyKnownIssuesInParsedConfiguration()
254 config.allowedKeyManagement.clear( in clearAnyKnownIssuesInParsedConfiguration()
256 config.allowedKeyManagement.length()); in clearAnyKnownIssuesInParsedConfiguration()
358 configuration.allowedKeyManagement = BitSet.valueOf(allowedKeyMgmt); in parseWifiConfigurationFromXmlInternal()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProvider.java124 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfiguration()
160 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in maybeUpdateForEAPConfigurationOrThrow()
161 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in maybeUpdateForEAPConfigurationOrThrow()
239 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in updateForWPAConfiguration()
253 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in updateForWEPConfiguration()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/security/
DWifiSecurityHelper.java115 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in getConfig()
119 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in getConfig()
132 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in getConfig()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
DWifiDppUtilsTest.java75 mWifiConfiguration.allowedKeyManagement = new BitSet(); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
76 mWifiConfiguration.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/
DAccessPoint.java1303 mConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateOpenNetworkConfig()
1305 mConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.OWE); in generateOpenNetworkConfig()
1713 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE)) { in getSecurity()
1716 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in getSecurity()
1719 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SUITE_B_192)) { in getSecurity()
1722 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) || in getSecurity()
1723 config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in getSecurity()
1726 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.OWE)) { in getSecurity()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java762 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testConvertInvalidWifiConfigurationToSoftApConfiguration()
771 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration()
772 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testConvertInvalidKeyMgmtWifiConfigurationToSoftApConfiguration()

12