Home
last modified time | relevance | path

Searched refs:Phase2 (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiEnterpriseConfig.java256 private int mPhase2Method = Phase2.NONE;
417 public static final class Phase2 { class in WifiEnterpriseConfig
440 private Phase2() {} in Phase2() method in WifiEnterpriseConfig.Phase2
503 if (mEapMethod != Eap.TLS && mEapMethod != Eap.UNAUTH_TLS && mPhase2Method != Phase2.NONE) { in saveToSupplicant()
504 boolean is_autheap = mEapMethod == Eap.TTLS && mPhase2Method == Phase2.GTC; in saveToSupplicant()
505 String prefix = is_autheap ? Phase2.AUTHEAP_PREFIX : Phase2.AUTH_PREFIX; in saveToSupplicant()
506 String value = convertToQuotedString(prefix + Phase2.strings[mPhase2Method]); in saveToSupplicant()
508 } else if (mPhase2Method == Phase2.NONE) { in saveToSupplicant()
537 if (phase2Method.startsWith(Phase2.AUTH_PREFIX)) { in loadFromSupplicant()
538 phase2Method = phase2Method.substring(Phase2.AUTH_PREFIX.length()); in loadFromSupplicant()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiEnterpriseConfigTest.java30 import android.net.wifi.WifiEnterpriseConfig.Phase2;
269 mEnterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in eapPhase2MethodForTls()
288 mEnterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in eapPhase2None()
293 mEnterpriseConfig.setPhase2Method(Phase2.NONE); in eapPhase2None()
301 mEnterpriseConfig.setPhase2Method(Phase2.GTC); in peapGtcToTtls()
314 mEnterpriseConfig.setPhase2Method(Phase2.GTC); in ttlsGtcToPeap()
327 mEnterpriseConfig.setPhase2Method(Phase2.SIM); in peapSimAkaAkaPrime()
331 mEnterpriseConfig.setPhase2Method(Phase2.AKA); in peapSimAkaAkaPrime()
334 mEnterpriseConfig.setPhase2Method(Phase2.AKA_PRIME); in peapSimAkaAkaPrime()
347 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyConstructor()
[all …]
DWifiConfigurationTest.java284 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials()
291 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testGetKeyIdForCredentials()
299 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testGetKeyIdForCredentials()
307 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials()
345 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentialsForSuggestion()
352 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testGetKeyIdForCredentialsForSuggestion()
360 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testGetKeyIdForCredentialsForSuggestion()
368 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentialsForSuggestion()
970 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testAddEnterpriseTypeToEnterpriseConfiguration()
988 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testAddPersonalTypeToEnterpriseConfig()
[all …]
DWifiNetworkSuggestionTest.java575 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutCa()
593 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutMatch()
1012 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testSimCredentialNetworkWithSubId()
DWifiNetworkSpecifierTest.java117 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java251 wifiConf, WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.PAP); in testEAP_PEAP_PAP()
260 wifiConf, WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.NONE); in testEAP_PEAP_NONE()
269 wifiConf, WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.NONE); in testEAP_Phase2_Empty()
278 wifiConf, WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.NONE); in testEAP_Phase2_Null()
287 wifiConf, WifiEnterpriseConfig.Eap.TLS, WifiEnterpriseConfig.Phase2.MSCHAP); in testEAP_TLS_MSCHAP()
296 wifiConf, WifiEnterpriseConfig.Eap.TTLS, WifiEnterpriseConfig.Phase2.MSCHAPV2); in testEAP_TTLS_MSCHAPV2()
305 wifiConf, WifiEnterpriseConfig.Eap.PWD, WifiEnterpriseConfig.Phase2.GTC); in testEAP_PWD_GTC()
314 wifiConf, WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.SIM); in testEAP_SIM_SIM()
323 wifiConf, WifiEnterpriseConfig.Eap.AKA, WifiEnterpriseConfig.Phase2.AKA); in testEAP_AKA_AKA()
333 WifiEnterpriseConfig.Phase2.AKA_PRIME); in testEAP_AKA_PRIME_AKA_PRIME()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProvider.java90 map.put(null, WifiEnterpriseConfig.Phase2.NONE); in buildPhase2AuthMap()
91 map.put("", WifiEnterpriseConfig.Phase2.NONE); in buildPhase2AuthMap()
92 map.put("NONE", WifiEnterpriseConfig.Phase2.NONE); in buildPhase2AuthMap()
93 map.put("PAP", WifiEnterpriseConfig.Phase2.PAP); in buildPhase2AuthMap()
94 map.put("MSCHAP", WifiEnterpriseConfig.Phase2.MSCHAP); in buildPhase2AuthMap()
95 map.put("MSCHAPV2", WifiEnterpriseConfig.Phase2.MSCHAPV2); in buildPhase2AuthMap()
96 map.put("GTC", WifiEnterpriseConfig.Phase2.GTC); in buildPhase2AuthMap()
97 map.put("SIM", WifiEnterpriseConfig.Phase2.SIM); in buildPhase2AuthMap()
98 map.put("AKA", WifiEnterpriseConfig.Phase2.AKA); in buildPhase2AuthMap()
99 map.put("AKA_PRIME", WifiEnterpriseConfig.Phase2.AKA_PRIME); in buildPhase2AuthMap()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java502 WifiEnterpriseConfig.Phase2.NONE); in getSimIdentityEapSim()
509 WifiEnterpriseConfig.Phase2.SIM); in getSimIdentityEapSim()
526 WifiEnterpriseConfig.Phase2.NONE); in getSimIdentityEapAka()
533 WifiEnterpriseConfig.Phase2.AKA); in getSimIdentityEapAka()
550 WifiEnterpriseConfig.Phase2.NONE); in getSimIdentityEapAkaPrime()
557 WifiEnterpriseConfig.Phase2.AKA_PRIME); in getSimIdentityEapAkaPrime()
597 WifiEnterpriseConfig.Phase2.NONE); in getEncryptedIdentity_WithRfc4648()
634 WifiEnterpriseConfig.Phase2.NONE); in getEncryptedIdentityFailed()
653 WifiEnterpriseConfig.Phase2.NONE); in getSimIdentity2DigitMnc()
669 WifiEnterpriseConfig.Phase2.NONE); in getSimIdentityUnknownMccMnc()
[all …]
DWifiConfigurationUtilTest.java80 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testEnterpriseConfigAdded()
107 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testEnterpriseConfigPhase2ChangeDetected()
110 .setPhase2(WifiEnterpriseConfig.Phase2.PAP); in testEnterpriseConfigPhase2ChangeDetected()
122 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testCaCertificateAddedDetected()
126 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testCaCertificateAddedDetected()
140 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testDifferentCaCertificateDetected()
145 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testDifferentCaCertificateDetected()
159 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testCaCertificateChangesDetected()
164 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testCaCertificateChangesDetected()
178 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testWifiEnterpriseConfigNoChanges()
[all …]
DWifiConfigurationTestUtil.java174 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in generateWifiConfig()
184 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in generateWifiConfig()
414 WifiEnterpriseConfig.Phase2.NONE); in createEapNetwork()
446 WifiEnterpriseConfig.Phase2.NONE); in createWpa2Wpa3EnterpriseNetwork()
484 configuration.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in createEapSuiteBNetwork()
604 config.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in createPEAPWifiEnterpriseConfigWithGTCPhase2()
616 config.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in createTLSWifiEnterpriseConfigWithNonePhase2()
626 config.setPhase2Method(WifiEnterpriseConfig.Phase2.AKA); in createTLSWifiEnterpriseConfigWithAkaPhase2()
DWifiNetworkSuggestionsManagerTest.java712 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testAddNetworkSuggestionsSuccessOnInPlaceModificationWhenNotInWcm()
3692 WifiEnterpriseConfig.Phase2.NONE); in testAddSimCredentialNetworkWithoutCarrierPrivileges()
3721 WifiEnterpriseConfig.Phase2.NONE); in testAddSimCredentialNetworkWithCarrierPrivileges()
3759 WifiEnterpriseConfig.Phase2.NONE); in testAddSimCredentialNetworkWithCarrierProvisionPermission()
3785 WifiEnterpriseConfig.Phase2.NONE); in testMatchSimBasedNetworkWithImsiProtection()
3821 WifiEnterpriseConfig.Phase2.NONE); in testSimStateChangeWillResetCarrierPrivilegedApp()
4090 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testSendImsiProtectionNotificationOnUserAllowed()
4617 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testAddCarrierMergedNetwork()
4774 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testSetAnonymousIdentityOnSuggestionNetwork()
DWifiNetworkSelectorTestUtil.java151 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in setupScanDetailsAndConfigForEapSimNetwork()
DWifiConfigManagerTest.java1726 network.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testUpdateWifiEnterpriseConfig()
4750 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks()
4752 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks()
4806 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.SIM); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
4817 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testResetSimNetworks_getSimIdentityNull_shouldResetAllNonPeapSimIdentities()
4860 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity()
4865 WifiEnterpriseConfig.Eap.PEAP, WifiEnterpriseConfig.Phase2.NONE); in testLoadFromStoreResetsSimIdentity()
DClientModeImplTest.java1052 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE)); in setupEapSimConnection()
1188 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE)); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym()
1244 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE)); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym()
1298 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE)); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithNonDecoratedPseudonym()
1352 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE)); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonymForSuggestion()
1406 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE)); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonymForPasspoint()
4782 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE)); in testSupRequestIdentity_setsIdentityResponse()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController2.java34 import android.net.wifi.WifiEnterpriseConfig.Phase2;
655 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
658 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig()
661 config.enterpriseConfig.setPhase2Method(Phase2.SIM); in getConfig()
664 config.enterpriseConfig.setPhase2Method(Phase2.AKA); in getConfig()
667 config.enterpriseConfig.setPhase2Method(Phase2.AKA_PRIME); in getConfig()
678 config.enterpriseConfig.setPhase2Method(Phase2.PAP); in getConfig()
681 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAP); in getConfig()
684 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
687 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig()
[all …]
DWifiConfigController.java33 import android.net.wifi.WifiEnterpriseConfig.Phase2;
675 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
678 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig()
681 config.enterpriseConfig.setPhase2Method(Phase2.SIM); in getConfig()
684 config.enterpriseConfig.setPhase2Method(Phase2.AKA); in getConfig()
687 config.enterpriseConfig.setPhase2Method(Phase2.AKA_PRIME); in getConfig()
698 config.enterpriseConfig.setPhase2Method(Phase2.PAP); in getConfig()
701 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAP); in getConfig()
704 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
707 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigController2Test.java37 import android.net.wifi.WifiEnterpriseConfig.Phase2;
586 Phase2.MSCHAPV2); in selectEapMethod_savedWifiEntry_shouldGetCorrectPosition()
595 Phase2.MSCHAPV2); in selectEapMethod_savedWifiEntry_shouldGetCorrectPosition()
674 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.GTC); in getEapConfig_withPhase2Gtc_shouldContainGtcMethod()
691 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.SIM); in getEapConfig_withPhase2Sim_shouldContainSimMethod()
708 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.AKA); in getEapConfig_withPhase2Aka_shouldContainAkaMethod()
726 Phase2.AKA_PRIME); in getEapConfig_withPhase2AkaPrime_shouldContainAkaPrimeMethod()
743 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.NONE); in getEapConfig_withPeapPhase2Unknown_shouldContainNoneMethod()
760 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.PAP); in getEapConfig_withTTLSPhase2Pap_shouldContainPapMethod()
777 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.MSCHAP); in getEapConfig_withTTLSPhase2Mschap_shouldContainMschapMethod()
[all …]
DWifiConfigControllerTest.java34 import android.net.wifi.WifiEnterpriseConfig.Phase2;
546 Phase2.MSCHAPV2); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
555 Phase2.MSCHAPV2); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java928 int phase2Method = WifiEnterpriseConfig.Phase2.NONE; in buildEnterpriseConfigForUserCredential()
931 phase2Method = WifiEnterpriseConfig.Phase2.PAP; in buildEnterpriseConfigForUserCredential()
934 phase2Method = WifiEnterpriseConfig.Phase2.MSCHAP; in buildEnterpriseConfigForUserCredential()
937 phase2Method = WifiEnterpriseConfig.Phase2.MSCHAPV2; in buildEnterpriseConfigForUserCredential()
1041 case WifiEnterpriseConfig.Phase2.PAP: in buildUserCredentialFromEnterpriseConfig()
1044 case WifiEnterpriseConfig.Phase2.MSCHAP: in buildUserCredentialFromEnterpriseConfig()
1047 case WifiEnterpriseConfig.Phase2.MSCHAPV2: in buildUserCredentialFromEnterpriseConfig()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkHal.java1117 return WifiEnterpriseConfig.Phase2.NONE; in supplicantToWifiConfigurationEapPhase2Method()
1119 return WifiEnterpriseConfig.Phase2.PAP; in supplicantToWifiConfigurationEapPhase2Method()
1121 return WifiEnterpriseConfig.Phase2.MSCHAP; in supplicantToWifiConfigurationEapPhase2Method()
1123 return WifiEnterpriseConfig.Phase2.MSCHAPV2; in supplicantToWifiConfigurationEapPhase2Method()
1125 return WifiEnterpriseConfig.Phase2.GTC; in supplicantToWifiConfigurationEapPhase2Method()
1127 return WifiEnterpriseConfig.Phase2.SIM; in supplicantToWifiConfigurationEapPhase2Method()
1129 return WifiEnterpriseConfig.Phase2.AKA; in supplicantToWifiConfigurationEapPhase2Method()
1131 return WifiEnterpriseConfig.Phase2.AKA_PRIME; in supplicantToWifiConfigurationEapPhase2Method()
1356 case WifiEnterpriseConfig.Phase2.NONE: in wifiConfigurationToSupplicantEapPhase2Method()
1358 case WifiEnterpriseConfig.Phase2.PAP: in wifiConfigurationToSupplicantEapPhase2Method()
[all …]
DWifiConfigurationUtil.java1187 if (phase2Method == WifiEnterpriseConfig.Phase2.MSCHAP in validateEnterpriseConfig()
1188 || phase2Method == WifiEnterpriseConfig.Phase2.MSCHAPV2 in validateEnterpriseConfig()
1189 || phase2Method == WifiEnterpriseConfig.Phase2.PAP in validateEnterpriseConfig()
1190 || phase2Method == WifiEnterpriseConfig.Phase2.GTC) { in validateEnterpriseConfig()
DWifiCarrierInfoManager.java989 case WifiEnterpriseConfig.Phase2.SIM: in getSimMethodForConfig()
992 case WifiEnterpriseConfig.Phase2.AKA: in getSimMethodForConfig()
995 case WifiEnterpriseConfig.Phase2.AKA_PRIME: in getSimMethodForConfig()
DWifiMetrics.java692 case WifiEnterpriseConfig.Phase2.PAP: in getAuthPhase2MethodProto()
694 case WifiEnterpriseConfig.Phase2.MSCHAP: in getAuthPhase2MethodProto()
696 case WifiEnterpriseConfig.Phase2.MSCHAPV2: in getAuthPhase2MethodProto()
698 case WifiEnterpriseConfig.Phase2.GTC: in getAuthPhase2MethodProto()
700 case WifiEnterpriseConfig.Phase2.SIM: in getAuthPhase2MethodProto()
702 case WifiEnterpriseConfig.Phase2.AKA: in getAuthPhase2MethodProto()
704 case WifiEnterpriseConfig.Phase2.AKA_PRIME: in getAuthPhase2MethodProto()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java374 assertEquals(WifiEnterpriseConfig.Phase2.PAP, in verifyWifiConfigWithTestData()
378 assertEquals(WifiEnterpriseConfig.Phase2.MSCHAP, in verifyWifiConfigWithTestData()
382 assertEquals(WifiEnterpriseConfig.Phase2.MSCHAPV2, in verifyWifiConfigWithTestData()
1377 wifiConfig.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.PAP); in convertFromWifiConfigWithUserCredential()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java80 private static final int TEST_PHASE2_METHOD = WifiEnterpriseConfig.Phase2.MSCHAPV2;

12