Home
last modified time | relevance | path

Searched refs:wepKeys (Results 1 – 16 of 16) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreLegacyTest.java180 if (!TextUtils.isEmpty(config.wepKeys[0])) { in createWepKey0Map()
181 wepKeyMap.put(config.configKey(), config.wepKeys[0]); in createWepKey0Map()
190 if (!TextUtils.isEmpty(config.wepKeys[1])) { in createWepKey1Map()
191 wepKeyMap.put(config.configKey(), config.wepKeys[1]); in createWepKey1Map()
200 if (!TextUtils.isEmpty(config.wepKeys[2])) { in createWepKey2Map()
201 wepKeyMap.put(config.configKey(), config.wepKeys[2]); in createWepKey2Map()
210 if (!TextUtils.isEmpty(config.wepKeys[3])) { in createWepKey3Map()
211 wepKeyMap.put(config.configKey(), config.wepKeys[3]); in createWepKey3Map()
250 if (!TextUtils.isEmpty(configuration.wepKeys[0])) { in createMaskedWifiConfiguration()
251 newConfig.wepKeys[0] = MASKED_FIELD_VALUE; in createMaskedWifiConfiguration()
[all …]
DWifiBackupRestoreTest.java744 if (configuration.wepKeys[0] != null) { in writeConfigurationToWpaSupplicantConf()
745 out.write(" " + "wep_key0=" + configuration.wepKeys[0] + "\n"); in writeConfigurationToWpaSupplicantConf()
747 if (configuration.wepKeys[1] != null) { in writeConfigurationToWpaSupplicantConf()
748 out.write(" " + "wep_key1=" + configuration.wepKeys[1] + "\n"); in writeConfigurationToWpaSupplicantConf()
750 if (configuration.wepKeys[2] != null) { in writeConfigurationToWpaSupplicantConf()
751 out.write(" " + "wep_key2=" + configuration.wepKeys[2] + "\n"); in writeConfigurationToWpaSupplicantConf()
753 if (configuration.wepKeys[3] != null) { in writeConfigurationToWpaSupplicantConf()
754 out.write(" " + "wep_key3=" + configuration.wepKeys[3] + "\n"); in writeConfigurationToWpaSupplicantConf()
756 if (configuration.wepKeys[0] != null || configuration.wepKeys[1] != null in writeConfigurationToWpaSupplicantConf()
757 || configuration.wepKeys[2] != null || configuration.wepKeys[3] != null) { in writeConfigurationToWpaSupplicantConf()
DWifiConfigurationTestUtil.java264 configuration.wepKeys = TEST_WEP_KEYS; in createWepNetwork()
280 configuration.wepKeys[0] = TEST_WEP_KEYS[0]; in createWepNetworkWithSingleKey()
428 assertEquals(expected.wepKeys, actual.wepKeys); in assertCommonConfigurationElementsEqual()
520 assertEquals(expected.wepKeys, actual.wepKeys); in assertConfigurationEqualForSupplicant()
DWifiConfigManagerTest.java904 String[] wepKeys = in testMultipleUpdatesSingleNetwork() local
908 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
915 for (int i = 1; i < network.wepKeys.length; i++) { in testMultipleUpdatesSingleNetwork()
916 wepKeys[i] = ""; in testMultipleUpdatesSingleNetwork()
919 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
927 wepKeys[0] = ""; in testMultipleUpdatesSingleNetwork()
929 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
1234 assertFalse(wepNetwork.wepKeys[0].equals("newpassword")); in testUpdateWepKeysClearsHasEverConnected()
1235 wepNetwork.wepKeys[0] = "newpassword"; in testUpdateWepKeysClearsHasEverConnected()
1390 someRandomNetworkWithAllMaskedFields.wepKeys = WifiConfigurationTestUtil.TEST_WEP_KEYS; in testUpdateIgnoresMaskedPasswords()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java75 public static boolean hasAnyValidWepKey(String[] wepKeys) { in hasAnyValidWepKey() argument
76 for (int i = 0; i < wepKeys.length; i++) { in hasAnyValidWepKey()
77 if (wepKeys[i] != null) { in hasAnyValidWepKey()
104 && hasAnyValidWepKey(config.wepKeys)); in isConfigForWepNetwork()
221 if (!Arrays.equals(existingConfig.wepKeys, newConfig.wepKeys)) { in hasCredentialChanged()
DWifiBackupRestore.java672 configuration.wepKeys[0] = in createWifiConfiguration()
676 configuration.wepKeys[1] = in createWifiConfiguration()
680 configuration.wepKeys[2] = in createWifiConfiguration()
684 configuration.wepKeys[3] = in createWifiConfiguration()
DWifiConfigManager.java418 if (configuration.wepKeys != null) { in maskPasswordsInWifiConfiguration()
419 for (int i = 0; i < configuration.wepKeys.length; i++) { in maskPasswordsInWifiConfiguration()
420 if (!TextUtils.isEmpty(configuration.wepKeys[i])) { in maskPasswordsInWifiConfiguration()
421 configuration.wepKeys[i] = PASSWORD_MASK; in maskPasswordsInWifiConfiguration()
752 if (externalConfig.wepKeys != null) { in mergeWithInternalWifiConfiguration()
754 for (int i = 0; i < internalConfig.wepKeys.length; i++) { in mergeWithInternalWifiConfiguration()
755 if (externalConfig.wepKeys[i] != null in mergeWithInternalWifiConfiguration()
756 && !externalConfig.wepKeys[i].equals(PASSWORD_MASK)) { in mergeWithInternalWifiConfiguration()
757 internalConfig.wepKeys[i] = externalConfig.wepKeys[i]; in mergeWithInternalWifiConfiguration()
DSupplicantStaNetworkHal.java192 config.wepKeys[i] = null; in loadWifiConfiguration()
194 config.wepKeys[i] = NativeUtil.bytesToHexOrQuotedAsciiString(mWepKey); in loadWifiConfiguration()
281 if (config.wepKeys != null) { in saveWifiConfiguration()
282 for (int i = 0; i < config.wepKeys.length; i++) { in saveWifiConfiguration()
283 if (config.wepKeys[i] != null) { in saveWifiConfiguration()
285 i, NativeUtil.hexOrQuotedAsciiStringToBytes(config.wepKeys[i]))) { in saveWifiConfiguration()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java354 private static void writeWepKeysToXml(XmlSerializer out, String[] wepKeys) in writeWepKeysToXml() argument
356 String[] wepKeysToWrite = new String[wepKeys.length]; in writeWepKeysToXml()
358 for (int i = 0; i < wepKeys.length; i++) { in writeWepKeysToXml()
359 if (wepKeys[i] == null) { in writeWepKeysToXml()
362 wepKeysToWrite[i] = wepKeys[i]; in writeWepKeysToXml()
387 writeWepKeysToXml(out, configuration.wepKeys); in writeCommonElementsToXml()
469 private static void populateWepKeysFromXmlValue(Object value, String[] wepKeys) in populateWepKeysFromXmlValue() argument
475 if (wepKeysInData.length != wepKeys.length) { in populateWepKeysFromXmlValue()
479 for (int i = 0; i < wepKeys.length; i++) { in populateWepKeysFromXmlValue()
481 wepKeys[i] = null; in populateWepKeysFromXmlValue()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java305 public String[] wepKeys; field in WifiConfiguration
1415 wepKeys = new String[4]; in WifiConfiguration()
1416 for (int i = 0; i < wepKeys.length; i++) { in WifiConfiguration()
1417 wepKeys[i] = null; in WifiConfiguration()
1811 } else if (wepKeys[0] != null) { in configKey()
1953 wepKeys = new String[4]; in WifiConfiguration()
1954 for (int i = 0; i < wepKeys.length; i++) { in WifiConfiguration()
1955 wepKeys[i] = source.wepKeys[i]; in WifiConfiguration()
2034 for (String wepKey : wepKeys) { in writeToParcel()
2102 for (int i = 0; i < config.wepKeys.length; i++) {
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java75 config.wepKeys[0] = password; in createWepConfig()
77 config.wepKeys[0] = quotedString(password); in createWepConfig()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java100 config.wepKeys[0] = "45592364648547"; in testScanResultMatchingWithNetwork()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java1167 return (config.wepKeys[0] != null) ? SECURITY_WEP : SECURITY_NONE; in getSecurity()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17916 field public java.lang.String[] wepKeys;
/frameworks/base/api/
Dcurrent.txt26360 field public java.lang.String[] wepKeys;
Dsystem-current.txt28858 field public java.lang.String[] wepKeys;