Home
last modified time | relevance | path

Searched refs:allowedKeyManagement (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DScanResultUtilTest.java95 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testScanResultMatchingWithNetwork()
99 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testScanResultMatchingWithNetwork()
104 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testScanResultMatchingWithNetwork()
108 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in testScanResultMatchingWithNetwork()
123 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testNetworkCreationFromScanResult()
128 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testNetworkCreationFromScanResult()
135 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testNetworkCreationFromScanResult()
140 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in testNetworkCreationFromScanResult()
141 assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in testNetworkCreationFromScanResult()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java88 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK); in isConfigForPskNetwork()
95 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in isConfigForEapNetwork()
96 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in isConfigForEapNetwork()
103 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE) in isConfigForWepNetwork()
199 if (!Objects.equals(existingConfig.allowedKeyManagement, in hasCredentialChanged()
200 newConfig.allowedKeyManagement)) { in hasCredentialChanged()
288 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in createPnoNetwork()
290 } else if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in createPnoNetwork()
291 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in createPnoNetwork()
DWifiApConfigStore.java149 config.allowedKeyManagement.set(authType); in loadApConfiguration()
199 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in getDefaultApConfiguration()
220 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in generateLocalOnlyHotspotConfig()
DWifiNetworkHistory.java248 makeString(config.allowedKeyManagement, in writeKnownNetworkHistory()
560 if (config.allowedKeyManagement == null) { in isValid()
563 if (config.allowedKeyManagement.cardinality() > 1) { in isValid()
564 if (config.allowedKeyManagement.cardinality() != 2) { in isValid()
567 if (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in isValid()
570 if ((!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) in isValid()
571 && (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK))) { in isValid()
DWifiBackupRestore.java639 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in createWifiConfiguration()
640 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in createWifiConfiguration()
653 configuration.allowedKeyManagement.set( in createWifiConfiguration()
656 configuration.allowedKeyManagement.set( in createWifiConfiguration()
659 configuration.allowedKeyManagement.set( in createWifiConfiguration()
662 configuration.allowedKeyManagement.set( in createWifiConfiguration()
DWifiScoreReport.java311 if (currentConfiguration.allowedKeyManagement.cardinality() != 1) return false; in isHomeNetwork()
312 if (!currentConfiguration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in isHomeNetwork()
DWifiConfigManager.java785 if (externalConfig.allowedKeyManagement != null in mergeWithInternalWifiConfiguration()
786 && !externalConfig.allowedKeyManagement.isEmpty()) { in mergeWithInternalWifiConfiguration()
787 internalConfig.allowedKeyManagement = in mergeWithInternalWifiConfiguration()
788 (BitSet) externalConfig.allowedKeyManagement.clone(); in mergeWithInternalWifiConfiguration()
842 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setDefaultsInWifiConfiguration()
843 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in setDefaultsInWifiConfiguration()
2104 if (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in attemptNetworkLinking()
2122 if (!linkConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in attemptNetworkLinking()
DWifiMetrics.java153 if (config.allowedKeyManagement != null in updateFromWifiConfiguration()
154 && config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in updateFromWifiConfiguration()
1247 if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in updateSavedNetworks()
1569 info.allowedKeyManagement = bitSetToInt(config.allowedKeyManagement); in createConfigInfo()
1769 .append(" allowed_key_management=").append(info.allowedKeyManagement) in configInfoToString()
DWifiServiceImpl.java2449 if (config.allowedKeyManagement == null) in checkValidity()
2452 if (config.allowedKeyManagement.cardinality() > 1) { in checkValidity()
2453 if (config.allowedKeyManagement.cardinality() != 2) { in checkValidity()
2456 if (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in checkValidity()
2459 if ((!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) in checkValidity()
2460 && (!config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK))) { in checkValidity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DScanResultUtil.java138 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setAllowedKeyManagementFromScanResult()
140 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in setAllowedKeyManagementFromScanResult()
141 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in setAllowedKeyManagementFromScanResult()
143 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setAllowedKeyManagementFromScanResult()
147 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setAllowedKeyManagementFromScanResult()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java341 public BitSet allowedKeyManagement; field in WifiConfiguration
1410 allowedKeyManagement = new BitSet(); in WifiConfiguration()
1465 return (allowedKeyManagement.get(KeyMgmt.WPA_EAP) in isEnterprise()
1466 || allowedKeyManagement.get(KeyMgmt.IEEE8021X)) in isEnterprise()
1536 for (int k = 0; k < this.allowedKeyManagement.size(); k++) { in toString()
1537 if (this.allowedKeyManagement.get(k)) { in toString()
1718 if (allowedKeyManagement.cardinality() == 0) { in getKeyIdForCredentials()
1719 allowedKeyManagement = current.allowedKeyManagement; in getKeyIdForCredentials()
1721 if (allowedKeyManagement.get(KeyMgmt.WPA_EAP)) { in getKeyIdForCredentials()
1724 if (allowedKeyManagement.get(KeyMgmt.OSEN)) { in getKeyIdForCredentials()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java672 expectedConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testSingleNetworkSupplicantBackupRestoreWithUnknownEAPKey()
724 String allowedKeyManagement = ""; in writeConfigurationToWpaSupplicantConf() local
728 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)) { in writeConfigurationToWpaSupplicantConf()
729 allowedKeyManagement += "NONE"; in writeConfigurationToWpaSupplicantConf()
731 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in writeConfigurationToWpaSupplicantConf()
732 allowedKeyManagement += "WPA-PSK "; in writeConfigurationToWpaSupplicantConf()
734 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)) { in writeConfigurationToWpaSupplicantConf()
735 allowedKeyManagement += "WPA-EAP "; in writeConfigurationToWpaSupplicantConf()
737 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)) { in writeConfigurationToWpaSupplicantConf()
738 allowedKeyManagement += "IEEE8021X "; in writeConfigurationToWpaSupplicantConf()
[all …]
DWifiConfigurationTestUtil.java134 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfig()
137 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in generateWifiConfig()
141 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in generateWifiConfig()
142 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in generateWifiConfig()
432 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertCommonConfigurationElementsEqual()
524 assertEquals(expected.allowedKeyManagement, actual.allowedKeyManagement); in assertConfigurationEqualForSupplicant()
DWifiApConfigStoreTest.java92 config.allowedKeyManagement.set(keyManagement); in setupApConfig()
119 assertTrue(config.allowedKeyManagement.get(KeyMgmt.WPA2_PSK)); in verifyDefaultApConfig()
DWifiConfigManagerTest.java930 network.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testMultipleUpdatesSingleNetwork()
982 network.allowedKeyManagement.clear(); in testUpdateSingleNetworkWithNullValues()
1264 assertFalse(pskNetwork.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in testUpdateAllowedKeyManagementClearsHasEverConnected()
1265 pskNetwork.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in testUpdateAllowedKeyManagementClearsHasEverConnected()
2843 network1.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testAddMultipleNetworksWithSameSSIDAndDifferentKeyMgmt()
2858 network2.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddMultipleNetworksWithSameSSIDAndDifferentKeyMgmt()
3295 if (configuration.allowedKeyManagement.isEmpty()) { in setDefaults()
3296 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setDefaults()
3297 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in setDefaults()
3824 if (configuration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in createScanDetailForNetwork()
[all …]
DWifiScoreReportTest.java105 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setUp()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java60 config.allowedKeyManagement.set(KeyMgmt.NONE); in createOpenConfig()
80 config.allowedKeyManagement.set(KeyMgmt.NONE); in createWepConfig()
101 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in createPskConfig()
124 config.allowedKeyManagement.set(KeyMgmt.WPA_EAP); in createEapConfig()
125 config.allowedKeyManagement.set(KeyMgmt.IEEE8021X); in createEapConfig()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java118 config.allowedKeyManagement.set(KeyMgmt.NONE); in testAddRemoveNetwork()
155 config.allowedKeyManagement.set(KeyMgmt.NONE); in testEnableDisableNetwork()
205 config.allowedKeyManagement.set(KeyMgmt.NONE); in testSaveConfig()
DWifiSoftAPTest.java65 config.allowedKeyManagement.set(KeyMgmt.NONE); in testApSsidWithAlphabet()
/frameworks/base/packages/Osu/src/com/android/configparse/
DConfigBuilder.java211 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in buildBaseConfiguration()
212 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in buildBaseConfiguration()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/
DWifiApStress.java80 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testWifiHotSpot()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProviderTest.java651 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithUserCredential()
652 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithUserCredential()
713 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithCertCredential()
714 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithCertCredential()
762 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP)); in getWifiConfigWithSimCredential()
763 assertTrue(wifiConfig.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in getWifiConfigWithSimCredential()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java929 mConfig.allowedKeyManagement.set(KeyMgmt.NONE); in generateOpenNetworkConfig()
1160 if (config.allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in getSecurity()
1163 if (config.allowedKeyManagement.get(KeyMgmt.WPA_EAP) || in getSecurity()
1164 config.allowedKeyManagement.get(KeyMgmt.IEEE8021X)) { in getSecurity()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java284 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in getWifiConfig()
285 wifiConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in getWifiConfig()
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
DPlatformAdapter.java242 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in connect()
244 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.OSEN); in connect()

12