/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiEnterpriseConfigTest.java | 326 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in copyConstructor() local 327 enterpriseConfig.setPassword("*"); in copyConstructor() 328 enterpriseConfig.setEapMethod(Eap.TTLS); in copyConstructor() 329 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyConstructor() 330 mEnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in copyConstructor() 342 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in copyFromExternal() local 343 enterpriseConfig.setPassword("*"); in copyFromExternal() 344 enterpriseConfig.setEapMethod(Eap.TTLS); in copyFromExternal() 345 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyFromExternal() 347 mEnterpriseConfig.copyFromExternal(enterpriseConfig, "*"); in copyFromExternal() [all …]
|
D | WifiConfigurationTest.java | 313 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 …]
|
D | WifiNetworkSpecifierTest.java | 109 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() local 110 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 111 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 116 .setWpa2EnterpriseConfig(enterpriseConfig) in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 134 assertEquals(enterpriseConfig.getEapMethod(), in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 135 wifiNetworkSpecifier.wifiConfiguration.enterpriseConfig.getEapMethod()); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 136 assertEquals(enterpriseConfig.getPhase2Method(), in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() 137 wifiNetworkSpecifier.wifiConfiguration.enterpriseConfig.getPhase2Method()); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
|
D | WifiNetworkSuggestionTest.java | 166 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork() local 167 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork() 168 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork() 172 .setWpa3EnterpriseConfig(enterpriseConfig) in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtil.java | 1127 public static void writeToXml(XmlSerializer out, WifiEnterpriseConfig enterpriseConfig, in writeToXml() argument 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() 1148 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PRIVATE_KEY_ID_KEY)); in writeToXml() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationUtilTest.java | 94 null, eapConfig.enterpriseConfig)); in testEnterpriseConfigAdded() 105 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigEapChangeDetected() 106 peapConfig.enterpriseConfig)); in testEnterpriseConfigEapChangeDetected() 121 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigPhase2ChangeDetected() 122 papConfig.enterpriseConfig)); in testEnterpriseConfigPhase2ChangeDetected() 140 eapConfigNoCerts.enterpriseConfig, eapConfig1Cert.enterpriseConfig)); in testCaCertificateAddedDetected() 158 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testDifferentCaCertificateDetected() 159 eapConfigNewCert.enterpriseConfig)); in testDifferentCaCertificateDetected() 177 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testCaCertificateChangesDetected() 178 eapConfigAddedCert.enterpriseConfig)); in testCaCertificateChangesDetected() [all …]
|
D | WifiConfigManagerTest.java | 1420 network.enterpriseConfig = in testUpdateWifiEnterpriseConfig() 1429 network.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateWifiEnterpriseConfig() 1430 network.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testUpdateWifiEnterpriseConfig() 1457 network.enterpriseConfig = null; in testUpdateSingleNetworkWithNullValues() 1503 network.enterpriseConfig = in testUpdateSingleNetworkFailureDoesNotModifyOriginal() 1511 network.enterpriseConfig = in testUpdateSingleNetworkFailureDoesNotModifyOriginal() 1895 eapNetwork.enterpriseConfig = in testUpdateEnterpriseConfigClearsHasEverConnected() 1900 assertFalse(eapNetwork.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected() 1901 eapNetwork.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected() 1914 someRandomNetworkWithAllMaskedFields.enterpriseConfig.setPassword( in testUpdateIgnoresMaskedPasswords() [all …]
|
D | WifiConfigurationTestUtil.java | 158 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig() 361 configuration.enterpriseConfig.setEapMethod(eapMethod); in createEapNetwork() 362 configuration.enterpriseConfig.setPhase2Method(phase2Method); in createEapNetwork() 372 configuration.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in createEapSuiteBNetwork() 373 configuration.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in createEapSuiteBNetwork() 609 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForConfigStore() 639 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForConfigManagerAddOrUpdate() 664 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForSupplicant()
|
D | NetworkSuggestionStoreDataTest.java | 159 configuration.enterpriseConfig = in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 179 configuration.enterpriseConfig, in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 180 deserializedSuggestion.wns.wifiConfiguration.enterpriseConfig); in serializeDeserializeSingleNetworkSuggestionFromSingleApp()
|
D | CarrierNetworkEvaluatorTest.java | 264 assertEquals("", selected.enterpriseConfig.getAnonymousIdentity()); in testSelectOneFromMultiple() 265 assertTrue(TelephonyUtil.isSimEapMethod(selected.enterpriseConfig.getEapMethod())); in testSelectOneFromMultiple() 415 assertEquals("", selected.enterpriseConfig.getAnonymousIdentity()); in testSupportsEncryptedImsi() 416 assertTrue(TelephonyUtil.isSimEapMethod(selected.enterpriseConfig.getEapMethod())); in testSupportsEncryptedImsi()
|
D | WifiKeyStoreTest.java | 164 savedNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testAddFromBothSavedAndSuggestionNetwork() 165 suggestionNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testAddFromBothSavedAndSuggestionNetwork()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkListStoreData.java | 173 if (config.enterpriseConfig != null in serializeNetwork() 174 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork() 177 WifiEnterpriseConfigXmlUtil.writeToXml(out, config.enterpriseConfig, encryptionUtil); in serializeNetwork() 234 WifiEnterpriseConfig enterpriseConfig = null; in parseNetwork() local 263 if (enterpriseConfig != null) { in parseNetwork() 267 enterpriseConfig = in parseNetwork() 305 if (enterpriseConfig != null) { in parseNetwork() 306 configuration.enterpriseConfig = enterpriseConfig; in parseNetwork()
|
D | CarrierNetworkNotifier.java | 68 network.enterpriseConfig = new WifiEnterpriseConfig(); in createRecommendedNetworkConfig() 69 network.enterpriseConfig.setEapMethod(recommendedNetwork.carrierApEapType); in createRecommendedNetworkConfig() 70 network.enterpriseConfig.setIdentity(""); in createRecommendedNetworkConfig() 71 network.enterpriseConfig.setAnonymousIdentity(""); in createRecommendedNetworkConfig()
|
D | NetworkSuggestionStoreData.java | 205 if (suggestion.wifiConfiguration.enterpriseConfig != null in serializeNetworkSuggestion() 206 && suggestion.wifiConfiguration.enterpriseConfig.getEapMethod() in serializeNetworkSuggestion() 211 out, suggestion.wifiConfiguration.enterpriseConfig, encryptionUtil); in serializeNetworkSuggestion() 303 WifiEnterpriseConfig enterpriseConfig = null; in parseNetworkSuggestion() local 350 if (enterpriseConfig != null) { in parseNetworkSuggestion() 354 enterpriseConfig = XmlUtil.WifiEnterpriseConfigXmlUtil.parseFromXml( in parseNetworkSuggestion() 375 if (enterpriseConfig != null) { in parseNetworkSuggestion() 376 wifiConfiguration.enterpriseConfig = enterpriseConfig; in parseNetworkSuggestion()
|
D | WifiKeyStore.java | 280 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in updateNetworkKeys() local 281 if (!needsKeyStore(enterpriseConfig)) { in updateNetworkKeys() 292 ? existingConfig.enterpriseConfig : null, enterpriseConfig, keyId)) { in updateNetworkKeys() 306 Credentials.CA_CERTIFICATE + config.enterpriseConfig.getCaCertificateAlias(), in updateNetworkKeys()
|
D | CarrierNetworkEvaluator.java | 120 if (config.enterpriseConfig == null) { in evaluateNetworks() 121 config.enterpriseConfig = new WifiEnterpriseConfig(); in evaluateNetworks() 123 config.enterpriseConfig.setEapMethod(eapType); in evaluateNetworks()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiNetworkSuggestion.java | 216 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa2EnterpriseConfig() 217 checkNotNull(enterpriseConfig); in setWpa2EnterpriseConfig() 218 mWpa2EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa2EnterpriseConfig() 230 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3EnterpriseConfig() 231 checkNotNull(enterpriseConfig); in setWpa3EnterpriseConfig() 232 mWpa3EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa3EnterpriseConfig() 329 configuration.enterpriseConfig = mWpa2EnterpriseConfig; in setSecurityParamsInWifiConfiguration() 332 configuration.enterpriseConfig = mWpa3EnterpriseConfig; in setSecurityParamsInWifiConfiguration()
|
D | WifiNetworkSpecifier.java | 239 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa2EnterpriseConfig() 240 checkNotNull(enterpriseConfig); in setWpa2EnterpriseConfig() 241 mWpa2EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa2EnterpriseConfig() 253 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3EnterpriseConfig() 254 checkNotNull(enterpriseConfig); in setWpa3EnterpriseConfig() 255 mWpa3EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa3EnterpriseConfig() 287 configuration.enterpriseConfig = mWpa2EnterpriseConfig; in setSecurityParamsInWifiConfiguration() 290 configuration.enterpriseConfig = mWpa3EnterpriseConfig; in setSecurityParamsInWifiConfiguration()
|
D | WifiEnterpriseConfig.java | 239 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); 244 enterpriseConfig.mFields.put(key, value); 247 enterpriseConfig.mEapMethod = in.readInt(); 248 enterpriseConfig.mPhase2Method = in.readInt(); 249 enterpriseConfig.mCaCerts = ParcelUtil.readCertificates(in); 250 enterpriseConfig.mClientPrivateKey = ParcelUtil.readPrivateKey(in); 251 enterpriseConfig.mClientCertificateChain = ParcelUtil.readCertificates(in); 252 enterpriseConfig.mIsAppInstalledDeviceKeyAndCert = in.readBoolean(); 253 enterpriseConfig.mIsAppInstalledCaCert = in.readBoolean(); 254 return enterpriseConfig;
|
D | WifiConfiguration.java | 612 public WifiEnterpriseConfig enterpriseConfig; field in WifiConfiguration 1779 enterpriseConfig = new WifiEnterpriseConfig(); in WifiConfiguration() 1805 && enterpriseConfig != null in isPasspoint() 1806 && enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE; in isPasspoint() 1834 && enterpriseConfig != null in isEnterprise() 1835 && enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE; in isEnterprise() 2000 sbuf.append(enterpriseConfig); in toString() 2118 + trimStringForKeyId(enterpriseConfig.getKeyId(current != null in getKeyIdForCredentials() 2119 ? current.enterpriseConfig : null)); in getKeyIdForCredentials() 2395 enterpriseConfig = new WifiEnterpriseConfig(source.enterpriseConfig); in WifiConfiguration() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 411 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in getWifiConfig() local 412 enterpriseConfig.setRealm(mConfig.getCredential().getRealm()); in getWifiConfig() 413 enterpriseConfig.setDomainSuffixMatch(mConfig.getHomeSp().getFqdn()); in getWifiConfig() 415 buildEnterpriseConfigForUserCredential(enterpriseConfig, in getWifiConfig() 417 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig() 419 buildEnterpriseConfigForCertCredential(enterpriseConfig); in getWifiConfig() 420 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig() 422 buildEnterpriseConfigForSimCredential(enterpriseConfig, in getWifiConfig() 425 wifiConfig.enterpriseConfig = enterpriseConfig; in getWifiConfig() 464 credential.setRealm(wifiConfig.enterpriseConfig.getRealm()); in convertFromWifiConfig() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 135 config.enterpriseConfig.setPassword(password); in createEapConfig() 136 config.enterpriseConfig.setEapMethod(eapMethod); in createEapConfig() 137 config.enterpriseConfig.setPhase2Method(phase2); in createEapConfig() 138 config.enterpriseConfig.setIdentity(identity); in createEapConfig() 139 config.enterpriseConfig.setAnonymousIdentity(anonymousIdentity); in createEapConfig() 140 config.enterpriseConfig.setCaCertificateAliases(new String[] {caCert}); in createEapConfig() 141 config.enterpriseConfig.setClientCertificateAlias(clientCert); in createEapConfig()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointManagerTest.java | 1346 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredential() 1347 wifiConfig.enterpriseConfig.setPassword(password); in addLegacyPasspointConfigWithUserCredential() 1348 wifiConfig.enterpriseConfig.setRealm(realm); in addLegacyPasspointConfigWithUserCredential() 1349 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredential() 1350 wifiConfig.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.PAP); in addLegacyPasspointConfigWithUserCredential() 1351 wifiConfig.enterpriseConfig.setCaCertificateAlias(caCertificateAlias); in addLegacyPasspointConfigWithUserCredential() 1398 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert() 1399 wifiConfig.enterpriseConfig.setPassword(password); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert() 1400 wifiConfig.enterpriseConfig.setRealm(realm); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert() 1401 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert() [all …]
|
D | PasspointNetworkEvaluatorTest.java | 234 assertNotNull(addedConfig.getValue().enterpriseConfig); in evaluateScansWithNetworkMatchingHomeProvider() 235 assertEquals("", addedConfig.getValue().enterpriseConfig.getAnonymousIdentity()); in evaluateScansWithNetworkMatchingHomeProvider() 277 assertNotNull(addedConfig.getValue().enterpriseConfig); in evaluateScansWithNetworkMatchingRoamingProvider() 278 assertEquals("", addedConfig.getValue().enterpriseConfig.getAnonymousIdentity()); in evaluateScansWithNetworkMatchingRoamingProvider() 322 assertNotNull(addedConfig.getValue().enterpriseConfig); in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork() 323 assertEquals("", addedConfig.getValue().enterpriseConfig.getAnonymousIdentity()); in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork() 428 assertEquals("", result.enterpriseConfig.getAnonymousIdentity()); in evaluateSIMProviderWithNetworkSupportingEncryptedIMSI() 429 assertTrue(TelephonyUtil.isSimEapMethod(result.enterpriseConfig.getEapMethod())); in evaluateSIMProviderWithNetworkSupportingEncryptedIMSI()
|
D | PasspointProviderTest.java | 1004 WifiEnterpriseConfig wifiEnterpriseConfig = wifiConfig.enterpriseConfig; in getWifiConfigWithUserCredential() 1075 WifiEnterpriseConfig wifiEnterpriseConfig = wifiConfig.enterpriseConfig; in getWifiConfigWithCertCredential() 1130 WifiEnterpriseConfig wifiEnterpriseConfig = wifiConfig.enterpriseConfig; in getWifiConfigWithSimCredential() 1170 wifiConfig.enterpriseConfig.setIdentity(username); in convertFromWifiConfigWithUserCredential() 1171 wifiConfig.enterpriseConfig.setPassword(password); in convertFromWifiConfigWithUserCredential() 1172 wifiConfig.enterpriseConfig.setRealm(realm); in convertFromWifiConfigWithUserCredential() 1173 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in convertFromWifiConfigWithUserCredential() 1174 wifiConfig.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.PAP); in convertFromWifiConfigWithUserCredential() 1216 wifiConfig.enterpriseConfig.setRealm(realm); in convertFromWifiConfigWithSimCredential() 1217 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in convertFromWifiConfigWithSimCredential() [all …]
|