Home
last modified time | relevance | path

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

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiConfigurationTest.java104 config.wepKeys = null; in testIsOpenNetwork_IsOpen_NullWepKeys()
113 config.wepKeys = new String[0]; in testIsOpenNetwork_IsOpen_ZeroLengthWepKeysArray()
122 config.wepKeys = new String[1]; in testIsOpenNetwork_IsOpen_NullWepKeysArray()
131 config.wepKeys = new String[] {"test"}; in testIsOpenNetwork_NotOpen_HasWepKeys()
140 config.wepKeys = new String[] {null, null, "test"}; in testIsOpenNetwork_NotOpen_HasNullWepKeyFollowedByNonNullKey()
155 config.wepKeys = null; in testIsOpenNetwork_NotOpen_HasAuthType()
167 config.wepKeys = null; in testIsOpenNetwork_NotOpen_HasAuthTypeNoneAndMore()
340 config.wepKeys[0] = "TestWep"; in testGetSsidAndSecurityTypeString()
345 config.wepKeys[0] = null; in testGetSsidAndSecurityTypeString()
346 config.wepKeys[2] = "TestWep"; in testGetSsidAndSecurityTypeString()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java1145 if (configuration.wepKeys[0] != null) { in writeConfigurationToWpaSupplicantConf()
1146 out.write(" " + "wep_key0=" + configuration.wepKeys[0] + "\n"); in writeConfigurationToWpaSupplicantConf()
1148 if (configuration.wepKeys[1] != null) { in writeConfigurationToWpaSupplicantConf()
1149 out.write(" " + "wep_key1=" + configuration.wepKeys[1] + "\n"); in writeConfigurationToWpaSupplicantConf()
1151 if (configuration.wepKeys[2] != null) { in writeConfigurationToWpaSupplicantConf()
1152 out.write(" " + "wep_key2=" + configuration.wepKeys[2] + "\n"); in writeConfigurationToWpaSupplicantConf()
1154 if (configuration.wepKeys[3] != null) { in writeConfigurationToWpaSupplicantConf()
1155 out.write(" " + "wep_key3=" + configuration.wepKeys[3] + "\n"); in writeConfigurationToWpaSupplicantConf()
1157 if (configuration.wepKeys[0] != null || configuration.wepKeys[1] != null in writeConfigurationToWpaSupplicantConf()
1158 || configuration.wepKeys[2] != null || configuration.wepKeys[3] != null) { in writeConfigurationToWpaSupplicantConf()
DWifiConfigurationTestUtil.java335 configuration.wepKeys = TEST_WEP_KEYS; in createWepNetwork()
350 configuration.wepKeys[0] = TEST_WEP_KEYS[0]; in createWepNetworkWithSingleKey()
547 && WifiConfigurationUtil.hasAnyValidWepKey(configuration.wepKeys)) { in getScanResultCapsForNetwork()
607 assertEquals(expected.wepKeys, actual.wepKeys); in assertCommonConfigurationElementsEqual()
719 assertEquals(expected.wepKeys, actual.wepKeys); in assertConfigurationEqualForSupplicant()
DWifiConfigManagerTest.java1632 String[] wepKeys = in testMultipleUpdatesSingleNetwork() local
1636 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
1643 for (int i = 1; i < network.wepKeys.length; i++) { in testMultipleUpdatesSingleNetwork()
1644 wepKeys[i] = ""; in testMultipleUpdatesSingleNetwork()
1647 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
1655 wepKeys[0] = ""; in testMultipleUpdatesSingleNetwork()
1657 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx); in testMultipleUpdatesSingleNetwork()
2036 assertFalse(wepNetwork.wepKeys[0].equals("newpassword")); in testUpdateWepKeysClearsHasEverConnected()
2037 wepNetwork.wepKeys[0] = "newpassword"; in testUpdateWepKeysClearsHasEverConnected()
2194 someRandomNetworkWithAllMaskedFields.wepKeys = WifiConfigurationTestUtil.TEST_WEP_KEYS; in testUpdateIgnoresMaskedPasswords()
[all …]
DSupplicantStaIfaceHalTest.java2488 config.wepKeys[0] = wepKey; in executeAndValidateConnectSequenceWithKeyMgmt()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java321 populateWepKeysFromXmlValue(value, configuration.wepKeys); in parseWifiConfigurationFromXmlInternal()
399 private static void populateWepKeysFromXmlValue(Object value, String[] wepKeys) in populateWepKeysFromXmlValue() argument
405 if (wepKeysInData.length != wepKeys.length) { in populateWepKeysFromXmlValue()
409 for (int i = 0; i < wepKeys.length; i++) { in populateWepKeysFromXmlValue()
411 wepKeys[i] = null; in populateWepKeysFromXmlValue()
413 wepKeys[i] = wepKeysInData[i]; in populateWepKeysFromXmlValue()
DWifiConfigurationUtil.java78 public static boolean hasAnyValidWepKey(String[] wepKeys) { in hasAnyValidWepKey() argument
79 for (int i = 0; i < wepKeys.length; i++) { in hasAnyValidWepKey()
80 if (wepKeys[i] != null) { in hasAnyValidWepKey()
142 && hasAnyValidWepKey(config.wepKeys)); in isConfigForWepNetwork()
298 if (!Arrays.equals(existingConfig.wepKeys, newConfig.wepKeys)) { in hasCredentialChanged()
DWifiBackupRestore.java683 configuration.wepKeys[0] = in createWifiConfiguration()
687 configuration.wepKeys[1] = in createWifiConfiguration()
691 configuration.wepKeys[2] = in createWifiConfiguration()
695 configuration.wepKeys[3] = in createWifiConfiguration()
DWifiConfigManager.java595 if (configuration.wepKeys != null) { in maskPasswordsInWifiConfiguration()
596 for (int i = 0; i < configuration.wepKeys.length; i++) { in maskPasswordsInWifiConfiguration()
597 if (!TextUtils.isEmpty(configuration.wepKeys[i])) { in maskPasswordsInWifiConfiguration()
598 configuration.wepKeys[i] = PASSWORD_MASK; in maskPasswordsInWifiConfiguration()
975 if (externalConfig.wepKeys != null) { in mergeWithInternalWifiConfiguration()
977 for (int i = 0; i < internalConfig.wepKeys.length; i++) { in mergeWithInternalWifiConfiguration()
978 if (externalConfig.wepKeys[i] != null in mergeWithInternalWifiConfiguration()
979 && !externalConfig.wepKeys[i].equals(PASSWORD_MASK)) { in mergeWithInternalWifiConfiguration()
980 internalConfig.wepKeys[i] = externalConfig.wepKeys[i]; in mergeWithInternalWifiConfiguration()
DSupplicantStaNetworkHal.java205 config.wepKeys[i] = null; in loadWifiConfiguration()
207 config.wepKeys[i] = NativeUtil.bytesToHexOrQuotedString(mWepKey); in loadWifiConfiguration()
397 if (config.wepKeys != null) { in saveWifiConfiguration()
398 for (int i = 0; i < config.wepKeys.length; i++) { in saveWifiConfiguration()
399 if (config.wepKeys[i] != null) { in saveWifiConfiguration()
401 i, NativeUtil.hexOrQuotedStringToBytes(config.wepKeys[i]))) { in saveWifiConfiguration()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java367 private static void writeWepKeysToXml(XmlSerializer out, String[] wepKeys) in writeWepKeysToXml() argument
369 String[] wepKeysToWrite = new String[wepKeys.length]; in writeWepKeysToXml()
371 for (int i = 0; i < wepKeys.length; i++) { in writeWepKeysToXml()
372 if (wepKeys[i] == null) { in writeWepKeysToXml()
375 wepKeysToWrite[i] = wepKeys[i]; in writeWepKeysToXml()
431 writeWepKeysToXml(out, configuration.wepKeys); in writeCommonElementsToXml()
530 private static void populateWepKeysFromXmlValue(Object value, String[] wepKeys) in populateWepKeysFromXmlValue() argument
536 if (wepKeysInData.length != wepKeys.length) { in populateWepKeysFromXmlValue()
540 for (int i = 0; i < wepKeys.length; i++) { in populateWepKeysFromXmlValue()
542 wepKeys[i] = null; in populateWepKeysFromXmlValue()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java650 public String[] wepKeys; field in WifiConfiguration
1082 if (wepKeys != null) { in isOpenNetwork()
1083 for (int i = 0; i < wepKeys.length; i++) { in isOpenNetwork()
1084 if (wepKeys[i] != null) { in isOpenNetwork()
2098 wepKeys = new String[4]; in WifiConfiguration()
2099 for (int i = 0; i < wepKeys.length; i++) { in WifiConfiguration()
2100 wepKeys[i] = null; in WifiConfiguration()
2549 } else if (wepTxKeyIndex >= 0 && wepTxKeyIndex < wepKeys.length in getSsidAndSecurityTypeString()
2550 && wepKeys[wepTxKeyIndex] != null) { in getSsidAndSecurityTypeString()
2731 wepKeys = new String[4]; in WifiConfiguration()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java76 config.wepKeys[0] = password; in createWepConfig()
78 config.wepKeys[0] = quotedString(password); in createWepConfig()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java150 return (config.wepKeys[0] != null) ? SECURITY_WEP : SECURITY_NONE; in getSecurityTypeFromWifiConfiguration()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java1795 && config.wepTxKeyIndex < config.wepKeys.length in getSecurity()
1796 && config.wepKeys[config.wepTxKeyIndex] != null) in getSecurity()
/frameworks/base/wifi/api/
Dcurrent.txt132 field @Deprecated public String[] wepKeys;
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt17916 field public java.lang.String[] wepKeys;
/frameworks/base/api/
Dcurrent.txt31212 field @Deprecated public String[] wepKeys;