/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TelephonyUtilTest.java | 23 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 …]
|
D | XmlUtilTest.java | 25 import android.net.wifi.WifiEnterpriseConfig; 72 private static final int TEST_EAP_METHOD = WifiEnterpriseConfig.Eap.PEAP; 73 private static final int TEST_PHASE2_METHOD = WifiEnterpriseConfig.Phase2.MSCHAPV2; 366 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in testWifiEnterpriseConfigSerializeDeserialize() 367 config.setFieldValue(WifiEnterpriseConfig.IDENTITY_KEY, TEST_IDENTITY); in testWifiEnterpriseConfigSerializeDeserialize() 368 config.setFieldValue(WifiEnterpriseConfig.ANON_IDENTITY_KEY, TEST_ANON_IDENTITY); in testWifiEnterpriseConfigSerializeDeserialize() 369 config.setFieldValue(WifiEnterpriseConfig.PASSWORD_KEY, TEST_PASSWORD); in testWifiEnterpriseConfigSerializeDeserialize() 370 config.setFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY, TEST_CLIENT_CERT); in testWifiEnterpriseConfigSerializeDeserialize() 371 config.setFieldValue(WifiEnterpriseConfig.CA_CERT_KEY, TEST_CA_CERT); in testWifiEnterpriseConfigSerializeDeserialize() 372 config.setFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY, TEST_SUBJECT_MATCH); in testWifiEnterpriseConfigSerializeDeserialize() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationTestUtil.java | 28 import android.net.wifi.WifiEnterpriseConfig; 157 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig() 371 configuration.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createEapSuiteBNetwork() 372 configuration.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in createEapSuiteBNetwork() 458 public static WifiEnterpriseConfig createPEAPWifiEnterpriseConfigWithGTCPhase2() { in createPEAPWifiEnterpriseConfigWithGTCPhase2() 459 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in createPEAPWifiEnterpriseConfigWithGTCPhase2() 460 config.setEapMethod(WifiEnterpriseConfig.Eap.PEAP); in createPEAPWifiEnterpriseConfigWithGTCPhase2() 461 config.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in createPEAPWifiEnterpriseConfigWithGTCPhase2() 467 public static WifiEnterpriseConfig createTLSWifiEnterpriseConfigWithNonePhase2() { in createTLSWifiEnterpriseConfigWithNonePhase2() 468 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in createTLSWifiEnterpriseConfigWithNonePhase2() [all …]
|
D | WifiConfigurationUtilTest.java | 26 import android.net.wifi.WifiEnterpriseConfig; 93 EnterpriseConfig eapConfig = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigAdded() 94 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2) 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() 121 .setPhase2(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testEnterpriseConfigPhase2ChangeDetected() 123 new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testEnterpriseConfigPhase2ChangeDetected() 124 .setPhase2(WifiEnterpriseConfig.Phase2.PAP); in testEnterpriseConfigPhase2ChangeDetected() 135 EnterpriseConfig eapConfigNoCerts = new EnterpriseConfig(WifiEnterpriseConfig.Eap.TTLS) in testCaCertificateAddedDetected() [all …]
|
D | CarrierNetworkConfigTest.java | 29 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()
|
D | CarrierNetworkEvaluatorTest.java | 33 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()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiEnterpriseConfigTest.java | 27 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() 178 … WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias1))); in testSaveMultipleCaCertificates() 187 WifiEnterpriseConfig.encodeCaCertificateAlias(Credentials.CA_CERTIFICATE + alias0), in testLoadMultipleCaCertificates() 188 … WifiEnterpriseConfig.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 …]
|
D | WifiConfigurationTest.java | 311 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentials() 312 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials() 318 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentials() 319 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testGetKeyIdForCredentials() 326 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentials() 327 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testGetKeyIdForCredentials() 334 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentials() 335 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials() 372 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentialsForSuggestion() 373 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentialsForSuggestion() [all …]
|
D | WifiNetworkSpecifierTest.java | 109 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()
|
D | WifiNetworkSuggestionTest.java | 166 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/ |
D | PasspointProvider.java | 22 import android.net.wifi.WifiEnterpriseConfig; 396 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in getWifiConfig() 451 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() 618 private void buildEnterpriseConfigForUserCredential(WifiEnterpriseConfig config, in buildEnterpriseConfigForUserCredential() 622 config.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in buildEnterpriseConfigForUserCredential() 626 int phase2Method = WifiEnterpriseConfig.Phase2.NONE; in buildEnterpriseConfigForUserCredential() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtil.java | 30 import android.net.wifi.WifiEnterpriseConfig; 1028 public static void writeToXml(XmlSerializer out, WifiEnterpriseConfig enterpriseConfig) in writeToXml() 1031 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.IDENTITY_KEY)); in writeToXml() 1033 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ANON_IDENTITY_KEY)); in writeToXml() 1035 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PASSWORD_KEY)); in writeToXml() 1037 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY)); in writeToXml() 1039 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CA_CERT_KEY)); in writeToXml() 1041 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY)); in writeToXml() 1043 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_KEY)); in writeToXml() 1045 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_ID_KEY)); in writeToXml() [all …]
|
D | TelephonyUtil.java | 21 import android.net.wifi.WifiEnterpriseConfig; 65 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() 310 case WifiEnterpriseConfig.Phase2.SIM: in getSimMethodForConfig() 311 eapMethod = WifiEnterpriseConfig.Eap.SIM; in getSimMethodForConfig() 313 case WifiEnterpriseConfig.Phase2.AKA: in getSimMethodForConfig() 314 eapMethod = WifiEnterpriseConfig.Eap.AKA; in getSimMethodForConfig() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStaNetworkHal.java | 24 import android.net.wifi.WifiEnterpriseConfig; 421 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in saveWifiConfiguration() 461 private boolean loadWifiEnterpriseConfig(String ssid, WifiEnterpriseConfig eapConfig) { in loadWifiEnterpriseConfig() 484 WifiEnterpriseConfig.IDENTITY_KEY, in loadWifiEnterpriseConfig() 490 WifiEnterpriseConfig.ANON_IDENTITY_KEY, in loadWifiEnterpriseConfig() 496 WifiEnterpriseConfig.PASSWORD_KEY, in loadWifiEnterpriseConfig() 501 eapConfig.setFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY, mEapClientCert); in loadWifiEnterpriseConfig() 505 eapConfig.setFieldValue(WifiEnterpriseConfig.CA_CERT_KEY, mEapCACert); in loadWifiEnterpriseConfig() 509 eapConfig.setFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY, mEapSubjectMatch); in loadWifiEnterpriseConfig() 513 eapConfig.setFieldValue(WifiEnterpriseConfig.ENGINE_ID_KEY, mEapEngineID); in loadWifiEnterpriseConfig() [all …]
|
D | CarrierNetworkNotifier.java | 23 import android.net.wifi.WifiEnterpriseConfig; 24 import android.net.wifi.WifiEnterpriseConfig.Eap; 68 network.enterpriseConfig = new WifiEnterpriseConfig(); in createRecommendedNetworkConfig()
|
D | WifiKeyStore.java | 20 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()
|
D | CarrierNetworkConfig.java | 27 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()
|
D | NetworkListStoreData.java | 23 import android.net.wifi.WifiEnterpriseConfig; 162 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork() 213 WifiEnterpriseConfig enterpriseConfig = null; in parseNetwork()
|
D | CarrierNetworkEvaluator.java | 21 import android.net.wifi.WifiEnterpriseConfig; 121 config.enterpriseConfig = new WifiEnterpriseConfig(); in evaluateNetworks()
|
D | NetworkSuggestionStoreData.java | 20 import android.net.wifi.WifiEnterpriseConfig; 195 != WifiEnterpriseConfig.Eap.NONE) { in serializeNetworkSuggestion() 285 WifiEnterpriseConfig enterpriseConfig = null; in parseNetworkSuggestion()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 26 import android.net.wifi.WifiEnterpriseConfig; 128 if (phase2 == null) phase2 = WifiEnterpriseConfig.Phase2.NONE; in createEapConfig() 292 return WifiEnterpriseConfig.Eap.TLS; in getEapMethod() 295 return WifiEnterpriseConfig.Eap.TTLS; in getEapMethod() 298 return WifiEnterpriseConfig.Eap.PEAP; in getEapMethod() 310 return WifiEnterpriseConfig.Phase2.PAP; in getPhase2() 313 return WifiEnterpriseConfig.Phase2.MSCHAP; in getPhase2() 316 return WifiEnterpriseConfig.Phase2.MSCHAPV2; in getPhase2() 319 return WifiEnterpriseConfig.Phase2.GTC; in getPhase2()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiEnterpriseConfig.java | 38 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 …]
|
D | WifiNetworkSuggestion.java | 76 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()
|
D | WifiNetworkSpecifier.java | 85 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()
|
D | WifiEnterpriseConfig.aidl | 19 parcelable WifiEnterpriseConfig;
|