/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ScanResultUtilTest.java | 95 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/ |
D | WifiConfigurationUtil.java | 88 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()
|
D | WifiApConfigStore.java | 149 config.allowedKeyManagement.set(authType); in loadApConfiguration() 199 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in getDefaultApConfiguration() 220 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in generateLocalOnlyHotspotConfig()
|
D | WifiNetworkHistory.java | 248 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()
|
D | WifiBackupRestore.java | 639 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()
|
D | WifiScoreReport.java | 311 if (currentConfiguration.allowedKeyManagement.cardinality() != 1) return false; in isHomeNetwork() 312 if (!currentConfiguration.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)) { in isHomeNetwork()
|
D | WifiConfigManager.java | 785 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()
|
D | WifiMetrics.java | 153 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()
|
D | WifiServiceImpl.java | 2449 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/ |
D | ScanResultUtil.java | 138 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/ |
D | WifiConfiguration.java | 341 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/ |
D | WifiBackupRestoreTest.java | 672 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 …]
|
D | WifiConfigurationTestUtil.java | 134 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()
|
D | WifiApConfigStoreTest.java | 92 config.allowedKeyManagement.set(keyManagement); in setupApConfig() 119 assertTrue(config.allowedKeyManagement.get(KeyMgmt.WPA2_PSK)); in verifyDefaultApConfig()
|
D | WifiConfigManagerTest.java | 930 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 …]
|
D | WifiScoreReportTest.java | 105 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setUp()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 60 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/ |
D | WifiClientTest.java | 118 config.allowedKeyManagement.set(KeyMgmt.NONE); in testAddRemoveNetwork() 155 config.allowedKeyManagement.set(KeyMgmt.NONE); in testEnableDisableNetwork() 205 config.allowedKeyManagement.set(KeyMgmt.NONE); in testSaveConfig()
|
D | WifiSoftAPTest.java | 65 config.allowedKeyManagement.set(KeyMgmt.NONE); in testApSsidWithAlphabet()
|
/frameworks/base/packages/Osu/src/com/android/configparse/ |
D | ConfigBuilder.java | 211 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/ |
D | WifiApStress.java | 80 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in testWifiHotSpot()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointProviderTest.java | 651 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/ |
D | AccessPoint.java | 929 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/ |
D | PasspointProvider.java | 284 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/ |
D | PlatformAdapter.java | 242 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in connect() 244 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.OSEN); in connect()
|