/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiApConfigStore.java | 204 config.preSharedKey = in.readUTF(); in loadApConfiguration() 235 out.writeUTF(config.preSharedKey); in writeApConfiguration() 256 config.preSharedKey = randomUUID.substring(0, 8) + randomUUID.substring(9, 13); in getDefaultApConfiguration() 280 config.preSharedKey = randomUUID.substring(0, 8) + randomUUID.substring(9, 13); in generateLocalOnlyHotspotConfig() 314 private static boolean validateApConfigPreSharedKey(String preSharedKey) { in validateApConfigPreSharedKey() argument 315 if (preSharedKey.length() < PSK_MIN_LEN || preSharedKey.length() > PSK_MAX_LEN) { in validateApConfigPreSharedKey() 322 preSharedKey.getBytes(StandardCharsets.UTF_8); in validateApConfigPreSharedKey() 353 String preSharedKey = apConfig.preSharedKey; in validateApWifiConfiguration() local 354 boolean hasPreSharedKey = !TextUtils.isEmpty(preSharedKey); in validateApWifiConfiguration() 377 if (!validateApConfigPreSharedKey(preSharedKey)) { in validateApWifiConfiguration()
|
D | WifiConfigurationUtil.java | 250 if (!Objects.equals(existingConfig.preSharedKey, newConfig.preSharedKey)) { in hasCredentialChanged() 486 && !validatePsk(config.preSharedKey, isAdd)) { in validate()
|
D | HostapdHal.java | 263 nwParams.pskPassphrase = (config.preSharedKey != null) ? config.preSharedKey : ""; in addAccessPoint()
|
D | WifiConfigManager.java | 418 if (!TextUtils.isEmpty(configuration.preSharedKey)) { in maskPasswordsInWifiConfiguration() 419 configuration.preSharedKey = PASSWORD_MASK; in maskPasswordsInWifiConfiguration() 785 if (externalConfig.preSharedKey != null in mergeWithInternalWifiConfiguration() 786 && !externalConfig.preSharedKey.equals(PASSWORD_MASK)) { in mergeWithInternalWifiConfiguration() 787 internalConfig.preSharedKey = externalConfig.preSharedKey; in mergeWithInternalWifiConfiguration() 2107 if (!TextUtils.equals(network1.preSharedKey, network2.preSharedKey)) { in shouldNetworksBeLinked()
|
D | SupplicantStaNetworkHal.java | 207 config.preSharedKey = null; in loadWifiConfiguration() 209 config.preSharedKey = NativeUtil.addEnclosingQuotes(mPskPassphrase); in loadWifiConfiguration() 211 config.preSharedKey = NativeUtil.hexStringFromByteArray(mPsk); in loadWifiConfiguration() 277 if (config.preSharedKey != null) { in saveWifiConfiguration() 278 if (config.preSharedKey.startsWith("\"")) { in saveWifiConfiguration() 279 if (!setPskPassphrase(NativeUtil.removeEnclosingQuotes(config.preSharedKey))) { in saveWifiConfiguration() 284 if (!setPsk(NativeUtil.hexStringToByteArray(config.preSharedKey))) { in saveWifiConfiguration()
|
D | WifiBackupDataV1Parser.java | 307 configuration.preSharedKey = (String) value; in parseWifiConfigurationFromXml()
|
D | WifiBackupRestore.java | 626 configuration.preSharedKey = in createWifiConfiguration()
|
D | WifiStateMachine.java | 1999 if (config.preSharedKey != null in getLogRecString() 2000 && !config.preSharedKey.equals("*")) { in getLogRecString() 2025 if (config.preSharedKey != null) { in getLogRecString() 5622 if (config != null && config.preSharedKey != null) { in broadcastWifiCredentialChanged()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiApConfigStoreTest.java | 99 String ssid, String preSharedKey, int keyManagement, int band, int channel) { in setupApConfig() argument 102 config.preSharedKey = preSharedKey; in setupApConfig() 118 assertEquals(config1.preSharedKey, config2.preSharedKey); in verifyApConfig() 520 config.preSharedKey = TEST_DEFAULT_HOTSPOT_PSK; in testOpenNetworkConfigInValidateApWifiConfigurationCheck() 524 config.preSharedKey = null; in testOpenNetworkConfigInValidateApWifiConfigurationCheck() 526 config.preSharedKey = ""; in testOpenNetworkConfigInValidateApWifiConfigurationCheck() 542 config.preSharedKey = null; in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck() 544 config.preSharedKey = ""; in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck() 548 config.preSharedKey = in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck() 553 config.preSharedKey = in testWpa2PskNetworkConfigInValidateApWifiConfigurationCheck() [all …]
|
D | WifiConfigurationUtilTest.java | 222 config.preSharedKey = "abcd123455151234556788990034556667332345667322344556676743233445"; in testValidatePositiveCases_Hex() 235 config.preSharedKey = WifiConfigurationUtil.PASSWORD_MASK; in testValidatePositiveCases_MaskedPskString() 329 config.preSharedKey = "\"abcdffeeretretyetreteteteabe34tetrertertrsraaaaaaaaaaa345eqwrweewq" in testValidateNegativeCases_BadAsciiPskLength() 332 config.preSharedKey = "\"454\""; in testValidateNegativeCases_BadAsciiPskLength() 345 config.preSharedKey = "\"abcdfefeeretrety"; in testValidateNegativeCases_MalformedAsciiPskString() 357 config.preSharedKey = "abcd123456788990013453445345465465476546"; in testValidateNegativeCases_BadHexPskLength() 359 config.preSharedKey = ""; in testValidateNegativeCases_BadHexPskLength() 372 config.preSharedKey = "adbdfgretrtyrtyrty"; in testValidateNegativeCases_MalformedHexPskString()
|
D | WifiConfigStoreLegacyTest.java | 207 if (!TextUtils.isEmpty(config.preSharedKey)) { in createPskMap() 208 pskMap.put(config.configKey(), config.preSharedKey); in createPskMap() 284 if (!TextUtils.isEmpty(configuration.preSharedKey)) { in createMaskedWifiConfiguration() 285 newConfig.preSharedKey = MASKED_FIELD_VALUE; in createMaskedWifiConfiguration()
|
D | HostapdHalTest.java | 164 configuration.preSharedKey = NETWORK_PSK; in testAddAccessPointSuccess_Psk_Band2G() 231 configuration.preSharedKey = NETWORK_PSK; in testAddAccessPointSuccess_Psk_Band5G_Hidden() 269 configuration.preSharedKey = NETWORK_PSK; in testAddAccessPointSuccess_Psk_Band2G_WithACS() 307 configuration.preSharedKey = NETWORK_PSK; in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC() 344 configuration.preSharedKey = NETWORK_PSK; in testAddAccessPointSuccess_Psk_BandAny_WithACS() 382 configuration.preSharedKey = NETWORK_PSK; in testAddAccessPointSuccess_Psk_BandAny_Downgraded_WithoutACS()
|
D | WifiConfigurationTestUtil.java | 252 configuration.preSharedKey = TEST_PSK; in createPskNetwork() 260 configuration.preSharedKey = TEST_PSK; in createPskNetwork() 460 assertEquals(expected.preSharedKey, actual.preSharedKey); in assertCommonConfigurationElementsEqual() 553 assertEquals(expected.preSharedKey, actual.preSharedKey); in assertConfigurationEqualForSupplicant()
|
D | WifiConfigManagerTest.java | 1278 assertFalse(pskNetwork.preSharedKey.equals(newPsk)); in testUpdatePreSharedKeyClearsHasEverConnected() 1279 pskNetwork.preSharedKey = newPsk; in testUpdatePreSharedKeyClearsHasEverConnected() 1451 someRandomNetworkWithAllMaskedFields.preSharedKey = WifiConfigurationTestUtil.TEST_PSK; in testUpdateIgnoresMaskedPasswords() 1465 assertEquals(someRandomNetworkWithAllMaskedFields.preSharedKey, in testUpdateIgnoresMaskedPasswords() 1466 retrievedNetworkWithPassword.preSharedKey); in testUpdateIgnoresMaskedPasswords() 1479 assertEquals(someRandomNetworkWithAllMaskedFields.preSharedKey, in testUpdateIgnoresMaskedPasswords() 1480 retrievedNetworkWithPassword.preSharedKey); in testUpdateIgnoresMaskedPasswords() 1522 networkWithPasswords.preSharedKey = WifiConfigurationTestUtil.TEST_PSK; in testGetConfiguredNetworksMasksPasswords() 1536 assertEquals(networkWithPasswords.preSharedKey, retrievedNetworkWithPassword.preSharedKey); in testGetConfiguredNetworksMasksPasswords() 1543 assertEquals(networkWithPasswords.preSharedKey, retrievedNetworkWithPassword.preSharedKey); in testGetConfiguredNetworksMasksPasswords() [all …]
|
D | WifiBackupRestoreTest.java | 843 expectedConfiguration.preSharedKey = WifiConfigurationTestUtil.TEST_PSK; in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey() 913 if (configuration.preSharedKey != null) { in writeConfigurationToWpaSupplicantConf() 914 out.write(" " + "psk=" + configuration.preSharedKey + "\n"); in writeConfigurationToWpaSupplicantConf()
|
D | SupplicantStaNetworkHalTest.java | 145 config.preSharedKey = "945ef00c463c2a7c2496376b13263d1531366b46377179a4b17b393687450779"; in testPskNetworkWifiConfigurationSaveLoad() 162 config.preSharedKey = "\"quoted_psd\""; in testPskNetworkWifiConfigurationSaveRemovesPskQuotes() 165 NativeUtil.removeEnclosingQuotes(config.preSharedKey)); in testPskNetworkWifiConfigurationSaveRemovesPskQuotes()
|
D | SoftApManagerTest.java | 186 config.preSharedKey = TEST_PASSWORD; in startSoftApWithPassphraseInConfig()
|
D | WifiServiceImplTest.java | 2817 apConfig.preSharedKey = "thisIsABadPassword"; in createValidSoftApConfiguration()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConfiguration.java | 328 public String preSharedKey; field in WifiConfiguration 1692 if (this.preSharedKey != null) { in toString() 2025 preSharedKey = source.preSharedKey; in WifiConfiguration() 2105 dest.writeString(preSharedKey); in writeToParcel() 2171 config.preSharedKey = in.readString(); 2234 BackupUtils.writeString(out, preSharedKey); in getBytesForBackup() 2256 config.preSharedKey = BackupUtils.readString(in); in getWifiConfigFromBackup()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 97 config.preSharedKey = password; in createPskConfig() 99 config.preSharedKey = quotedString(password); in createPskConfig()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtil.java | 389 XmlUtil.writeNextValue(out, XML_TAG_PRE_SHARED_KEY, configuration.preSharedKey); in writeCommonElementsToXml() 529 configuration.preSharedKey = (String) value; in parseFromXml()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 17913 field public java.lang.String preSharedKey;
|
/frameworks/base/config/ |
D | hiddenapi-public-dex.txt | 26905 Landroid/net/wifi/WifiConfiguration;->preSharedKey:Ljava/lang/String;
|
/frameworks/base/api/ |
D | current.txt | 27998 field public java.lang.String preSharedKey;
|