Home
last modified time | relevance | path

Searched refs:eapMethod (Results 1 – 14 of 14) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DCarrierNetworkNotifier.java64 int eapMethod = recommendedNetwork.carrierApEapType; in createRecommendedNetworkConfig() local
65 if (eapMethod == Eap.SIM || eapMethod == Eap.AKA || eapMethod == Eap.AKA_PRIME) { in createRecommendedNetworkConfig()
DClientModeImpl.java4874 private String buildIdentity(int eapMethod, String imsi, String mccMnc) { in buildIdentity() argument
4883 if (eapMethod == WifiEnterpriseConfig.Eap.SIM) { in buildIdentity()
4885 } else if (eapMethod == WifiEnterpriseConfig.Eap.AKA) { in buildIdentity()
4887 } else if (eapMethod == WifiEnterpriseConfig.Eap.AKA_PRIME) { in buildIdentity()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java118 public static WifiConfiguration createEapConfig(String ssid, String password, int eapMethod, in createEapConfig() argument
135 config.enterpriseConfig.setEapMethod(eapMethod); in createEapConfig()
211 int eapMethod = getEapMethod(jsonConfig.getString("eap")); in getWifiConfiguration() local
232 config = createEapConfig(ssid, password, eapMethod, phase2, identity, in getWifiConfiguration()
290 private static int getEapMethod(String eapMethod) { in getEapMethod() argument
291 if ("TLS".equalsIgnoreCase(eapMethod)) { in getEapMethod()
294 if ("TTLS".equalsIgnoreCase(eapMethod)) { in getEapMethod()
297 if ("PEAP".equalsIgnoreCase(eapMethod)) { in getEapMethod()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java265 private static String buildIdentity(int eapMethod, String imsi, String mccMnc, in buildIdentity() argument
272 String prefix = isEncrypted ? DEFAULT_EAP_PREFIX : EAP_METHOD_PREFIX.get(eapMethod); in buildIdentity()
306 int eapMethod = config.enterpriseConfig.getEapMethod(); in getSimMethodForConfig() local
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()
349 public static boolean isSimEapMethod(int eapMethod) { in isSimEapMethod() argument
350 return eapMethod == WifiEnterpriseConfig.Eap.SIM in isSimEapMethod()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPMatcher.java196 for (EAPMethod eapMethod : realmData.getEAPMethods()) { in matchNAIRealmData()
197 eapMethodMatch = matchEAPMethod(eapMethod, eapMethodID, authParam); in matchNAIRealmData()
228 for (EAPMethod eapMethod : realmData.getEAPMethods()) { in getEapMethodForNAIRealmWithCarrier()
229 if (isCarrierEapMethod(eapMethod.getEAPMethodID())) { in getEapMethodForNAIRealmWithCarrier()
230 return eapMethod.getEAPMethodID(); in getEapMethodForNAIRealmWithCarrier()
DUtils.java141 public static boolean isCarrierEapMethod(int eapMethod) { in isCarrierEapMethod() argument
142 return eapMethod == EAPConstants.EAP_SIM in isCarrierEapMethod()
143 || eapMethod == EAPConstants.EAP_AKA in isCarrierEapMethod()
144 || eapMethod == EAPConstants.EAP_AKA_PRIME; in isCarrierEapMethod()
DPasspointNetworkEvaluator.java201 int eapMethod = in createEphemeralProfileForMatchingAp() local
203 if (!isCarrierEapMethod(eapMethod)) { in createEphemeralProfileForMatchingAp()
207 mPasspointManager.createEphemeralPasspointConfigForCarrier(eapMethod); in createEphemeralProfileForMatchingAp()
DPasspointProvider.java665 int eapMethod = WifiEnterpriseConfig.Eap.NONE; in buildEnterpriseConfigForSimCredential() local
668 eapMethod = WifiEnterpriseConfig.Eap.SIM; in buildEnterpriseConfigForSimCredential()
671 eapMethod = WifiEnterpriseConfig.Eap.AKA; in buildEnterpriseConfigForSimCredential()
674 eapMethod = WifiEnterpriseConfig.Eap.AKA_PRIME; in buildEnterpriseConfigForSimCredential()
682 config.setEapMethod(eapMethod); in buildEnterpriseConfigForSimCredential()
DPasspointManager.java469 int eapMethod = ANQPMatcher.getCarrierEapMethodFromMatchingNAIRealm(domain, in findEapMethodFromNAIRealmMatchedWithCarrier() local
471 if (eapMethod != -1) { in findEapMethodFromNAIRealmMatchedWithCarrier()
472 return eapMethod; in findEapMethodFromNAIRealmMatchedWithCarrier()
485 public PasspointConfiguration createEphemeralPasspointConfigForCarrier(int eapMethod) { in createEphemeralPasspointConfigForCarrier() argument
494 if (!isCarrierEapMethod(eapMethod)) { in createEphemeralPasspointConfigForCarrier()
519 simCredential.setEapType(eapMethod); in createEphemeralPasspointConfigForCarrier()
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java407 String eapMethod = loader.loadValue(EAP_KEY); in loadFromSupplicant() local
408 mEapMethod = getStringIndex(Eap.strings, eapMethod, Eap.NONE); in loadFromSupplicant()
426 public void setEapMethod(int eapMethod) { in setEapMethod() argument
427 switch (eapMethod) { in setEapMethod()
439 mEapMethod = eapMethod; in setEapMethod()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalTest.java477 mSupplicantVariables.eapMethod = -1; in testInvalidEapMethodLoadFailure()
1318 mSupplicantVariables.eapMethod = method; in setupISupplicantNetworkMock()
1326 if (mSupplicantVariables.eapMethod == -1) { in setupISupplicantNetworkMock()
1327 cb.onValues(mStatusFailure, mSupplicantVariables.eapMethod); in setupISupplicantNetworkMock()
1329 cb.onValues(mStatusSuccess, mSupplicantVariables.eapMethod); in setupISupplicantNetworkMock()
1604 public int eapMethod = -1; field in SupplicantStaNetworkHalTest.SupplicantNetworkVariables
DWifiConfigurationUtilTest.java1020 EnterpriseConfig(int eapMethod) { in EnterpriseConfig() argument
1022 enterpriseConfig.setEapMethod(eapMethod); in EnterpriseConfig()
1023 eap = WifiEnterpriseConfig.Eap.strings[eapMethod]; in EnterpriseConfig()
DWifiConfigurationTestUtil.java356 public static WifiConfiguration createEapNetwork(int eapMethod, int phase2Method) { in createEapNetwork() argument
360 configuration.enterpriseConfig.setEapMethod(eapMethod); in createEapNetwork()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java174 EAPMethod eapMethod = new EAPMethod(eapMethodID, authParamMap); in createNAIRealmElement() local
176 Arrays.asList(new EAPMethod[] {eapMethod})); in createNAIRealmElement()