Home
last modified time | relevance | path

Searched refs:KeyMgmt (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java107 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setAllowedKeyManagementFromScanResult()
109 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in setAllowedKeyManagementFromScanResult()
110 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in setAllowedKeyManagementFromScanResult()
112 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setAllowedKeyManagementFromScanResult()
116 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setAllowedKeyManagementFromScanResult()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java79 public static class KeyMgmt { class in WifiConfiguration
80 private KeyMgmt() { } in KeyMgmt() method in WifiConfiguration.KeyMgmt
798 || (cardinality == 1 && allowedKeyManagement.get(KeyMgmt.NONE)); in isOpenNetwork()
1570 return (allowedKeyManagement.get(KeyMgmt.WPA_EAP) in isEnterprise()
1571 || allowedKeyManagement.get(KeyMgmt.IEEE8021X)) in isEnterprise()
1645 if (k < KeyMgmt.strings.length) { in toString()
1646 sbuf.append(KeyMgmt.strings[k]); in toString()
1828 if (allowedKeyManagement.get(KeyMgmt.WPA_EAP)) { in getKeyIdForCredentials()
1829 keyMgmt = KeyMgmt.strings[KeyMgmt.WPA_EAP]; in getKeyIdForCredentials()
1831 if (allowedKeyManagement.get(KeyMgmt.OSEN)) { in getKeyIdForCredentials()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java109 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK); in isConfigForPskNetwork()
116 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in isConfigForEapNetwork()
117 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in isConfigForEapNetwork()
124 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE) in isConfigForWepNetwork()
366 if (!keyMgmnt.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in validateKeyMgmt()
370 if (!keyMgmnt.get(WifiConfiguration.KeyMgmt.IEEE8021X) in validateKeyMgmt()
371 && !keyMgmnt.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in validateKeyMgmt()
427 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK) in validate()
489 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in createPnoNetwork()
491 } else if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in createPnoNetwork()
[all …]
DWifiApConfigStore.java22 import android.net.wifi.WifiConfiguration.KeyMgmt;
163 if (authType != KeyMgmt.NONE) { in loadApConfiguration()
194 if (authType != KeyMgmt.NONE) { in writeApConfiguration()
212 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in getDefaultApConfiguration()
233 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in generateLocalOnlyHotspotConfig()
321 if (authType == KeyMgmt.NONE) { in validateApWifiConfiguration()
327 } else if (authType == KeyMgmt.WPA2_PSK) { in validateApWifiConfiguration()
DSoftApManager.java26 import android.net.wifi.WifiConfiguration.KeyMgmt;
200 case KeyMgmt.NONE: in getIApInterfaceEncryptionType()
203 case KeyMgmt.WPA_PSK: in getIApInterfaceEncryptionType()
206 case KeyMgmt.WPA2_PSK: in getIApInterfaceEncryptionType()
DWifiBackupRestore.java478 public static final String SUPPLICANT_KEY_KEY_MGMT = WifiConfiguration.KeyMgmt.varName;
639 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createWifiConfiguration()
640 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in createWifiConfiguration()
654 WifiConfiguration.KeyMgmt.NONE); in createWifiConfiguration()
657 WifiConfiguration.KeyMgmt.WPA_PSK); in createWifiConfiguration()
660 WifiConfiguration.KeyMgmt.WPA_EAP); in createWifiConfiguration()
663 WifiConfiguration.KeyMgmt.IEEE8021X); in createWifiConfiguration()
DSupplicantStaNetworkHal.java605 case WifiConfiguration.KeyMgmt.NONE: in wifiConfigurationToSupplicantKeyMgmtMask()
608 case WifiConfiguration.KeyMgmt.WPA_PSK: in wifiConfigurationToSupplicantKeyMgmtMask()
611 case WifiConfiguration.KeyMgmt.WPA_EAP: in wifiConfigurationToSupplicantKeyMgmtMask()
614 case WifiConfiguration.KeyMgmt.IEEE8021X: in wifiConfigurationToSupplicantKeyMgmtMask()
617 case WifiConfiguration.KeyMgmt.OSEN: in wifiConfigurationToSupplicantKeyMgmtMask()
620 case WifiConfiguration.KeyMgmt.FT_PSK: in wifiConfigurationToSupplicantKeyMgmtMask()
623 case WifiConfiguration.KeyMgmt.FT_EAP: in wifiConfigurationToSupplicantKeyMgmtMask()
626 case WifiConfiguration.KeyMgmt.WPA2_PSK: // This should never happen in wifiConfigurationToSupplicantKeyMgmtMask()
789 WifiConfiguration.KeyMgmt.NONE); in supplicantToWifiConfigurationKeyMgmtMask()
792 WifiConfiguration.KeyMgmt.WPA_PSK); in supplicantToWifiConfigurationKeyMgmtMask()
[all …]
DLegacyConnectedScore.java238 if (!currentConfiguration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in isHomeNetwork()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiApConfigStoreTest.java27 import android.net.wifi.WifiConfiguration.KeyMgmt;
126 assertTrue(config.allowedKeyManagement.get(KeyMgmt.WPA2_PSK)); in verifyDefaultApConfig()
149 KeyMgmt.WPA_EAP, /* key management */ in initWithExistingConfiguration()
169 KeyMgmt.WPA_EAP, /* key management */ in setNullApConfiguration()
196 KeyMgmt.WPA_EAP, /* key management */ in updateApConfiguration()
289 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testOpenNetworkConfigInValidateApWifiConfigurationCheck()
311 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck()
354 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testInvalidAuthTypeInValidateApWifiConfigurationCheck()
355 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testInvalidAuthTypeInValidateApWifiConfigurationCheck()
367 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testUnsupportedAuthTypeInValidateApWifiConfigurationCheck()
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()
436 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in createScanDetailForNetwork()
438 } else if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in createScanDetailForNetwork()
439 || configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in createScanDetailForNetwork()
441 } else if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE) in createScanDetailForNetwork()
DWifiBackupRestoreTest.java672 expectedConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
728 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in writeConfigurationToWpaSupplicantConf()
731 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in writeConfigurationToWpaSupplicantConf()
734 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in writeConfigurationToWpaSupplicantConf()
737 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in writeConfigurationToWpaSupplicantConf()
DWifiConfigurationUtilTest.java368 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testValidateNegativeCases_BadKeyMgmtPskEap()
380 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testValidateNegativeCases_BadKeyMgmtOpenPsk()
392 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testValidateNegativeCases_BadKeyMgmt()
DWifiScoreReportTest.java122 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setUp()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiConfigurationTest.java151 for (int keyMgmt = 0; keyMgmt < WifiConfiguration.KeyMgmt.strings.length; keyMgmt++) { in testIsOpenNetwork_NotOpen_HasAuthType()
152 if (keyMgmt == WifiConfiguration.KeyMgmt.NONE) continue; in testIsOpenNetwork_NotOpen_HasAuthType()
159 + WifiConfiguration.KeyMgmt.strings[keyMgmt], config.isOpenNetwork()); in testIsOpenNetwork_NotOpen_HasAuthType()
166 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testIsOpenNetwork_NotOpen_HasAuthTypeNoneAndMore()
167 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in testIsOpenNetwork_NotOpen_HasAuthTypeNoneAndMore()
/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/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java25 import android.net.wifi.WifiConfiguration.KeyMgmt;
60 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/
DWifiSoftAPTest.java22 import android.net.wifi.WifiConfiguration.KeyMgmt;
65 config.allowedKeyManagement.set(KeyMgmt.NONE); in testApSsidWithAlphabet()
DWifiClientTest.java26 import android.net.wifi.WifiConfiguration.KeyMgmt;
118 config.allowedKeyManagement.set(KeyMgmt.NONE); in testAddRemoveNetwork()
155 config.allowedKeyManagement.set(KeyMgmt.NONE); in testEnableDisableNetwork()
205 config.allowedKeyManagement.set(KeyMgmt.NONE); in testSaveConfig()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiApStress.java22 import android.net.wifi.WifiConfiguration.KeyMgmt;
80 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testWifiHotSpot()
/frameworks/base/packages/Osu/src/com/android/configparse/
DConfigBuilder.java211 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in buildBaseConfiguration()
212 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in buildBaseConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java651 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithUserCredential()
652 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithUserCredential()
713 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithCertCredential()
714 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithCertCredential()
762 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithSimCredential()
763 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithSimCredential()
/frameworks/base/packages/Osu2/src/com/android/osu/
DNetworkConnection.java131 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in connect()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java39 import android.net.wifi.WifiConfiguration.KeyMgmt;
1114 mConfig.allowedKeyManagement.set(KeyMgmt.NONE); in generateOpenNetworkConfig()
1416 if (config.allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in getSecurity()
1419 if (config.allowedKeyManagement.get(KeyMgmt.WPA_EAP) || in getSecurity()
1420 config.allowedKeyManagement.get(KeyMgmt.IEEE8021X)) { in getSecurity()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java36 import android.net.wifi.WifiConfiguration.KeyMgmt;
539 config.allowedKeyManagement.set(KeyMgmt.NONE); in connectToWifi()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java296 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in getWifiConfig()
297 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in getWifiConfig()

12