/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiEnterpriseConfig.java | 140 private int mEapMethod = Eap.NONE; 264 public static final class Eap { class in WifiEnterpriseConfig 288 private Eap() {} in Eap() method in WifiEnterpriseConfig.Eap 362 boolean shouldNotWriteAnonIdentity = mEapMethod == WifiEnterpriseConfig.Eap.SIM in saveToSupplicant() 363 || mEapMethod == WifiEnterpriseConfig.Eap.AKA in saveToSupplicant() 364 || mEapMethod == WifiEnterpriseConfig.Eap.AKA_PRIME; in saveToSupplicant() 374 if (!saver.saveValue(EAP_KEY, Eap.strings[mEapMethod])) { in saveToSupplicant() 378 if (mEapMethod != Eap.TLS && mPhase2Method != Phase2.NONE) { in saveToSupplicant() 379 boolean is_autheap = mEapMethod == Eap.TTLS && mPhase2Method == Phase2.GTC; in saveToSupplicant() 408 mEapMethod = getStringIndex(Eap.strings, eapMethod, Eap.NONE); in loadFromSupplicant() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 81 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.SIM, in getSimIdentityEapSim() 85 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapSim() 101 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA, in getSimIdentityEapAka() 105 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapAka() 122 WifiEnterpriseConfig.Eap.AKA_PRIME, in getSimIdentityEapAkaPrime() 126 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapAkaPrime() 163 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA, in getEncryptedIdentity_WithRfc4648() 196 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA, in getEncryptedIdentityFailed() 215 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.SIM, in getSimIdentity2DigitMnc() 231 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.SIM, in getSimIdentityUnknownMccMnc() [all …]
|
D | XmlUtilTest.java | 75 private static final int TEST_EAP_METHOD = WifiEnterpriseConfig.Eap.PEAP; 470 String.format(XML_STRING_EAP_METHOD_REPLACE_FORMAT, WifiEnterpriseConfig.Eap.NONE)); in testWifiEnterpriseConfigSerializeDeserializeThrowsIllegalArgException()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiEnterpriseConfigTest.java | 27 import android.net.wifi.WifiEnterpriseConfig.Eap; 250 mEnterpriseConfig.setEapMethod(Eap.PEAP); in eapPhase2MethodForTls() 256 mEnterpriseConfig.setEapMethod(Eap.TTLS); in eapPhase2MethodForTls() 261 mEnterpriseConfig.setEapMethod(Eap.TLS); in eapPhase2MethodForTls() 269 mEnterpriseConfig.setEapMethod(Eap.PEAP); in eapPhase2None() 282 mEnterpriseConfig.setEapMethod(Eap.PEAP); in peapGtcToTtls() 287 mEnterpriseConfig.setEapMethod(Eap.TTLS); in peapGtcToTtls() 295 mEnterpriseConfig.setEapMethod(Eap.TTLS); in ttlsGtcToPeap() 300 mEnterpriseConfig.setEapMethod(Eap.PEAP); in ttlsGtcToPeap() 308 mEnterpriseConfig.setEapMethod(Eap.PEAP); in peapSimAkaAkaPrime() [all …]
|
D | WifiConfigurationTest.java | 313 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentials() 320 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentials() 328 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentials() 336 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentials() 374 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentialsForSuggestion() 381 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentialsForSuggestion() 389 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentialsForSuggestion() 397 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentialsForSuggestion()
|
D | WifiNetworkSuggestionTest.java | 167 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | CarrierNetworkNotifier.java | 24 import android.net.wifi.WifiEnterpriseConfig.Eap; 65 if (eapMethod == Eap.SIM || eapMethod == Eap.AKA || eapMethod == Eap.AKA_PRIME) { in createRecommendedNetworkConfig()
|
D | CarrierNetworkConfig.java | 276 return WifiEnterpriseConfig.Eap.SIM; in parseEapType() 278 return WifiEnterpriseConfig.Eap.AKA; in parseEapType() 280 return WifiEnterpriseConfig.Eap.AKA_PRIME; in parseEapType()
|
D | SupplicantStaNetworkHal.java | 413 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in saveWifiConfiguration() 893 return WifiEnterpriseConfig.Eap.PEAP; in supplicantToWifiConfigurationEapMethod() 895 return WifiEnterpriseConfig.Eap.TLS; in supplicantToWifiConfigurationEapMethod() 897 return WifiEnterpriseConfig.Eap.TTLS; in supplicantToWifiConfigurationEapMethod() 899 return WifiEnterpriseConfig.Eap.PWD; in supplicantToWifiConfigurationEapMethod() 901 return WifiEnterpriseConfig.Eap.SIM; in supplicantToWifiConfigurationEapMethod() 903 return WifiEnterpriseConfig.Eap.AKA; in supplicantToWifiConfigurationEapMethod() 905 return WifiEnterpriseConfig.Eap.AKA_PRIME; in supplicantToWifiConfigurationEapMethod() 907 return WifiEnterpriseConfig.Eap.UNAUTH_TLS; in supplicantToWifiConfigurationEapMethod() 1100 case WifiEnterpriseConfig.Eap.PEAP: in wifiConfigurationToSupplicantEapMethod() [all …]
|
D | WifiMonitor.java | 398 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.SIM, ssid, data)); in broadcastNetworkGsmAuthRequestEvent() 413 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.AKA, ssid, data)); in broadcastNetworkUmtsAuthRequestEvent()
|
D | NetworkListStoreData.java | 174 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
|
D | NetworkSuggestionStoreData.java | 207 != WifiEnterpriseConfig.Eap.NONE) { in serializeNetworkSuggestion()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | TelephonyUtil.java | 66 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.AKA, "0"); in EAP_METHOD_PREFIX.put() 67 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.SIM, "1"); in EAP_METHOD_PREFIX.put() 68 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.AKA_PRIME, "6"); in EAP_METHOD_PREFIX.put() 305 return WifiEnterpriseConfig.Eap.NONE; in getSimMethodForConfig() 308 if (eapMethod == WifiEnterpriseConfig.Eap.PEAP) { in getSimMethodForConfig() 312 eapMethod = WifiEnterpriseConfig.Eap.SIM; in getSimMethodForConfig() 315 eapMethod = WifiEnterpriseConfig.Eap.AKA; in getSimMethodForConfig() 318 eapMethod = WifiEnterpriseConfig.Eap.AKA_PRIME; in getSimMethodForConfig() 323 return isSimEapMethod(eapMethod) ? eapMethod : WifiEnterpriseConfig.Eap.NONE; in getSimMethodForConfig() 333 return getSimMethodForConfig(config) != WifiEnterpriseConfig.Eap.NONE; in isSimConfig() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationUtilTest.java | 88 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigAdded() 102 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS); in testEnterpriseConfigEapChangeDetected() 103 EnterpriseConfig peapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.PEAP); in testEnterpriseConfigEapChangeDetected() 115 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected() 118 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected() 130 EnterpriseConfig eapConfigNoCerts = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected() 134 EnterpriseConfig eapConfig1Cert = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected() 148 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testDifferentCaCertificateDetected() 153 EnterpriseConfig eapConfigNewCert = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testDifferentCaCertificateDetected() 167 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateChangesDetected() [all …]
|
D | CarrierNetworkEvaluatorTest.java | 177 .thenReturn(WifiEnterpriseConfig.Eap.AKA); in setUp() 179 .thenReturn(WifiEnterpriseConfig.Eap.AKA_PRIME); in setUp() 181 .thenReturn(WifiEnterpriseConfig.Eap.SIM); in setUp() 183 .thenReturn(WifiEnterpriseConfig.Eap.AKA); in setUp()
|
D | CarrierNetworkConfigTest.java | 58 private static final int TEST_INTERNAL_EAP_TYPE = WifiEnterpriseConfig.Eap.SIM; 216 int updatedInternalEapType = WifiEnterpriseConfig.Eap.AKA; in receivedCarrierConfigChangedIntent()
|
D | WifiConfigurationTestUtil.java | 158 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig() 372 configuration.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createEapSuiteBNetwork() 461 config.setEapMethod(WifiEnterpriseConfig.Eap.PEAP); in createPEAPWifiEnterpriseConfigWithGTCPhase2() 470 config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createTLSWifiEnterpriseConfigWithNonePhase2() 479 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 | NetworkListStoreDataTest.java | 457 WifiEnterpriseConfig.Eap.NONE)); in parseNetworkListWithOneNetworkIllegalArgException()
|
D | WifiConfigManagerTest.java | 1429 network.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateWifiEnterpriseConfig() 1900 assertFalse(eapNetwork.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected() 1901 eapNetwork.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected() 4394 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks() 4396 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks() 4440 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities() 4451 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities() 4486 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity() 4491 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 466 case WifiEnterpriseConfig.Eap.TTLS: in convertFromWifiConfig() 470 case WifiEnterpriseConfig.Eap.TLS: in convertFromWifiConfig() 475 case WifiEnterpriseConfig.Eap.SIM: in convertFromWifiConfig() 479 case WifiEnterpriseConfig.Eap.AKA: in convertFromWifiConfig() 483 case WifiEnterpriseConfig.Eap.AKA_PRIME: in convertFromWifiConfig() 724 config.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in buildEnterpriseConfigForUserCredential() 754 config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in buildEnterpriseConfigForCertCredential() 767 int eapMethod = WifiEnterpriseConfig.Eap.NONE; in buildEnterpriseConfigForSimCredential() 770 eapMethod = WifiEnterpriseConfig.Eap.SIM; in buildEnterpriseConfigForSimCredential() 773 eapMethod = WifiEnterpriseConfig.Eap.AKA; in buildEnterpriseConfigForSimCredential() [all …]
|
/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/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProviderTest.java | 1017 assertEquals(WifiEnterpriseConfig.Eap.TTLS, wifiEnterpriseConfig.getEapMethod()); in getWifiConfigWithUserCredential() 1087 assertEquals(WifiEnterpriseConfig.Eap.TLS, wifiEnterpriseConfig.getEapMethod()); in getWifiConfigWithCertCredential() 1141 assertEquals(WifiEnterpriseConfig.Eap.SIM, wifiEnterpriseConfig.getEapMethod()); in getWifiConfigWithSimCredential() 1173 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in convertFromWifiConfigWithUserCredential() 1217 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in convertFromWifiConfigWithSimCredential() 1258 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in convertFromWifiConfigWithCertCredential()
|
D | PasspointManagerTest.java | 1349 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredential() 1401 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert() 1428 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in addLegacyPasspointConfigWithSimCredential() 1472 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredential() 1515 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredentialWithoutCaCert() 1542 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredentialWithoutClientCert()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 481 result.carrierApEapType = WifiEnterpriseConfig.Eap.SIM; 488 assertThat(ap.getCarrierApEapType()).isEqualTo(WifiEnterpriseConfig.Eap.SIM); 587 assertThat(ap.getCarrierApEapType()).isEqualTo(WifiEnterpriseConfig.Eap.NONE); 590 int carrierApEapType = WifiEnterpriseConfig.Eap.SIM;
|