Home
last modified time | relevance | path

Searched refs:WifiEnterpriseConfig (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java26 import android.net.wifi.WifiEnterpriseConfig;
75 private static final int TEST_EAP_METHOD = WifiEnterpriseConfig.Eap.PEAP;
76 private static final int TEST_PHASE2_METHOD = WifiEnterpriseConfig.Phase2.MSCHAPV2;
392 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in testWifiEnterpriseConfigSerializeDeserialize()
393 config.setFieldValue(WifiEnterpriseConfig.IDENTITY_KEY, TEST_IDENTITY); in testWifiEnterpriseConfigSerializeDeserialize()
394 config.setFieldValue(WifiEnterpriseConfig.ANON_IDENTITY_KEY, TEST_ANON_IDENTITY); in testWifiEnterpriseConfigSerializeDeserialize()
395 config.setFieldValue(WifiEnterpriseConfig.PASSWORD_KEY, TEST_PASSWORD); in testWifiEnterpriseConfigSerializeDeserialize()
396 config.setFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY, TEST_CLIENT_CERT); in testWifiEnterpriseConfigSerializeDeserialize()
397 config.setFieldValue(WifiEnterpriseConfig.CA_CERT_KEY, TEST_CA_CERT); in testWifiEnterpriseConfigSerializeDeserialize()
398 config.setFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY, TEST_SUBJECT_MATCH); in testWifiEnterpriseConfigSerializeDeserialize()
[all …]
DTelephonyUtilTest.java23 import android.net.wifi.WifiEnterpriseConfig;
81 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.SIM, in getSimIdentityEapSim()
82 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getSimIdentityEapSim()
85 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapSim()
86 WifiEnterpriseConfig.Phase2.SIM), mCarrierNetworkConfig)); in getSimIdentityEapSim()
101 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.AKA, in getSimIdentityEapAka()
102 WifiEnterpriseConfig.Phase2.NONE), mCarrierNetworkConfig)); in getSimIdentityEapAka()
105 WifiConfigurationTestUtil.createEapNetwork(WifiEnterpriseConfig.Eap.PEAP, in getSimIdentityEapAka()
106 WifiEnterpriseConfig.Phase2.AKA), mCarrierNetworkConfig)); in getSimIdentityEapAka()
122 WifiEnterpriseConfig.Eap.AKA_PRIME, in getSimIdentityEapAkaPrime()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java29 import android.net.wifi.WifiEnterpriseConfig;
158 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig()
372 configuration.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createEapSuiteBNetwork()
373 configuration.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in createEapSuiteBNetwork()
459 public static WifiEnterpriseConfig createPEAPWifiEnterpriseConfigWithGTCPhase2() { in createPEAPWifiEnterpriseConfigWithGTCPhase2()
460 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in createPEAPWifiEnterpriseConfigWithGTCPhase2()
461 config.setEapMethod(WifiEnterpriseConfig.Eap.PEAP); in createPEAPWifiEnterpriseConfigWithGTCPhase2()
462 config.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in createPEAPWifiEnterpriseConfigWithGTCPhase2()
468 public static WifiEnterpriseConfig createTLSWifiEnterpriseConfigWithNonePhase2() { in createTLSWifiEnterpriseConfigWithNonePhase2()
469 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in createTLSWifiEnterpriseConfigWithNonePhase2()
[all …]
DWifiConfigurationUtilTest.java25 import android.net.wifi.WifiEnterpriseConfig;
88 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigAdded()
89 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) 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()
116 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testEnterpriseConfigPhase2ChangeDetected()
118 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected()
119 .setPhase2(WifiEnterpriseConfig.Phase2.PAP); in testEnterpriseConfigPhase2ChangeDetected()
130 EnterpriseConfig eapConfigNoCerts = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected()
[all …]
DCarrierNetworkEvaluatorTest.java33 import android.net.wifi.WifiEnterpriseConfig;
177 .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.java29 import android.net.wifi.WifiEnterpriseConfig;
58 private static final int TEST_INTERNAL_EAP_TYPE = WifiEnterpriseConfig.Eap.SIM;
216 int updatedInternalEapType = WifiEnterpriseConfig.Eap.AKA; in receivedCarrierConfigChangedIntent()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiEnterpriseConfigTest.java27 import android.net.wifi.WifiEnterpriseConfig.Eap;
28 import android.net.wifi.WifiEnterpriseConfig.Phase2;
50 private WifiEnterpriseConfig mEnterpriseConfig;
54 mEnterpriseConfig = new WifiEnterpriseConfig(); in setUp()
177 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias0), in testSaveMultipleCaCertificates()
178WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias1))); in testSaveMultipleCaCertificates()
187 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias0), in testLoadMultipleCaCertificates()
188WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias1))); in testLoadMultipleCaCertificates()
196 return mEnterpriseConfig.getFieldValue(WifiEnterpriseConfig.CA_CERT_KEY); in getCaCertField()
200 mEnterpriseConfig.setFieldValue(WifiEnterpriseConfig.CA_CERT_KEY, value); in setCaCertField()
[all …]
DWifiConfigurationTest.java313 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentials()
314 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials()
320 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentials()
321 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testGetKeyIdForCredentials()
328 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentials()
329 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testGetKeyIdForCredentials()
336 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentials()
337 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials()
374 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentialsForSuggestion()
375 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentialsForSuggestion()
[all …]
DWifiNetworkSpecifierTest.java109 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
110 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
111 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
296 .setWpa2EnterpriseConfig(new WifiEnterpriseConfig()) in testWifiNetworkSpecifierBuilderWithBothWpa2PasphraseAndEnterpriseConfig()
337 .setWpa3EnterpriseConfig(new WifiEnterpriseConfig()) in testWifiNetworkSpecifierBuilderWithBothWpa3PasphraseAndEnterprise()
DWifiNetworkSuggestionTest.java166 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
167 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
168 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
295 .setWpa3EnterpriseConfig(new WifiEnterpriseConfig()) in testWifiNetworkSuggestionBuilderWithBothWpa3PasphraseAndEnterprise()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java22 import android.net.wifi.WifiEnterpriseConfig;
411 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in getWifiConfig()
466 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()
720 private void buildEnterpriseConfigForUserCredential(WifiEnterpriseConfig config, in buildEnterpriseConfigForUserCredential()
724 config.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in buildEnterpriseConfigForUserCredential()
728 int phase2Method = WifiEnterpriseConfig.Phase2.NONE; in buildEnterpriseConfigForUserCredential()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java32 import android.net.wifi.WifiEnterpriseConfig;
1127 public static void writeToXml(XmlSerializer out, WifiEnterpriseConfig enterpriseConfig, in writeToXml()
1131 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.IDENTITY_KEY)); in writeToXml()
1133 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ANON_IDENTITY_KEY)); in writeToXml()
1135 out, enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PASSWORD_KEY), in writeToXml()
1138 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY)); in writeToXml()
1140 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CA_CERT_KEY)); in writeToXml()
1142 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY)); in writeToXml()
1144 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_KEY)); in writeToXml()
1146 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_ID_KEY)); in writeToXml()
[all …]
DTelephonyUtil.java21 import android.net.wifi.WifiEnterpriseConfig;
66 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()
311 case WifiEnterpriseConfig.Phase2.SIM: in getSimMethodForConfig()
312 eapMethod = WifiEnterpriseConfig.Eap.SIM; in getSimMethodForConfig()
314 case WifiEnterpriseConfig.Phase2.AKA: in getSimMethodForConfig()
315 eapMethod = WifiEnterpriseConfig.Eap.AKA; in getSimMethodForConfig()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkHal.java24 import android.net.wifi.WifiEnterpriseConfig;
413 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in saveWifiConfiguration()
453 private boolean loadWifiEnterpriseConfig(String ssid, WifiEnterpriseConfig eapConfig) { in loadWifiEnterpriseConfig()
476 WifiEnterpriseConfig.IDENTITY_KEY, in loadWifiEnterpriseConfig()
482 WifiEnterpriseConfig.ANON_IDENTITY_KEY, in loadWifiEnterpriseConfig()
488 WifiEnterpriseConfig.PASSWORD_KEY, in loadWifiEnterpriseConfig()
493 eapConfig.setFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY, mEapClientCert); in loadWifiEnterpriseConfig()
497 eapConfig.setFieldValue(WifiEnterpriseConfig.CA_CERT_KEY, mEapCACert); in loadWifiEnterpriseConfig()
501 eapConfig.setFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY, mEapSubjectMatch); in loadWifiEnterpriseConfig()
505 eapConfig.setFieldValue(WifiEnterpriseConfig.ENGINE_ID_KEY, mEapEngineID); in loadWifiEnterpriseConfig()
[all …]
DCarrierNetworkNotifier.java23 import android.net.wifi.WifiEnterpriseConfig;
24 import android.net.wifi.WifiEnterpriseConfig.Eap;
68 network.enterpriseConfig = new WifiEnterpriseConfig(); in createRecommendedNetworkConfig()
DWifiKeyStore.java20 import android.net.wifi.WifiEnterpriseConfig;
66 private static boolean needsKeyStore(WifiEnterpriseConfig config) { in needsKeyStore()
86 private boolean installKeys(WifiEnterpriseConfig existingConfig, WifiEnterpriseConfig config, in installKeys()
225 public void removeKeys(WifiEnterpriseConfig config) { in removeKeys()
280 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in updateNetworkKeys()
DCarrierNetworkConfig.java27 import android.net.wifi.WifiEnterpriseConfig;
276 return WifiEnterpriseConfig.Eap.SIM; in parseEapType()
278 return WifiEnterpriseConfig.Eap.AKA; in parseEapType()
280 return WifiEnterpriseConfig.Eap.AKA_PRIME; in parseEapType()
DNetworkListStoreData.java26 import android.net.wifi.WifiEnterpriseConfig;
174 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
234 WifiEnterpriseConfig enterpriseConfig = null; in parseNetwork()
DCarrierNetworkEvaluator.java21 import android.net.wifi.WifiEnterpriseConfig;
121 config.enterpriseConfig = new WifiEnterpriseConfig(); in evaluateNetworks()
DWifiBackupRestore.java21 import android.net.wifi.WifiEnterpriseConfig;
438 WifiEnterpriseConfig.CLIENT_CERT_KEY;
439 public static final String SUPPLICANT_KEY_CA_CERT = WifiEnterpriseConfig.CA_CERT_KEY;
440 public static final String SUPPLICANT_KEY_CA_PATH = WifiEnterpriseConfig.CA_PATH_KEY;
441 public static final String SUPPLICANT_KEY_EAP = WifiEnterpriseConfig.EAP_KEY;
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java38 public class WifiEnterpriseConfig implements Parcelable { class
147 public WifiEnterpriseConfig() { in WifiEnterpriseConfig() method in WifiEnterpriseConfig
163 private void copyFrom(WifiEnterpriseConfig source, boolean ignoreMaskedPassword, String mask) { in copyFrom()
196 public WifiEnterpriseConfig(WifiEnterpriseConfig source) { in WifiEnterpriseConfig() method in WifiEnterpriseConfig
209 public void copyFromExternal(WifiEnterpriseConfig externalConfig, String mask) { in copyFromExternal()
235 public static final @android.annotation.NonNull Creator<WifiEnterpriseConfig> CREATOR =
236 new Creator<WifiEnterpriseConfig>() {
238 public WifiEnterpriseConfig createFromParcel(Parcel in) {
239 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig();
258 public WifiEnterpriseConfig[] newArray(int size) {
[all …]
DWifiNetworkSuggestion.java76 private @Nullable WifiEnterpriseConfig mWpa2EnterpriseConfig;
81 private @Nullable WifiEnterpriseConfig mWpa3EnterpriseConfig;
216 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa2EnterpriseConfig()
218 mWpa2EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa2EnterpriseConfig()
230 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3EnterpriseConfig()
232 mWpa3EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa3EnterpriseConfig()
DWifiNetworkSpecifier.java85 private @Nullable WifiEnterpriseConfig mWpa2EnterpriseConfig;
90 private @Nullable WifiEnterpriseConfig mWpa3EnterpriseConfig;
239 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa2EnterpriseConfig()
241 mWpa2EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa2EnterpriseConfig()
253 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3EnterpriseConfig()
255 mWpa3EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa3EnterpriseConfig()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java27 import android.net.wifi.WifiEnterpriseConfig;
129 if (phase2 == null) phase2 = WifiEnterpriseConfig.Phase2.NONE; in createEapConfig()
299 return WifiEnterpriseConfig.Eap.TLS; in getEapMethod()
302 return WifiEnterpriseConfig.Eap.TTLS; in getEapMethod()
305 return WifiEnterpriseConfig.Eap.PEAP; in getEapMethod()
317 return WifiEnterpriseConfig.Phase2.PAP; in getPhase2()
320 return WifiEnterpriseConfig.Phase2.MSCHAP; in getPhase2()
323 return WifiEnterpriseConfig.Phase2.MSCHAPV2; in getPhase2()
326 return WifiEnterpriseConfig.Phase2.GTC; in getPhase2()
/frameworks/base/wifi/aidl-export/android/net/wifi/
DWifiEnterpriseConfig.aidl19 parcelable WifiEnterpriseConfig;

123