/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ScanResultUtil.java | 107 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/ |
D | WifiConfiguration.java | 79 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/ |
D | WifiConfigurationUtil.java | 109 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 …]
|
D | WifiApConfigStore.java | 22 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()
|
D | SoftApManager.java | 26 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()
|
D | WifiBackupRestore.java | 478 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()
|
D | SupplicantStaNetworkHal.java | 605 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 …]
|
D | LegacyConnectedScore.java | 238 if (!currentConfiguration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in isHomeNetwork()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiApConfigStoreTest.java | 27 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()
|
D | WifiConfigurationTestUtil.java | 135 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()
|
D | WifiBackupRestoreTest.java | 672 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()
|
D | WifiConfigurationUtilTest.java | 368 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()
|
D | WifiScoreReportTest.java | 122 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setUp()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 151 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/ |
D | ScanResultUtilTest.java | 97 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/ |
D | WifiConfigurationHelper.java | 25 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/ |
D | WifiSoftAPTest.java | 22 import android.net.wifi.WifiConfiguration.KeyMgmt; 65 config.allowedKeyManagement.set(KeyMgmt.NONE); in testApSsidWithAlphabet()
|
D | WifiClientTest.java | 26 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/ |
D | WifiApStress.java | 22 import android.net.wifi.WifiConfiguration.KeyMgmt; 80 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testWifiHotSpot()
|
/frameworks/base/packages/Osu/src/com/android/configparse/ |
D | ConfigBuilder.java | 211 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/ |
D | PasspointProviderTest.java | 651 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/ |
D | NetworkConnection.java | 131 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in connect()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 39 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/ |
D | ConnectionUtil.java | 36 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/ |
D | PasspointProvider.java | 296 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in getWifiConfig() 297 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in getWifiConfig()
|