Searched refs:wepKeys (Results 1 – 19 of 19) sorted by relevance
104 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 …]
1145 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()
335 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()
1632 String[] wepKeys = in testMultipleUpdatesSingleNetwork() local1636 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 …]
2488 config.wepKeys[0] = wepKey; in executeAndValidateConnectSequenceWithKeyMgmt()
321 populateWepKeysFromXmlValue(value, configuration.wepKeys); in parseWifiConfigurationFromXmlInternal()399 private static void populateWepKeysFromXmlValue(Object value, String[] wepKeys) in populateWepKeysFromXmlValue() argument405 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()
78 public static boolean hasAnyValidWepKey(String[] wepKeys) { in hasAnyValidWepKey() argument79 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()
683 configuration.wepKeys[0] = in createWifiConfiguration()687 configuration.wepKeys[1] = in createWifiConfiguration()691 configuration.wepKeys[2] = in createWifiConfiguration()695 configuration.wepKeys[3] = in createWifiConfiguration()
595 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()
205 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()
367 private static void writeWepKeysToXml(XmlSerializer out, String[] wepKeys) in writeWepKeysToXml() argument369 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() argument536 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 …]
650 public String[] wepKeys; field in WifiConfiguration1082 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 …]
76 config.wepKeys[0] = password; in createWepConfig()78 config.wepKeys[0] = quotedString(password); in createWepConfig()
150 return (config.wepKeys[0] != null) ? SECURITY_WEP : SECURITY_NONE; in getSecurityTypeFromWifiConfiguration()
1795 && config.wepTxKeyIndex < config.wepKeys.length in getSecurity()1796 && config.wepKeys[config.wepTxKeyIndex] != null) in getSecurity()
132 field @Deprecated public String[] wepKeys;
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
17916 field public java.lang.String[] wepKeys;
31212 field @Deprecated public String[] wepKeys;