/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiEnterpriseConfig.java | 243 private int mEapMethod = Eap.NONE; 370 public static final class Eap { class in WifiEnterpriseConfig 397 private Eap() {} in Eap() method in WifiEnterpriseConfig.Eap 471 boolean shouldNotWriteAnonIdentity = mEapMethod == WifiEnterpriseConfig.Eap.SIM in saveToSupplicant() 472 || mEapMethod == WifiEnterpriseConfig.Eap.AKA in saveToSupplicant() 473 || mEapMethod == WifiEnterpriseConfig.Eap.AKA_PRIME; in saveToSupplicant() 483 if (!saver.saveValue(EAP_KEY, Eap.strings[mEapMethod])) { in saveToSupplicant() 487 if (mEapMethod != Eap.TLS && mEapMethod != Eap.UNAUTH_TLS && mPhase2Method != Phase2.NONE) { in saveToSupplicant() 488 boolean is_autheap = mEapMethod == Eap.TTLS && mPhase2Method == Phase2.GTC; in saveToSupplicant() 517 mEapMethod = getStringIndex(Eap.strings, eapMethod, Eap.NONE); in loadFromSupplicant() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiEnterpriseConfigTest.java | 28 import android.net.wifi.WifiEnterpriseConfig.Eap; 252 mEnterpriseConfig.setEapMethod(Eap.PEAP); in eapPhase2MethodForTls() 258 mEnterpriseConfig.setEapMethod(Eap.TTLS); in eapPhase2MethodForTls() 263 mEnterpriseConfig.setEapMethod(Eap.TLS); in eapPhase2MethodForTls() 271 mEnterpriseConfig.setEapMethod(Eap.PEAP); in eapPhase2None() 284 mEnterpriseConfig.setEapMethod(Eap.PEAP); in peapGtcToTtls() 289 mEnterpriseConfig.setEapMethod(Eap.TTLS); in peapGtcToTtls() 297 mEnterpriseConfig.setEapMethod(Eap.TTLS); in ttlsGtcToPeap() 302 mEnterpriseConfig.setEapMethod(Eap.PEAP); in ttlsGtcToPeap() 310 mEnterpriseConfig.setEapMethod(Eap.PEAP); in peapSimAkaAkaPrime() [all …]
|
D | WifiConfigurationTest.java | 218 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentials() 225 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentials() 233 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentials() 241 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentials() 279 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentialsForSuggestion() 286 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentialsForSuggestion() 294 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentialsForSuggestion() 302 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentialsForSuggestion()
|
D | WifiNetworkSuggestionTest.java | 210 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork() 242 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutCa() 259 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutMatch() 299 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.WAPI_CERT); in testWifiNetworkSuggestionBuilderForWapiCertNetwork() 315 assertEquals(WifiEnterpriseConfig.Eap.WAPI_CERT, in testWifiNetworkSuggestionBuilderForWapiCertNetwork() 329 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.WAPI_CERT); in testWifiNetworkSuggestionBuilderForWapiCertAutoNetwork() 344 assertEquals(WifiEnterpriseConfig.Eap.WAPI_CERT, in testWifiNetworkSuggestionBuilderForWapiCertAutoNetwork()
|
D | WifiNetworkSpecifierTest.java | 108 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCarrierInfoManagerTest.java | 423 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.SIM, in getSimIdentityEapSim() 430 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapSim() 447 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA, in getSimIdentityEapAka() 454 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapAka() 471 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA_PRIME, in getSimIdentityEapAkaPrime() 478 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapAkaPrime() 516 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA, in getEncryptedIdentity_WithRfc4648() 552 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA, in getEncryptedIdentityFailed() 572 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.SIM, in getSimIdentity2DigitMnc() 589 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.SIM, in getSimIdentityUnknownMccMnc() [all …]
|
D | WifiConfigurationUtilTest.java | 65 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigAdded() 79 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS); in testEnterpriseConfigEapChangeDetected() 80 EnterpriseConfig peapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.PEAP); in testEnterpriseConfigEapChangeDetected() 92 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected() 95 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected() 107 EnterpriseConfig eapConfigNoCerts = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected() 111 EnterpriseConfig eapConfig1Cert = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected() 125 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testDifferentCaCertificateDetected() 130 EnterpriseConfig eapConfigNewCert = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testDifferentCaCertificateDetected() 144 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateChangesDetected() [all …]
|
D | WifiConfigurationTestUtil.java | 167 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig() 390 configuration.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createEapSuiteBNetwork() 424 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.WAPI_CERT); in createWapiCertNetwork() 510 config.setEapMethod(WifiEnterpriseConfig.Eap.PEAP); in createPEAPWifiEnterpriseConfigWithGTCPhase2() 520 config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createTLSWifiEnterpriseConfigWithNonePhase2() 530 config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createTLSWifiEnterpriseConfigWithAkaPhase2()
|
D | WifiMonitorTest.java | 270 assertEquals(WifiEnterpriseConfig.Eap.SIM, authData.protocol); in testBroadcastNetworkGsmAuthRequestEvent() 294 assertEquals(WifiEnterpriseConfig.Eap.AKA, authData.protocol); in testBroadcastNetworkUmtsAuthRequestEvent()
|
D | WifiConfigManagerTest.java | 1687 network.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateWifiEnterpriseConfig() 2182 assertFalse(eapNetwork.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected() 2183 eapNetwork.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected() 4352 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks() 4354 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks() 4407 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities() 4418 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities() 4460 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity() 4465 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity()
|
D | WifiNetworkSelectorTestUtil.java | 150 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in setupScanDetailsAndConfigForEapSimNetwork()
|
D | NetworkListStoreDataTest.java | 599 WifiEnterpriseConfig.Eap.NONE)); in parseNetworkListWithOneNetworkIllegalArgException()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 570 case WifiEnterpriseConfig.Eap.TTLS: in convertFromWifiConfig() 574 case WifiEnterpriseConfig.Eap.TLS: in convertFromWifiConfig() 579 case WifiEnterpriseConfig.Eap.SIM: in convertFromWifiConfig() 583 case WifiEnterpriseConfig.Eap.AKA: in convertFromWifiConfig() 587 case WifiEnterpriseConfig.Eap.AKA_PRIME: in convertFromWifiConfig() 844 config.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in buildEnterpriseConfigForUserCredential() 878 config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in buildEnterpriseConfigForCertCredential() 895 int eapMethod = WifiEnterpriseConfig.Eap.NONE; in buildEnterpriseConfigForSimCredential() 898 eapMethod = WifiEnterpriseConfig.Eap.SIM; in buildEnterpriseConfigForSimCredential() 901 eapMethod = WifiEnterpriseConfig.Eap.AKA; in buildEnterpriseConfigForSimCredential() [all …]
|
D | OsuNetworkConnection.java | 200 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.UNAUTH_TLS); in connect()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 299 return WifiEnterpriseConfig.Eap.TLS; in getEapMethod() 302 return WifiEnterpriseConfig.Eap.TTLS; in getEapMethod() 305 return WifiEnterpriseConfig.Eap.PEAP; in getEapMethod()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaNetworkHal.java | 269 WifiEnterpriseConfig.Eap.WAPI_CERT); in loadWifiConfiguration() 435 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in saveWifiConfiguration() 436 if (config.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.WAPI_CERT) { in saveWifiConfiguration() 970 return WifiEnterpriseConfig.Eap.PEAP; in supplicantToWifiConfigurationEapMethod() 972 return WifiEnterpriseConfig.Eap.TLS; in supplicantToWifiConfigurationEapMethod() 974 return WifiEnterpriseConfig.Eap.TTLS; in supplicantToWifiConfigurationEapMethod() 976 return WifiEnterpriseConfig.Eap.PWD; in supplicantToWifiConfigurationEapMethod() 978 return WifiEnterpriseConfig.Eap.SIM; in supplicantToWifiConfigurationEapMethod() 980 return WifiEnterpriseConfig.Eap.AKA; in supplicantToWifiConfigurationEapMethod() 982 return WifiEnterpriseConfig.Eap.AKA_PRIME; in supplicantToWifiConfigurationEapMethod() [all …]
|
D | WifiCarrierInfoManager.java | 112 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.AKA, "0"); in EAP_METHOD_PREFIX.put() 113 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.SIM, "1"); in EAP_METHOD_PREFIX.put() 114 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.AKA_PRIME, "6"); in EAP_METHOD_PREFIX.put() 712 return WifiEnterpriseConfig.Eap.NONE; in getSimMethodForConfig() 715 if (eapMethod == WifiEnterpriseConfig.Eap.PEAP) { in getSimMethodForConfig() 719 eapMethod = WifiEnterpriseConfig.Eap.SIM; in getSimMethodForConfig() 722 eapMethod = WifiEnterpriseConfig.Eap.AKA; in getSimMethodForConfig() 725 eapMethod = WifiEnterpriseConfig.Eap.AKA_PRIME; in getSimMethodForConfig()
|
D | WifiMonitor.java | 407 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.SIM, ssid, data)); in broadcastNetworkGsmAuthRequestEvent() 422 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.AKA, ssid, data)); in broadcastNetworkUmtsAuthRequestEvent()
|
D | NetworkListStoreData.java | 178 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
|
D | NetworkSuggestionStoreData.java | 225 != WifiEnterpriseConfig.Eap.NONE) { in serializeNetworkSuggestion()
|
D | WifiMetrics.java | 626 case WifiEnterpriseConfig.Eap.WAPI_CERT: in getEapMethodProto() 628 case WifiEnterpriseConfig.Eap.TLS: in getEapMethodProto() 630 case WifiEnterpriseConfig.Eap.UNAUTH_TLS: in getEapMethodProto() 632 case WifiEnterpriseConfig.Eap.PEAP: in getEapMethodProto() 634 case WifiEnterpriseConfig.Eap.PWD: in getEapMethodProto() 636 case WifiEnterpriseConfig.Eap.TTLS: in getEapMethodProto() 638 case WifiEnterpriseConfig.Eap.SIM: in getEapMethodProto() 640 case WifiEnterpriseConfig.Eap.AKA: in getEapMethodProto() 642 case WifiEnterpriseConfig.Eap.AKA_PRIME: in getEapMethodProto()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProviderTest.java | 109 private static final int TEST_EAP_TYPE = WifiEnterpriseConfig.Eap.SIM; 344 assertEquals(WifiEnterpriseConfig.Eap.TTLS, wifiEnterpriseConfig.getEapMethod()); in verifyWifiConfigWithTestData() 390 assertEquals(WifiEnterpriseConfig.Eap.TLS, wifiEnterpriseConfig.getEapMethod()); in verifyWifiConfigWithTestData() 419 assertEquals(WifiEnterpriseConfig.Eap.SIM, in verifyWifiConfigWithTestData() 423 assertEquals(WifiEnterpriseConfig.Eap.AKA, in verifyWifiConfigWithTestData() 427 assertEquals(WifiEnterpriseConfig.Eap.AKA_PRIME, in verifyWifiConfigWithTestData() 1294 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in convertFromWifiConfigWithUserCredential() 1321 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in convertFromWifiConfigWithSimCredential() 1345 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in convertFromWifiConfigWithCertCredential()
|
D | OsuNetworkConnectionTest.java | 345 WifiEnterpriseConfig.Eap.UNAUTH_TLS); in verifyWifiConfigurationForOsenOsuNetwork()
|
D | PasspointManagerTest.java | 1548 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredential() 1600 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert() 1627 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in addLegacyPasspointConfigWithSimCredential() 1671 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredential() 1714 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredentialWithoutCaCert() 1741 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredentialWithoutClientCert()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | XmlUtilTest.java | 76 private static final int TEST_EAP_METHOD = WifiEnterpriseConfig.Eap.PEAP; 467 String.format(XML_STRING_EAP_METHOD_REPLACE_FORMAT, WifiEnterpriseConfig.Eap.NONE)); in testWifiEnterpriseConfigSerializeDeserializeThrowsIllegalArgException()
|