Home
last modified time | relevance | path

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

12

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiConfigurationTest.java112 config.allowedKeyManagement.clear(); in testIsOpenNetwork_IsOpen_NullWepKeys()
121 config.allowedKeyManagement.clear(); in testIsOpenNetwork_IsOpen_ZeroLengthWepKeysArray()
130 config.allowedKeyManagement.clear(); in testIsOpenNetwork_IsOpen_NullWepKeysArray()
139 config.allowedKeyManagement.clear(); in testIsOpenNetwork_NotOpen_HasWepKeys()
148 config.allowedKeyManagement.clear(); in testIsOpenNetwork_NotOpen_HasNullWepKeyFollowedByNonNullKey()
159 config.allowedKeyManagement.clear(); in testIsOpenNetwork_NotOpen_HasAuthType()
160 config.allowedKeyManagement.set(keyMgmt); in testIsOpenNetwork_NotOpen_HasAuthType()
171 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testIsOpenNetwork_NotOpen_HasAuthTypeNoneAndMore()
172 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in testIsOpenNetwork_NotOpen_HasAuthTypeNoneAndMore()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java110 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK); in isConfigForPskNetwork()
117 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in isConfigForEapNetwork()
118 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in isConfigForEapNetwork()
125 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE) in isConfigForWepNetwork()
231 if (!Objects.equals(existingConfig.allowedKeyManagement, in hasCredentialChanged()
232 newConfig.allowedKeyManagement)) { in hasCredentialChanged()
374 if (!validateBitSet(config.allowedKeyManagement, in validateBitSets()
377 + config.allowedKeyManagement); in validateBitSets()
482 if (!validateKeyMgmt(config.allowedKeyManagement)) { in validate()
485 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK) in validate()
[all …]
DCarrierNetworkNotifier.java64 network.allowedKeyManagement.set(KeyMgmt.WPA_EAP); in createRecommendedNetworkConfig()
65 network.allowedKeyManagement.set(KeyMgmt.IEEE8021X); in createRecommendedNetworkConfig()
DWifiApConfigStore.java202 config.allowedKeyManagement.set(authType); in loadApConfiguration()
253 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in getDefaultApConfiguration()
276 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in generateLocalOnlyHotspotConfig()
348 if (apConfig.allowedKeyManagement == null) { in validateApWifiConfiguration()
DWifiNetworkHistory.java247 makeString(config.allowedKeyManagement, in writeKnownNetworkHistory()
556 if (config.allowedKeyManagement == null) { in isValid()
559 if (config.allowedKeyManagement.cardinality() > 1) { in isValid()
560 if (config.allowedKeyManagement.cardinality() != 2) { in isValid()
563 if (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in isValid()
566 if ((!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) in isValid()
567 && (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK))) { in isValid()
DWifiBackupRestore.java597 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createWifiConfiguration()
598 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in createWifiConfiguration()
611 configuration.allowedKeyManagement.set( in createWifiConfiguration()
614 configuration.allowedKeyManagement.set( in createWifiConfiguration()
617 configuration.allowedKeyManagement.set( in createWifiConfiguration()
620 configuration.allowedKeyManagement.set( in createWifiConfiguration()
DWifiBackupDataV1Parser.java224 if (config.allowedKeyManagement.length() in clearAnyKnownIssuesInParsedConfiguration()
226 config.allowedKeyManagement.clear( in clearAnyKnownIssuesInParsedConfiguration()
228 config.allowedKeyManagement.length()); in clearAnyKnownIssuesInParsedConfiguration()
323 configuration.allowedKeyManagement = BitSet.valueOf(allowedKeyMgmt); in parseWifiConfigurationFromXml()
DWifiConfigManager.java825 if (externalConfig.allowedKeyManagement != null in mergeWithInternalWifiConfiguration()
826 && !externalConfig.allowedKeyManagement.isEmpty()) { in mergeWithInternalWifiConfiguration()
827 internalConfig.allowedKeyManagement = in mergeWithInternalWifiConfiguration()
828 (BitSet) externalConfig.allowedKeyManagement.clone(); in mergeWithInternalWifiConfiguration()
886 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setDefaultsInWifiConfiguration()
887 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in setDefaultsInWifiConfiguration()
2206 if (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in attemptNetworkLinking()
2224 if (!linkConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in attemptNetworkLinking()
DWifiMetrics.java241 if (config.allowedKeyManagement != null in updateFromWifiConfiguration()
242 && config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in updateFromWifiConfiguration()
2172 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in updateSavedNetworks()
2692 info.allowedKeyManagement = bitSetToInt(config.allowedKeyManagement); in createConfigInfo()
2909 .append(" allowed_key_management=").append(info.allowedKeyManagement) in configInfoToString()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java381 public BitSet allowedKeyManagement; field in WifiConfiguration
720 final int cardinality = allowedKeyManagement.cardinality(); in isOpenNetwork()
722 || (cardinality == 1 && allowedKeyManagement.get(KeyMgmt.NONE)); in isOpenNetwork()
1505 allowedKeyManagement = new BitSet(); in WifiConfiguration()
1561 return (allowedKeyManagement.get(KeyMgmt.WPA_EAP) in isEnterprise()
1562 || allowedKeyManagement.get(KeyMgmt.IEEE8021X)) in isEnterprise()
1634 for (int k = 0; k < this.allowedKeyManagement.size(); k++) { in toString()
1635 if (this.allowedKeyManagement.get(k)) { in toString()
1791 if (allowedKeyManagement.cardinality() == 0) { in getKeyIdForCredentials()
1792 allowedKeyManagement = current.allowedKeyManagement; in getKeyIdForCredentials()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java110 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setAllowedKeyManagementFromScanResult()
112 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in setAllowedKeyManagementFromScanResult()
113 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in setAllowedKeyManagementFromScanResult()
115 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setAllowedKeyManagementFromScanResult()
119 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setAllowedKeyManagementFromScanResult()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java97 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testNetworkCreationFromScanResult()
102 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testNetworkCreationFromScanResult()
109 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testNetworkCreationFromScanResult()
114 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in testNetworkCreationFromScanResult()
115 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in testNetworkCreationFromScanResult()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java135 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfig()
138 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in generateWifiConfig()
142 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in generateWifiConfig()
143 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in generateWifiConfig()
435 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in createScanDetailForNetwork()
437 } else if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in createScanDetailForNetwork()
438 || configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in createScanDetailForNetwork()
440 } else if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE) in createScanDetailForNetwork()
465 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertCommonConfigurationElementsEqual()
558 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertConfigurationEqualForSupplicant()
DWifiBackupRestoreTest.java278 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in createNetworkForConfigurationWithUnsupportedTag()
331 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
844 expectedConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
896 String allowedKeyManagement = ""; in writeConfigurationToWpaSupplicantConf() local
900 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in writeConfigurationToWpaSupplicantConf()
901 allowedKeyManagement += "NONE"; in writeConfigurationToWpaSupplicantConf()
903 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in writeConfigurationToWpaSupplicantConf()
904 allowedKeyManagement += "WPA-PSK "; in writeConfigurationToWpaSupplicantConf()
906 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in writeConfigurationToWpaSupplicantConf()
907 allowedKeyManagement += "WPA-EAP "; in writeConfigurationToWpaSupplicantConf()
[all …]
DHostapdHalTest.java163 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band2G()
197 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddAccessPointSuccess_Open_Band5G()
230 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band5G_Hidden()
268 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band2G_WithACS()
306 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC()
343 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_BandAny_WithACS()
381 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_BandAny_Downgraded_WithoutACS()
414 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddAccessPointInvalidBandFailure()
432 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddAccessPointFailure()
451 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddAccessPointRemoteException()
DWifiApConfigStoreTest.java103 config.allowedKeyManagement.set(keyManagement); in setupApConfig()
131 assertTrue(config.allowedKeyManagement.get(KeyMgmt.WPA2_PSK)); in verifyDefaultApConfig()
141 assertTrue(config.allowedKeyManagement.get(KeyMgmt.WPA2_PSK)); in verifyDefaultLocalOnlyApConfig()
519 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testOpenNetworkConfigInValidateApWifiConfigurationCheck()
541 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck()
584 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testInvalidAuthTypeInValidateApWifiConfigurationCheck()
585 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testInvalidAuthTypeInValidateApWifiConfigurationCheck()
597 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testUnsupportedAuthTypeInValidateApWifiConfigurationCheck()
DConfigurationMapTest.java289 config.allowedKeyManagement.clear(); in testScanResultDoesNotMatchWithOtherNetworks()
290 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testScanResultDoesNotMatchWithOtherNetworks()
DWifiConfigurationUtilTest.java384 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testValidateNegativeCases_BadKeyMgmtPskEap()
396 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testValidateNegativeCases_BadKeyMgmtOpenPsk()
408 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testValidateNegativeCases_BadKeyMgmt()
437 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.FT_EAP + 1); in testValidateNegativeCases_InvalidKeyMgmt()
DWifiConfigManagerTest.java970 network.allowedKeyManagement.clear(); in testMultipleUpdatesSingleNetwork()
971 network.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testMultipleUpdatesSingleNetwork()
1023 network.allowedKeyManagement.clear(); in testUpdateSingleNetworkWithNullValues()
1323 assertFalse(pskNetwork.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in testUpdateAllowedKeyManagementClearsHasEverConnected()
1324 pskNetwork.allowedKeyManagement.clear(); in testUpdateAllowedKeyManagementClearsHasEverConnected()
1325 pskNetwork.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testUpdateAllowedKeyManagementClearsHasEverConnected()
3139 network1.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testAddMultipleNetworksWithSameSSIDAndDifferentKeyMgmt()
3155 network2.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddMultipleNetworksWithSameSSIDAndDifferentKeyMgmt()
3617 if (configuration.allowedKeyManagement.isEmpty()) { in setDefaults()
3618 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setDefaults()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java60 config.allowedKeyManagement.set(KeyMgmt.NONE); in createOpenConfig()
80 config.allowedKeyManagement.set(KeyMgmt.NONE); in createWepConfig()
101 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in createPskConfig()
124 config.allowedKeyManagement.set(KeyMgmt.WPA_EAP); in createEapConfig()
125 config.allowedKeyManagement.set(KeyMgmt.IEEE8021X); in createEapConfig()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java118 config.allowedKeyManagement.set(KeyMgmt.NONE); in testAddRemoveNetwork()
155 config.allowedKeyManagement.set(KeyMgmt.NONE); in testEnableDisableNetwork()
205 config.allowedKeyManagement.set(KeyMgmt.NONE); in testSaveConfig()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java728 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithUserCredential()
729 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithUserCredential()
791 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithCertCredential()
792 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithCertCredential()
841 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithSimCredential()
842 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithSimCredential()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java180 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in connect()
DPasspointProvider.java301 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in getWifiConfig()
302 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in getWifiConfig()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java994 mConfig.allowedKeyManagement.set(KeyMgmt.NONE); in generateOpenNetworkConfig()
1305 if (config.allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in getSecurity()
1308 if (config.allowedKeyManagement.get(KeyMgmt.WPA_EAP) || in getSecurity()
1309 config.allowedKeyManagement.get(KeyMgmt.IEEE8021X)) { in getSecurity()

12