Home
last modified time | relevance | path

Searched refs:Eap (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java140 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/
DTelephonyUtilTest.java81 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 …]
DXmlUtilTest.java75 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/
DWifiEnterpriseConfigTest.java27 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 …]
DWifiConfigurationTest.java313 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()
DWifiNetworkSuggestionTest.java167 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCarrierNetworkNotifier.java24 import android.net.wifi.WifiEnterpriseConfig.Eap;
65 if (eapMethod == Eap.SIM || eapMethod == Eap.AKA || eapMethod == Eap.AKA_PRIME) { in createRecommendedNetworkConfig()
DCarrierNetworkConfig.java276 return WifiEnterpriseConfig.Eap.SIM; in parseEapType()
278 return WifiEnterpriseConfig.Eap.AKA; in parseEapType()
280 return WifiEnterpriseConfig.Eap.AKA_PRIME; in parseEapType()
DSupplicantStaNetworkHal.java413 && 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 …]
DWifiMonitor.java398 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.SIM, ssid, data)); in broadcastNetworkGsmAuthRequestEvent()
413 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.AKA, ssid, data)); in broadcastNetworkUmtsAuthRequestEvent()
DNetworkListStoreData.java174 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
DNetworkSuggestionStoreData.java207 != WifiEnterpriseConfig.Eap.NONE) { in serializeNetworkSuggestion()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java66 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/
DWifiConfigurationUtilTest.java88 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 …]
DCarrierNetworkEvaluatorTest.java177 .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()
DCarrierNetworkConfigTest.java58 private static final int TEST_INTERNAL_EAP_TYPE = WifiEnterpriseConfig.Eap.SIM;
216 int updatedInternalEapType = WifiEnterpriseConfig.Eap.AKA; in receivedCarrierConfigChangedIntent()
DWifiConfigurationTestUtil.java158 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()
DWifiMonitorTest.java270 assertEquals(WifiEnterpriseConfig.Eap.SIM, authData.protocol); in testBroadcastNetworkGsmAuthRequestEvent()
294 assertEquals(WifiEnterpriseConfig.Eap.AKA, authData.protocol); in testBroadcastNetworkUmtsAuthRequestEvent()
DNetworkListStoreDataTest.java457 WifiEnterpriseConfig.Eap.NONE)); in parseNetworkListWithOneNetworkIllegalArgException()
DWifiConfigManagerTest.java1429 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/
DPasspointProvider.java466 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/
DWifiConfigurationHelper.java299 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/
DPasspointProviderTest.java1017 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()
DPasspointManagerTest.java1349 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/
DAccessPointTest.java481 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;

12