/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiBackupRestoreTest.java | 23 import android.net.wifi.WifiConfiguration; 178 List<WifiConfiguration> configurations = new ArrayList<>(); in testSingleOpenNetworkBackupRestore() 182 List<WifiConfiguration> retrievedConfigurations = in testSingleOpenNetworkBackupRestore() 194 List<WifiConfiguration> configurations = new ArrayList<>(); in testSingleOpenHiddenNetworkBackupRestore() 198 List<WifiConfiguration> retrievedConfigurations = in testSingleOpenHiddenNetworkBackupRestore() 209 List<WifiConfiguration> configurations = new ArrayList<>(); in testSinglePskNetworkBackupRestore() 213 List<WifiConfiguration> retrievedConfigurations = in testSinglePskNetworkBackupRestore() 224 List<WifiConfiguration> configurations = new ArrayList<>(); in testSinglePskHiddenNetworkBackupRestore() 228 List<WifiConfiguration> retrievedConfigurations = in testSinglePskHiddenNetworkBackupRestore() 239 List<WifiConfiguration> configurations = new ArrayList<>(); in testSingleWepNetworkBackupRestore() [all …]
|
D | WifiConfigManagerTest.java | 33 import android.net.wifi.WifiConfiguration; 34 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus; 175 .updateNetworkKeys(any(WifiConfiguration.class), any())) in setUp() 179 setupStoreDataForRead(new ArrayList<WifiConfiguration>(), in setUp() 180 new ArrayList<WifiConfiguration>(), new HashSet<String>()); in setUp() 218 WifiConfiguration openNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testAddNetworkIsRejectedBeforeLoadFromStore() 245 WifiConfiguration openNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testAddSingleOpenNetwork() 246 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetwork() 251 List<WifiConfiguration> retrievedNetworks = in testAddSingleOpenNetwork() 256 assertEquals(WifiConfiguration.Status.DISABLED, retrievedNetworks.get(0).status); in testAddSingleOpenNetwork() [all …]
|
D | WifiApConfigStoreTest.java | 27 import android.net.wifi.WifiConfiguration; 28 import android.net.wifi.WifiConfiguration.KeyMgmt; 98 private WifiConfiguration setupApConfig( in setupApConfig() 100 WifiConfiguration config = new WifiConfiguration(); in setupApConfig() 109 private void writeApConfigFile(WifiConfiguration config) throws Exception { in writeApConfigFile() 111 "writeApConfiguration", String.class, WifiConfiguration.class); in writeApConfigFile() 116 private void verifyApConfig(WifiConfiguration config1, WifiConfiguration config2) { in verifyApConfig() 124 private void verifyDefaultApConfig(WifiConfiguration config, String expectedSsid) { in verifyDefaultApConfig() 128 assertEquals(WifiConfiguration.AP_BAND_2GHZ, config.apBand); in verifyDefaultApConfig() 134 private void verifyDefaultLocalOnlyApConfig(WifiConfiguration config, String expectedSsid) { in verifyDefaultLocalOnlyApConfig() [all …]
|
D | WifiConfigStoreLegacyTest.java | 24 import android.net.wifi.WifiConfiguration; 88 WifiConfiguration pskNetwork = WifiConfigurationTestUtil.createPskNetwork(); in testLoadFromStores() 89 WifiConfiguration wepNetwork = WifiConfigurationTestUtil.createWepNetwork(); in testLoadFromStores() 90 WifiConfiguration eapNetwork = WifiConfigurationTestUtil.createEapNetwork(); in testLoadFromStores() 91 WifiConfiguration passpointNetwork = WifiConfigurationTestUtil.createPasspointNetwork(); in testLoadFromStores() 111 final List<WifiConfiguration> networks = new ArrayList<>(); in testLoadFromStores() 129 public boolean answer(String ifaceName, Map<String, WifiConfiguration> configs, in testLoadFromStores() 131 for (Map.Entry<String, WifiConfiguration> entry: in testLoadFromStores() 165 WifiConfiguration pskNetwork = WifiConfigurationTestUtil.createPskNetwork(); in testLoadFromStoresWithNullConfigKey() 166 WifiConfiguration wepNetwork = WifiConfigurationTestUtil.createWepNetwork(); in testLoadFromStoresWithNullConfigKey() [all …]
|
D | WifiConfigurationTestUtil.java | 26 import android.net.wifi.WifiConfiguration; 27 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus; 102 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() 104 final WifiConfiguration config = new WifiConfiguration(); in generateWifiConfig() 109 config.status = enabled ? WifiConfiguration.Status.ENABLED in generateWifiConfig() 110 : WifiConfiguration.Status.DISABLED; in generateWifiConfig() 128 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() 131 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig() 135 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfig() 138 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in generateWifiConfig() [all …]
|
D | ConfigurationMapTest.java | 28 import android.net.wifi.WifiConfiguration; 51 private static final List<WifiConfiguration> CONFIGS = Arrays.asList( 101 private Collection<WifiConfiguration> getEnabledNetworksForCurrentUser() { in getEnabledNetworksForCurrentUser() 102 List<WifiConfiguration> list = new ArrayList<>(); in getEnabledNetworksForCurrentUser() 103 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEnabledNetworksForCurrentUser() 104 if (config.status != WifiConfiguration.Status.DISABLED) { in getEnabledNetworksForCurrentUser() 111 private WifiConfiguration getEphemeralForCurrentUser(String ssid) { in getEphemeralForCurrentUser() 112 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEphemeralForCurrentUser() 120 private void addNetworks(List<WifiConfiguration> configs) { in addNetworks() 121 for (WifiConfiguration config : configs) { in addNetworks() [all …]
|
D | WifiConfigurationUtilTest.java | 23 import android.net.wifi.WifiConfiguration; 59 final WifiConfiguration configuration = new WifiConfiguration(); in isVisibleToAnyProfile() 220 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_Hex() 232 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_MaskedPskString() 247 WifiConfiguration config = new WifiConfiguration(); in testValidatePositiveCases_OnlyUpdateIgnoresNullSsid() 258 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_BadAsciiSsidLength() 272 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_BadUtf8SsidLength() 287 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_MalformedAsciiSsidString() 299 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_BadHexSsidLength() 314 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_MalformedHexSsidString() [all …]
|
D | WifiNetworkSelectorTestUtil.java | 30 import android.net.wifi.WifiConfiguration; 31 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus; 55 WifiConfiguration[] mWifiConfigs; 57 ScanDetailsAndWifiConfigs(List<ScanDetail> scanDetails, WifiConfiguration[] configs) { in ScanDetailsAndWifiConfigs() 66 WifiConfiguration[] getWifiConfigs() { in getWifiConfigs() 89 WifiConfiguration[] savedConfigs = generateWifiConfigurations(ssids, securities); in setupScanDetailsAndConfigStore() 104 ScanResult chosenScanResult, WifiConfiguration chosenCandidate) { in verifySelectedScanResult() 143 public static WifiConfiguration[] generateWifiConfigurations(String[] ssids, in generateWifiConfigurations() 153 WifiConfiguration[] configs = new WifiConfiguration[ssids.length]; in generateWifiConfigurations() 181 final WifiConfiguration[] configs) { in prepareConfigStore() [all …]
|
D | HostapdHalTest.java | 31 import android.net.wifi.WifiConfiguration; 160 WifiConfiguration configuration = new WifiConfiguration(); in testAddAccessPointSuccess_Psk_Band2G() 163 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band2G() 166 configuration.apBand = WifiConfiguration.AP_BAND_2GHZ; in testAddAccessPointSuccess_Psk_Band2G() 194 WifiConfiguration configuration = new WifiConfiguration(); in testAddAccessPointSuccess_Open_Band5G() 197 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddAccessPointSuccess_Open_Band5G() 199 configuration.apBand = WifiConfiguration.AP_BAND_5GHZ; in testAddAccessPointSuccess_Open_Band5G() 227 WifiConfiguration configuration = new WifiConfiguration(); in testAddAccessPointSuccess_Psk_Band5G_Hidden() 230 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band5G_Hidden() 233 configuration.apBand = WifiConfiguration.AP_BAND_5GHZ; in testAddAccessPointSuccess_Psk_Band5G_Hidden() [all …]
|
D | NetworkListStoreDataTest.java | 27 import android.net.wifi.WifiConfiguration; 221 private List<WifiConfiguration> deserializeData(byte[] data, boolean shared) throws Exception { in deserializeData() 240 private List<WifiConfiguration> getTestNetworksConfig(boolean shared) { in getTestNetworksConfig() 241 WifiConfiguration openNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in getTestNetworksConfig() 247 WifiConfiguration eapNetwork = WifiConfigurationTestUtil.createEapNetwork(); in getTestNetworksConfig() 253 List<WifiConfiguration> networkList = new ArrayList<>(); in getTestNetworksConfig() 267 private byte[] getTestNetworksXmlBytes(WifiConfiguration openNetwork, in getTestNetworksXmlBytes() 268 WifiConfiguration eapNetwork) { in getTestNetworksXmlBytes() 324 List<WifiConfiguration> networkList = getTestNetworksConfig(true /* shared */); in serializeSharedConfigurations() 337 List<WifiConfiguration> networkList = getTestNetworksConfig(true /* shared */); in deserializeSharedConfigurations() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiConfigurationTest.java | 27 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus; 53 WifiConfiguration config = new WifiConfiguration(); in testWifiConfigurationParcel() 64 WifiConfiguration reconfig = WifiConfiguration.CREATOR.createFromParcel(parcelR); in testWifiConfigurationParcel() 111 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_IsOpen_NullWepKeys() 120 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_IsOpen_ZeroLengthWepKeysArray() 129 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_IsOpen_NullWepKeysArray() 138 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_NotOpen_HasWepKeys() 147 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_NotOpen_HasNullWepKeyFollowedByNonNullKey() 156 for (int keyMgmt = 0; keyMgmt < WifiConfiguration.KeyMgmt.strings.length; keyMgmt++) { in testIsOpenNetwork_NotOpen_HasAuthType() 157 if (keyMgmt == WifiConfiguration.KeyMgmt.NONE) continue; in testIsOpenNetwork_NotOpen_HasAuthType() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ConfigurationMap.java | 4 import android.net.wifi.WifiConfiguration; 14 private final Map<Integer, WifiConfiguration> mPerID = new HashMap<>(); 16 private final Map<Integer, WifiConfiguration> mPerIDForCurrentUser = new HashMap<>(); 17 private final Map<ScanResultMatchInfo, WifiConfiguration> 29 public WifiConfiguration put(WifiConfiguration config) { in put() 30 final WifiConfiguration current = mPerID.put(config.networkId, config); in put() 40 public WifiConfiguration remove(int netID) { in remove() 41 WifiConfiguration config = mPerID.remove(netID); in remove() 48 Iterator<Map.Entry<ScanResultMatchInfo, WifiConfiguration>> scanResultMatchInfoEntries = in remove() 75 public WifiConfiguration getForAllUsers(int netid) { in getForAllUsers() [all …]
|
D | WifiConfigManager.java | 32 import android.net.wifi.WifiConfiguration; 33 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus; 224 public int compareNetworksWithSameStatus(WifiConfiguration a, WifiConfiguration b) { 325 private int mLastSelectedNetworkId = WifiConfiguration.INVALID_NETWORK_ID; 327 WifiConfiguration.NetworkSelectionStatus.INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP; 417 private void maskPasswordsInWifiConfiguration(WifiConfiguration configuration) { in maskPasswordsInWifiConfiguration() 439 private void maskRandomizedMacAddressInWifiConfiguration(WifiConfiguration configuration) { in maskRandomizedMacAddressInWifiConfiguration() 452 private WifiConfiguration createExternalWifiConfiguration( in createExternalWifiConfiguration() 453 WifiConfiguration configuration, boolean maskPasswords) { in createExternalWifiConfiguration() 454 WifiConfiguration network = new WifiConfiguration(configuration); in createExternalWifiConfiguration() [all …]
|
D | WifiApConfigStore.java | 21 import android.net.wifi.WifiConfiguration; 22 import android.net.wifi.WifiConfiguration.KeyMgmt; 69 private WifiConfiguration mWifiApConfig = null; 119 public synchronized WifiConfiguration getApConfiguration() { in getApConfiguration() 120 WifiConfiguration config = apBandCheckConvert(mWifiApConfig); in getApConfiguration() 135 public synchronized void setApConfiguration(WifiConfiguration config) { in setApConfiguration() 148 private WifiConfiguration apBandCheckConvert(WifiConfiguration config) { in apBandCheckConvert() 152 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ) { in apBandCheckConvert() 154 WifiConfiguration convertedConfig = new WifiConfiguration(config); in apBandCheckConvert() 155 convertedConfig.apBand = WifiConfiguration.AP_BAND_ANY; in apBandCheckConvert() [all …]
|
D | WifiConfigurationUtil.java | 22 import android.net.wifi.WifiConfiguration; 72 public static boolean isVisibleToAnyProfile(WifiConfiguration config, List<UserInfo> profiles) { in isVisibleToAnyProfile() 109 public static boolean isConfigForPskNetwork(WifiConfiguration config) { in isConfigForPskNetwork() 110 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK); in isConfigForPskNetwork() 116 public static boolean isConfigForEapNetwork(WifiConfiguration config) { in isConfigForEapNetwork() 117 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in isConfigForEapNetwork() 118 || config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X)); in isConfigForEapNetwork() 124 public static boolean isConfigForWepNetwork(WifiConfiguration config) { in isConfigForWepNetwork() 125 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE) in isConfigForWepNetwork() 132 public static boolean isConfigForOpenNetwork(WifiConfiguration config) { in isConfigForOpenNetwork() [all …]
|
D | NetworkListStoreData.java | 21 import android.net.wifi.WifiConfiguration; 22 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus; 62 private List<WifiConfiguration> mSharedConfigurations; 67 private List<WifiConfiguration> mUserConfigurations; 116 public void setSharedConfigurations(List<WifiConfiguration> configs) { in setSharedConfigurations() 125 public List<WifiConfiguration> getSharedConfigurations() { in getSharedConfigurations() 127 return new ArrayList<WifiConfiguration>(); in getSharedConfigurations() 132 public void setUserConfigurations(List<WifiConfiguration> configs) { in setUserConfigurations() 141 public List<WifiConfiguration> getUserConfigurations() { in getUserConfigurations() 143 return new ArrayList<WifiConfiguration>(); in getUserConfigurations() [all …]
|
D | WifiConfigStoreLegacy.java | 20 import android.net.wifi.WifiConfiguration; 117 private static WifiConfiguration lookupWifiConfigurationUsingConfigKeyHash( in lookupWifiConfigurationUsingConfigKeyHash() 118 Map<String, WifiConfiguration> configurationMap, int hashCode) { in lookupWifiConfigurationUsingConfigKeyHash() 119 for (Map.Entry<String, WifiConfiguration> entry : configurationMap.entrySet()) { in lookupWifiConfigurationUsingConfigKeyHash() 133 private void loadFromIpConfigStore(Map<String, WifiConfiguration> configurationMap) { in loadFromIpConfigStore() 145 WifiConfiguration config = in loadFromIpConfigStore() 165 Map<String, WifiConfiguration> configurationMap, Set<String> deletedEphemeralSSIDs) { in loadFromNetworkHistory() 184 Map<String, WifiConfiguration> configurationMap, in loadFromWpaSupplicant() 208 Map<String, WifiConfiguration> configurationMap, in loadFromPasspointConfigStore() 218 for (Map.Entry<String, WifiConfiguration> entry : configurationMap.entrySet()) { in loadFromPasspointConfigStore() [all …]
|
D | WifiBackupRestore.java | 20 import android.net.wifi.WifiConfiguration; 143 public byte[] retrieveBackupDataFromConfigurations(List<WifiConfiguration> configurations) { in retrieveBackupDataFromConfigurations() 182 XmlSerializer out, List<WifiConfiguration> configurations) in writeNetworkConfigurationsToXml() 185 for (WifiConfiguration configuration : configurations) { in writeNetworkConfigurationsToXml() 207 private void writeNetworkConfigurationToXml(XmlSerializer out, WifiConfiguration configuration) in writeNetworkConfigurationToXml() 223 public List<WifiConfiguration> retrieveConfigurationsFromBackupData(byte[] data) { in retrieveConfigurationsFromBackupData() 336 public List<WifiConfiguration> retrieveConfigurationsFromSupplicantBackupData( in retrieveConfigurationsFromSupplicantBackupData() 359 List<WifiConfiguration> configurations = supplicantNetworks.retrieveWifiConfigurations(); in retrieveConfigurationsFromSupplicantBackupData() 370 for (WifiConfiguration configuration : configurations) { in retrieveConfigurationsFromSupplicantBackupData() 434 public static final String SUPPLICANT_KEY_SSID = WifiConfiguration.ssidVarName; [all …]
|
D | SavedNetworkEvaluator.java | 21 import android.net.wifi.WifiConfiguration; 89 List<WifiConfiguration> savedNetworks = mWifiConfigManager.getSavedNetworks(); in updateSavedNetworkSelectionStatus() 96 for (WifiConfiguration network : savedNetworks) { in updateSavedNetworkSelectionStatus() 117 WifiConfiguration.NetworkSelectionStatus status = network.getNetworkSelectionStatus(); in updateSavedNetworkSelectionStatus() 120 for (int index = WifiConfiguration.NetworkSelectionStatus in updateSavedNetworkSelectionStatus() 122 index < WifiConfiguration.NetworkSelectionStatus in updateSavedNetworkSelectionStatus() 131 .append(WifiConfiguration.NetworkSelectionStatus in updateSavedNetworkSelectionStatus() 153 private int calculateBssidScore(ScanResult scanResult, WifiConfiguration network, in calculateBssidScore() 154 WifiConfiguration currentNetwork, String currentBssid, in calculateBssidScore() 176 if (lastUserSelectedNetworkId != WifiConfiguration.INVALID_NETWORK_ID in calculateBssidScore() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | ApConfigUtilTest.java | 23 import android.net.wifi.WifiConfiguration; 146 WifiConfiguration.AP_BAND_2GHZ, null, ALLOWED_5G_FREQS)); in chooseApChannel2GBandWithNoAllowedChannel() 155 WifiConfiguration.AP_BAND_2GHZ, mAllowed2GChannels, ALLOWED_5G_FREQS); in chooseApChannel2GBandWithAllowedChannels() 165 WifiConfiguration.AP_BAND_5GHZ, mAllowed2GChannels, ALLOWED_5G_FREQS); in chooseApChannel5GBandWithAllowedChannels() 176 WifiConfiguration.AP_BAND_5GHZ, mAllowed2GChannels, null)); in chooseApChannel5GBandWithNoAllowedChannels() 185 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfigWithoutHal() 187 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfigWithoutHal() 203 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfig5GBandNoCountryCode() 204 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfig5GBandNoCountryCode() 216 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfigWithChannelSpecified() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
D | WifiClientTest.java | 25 import android.net.wifi.WifiConfiguration; 26 import android.net.wifi.WifiConfiguration.KeyMgmt; 27 import android.net.wifi.WifiConfiguration.Status; 116 WifiConfiguration config = new WifiConfiguration(); in testAddRemoveNetwork() 125 List<WifiConfiguration> configList = mWifiManager.getConfiguredNetworks(); in testAddRemoveNetwork() 127 for (WifiConfiguration c : configList) { in testAddRemoveNetwork() 141 for (WifiConfiguration c : configList) { in testAddRemoveNetwork() 153 WifiConfiguration config = new WifiConfiguration(); in testEnableDisableNetwork() 166 List<WifiConfiguration> configList = mWifiManager.getConfiguredNetworks(); in testEnableDisableNetwork() 167 for (WifiConfiguration c : configList) { in testEnableDisableNetwork() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluatorTest.java | 33 import android.net.wifi.WifiConfiguration; 66 private static final WifiConfiguration TEST_CONFIG1 = generateWifiConfig(TEST_FQDN1); 67 private static final WifiConfiguration TEST_CONFIG2 = generateWifiConfig(TEST_FQDN2); 82 private static WifiConfiguration generateWifiConfig(String fqdn) { in generateWifiConfig() 83 WifiConfiguration config = new WifiConfiguration(); in generateWifiConfig() 94 private static PasspointProvider generateProvider(WifiConfiguration config) { in generateProvider() 149 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in evaluateScansWithNoMatch() 170 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in evaulateScansWithNoInterworkingAP() 194 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in evaluateScansWithNetworkMatchingHomeProvider() 200 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithNetworkMatchingHomeProvider() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | ScanResultUtil.java | 20 import android.net.wifi.WifiConfiguration; 96 public static WifiConfiguration createNetworkFromScanResult(ScanResult scanResult) { in createNetworkFromScanResult() 97 WifiConfiguration config = new WifiConfiguration(); in createNetworkFromScanResult() 108 WifiConfiguration config) { in setAllowedKeyManagementFromScanResult() 110 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in setAllowedKeyManagementFromScanResult() 112 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in setAllowedKeyManagementFromScanResult() 113 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X); in setAllowedKeyManagementFromScanResult() 115 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in setAllowedKeyManagementFromScanResult() 116 config.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); in setAllowedKeyManagementFromScanResult() 117 config.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.SHARED); in setAllowedKeyManagementFromScanResult() [all …]
|
D | ApConfigUtil.java | 19 import android.net.wifi.WifiConfiguration; 34 public static final int DEFAULT_AP_BAND = WifiConfiguration.AP_BAND_2GHZ; 73 if (apBand != WifiConfiguration.AP_BAND_2GHZ in chooseApChannel() 74 && apBand != WifiConfiguration.AP_BAND_5GHZ in chooseApChannel() 75 && apBand != WifiConfiguration.AP_BAND_ANY) { in chooseApChannel() 81 if (apBand == WifiConfiguration.AP_BAND_2GHZ in chooseApChannel() 82 || apBand == WifiConfiguration.AP_BAND_ANY) { in chooseApChannel() 118 WifiConfiguration config) { in updateApChannelConfig() 127 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ in updateApChannelConfig()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 23 import android.net.wifi.WifiConfiguration; 24 import android.net.wifi.WifiConfiguration.AuthAlgorithm; 25 import android.net.wifi.WifiConfiguration.KeyMgmt; 57 public static WifiConfiguration createOpenConfig(String ssid) { in createOpenConfig() 58 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig() 71 public static WifiConfiguration createWepConfig(String ssid, String password) { in createWepConfig() 72 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig() 93 public static WifiConfiguration createPskConfig(String ssid, String password) { in createPskConfig() 94 WifiConfiguration config = createGenericConfig(ssid); in createPskConfig() 118 public static WifiConfiguration createEapConfig(String ssid, String password, int eapMethod, in createEapConfig() [all …]
|