Home
last modified time | relevance | path

Searched refs:WPA_PSK (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiNetworkAgentSpecifierTest.java193 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
222 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
251 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidAndBssidPattern()
283 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidPattern()
312 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierBandMatching()
358 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierDual5GHZBandMatching()
428 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierLocalOnlyMatching()
494 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithBssidPattern()
527 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierDoesNotSatisfyNetworkSpecifierWithSsidAndBssidPattern()
570 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createDefaultWifiConfiguration()
DWifiNetworkSpecifierTest.java106 .get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
653 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierParcel()
685 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierDoesNotSatisfyNullAndAllMatch()
707 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierSatisfiesSame()
736 wifiConfiguration1.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierDoesNotSatisfyWhenKeyMgmtDifferent()
767 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierDoesNotSatisfyWhenSsidDifferent()
796 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierDoesNotSatisfyWhenBssidDifferent()
822 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierBandMatching()
873 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testRedact()
DWifiConfigurationTest.java460 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testGetSsidAndSecurityTypeString()
461 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.WPA_PSK], in testGetSsidAndSecurityTypeString()
544 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testGetNetworkKeyString()
545 assertEquals(mSsid + KeyMgmt.strings[KeyMgmt.WPA_PSK], in testGetNetworkKeyString()
823 assertEquals(KeyMgmt.WPA_PSK, configuration.getAuthType()); in testGetAuthType()
885 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testGetProfileKeyString()
887 assertEquals(createProfileKey(mSsid, KeyMgmt.strings[KeyMgmt.WPA_PSK], TEST_PACKAGE_NAME, in testGetProfileKeyString()
891 assertEquals(createProfileKey("abcdef", KeyMgmt.strings[KeyMgmt.WPA_PSK], TEST_PACKAGE_NAME, in testGetProfileKeyString()
895 assertEquals(createProfileKey(mSsid, KeyMgmt.strings[KeyMgmt.WPA_PSK], TEST_PACKAGE_NAME, in testGetProfileKeyString()
1076 KeyMgmt.WPA_PSK, KeyMgmt.SAE, KeyMgmt.WAPI_PSK}); in testAddSecurityTypes()
[all …]
DSecurityParamsTest.java328 int[] expectedAllowedKeyManagement = new int[] {KeyMgmt.WPA_PSK}; in testWpaWpa2PersonalCreator()
350 allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testCommonSetterGetter()
367 assertTrue(params.getAllowedKeyManagement().get(KeyMgmt.WPA_PSK)); in testCommonSetterGetter()
DWifiNetworkSuggestionTest.java105 .get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
136 .get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
167 .get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithNotMeteredAndReqUserInteraction()
1127 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSuggestionEqualsSame()
1135 configuration1.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSuggestionEqualsSame()
1206 configuration1.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSuggestionEqualsFailsWhenKeyMgmtIsDifferent()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DHalAidlUtil.java52 mask, KeyMgmtMask.WPA_PSK, bitset, in supplicantToWifiConfigurationKeyMgmtMask()
53 WifiConfiguration.KeyMgmt.WPA_PSK); in supplicantToWifiConfigurationKeyMgmtMask()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DWifiSecurityUtil.java57 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in getSecurity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragmentTest.java112 WifiConfiguration.KeyMgmt.WPA_PSK, "1234567890"); in setUp()
116 WifiConfiguration.KeyMgmt.WPA_PSK, "\"1234567890\""); in setUp()
582 case WifiConfiguration.KeyMgmt.WPA_PSK: in generateRegularWifiSuggestion()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
DWifiDppUtilsTest.java76 mWifiConfiguration.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in getConfiguratorQrCodeScannerIntentOrNull_hiddenSsidNetwork_hasHiddenSsidExtra()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalAidlImplTest.java710 assertEquals(KeyMgmtMask.WPA_PSK, (mSupplicantVariables.keyMgmtMask & KeyMgmtMask.WPA_PSK)); in testAddPskSaeAkmWhenAutoUpgradeOffloadIsSupported()
734 assertEquals(KeyMgmtMask.WPA_PSK, (mSupplicantVariables.keyMgmtMask & KeyMgmtMask.WPA_PSK)); in testPmfDisabledWhenAutoUpgradeOffloadIsSupportedAndSaeSelected()
753 assertEquals(0, (mSupplicantVariables.keyMgmtMask & KeyMgmtMask.WPA_PSK)); in testPmfEnabledWhenAutoUpgradeOffloadNotSupportedAndSaeSelected()
771 assertEquals(KeyMgmtMask.WPA_PSK, (mSupplicantVariables.keyMgmtMask & KeyMgmtMask.WPA_PSK)); in testAddPskSaeAkmWhenAutoUpgradeOffloadIsNotSupported()
DSupplicantStaNetworkHalHidlImplTest.java966 assertEquals(ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK, in testAddPskSaeAkmWhenAutoUpgradeOffloadIsSupported()
967 (mSupplicantVariables.keyMgmtMask & ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK)); in testAddPskSaeAkmWhenAutoUpgradeOffloadIsSupported()
993 assertEquals(ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK, in testAddPskSaeAkmWhenAutoUpgradeOffloadIsNotSupported()
994 (mSupplicantVariables.keyMgmtMask & ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK)); in testAddPskSaeAkmWhenAutoUpgradeOffloadIsNotSupported()
1020 assertEquals(ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK, in testPmfDisabledWhenAutoUpgradeOffloadIsSupportedAndSaeSelected()
1021 (mSupplicantVariables.keyMgmtMask & ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK)); in testPmfDisabledWhenAutoUpgradeOffloadIsSupportedAndSaeSelected()
1044 (mSupplicantVariables.keyMgmtMask & ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK)); in testPmfEnabledWhenAutoUpgradeOffloadNotSupportedAndSaeSelected()
DWifiBackupRestoreTest.java1126 expectedConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
1341 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in writeConfigurationToWpaSupplicantConf()
DWifiConfigurationUtilTest.java617 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testValidateNegativeCases_BadKeyMgmtOpenPsk()
697 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testValidateNegativeCases_InvalidKeyMgmtWithPreSharedKey()
DWifiMonitorTest.java489 akm.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testBroadcastNetworkConnectionEventWithAkm()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkHalAidlImpl.java440 if (allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in saveWifiConfiguration()
448 if (!allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK) in saveWifiConfiguration()
915 case WifiConfiguration.KeyMgmt.WPA_PSK: in wifiConfigurationToSupplicantKeyMgmtMask()
916 mask |= KeyMgmtMask.WPA_PSK; in wifiConfigurationToSupplicantKeyMgmtMask()
3543 if (keyManagementFlags.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in addFastTransitionFlags()
3571 if (keyManagementFlags.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in addSha256KeyMgmtFlags()
3606 modifiedFlags.set(WifiConfiguration.KeyMgmt.WPA_PSK); in addPskSaeUpgradableTypeFlagsIfSupported()
3617 if (!keyManagementFlags.get(WifiConfiguration.KeyMgmt.WPA_PSK) in removePskSaeUpgradableTypeFlags()
DSupplicantStaNetworkHalHidlImpl.java392 if (allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in saveWifiConfiguration()
400 if (!allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK) in saveWifiConfiguration()
851 case WifiConfiguration.KeyMgmt.WPA_PSK: in wifiConfigurationToSupplicantKeyMgmtMask()
852 mask |= ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK; in wifiConfigurationToSupplicantKeyMgmtMask()
1165 mask, ISupplicantStaNetwork.KeyMgmtMask.WPA_PSK, bitset, in supplicantToWifiConfigurationKeyMgmtMask()
1166 WifiConfiguration.KeyMgmt.WPA_PSK); in supplicantToWifiConfigurationKeyMgmtMask()
3788 if (keyManagementFlags.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in addFastTransitionFlags()
3824 if (keyManagementFlags.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in addSha256KeyMgmtFlags()
3864 modifiedFlags.set(WifiConfiguration.KeyMgmt.WPA_PSK); in addPskSaeUpgradableTypeFlagsIfSupported()
3875 if (!keyManagementFlags.get(WifiConfiguration.KeyMgmt.WPA_PSK) in removePskSaeUpgradableTypeFlags()
DWifiBackupRestore.java645 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createWifiConfiguration()
662 WifiConfiguration.KeyMgmt.WPA_PSK); in createWifiConfiguration()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java187 if (config.allowedKeyManagement.get(KeyMgmt.WPA_PSK) || in getSecurityString()
567 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in getSecurityTypeFromWifiConfiguration()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java183 allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in populateAllowedKeyManagement()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiConfiguration.java132 WPA_PSK,
154 public static final int WPA_PSK = 1; field in WifiConfiguration.KeyMgmt
772 } else if (allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in convertLegacyFieldsToSecurityParamsIfNeeded()
3839 if (allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in getAuthType()
3840 return KeyMgmt.WPA_PSK; in getAuthType()
4580 if (allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in getDefaultSecurityType()
4581 key = KeyMgmt.strings[KeyMgmt.WPA_PSK]; in getDefaultSecurityType()
DSecurityParams.java908 params.mAllowedKeyManagement.set(KeyMgmt.WPA_PSK); in createWpaWpa2PersonalParams()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DNetworkPasswordPreferenceControllerTest.java201 assertThat(config.getAuthType()).isEqualTo(WifiConfiguration.KeyMgmt.WPA_PSK); in handlePreferenceChanged_hasSecurity_networkNameSet_wifiConnected()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProvider.java239 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in updateForWPAConfiguration()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java115 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWpa()
/packages/apps/Settings/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksFragment.java354 case KeyMgmt.WPA_PSK: in isSavedWifiConfiguration()

12