Home
last modified time | relevance | path

Searched refs:Eap (Results 1 – 25 of 38) 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.java72 private static final int TEST_EAP_METHOD = WifiEnterpriseConfig.Eap.PEAP;
413 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.java311 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentials()
318 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentials()
326 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentials()
334 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentials()
372 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentialsForSuggestion()
379 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentialsForSuggestion()
387 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentialsForSuggestion()
395 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.java421 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in saveWifiConfiguration()
901 return WifiEnterpriseConfig.Eap.PEAP; in supplicantToWifiConfigurationEapMethod()
903 return WifiEnterpriseConfig.Eap.TLS; in supplicantToWifiConfigurationEapMethod()
905 return WifiEnterpriseConfig.Eap.TTLS; in supplicantToWifiConfigurationEapMethod()
907 return WifiEnterpriseConfig.Eap.PWD; in supplicantToWifiConfigurationEapMethod()
909 return WifiEnterpriseConfig.Eap.SIM; in supplicantToWifiConfigurationEapMethod()
911 return WifiEnterpriseConfig.Eap.AKA; in supplicantToWifiConfigurationEapMethod()
913 return WifiEnterpriseConfig.Eap.AKA_PRIME; in supplicantToWifiConfigurationEapMethod()
915 return WifiEnterpriseConfig.Eap.UNAUTH_TLS; in supplicantToWifiConfigurationEapMethod()
1108 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.java162 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
DNetworkSuggestionStoreData.java195 != WifiEnterpriseConfig.Eap.NONE) { in serializeNetworkSuggestion()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java65 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.AKA, "0"); in EAP_METHOD_PREFIX.put()
66 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.SIM, "1"); in EAP_METHOD_PREFIX.put()
67 EAP_METHOD_PREFIX.put(WifiEnterpriseConfig.Eap.AKA_PRIME, "6"); in EAP_METHOD_PREFIX.put()
304 return WifiEnterpriseConfig.Eap.NONE; in getSimMethodForConfig()
307 if (eapMethod == WifiEnterpriseConfig.Eap.PEAP) { in getSimMethodForConfig()
311 eapMethod = WifiEnterpriseConfig.Eap.SIM; in getSimMethodForConfig()
314 eapMethod = WifiEnterpriseConfig.Eap.AKA; in getSimMethodForConfig()
317 eapMethod = WifiEnterpriseConfig.Eap.AKA_PRIME; in getSimMethodForConfig()
322 return isSimEapMethod(eapMethod) ? eapMethod : WifiEnterpriseConfig.Eap.NONE; in getSimMethodForConfig()
332 return getSimMethodForConfig(config) != WifiEnterpriseConfig.Eap.NONE; in isSimConfig()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java93 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigAdded()
107 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS); in testEnterpriseConfigEapChangeDetected()
108 EnterpriseConfig peapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.PEAP); in testEnterpriseConfigEapChangeDetected()
120 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected()
123 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected()
135 EnterpriseConfig eapConfigNoCerts = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected()
139 EnterpriseConfig eapConfig1Cert = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected()
153 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testDifferentCaCertificateDetected()
158 EnterpriseConfig eapConfigNewCert = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testDifferentCaCertificateDetected()
172 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.java157 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig()
371 configuration.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createEapSuiteBNetwork()
460 config.setEapMethod(WifiEnterpriseConfig.Eap.PEAP); in createPEAPWifiEnterpriseConfigWithGTCPhase2()
469 config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createTLSWifiEnterpriseConfigWithNonePhase2()
478 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.java454 WifiEnterpriseConfig.Eap.NONE)); in parseNetworkListWithOneNetworkIllegalArgException()
DWifiConfigManagerTest.java1414 network.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateWifiEnterpriseConfig()
1885 assertFalse(eapNetwork.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected()
1886 eapNetwork.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected()
4341 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks()
4343 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks()
4387 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
4398 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
4433 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity()
4438 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java451 case WifiEnterpriseConfig.Eap.TTLS: in convertFromWifiConfig()
455 case WifiEnterpriseConfig.Eap.TLS: in convertFromWifiConfig()
460 case WifiEnterpriseConfig.Eap.SIM: in convertFromWifiConfig()
464 case WifiEnterpriseConfig.Eap.AKA: in convertFromWifiConfig()
468 case WifiEnterpriseConfig.Eap.AKA_PRIME: in convertFromWifiConfig()
622 config.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in buildEnterpriseConfigForUserCredential()
652 config.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in buildEnterpriseConfigForCertCredential()
665 int eapMethod = WifiEnterpriseConfig.Eap.NONE; in buildEnterpriseConfigForSimCredential()
668 eapMethod = WifiEnterpriseConfig.Eap.SIM; in buildEnterpriseConfigForSimCredential()
671 eapMethod = WifiEnterpriseConfig.Eap.AKA; in buildEnterpriseConfigForSimCredential()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java292 return WifiEnterpriseConfig.Eap.TLS; in getEapMethod()
295 return WifiEnterpriseConfig.Eap.TTLS; in getEapMethod()
298 return WifiEnterpriseConfig.Eap.PEAP; in getEapMethod()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java1009 assertEquals(WifiEnterpriseConfig.Eap.TTLS, wifiEnterpriseConfig.getEapMethod()); in getWifiConfigWithUserCredential()
1079 assertEquals(WifiEnterpriseConfig.Eap.TLS, wifiEnterpriseConfig.getEapMethod()); in getWifiConfigWithCertCredential()
1133 assertEquals(WifiEnterpriseConfig.Eap.SIM, wifiEnterpriseConfig.getEapMethod()); in getWifiConfigWithSimCredential()
1165 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in convertFromWifiConfigWithUserCredential()
1209 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in convertFromWifiConfigWithSimCredential()
1250 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in convertFromWifiConfigWithCertCredential()
DPasspointManagerTest.java1233 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredential()
1285 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
1312 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in addLegacyPasspointConfigWithSimCredential()
1356 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredential()
1399 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredentialWithoutCaCert()
1426 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in addLegacyPasspointConfigWithCertCredentialWithoutClientCert()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java480 result.carrierApEapType = WifiEnterpriseConfig.Eap.SIM;
487 assertThat(ap.getCarrierApEapType()).isEqualTo(WifiEnterpriseConfig.Eap.SIM);
586 assertThat(ap.getCarrierApEapType()).isEqualTo(WifiEnterpriseConfig.Eap.NONE);
589 int carrierApEapType = WifiEnterpriseConfig.Eap.SIM;

12