/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/ |
H A D | WifiEnterpriseConfig.java | 440 private Phase2() {} in Phase2() method in WifiEnterpriseConfig.Phase2 505 String prefix = is_autheap ? Phase2.AUTHEAP_PREFIX : Phase2.AUTH_PREFIX; in saveToSupplicant() 542 mPhase2Method = getStringIndex(Phase2.strings, phase2Method, Phase2.NONE); in loadFromSupplicant() 591 case Phase2.NONE: in setPhase2Method() 592 case Phase2.PAP: in setPhase2Method() 593 case Phase2.MSCHAP: in setPhase2Method() 594 case Phase2.MSCHAPV2: in setPhase2Method() 595 case Phase2.GTC: in setPhase2Method() 596 case Phase2.SIM: in setPhase2Method() 597 case Phase2.AKA: in setPhase2Method() [all …]
|
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
H A D | WifiEnterpriseConfigTest.java | 30 import android.net.wifi.WifiEnterpriseConfig.Phase2; 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() 347 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyConstructor() 363 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyFromExternal() 378 enterpriseConfig.setPhase2Method(Phase2.GTC); in parcelConstructor() 432 enterpriseConfig.setPhase2Method(Phase2.GTC); in getKeyId() [all …]
|
H A D | WifiConfigurationTest.java | 284 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() 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() 1038 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testAddSuiteBSecurityType() [all …]
|
H A D | WifiNetworkSuggestionTest.java | 575 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutCa() 593 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSuggestionBuilderForEapNetworkWithoutMatch() 1012 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testSimCredentialNetworkWithSubId()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/ |
H A D | WifiConfigurationProviderTest.java | 251 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() 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() 342 WifiEnterpriseConfig.Phase2.NONE); in testEAPWithInvalidEAPMethod() [all …]
|
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/ |
H A D | WifiConfigurationProvider.java | 90 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()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiCarrierInfoManagerTest.java | 502 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 …]
|
H A D | WifiConfigurationUtilTest.java | 80 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testEnterpriseConfigAdded() 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() 184 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) in testWifiEnterpriseConfigNoChanges() [all …]
|
H A D | WifiConfigurationTestUtil.java | 174 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()
|
H A D | WifiNetworkSuggestionsManagerTest.java | 712 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()
|
H A D | WifiNetworkSelectorTestUtil.java | 151 WifiEnterpriseConfig.Eap.SIM, WifiEnterpriseConfig.Phase2.NONE); in setupScanDetailsAndConfigForEapSimNetwork()
|
H A D | ClientModeImplTest.java | 1052 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()
|
H A D | WifiConfigManagerTest.java | 1726 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()
|
/aosp12/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
H A D | WifiConfigurationHelper.java | 129 if (phase2 == null) phase2 = WifiEnterpriseConfig.Phase2.NONE; in createEapConfig() 319 return WifiEnterpriseConfig.Phase2.PAP; in getPhase2() 322 return WifiEnterpriseConfig.Phase2.MSCHAP; in getPhase2() 325 return WifiEnterpriseConfig.Phase2.MSCHAPV2; in getPhase2() 328 return WifiEnterpriseConfig.Phase2.GTC; in getPhase2()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
H A D | WifiConfigController2Test.java | 37 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 …]
|
H A D | WifiConfigControllerTest.java | 34 import android.net.wifi.WifiEnterpriseConfig.Phase2; 546 Phase2.MSCHAPV2); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition() 555 Phase2.MSCHAPV2); in selectEapMethod_savedAccessPoint_shouldGetCorrectPosition()
|
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WifiConfigController.java | 33 import android.net.wifi.WifiEnterpriseConfig.Phase2; 678 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig() 1087 case Phase2.MSCHAPV2: in showSecurityFields() 1090 case Phase2.GTC: in showSecurityFields() 1093 case Phase2.SIM: in showSecurityFields() 1096 case Phase2.AKA: in showSecurityFields() 1099 case Phase2.AKA_PRIME: in showSecurityFields() 1109 case Phase2.PAP: in showSecurityFields() 1112 case Phase2.MSCHAP: in showSecurityFields() 1115 case Phase2.MSCHAPV2: in showSecurityFields() [all …]
|
H A D | WifiConfigController2.java | 34 import android.net.wifi.WifiEnterpriseConfig.Phase2; 658 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig() 1066 case Phase2.MSCHAPV2: in showSecurityFields() 1069 case Phase2.GTC: in showSecurityFields() 1072 case Phase2.SIM: in showSecurityFields() 1075 case Phase2.AKA: in showSecurityFields() 1078 case Phase2.AKA_PRIME: in showSecurityFields() 1088 case Phase2.PAP: in showSecurityFields() 1091 case Phase2.MSCHAP: in showSecurityFields() 1094 case Phase2.MSCHAPV2: in showSecurityFields() [all …]
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | PasspointProvider.java | 928 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()
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/ |
H A D | SupplicantStaNetworkHal.java | 1119 return WifiEnterpriseConfig.Phase2.PAP; in supplicantToWifiConfigurationEapPhase2Method() 1125 return WifiEnterpriseConfig.Phase2.GTC; in supplicantToWifiConfigurationEapPhase2Method() 1127 return WifiEnterpriseConfig.Phase2.SIM; in supplicantToWifiConfigurationEapPhase2Method() 1129 return WifiEnterpriseConfig.Phase2.AKA; in supplicantToWifiConfigurationEapPhase2Method() 1356 case WifiEnterpriseConfig.Phase2.NONE: in wifiConfigurationToSupplicantEapPhase2Method() 1358 case WifiEnterpriseConfig.Phase2.PAP: in wifiConfigurationToSupplicantEapPhase2Method() 1360 case WifiEnterpriseConfig.Phase2.MSCHAP: in wifiConfigurationToSupplicantEapPhase2Method() 1362 case WifiEnterpriseConfig.Phase2.MSCHAPV2: in wifiConfigurationToSupplicantEapPhase2Method() 1364 case WifiEnterpriseConfig.Phase2.GTC: in wifiConfigurationToSupplicantEapPhase2Method() 1366 case WifiEnterpriseConfig.Phase2.SIM: in wifiConfigurationToSupplicantEapPhase2Method() [all …]
|
H A D | WifiConfigurationUtil.java | 1187 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()
|
H A D | WifiCarrierInfoManager.java | 989 case WifiEnterpriseConfig.Phase2.SIM: in getSimMethodForConfig() 992 case WifiEnterpriseConfig.Phase2.AKA: in getSimMethodForConfig() 995 case WifiEnterpriseConfig.Phase2.AKA_PRIME: in getSimMethodForConfig()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
H A D | PasspointProviderTest.java | 374 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()
|
/aosp12/hardware/interfaces/wifi/supplicant/1.0/ |
H A D | ISupplicantStaNetwork.hal | 355 * Set EAP Phase2 Method for this network. 757 * Get EAP Phase2 Method set for this network.
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
H A D | XmlUtilTest.java | 80 private static final int TEST_PHASE2_METHOD = WifiEnterpriseConfig.Phase2.MSCHAPV2;
|