Searched refs:wepKeys (Results 1 - 14 of 14) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConfigStoreLegacyTest.java217 if (!TextUtils.isEmpty(config.wepKeys[0])) {
218 wepKeyMap.put(config.configKey(), config.wepKeys[0]);
227 if (!TextUtils.isEmpty(config.wepKeys[1])) {
228 wepKeyMap.put(config.configKey(), config.wepKeys[1]);
237 if (!TextUtils.isEmpty(config.wepKeys[2])) {
238 wepKeyMap.put(config.configKey(), config.wepKeys[2]);
247 if (!TextUtils.isEmpty(config.wepKeys[3])) {
248 wepKeyMap.put(config.configKey(), config.wepKeys[3]);
287 if (!TextUtils.isEmpty(configuration.wepKeys[0])) {
288 newConfig.wepKeys[
[all...]
H A DWifiBackupRestoreTest.java916 if (configuration.wepKeys[0] != null) {
917 out.write(" " + "wep_key0=" + configuration.wepKeys[0] + "\n");
919 if (configuration.wepKeys[1] != null) {
920 out.write(" " + "wep_key1=" + configuration.wepKeys[1] + "\n");
922 if (configuration.wepKeys[2] != null) {
923 out.write(" " + "wep_key2=" + configuration.wepKeys[2] + "\n");
925 if (configuration.wepKeys[3] != null) {
926 out.write(" " + "wep_key3=" + configuration.wepKeys[3] + "\n");
928 if (configuration.wepKeys[0] != null || configuration.wepKeys[
[all...]
H A DWifiConfigManagerTest.java931 * addition. The fields being reset in this test are the |preSharedKey| and |wepKeys|.
942 // Now add |wepKeys| to the network. We don't need to update the |allowedKeyManagement|
944 String[] wepKeys =
948 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx);
954 // Now empty out 3 of the |wepKeys[]| and ensure that those keys have been reset correctly.
955 for (int i = 1; i < network.wepKeys.length; i++) {
956 wepKeys[i] = "";
959 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyIdx);
967 wepKeys[0] = "";
969 assertAndSetNetworkWepKeysAndTxIndex(network, wepKeys, wepTxKeyId
3698 assertAndSetNetworkWepKeysAndTxIndex( WifiConfiguration configuration, String[] wepKeys, int wepTxKeyIdx) argument
[all...]
H A DWifiConfigurationTestUtil.java275 configuration.wepKeys = TEST_WEP_KEYS;
290 configuration.wepKeys[0] = TEST_WEP_KEYS[0];
441 && WifiConfigurationUtil.hasAnyValidWepKey(configuration.wepKeys)) {
461 assertEquals(expected.wepKeys, actual.wepKeys);
554 assertEquals(expected.wepKeys, actual.wepKeys);
/frameworks/base/wifi/tests/src/android/net/wifi/
H A DWifiConfigurationTest.java113 config.wepKeys = null;
122 config.wepKeys = new String[0];
131 config.wepKeys = new String[1];
140 config.wepKeys = new String[] {"test"};
149 config.wepKeys = new String[] {null, null, "test"};
161 config.wepKeys = null;
173 config.wepKeys = null;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiBackupDataV1Parser.java310 populateWepKeysFromXmlValue(value, configuration.wepKeys);
373 * Populate wepKeys array elements only if they were non-empty in the backup data.
377 private static void populateWepKeysFromXmlValue(Object value, String[] wepKeys) argument
383 if (wepKeysInData.length != wepKeys.length) {
387 for (int i = 0; i < wepKeys.length; i++) {
389 wepKeys[i] = null;
391 wepKeys[i] = wepKeysInData[i];
H A DWifiConfigurationUtil.java95 * Checks if the provided |wepKeys| array contains any non-null value;
97 public static boolean hasAnyValidWepKey(String[] wepKeys) { argument
98 for (int i = 0; i < wepKeys.length; i++) {
99 if (wepKeys[i] != null) {
126 && hasAnyValidWepKey(config.wepKeys));
253 if (!Arrays.equals(existingConfig.wepKeys, newConfig.wepKeys)) {
H A DWifiBackupRestore.java630 configuration.wepKeys[0] =
634 configuration.wepKeys[1] =
638 configuration.wepKeys[2] =
642 configuration.wepKeys[3] =
H A DWifiConfigManager.java415 * This currently masks the following elements: psk, wepKeys & enterprise config password.
421 if (configuration.wepKeys != null) {
422 for (int i = 0; i < configuration.wepKeys.length; i++) {
423 if (!TextUtils.isEmpty(configuration.wepKeys[i])) {
424 configuration.wepKeys[i] = PASSWORD_MASK;
792 if (externalConfig.wepKeys != null) {
794 for (int i = 0; i < internalConfig.wepKeys.length; i++) {
795 if (externalConfig.wepKeys[i] != null
796 && !externalConfig.wepKeys[i].equals(PASSWORD_MASK)) {
797 internalConfig.wepKeys[
[all...]
H A DSupplicantStaNetworkHal.java201 config.wepKeys[i] = null;
203 config.wepKeys[i] = NativeUtil.bytesToHexOrQuotedString(mWepKey);
293 if (config.wepKeys != null) {
294 for (int i = 0; i < config.wepKeys.length; i++) {
295 if (config.wepKeys[i] != null) {
297 i, NativeUtil.hexOrQuotedStringToBytes(config.wepKeys[i]))) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DXmlUtil.java357 private static void writeWepKeysToXml(XmlSerializer out, String[] wepKeys) argument
359 String[] wepKeysToWrite = new String[wepKeys.length];
361 for (int i = 0; i < wepKeys.length; i++) {
362 if (wepKeys[i] == null) {
365 wepKeysToWrite[i] = wepKeys[i];
390 writeWepKeysToXml(out, configuration.wepKeys);
471 * Populate wepKeys array elements only if they were non-empty in the backup data.
475 private static void populateWepKeysFromXmlValue(Object value, String[] wepKeys) argument
481 if (wepKeysInData.length != wepKeys.length) {
485 for (int i = 0; i < wepKeys
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConfiguration.java342 public String[] wepKeys; field in class:WifiConfiguration
725 if (wepKeys != null) {
726 for (int i = 0; i < wepKeys.length; i++) {
727 if (wepKeys[i] != null) {
1510 wepKeys = new String[4];
1511 for (int i = 0; i < wepKeys.length; i++) {
1512 wepKeys[i] = null;
1884 } else if (wepKeys[0] != null) {
2031 wepKeys = new String[4];
2032 for (int i = 0; i < wepKeys
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DWifiConfigurationHelper.java75 config.wepKeys[0] = password;
77 config.wepKeys[0] = quotedString(password);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DAccessPoint.java1312 return (config.wepKeys[0] != null) ? SECURITY_WEP : SECURITY_NONE;

Completed in 1992 milliseconds