Home
last modified time | relevance | path

Searched refs:WifiConfiguration (Results 1 – 25 of 150) sorted by relevance

123456

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java23 import android.net.wifi.WifiConfiguration;
241 List<WifiConfiguration> configurations = new ArrayList<>(); in testSingleOpenNetworkBackupRestore()
245 List<WifiConfiguration> retrievedConfigurations = in testSingleOpenNetworkBackupRestore()
257 List<WifiConfiguration> configurations = new ArrayList<>(); in testSingleOpenHiddenNetworkBackupRestore()
261 List<WifiConfiguration> retrievedConfigurations = in testSingleOpenHiddenNetworkBackupRestore()
272 List<WifiConfiguration> configurations = new ArrayList<>(); in testSinglePskNetworkBackupRestore()
276 List<WifiConfiguration> retrievedConfigurations = in testSinglePskNetworkBackupRestore()
287 List<WifiConfiguration> configurations = new ArrayList<>(); in testSinglePskHiddenNetworkBackupRestore()
291 List<WifiConfiguration> retrievedConfigurations = in testSinglePskHiddenNetworkBackupRestore()
302 List<WifiConfiguration> configurations = new ArrayList<>(); in testSingleWepNetworkBackupRestore()
[all …]
DWifiConfigManagerTest.java36 import android.net.wifi.WifiConfiguration;
37 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus;
213 .updateNetworkKeys(any(WifiConfiguration.class), any())) in setUp()
285 WifiConfiguration openNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testAddNetworkIsRejectedBeforeLoadFromStore()
314 WifiConfiguration openNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
315 List<WifiConfiguration> networks = new ArrayList<>(); in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
318 List<WifiConfiguration> retrievedNetworks = in testRandomizedMacIsGeneratedEvenIfKeyStoreFails()
336 WifiConfiguration openNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in testAddSingleOpenNetwork()
337 List<WifiConfiguration> networks = new ArrayList<>(); in testAddSingleOpenNetwork()
342 List<WifiConfiguration> retrievedNetworks = in testAddSingleOpenNetwork()
[all …]
DWifiConfigurationTestUtil.java27 import android.net.wifi.WifiConfiguration;
28 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus;
106 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig()
108 final WifiConfiguration config = new WifiConfiguration(); in generateWifiConfig()
113 config.status = enabled ? WifiConfiguration.Status.ENABLED in generateWifiConfig()
114 : WifiConfiguration.Status.DISABLED; in generateWifiConfig()
132 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig()
135 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig()
139 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfig()
142 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in generateWifiConfig()
[all …]
DWifiApConfigStoreTest.java34 import android.net.wifi.WifiConfiguration;
35 import android.net.wifi.WifiConfiguration.KeyMgmt;
156 private WifiConfiguration setupApConfig( in setupApConfig()
159 WifiConfiguration config = new WifiConfiguration(); in setupApConfig()
169 private void writeApConfigFile(WifiConfiguration config) throws Exception { in writeApConfigFile()
171 "writeApConfiguration", String.class, WifiConfiguration.class); in writeApConfigFile()
176 private void verifyApConfig(WifiConfiguration config1, WifiConfiguration config2) { in verifyApConfig()
185 private void verifyDefaultApConfig(WifiConfiguration config, String expectedSsid) { in verifyDefaultApConfig()
189 assertEquals(WifiConfiguration.AP_BAND_2GHZ, config.apBand); in verifyDefaultApConfig()
196 private void verifyDefaultLocalOnlyApConfig(WifiConfiguration config, String expectedSsid, in verifyDefaultLocalOnlyApConfig()
[all …]
DWifiConfigurationUtilTest.java24 import android.net.wifi.WifiConfiguration;
66 final WifiConfiguration configuration = new WifiConfiguration(); in isVisibleToAnyProfile()
236 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_Hex()
248 WifiConfiguration config = WifiConfigurationTestUtil.createPskNetwork(); in testValidatePositiveCases_MaskedPskString()
263 WifiConfiguration config = new WifiConfiguration(); in testValidatePositiveCases_OnlyUpdateIgnoresNullSsid()
274 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_BadAsciiSsidLength()
288 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_BadUtf8SsidLength()
303 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_MalformedAsciiSsidString()
315 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_BadHexSsidLength()
330 WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork(); in testValidateNegativeCases_MalformedHexSsidString()
[all …]
DConfigurationMapTest.java28 import android.net.wifi.WifiConfiguration;
52 private static final List<WifiConfiguration> CONFIGS = Arrays.asList(
102 private Collection<WifiConfiguration> getEnabledNetworksForCurrentUser() { in getEnabledNetworksForCurrentUser()
103 List<WifiConfiguration> list = new ArrayList<>(); in getEnabledNetworksForCurrentUser()
104 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEnabledNetworksForCurrentUser()
105 if (config.status != WifiConfiguration.Status.DISABLED) { in getEnabledNetworksForCurrentUser()
112 private WifiConfiguration getEphemeralForCurrentUser(String ssid) { in getEphemeralForCurrentUser()
113 for (WifiConfiguration config : mConfigs.valuesForCurrentUser()) { in getEphemeralForCurrentUser()
121 private void addNetworks(List<WifiConfiguration> configs) { in addNetworks()
122 for (WifiConfiguration config : configs) { in addNetworks()
[all …]
DWifiNetworkSelectorTestUtil.java30 import android.net.wifi.WifiConfiguration;
31 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus;
54 WifiConfiguration[] mWifiConfigs;
56 ScanDetailsAndWifiConfigs(List<ScanDetail> scanDetails, WifiConfiguration[] configs) { in ScanDetailsAndWifiConfigs()
65 WifiConfiguration[] getWifiConfigs() { in getWifiConfigs()
88 WifiConfiguration[] savedConfigs = generateWifiConfigurations(ssids, securities); in setupScanDetailsAndConfigStore()
98 WifiConfiguration[] savedConfigs) { in checkConsistencyOfScanDetailsAndWifiConfigs()
102 WifiConfiguration config = savedConfigs[i]; in checkConsistencyOfScanDetailsAndWifiConfigs()
117 ScanResult chosenScanResult, WifiConfiguration chosenCandidate) { in verifySelectedScanResult()
157 public static WifiConfiguration[] generateWifiConfigurations(String[] ssids, in generateWifiConfigurations()
[all …]
DNetworkSuggestionEvaluatorTest.java19 import static android.net.wifi.WifiConfiguration.NetworkSelectionStatus
28 import android.net.wifi.WifiConfiguration;
101 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForNoMatch()
102 WifiConfiguration candidate = mNetworkSuggestionEvaluator.evaluateNetworks( in testSelectNetworkSuggestionForNoMatch()
104 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForNoMatch()
141 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForOneMatch()
142 WifiConfiguration candidate = mNetworkSuggestionEvaluator.evaluateNetworks( in testSelectNetworkSuggestionForOneMatch()
144 (ScanDetail scanDetail, WifiConfiguration configuration, int score) -> { in testSelectNetworkSuggestionForOneMatch()
187 List<Pair<ScanDetail, WifiConfiguration>> connectableNetworks = new ArrayList<>(); in testSelectNetworkSuggestionForMultipleMatch()
188 WifiConfiguration candidate = mNetworkSuggestionEvaluator.evaluateNetworks( in testSelectNetworkSuggestionForMultipleMatch()
[all …]
DNetworkListStoreDataTest.java27 import android.net.wifi.WifiConfiguration;
229 private List<WifiConfiguration> deserializeData(byte[] data) throws Exception { in deserializeData()
246 private List<WifiConfiguration> getTestNetworksConfig(boolean shared) { in getTestNetworksConfig()
247 WifiConfiguration openNetwork = WifiConfigurationTestUtil.createOpenNetwork(); in getTestNetworksConfig()
253 openNetwork.meteredOverride = WifiConfiguration.METERED_OVERRIDE_NOT_METERED; in getTestNetworksConfig()
254 WifiConfiguration eapNetwork = WifiConfigurationTestUtil.createEapNetwork(); in getTestNetworksConfig()
260 List<WifiConfiguration> networkList = new ArrayList<>(); in getTestNetworksConfig()
274 private byte[] getTestNetworksXmlBytes(WifiConfiguration openNetwork, in getTestNetworksXmlBytes()
275 WifiConfiguration eapNetwork) { in getTestNetworksXmlBytes()
335 List<WifiConfiguration> networkList = getTestNetworksConfig(true /* shared */); in serializeSharedConfigurations()
[all …]
DWifiScoreCardProtoTest.java21 import android.net.wifi.WifiConfiguration;
60 assertEquals(WifiConfiguration.SECURITY_TYPE_OPEN, in testSecurityTypeValues()
62 assertEquals(WifiConfiguration.SECURITY_TYPE_WEP, in testSecurityTypeValues()
64 assertEquals(WifiConfiguration.SECURITY_TYPE_PSK, in testSecurityTypeValues()
66 assertEquals(WifiConfiguration.SECURITY_TYPE_EAP, in testSecurityTypeValues()
68 assertEquals(WifiConfiguration.SECURITY_TYPE_SAE, in testSecurityTypeValues()
70 assertEquals(WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B, in testSecurityTypeValues()
72 assertEquals(WifiConfiguration.SECURITY_TYPE_OWE, in testSecurityTypeValues()
DCarrierNetworkEvaluatorTest.java32 import android.net.wifi.WifiConfiguration;
88 private ArgumentCaptor<WifiConfiguration> mWifiConfigCaptor = ArgumentCaptor.forClass(
89 WifiConfiguration.class);
91 private class GetConfiguredNetworkForScanDetailsAnswer implements Answer<WifiConfiguration> {
92 private Map<String, WifiConfiguration> mConfig = new HashMap<>();
94 public void addConfig(ScanDetail scanDetail, WifiConfiguration config) { in addConfig()
99 public WifiConfiguration answer(InvocationOnMock invocation) throws Throwable { in answer()
110 public void addConfig(WifiConfiguration config, int networkId) { in addConfig()
116 WifiConfiguration config = invocation.getArgument(0); in answer()
132 private WifiConfiguration configureNewSsid(int networkId, ScanDetail scanDetail, in configureNewSsid()
[all …]
DHostapdHalTest.java33 import android.net.wifi.WifiConfiguration;
222 WifiConfiguration configuration = new WifiConfiguration(); in testAddAccessPointSuccess_Psk_Band2G()
225 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band2G()
228 configuration.apBand = WifiConfiguration.AP_BAND_2GHZ; in testAddAccessPointSuccess_Psk_Band2G()
256 WifiConfiguration configuration = new WifiConfiguration(); in testAddAccessPointSuccess_Open_Band5G()
259 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testAddAccessPointSuccess_Open_Band5G()
261 configuration.apBand = WifiConfiguration.AP_BAND_5GHZ; in testAddAccessPointSuccess_Open_Band5G()
289 WifiConfiguration configuration = new WifiConfiguration(); in testAddAccessPointSuccess_Psk_Band5G_Hidden()
292 configuration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in testAddAccessPointSuccess_Psk_Band5G_Hidden()
295 configuration.apBand = WifiConfiguration.AP_BAND_5GHZ; in testAddAccessPointSuccess_Psk_Band5G_Hidden()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanResultMatchInfo.java19 import android.net.wifi.WifiConfiguration;
36 public @WifiConfiguration.SecurityType int networkType;
49 public static @WifiConfiguration.SecurityType int getNetworkType(WifiConfiguration config) { in getNetworkType()
51 return WifiConfiguration.SECURITY_TYPE_SAE; in getNetworkType()
53 return WifiConfiguration.SECURITY_TYPE_PSK; in getNetworkType()
55 return WifiConfiguration.SECURITY_TYPE_EAP; in getNetworkType()
57 return WifiConfiguration.SECURITY_TYPE_EAP_SUITE_B; in getNetworkType()
59 return WifiConfiguration.SECURITY_TYPE_WEP; in getNetworkType()
61 return WifiConfiguration.SECURITY_TYPE_OWE; in getNetworkType()
63 return WifiConfiguration.SECURITY_TYPE_OPEN; in getNetworkType()
[all …]
DConfigurationMap.java20 import android.net.wifi.WifiConfiguration;
30 private final Map<Integer, WifiConfiguration> mPerID = new HashMap<>();
32 private final Map<Integer, WifiConfiguration> mPerIDForCurrentUser = new HashMap<>();
33 private final Map<ScanResultMatchInfo, WifiConfiguration>
45 public WifiConfiguration put(WifiConfiguration config) { in put()
46 final WifiConfiguration current = mPerID.put(config.networkId, config); in put()
56 public WifiConfiguration remove(int netID) { in remove()
57 WifiConfiguration config = mPerID.remove(netID); in remove()
64 Iterator<Map.Entry<ScanResultMatchInfo, WifiConfiguration>> scanResultMatchInfoEntries = in remove()
91 public WifiConfiguration getForAllUsers(int netid) { in getForAllUsers()
[all …]
DWifiConfigurationUtil.java25 import android.net.wifi.WifiConfiguration;
85 public static boolean isVisibleToAnyProfile(WifiConfiguration config, List<UserInfo> profiles) { in isVisibleToAnyProfile()
122 public static boolean isConfigForPskNetwork(WifiConfiguration config) { in isConfigForPskNetwork()
123 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK); in isConfigForPskNetwork()
129 public static boolean isConfigForSaeNetwork(WifiConfiguration config) { in isConfigForSaeNetwork()
130 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE); in isConfigForSaeNetwork()
136 public static boolean isConfigForOweNetwork(WifiConfiguration config) { in isConfigForOweNetwork()
137 return config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.OWE); in isConfigForOweNetwork()
143 public static boolean isConfigForEapNetwork(WifiConfiguration config) { in isConfigForEapNetwork()
144 return (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP) in isConfigForEapNetwork()
[all …]
DWifiConfigManager.java35 import android.net.wifi.WifiConfiguration;
36 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus;
250 public int compareNetworksWithSameStatus(WifiConfiguration a, WifiConfiguration b) {
364 private int mLastSelectedNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
366 WifiConfiguration.NetworkSelectionStatus.INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP;
503 private MacAddress getPersistentMacAddress(WifiConfiguration config) { in getPersistentMacAddress()
538 private MacAddress setRandomizedMacToPersistentMac(WifiConfiguration config) { in setRandomizedMacToPersistentMac()
543 WifiConfiguration internalConfig = getInternalConfiguredNetwork(config.networkId); in setRandomizedMacToPersistentMac()
581 private void maskPasswordsInWifiConfiguration(WifiConfiguration configuration) { in maskPasswordsInWifiConfiguration()
603 private void maskRandomizedMacAddressInWifiConfiguration(WifiConfiguration configuration) { in maskRandomizedMacAddressInWifiConfiguration()
[all …]
DWifiApConfigStore.java27 import android.net.wifi.WifiConfiguration;
28 import android.net.wifi.WifiConfiguration.KeyMgmt;
83 private WifiConfiguration mWifiApConfig = null;
162 public synchronized WifiConfiguration getApConfiguration() { in getApConfiguration()
163 WifiConfiguration config = apBandCheckConvert(mWifiApConfig); in getApConfiguration()
178 public synchronized void setApConfiguration(WifiConfiguration config) { in setApConfiguration()
232 private WifiConfiguration apBandCheckConvert(WifiConfiguration config) { in apBandCheckConvert()
236 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ) { in apBandCheckConvert()
238 WifiConfiguration convertedConfig = new WifiConfiguration(config); in apBandCheckConvert()
239 convertedConfig.apBand = WifiConfiguration.AP_BAND_ANY; in apBandCheckConvert()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiNetworkAgentSpecifierTest.java94 WifiConfiguration wifiConfiguration1 = createDefaultWifiConfiguration(); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
100 WifiConfiguration wifiConfiguration2 = new WifiConfiguration(wifiConfiguration1); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
101 wifiConfiguration2.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in testWifiNetworkAgentSpecifierDoesNotEqualsWhenKeyMgmtDifferent()
118 WifiConfiguration wifiConfiguration1 = createDefaultWifiConfiguration(); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent()
124 WifiConfiguration wifiConfiguration2 = new WifiConfiguration(wifiConfiguration1); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenSsidDifferent()
142 WifiConfiguration wifiConfiguration1 = createDefaultWifiConfiguration(); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent()
148 WifiConfiguration wifiConfiguration2 = new WifiConfiguration(wifiConfiguration1); in testWifiNetworkAgentSpecifierDoesNotSatisifyWhenBssidDifferent()
201 WifiConfiguration wificonfigurationNetworkSpecifier = new WifiConfiguration(); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
203 .set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithSsidPattern()
230 WifiConfiguration wificonfigurationNetworkSpecifier = new WifiConfiguration(); in testWifiNetworkAgentSpecifierSatisfiesNetworkSpecifierWithBssidPattern()
[all …]
DWifiNetworkSuggestionTest.java58 .get(WifiConfiguration.KeyMgmt.NONE)); in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
61 assertEquals(WifiConfiguration.METERED_OVERRIDE_NONE, in testWifiNetworkSuggestionBuilderForOpenNetworkWithReqAppInteraction()
83 .get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
88 assertEquals(WifiConfiguration.METERED_OVERRIDE_NONE, in testWifiNetworkSuggestionBuilderForWpa2EapNetworkWithPriorityAndReqAppInteraction()
110 .get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
115 assertEquals(WifiConfiguration.METERED_OVERRIDE_METERED, in testWifiNetworkSuggestionBuilderForWpa2PskNetworkWithMeteredAndReqUserInteraction()
135 .get(WifiConfiguration.KeyMgmt.OWE)); in testWifiNetworkSuggestionBuilderForEnhancedOpenNetworkWithBssid()
153 .get(WifiConfiguration.KeyMgmt.SAE)); in testWifiNetworkSuggestionBuilderForWpa3PskNetwork()
177 .get(WifiConfiguration.KeyMgmt.SUITE_B_192)); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
179 .get(WifiConfiguration.GroupCipher.GCMP_256)); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
[all …]
DWifiConfigurationTest.java27 import android.net.wifi.WifiConfiguration.KeyMgmt;
28 import android.net.wifi.WifiConfiguration.NetworkSelectionStatus;
60 WifiConfiguration config = new WifiConfiguration(); in testWifiConfigurationParcel()
76 WifiConfiguration reconfig = WifiConfiguration.CREATOR.createFromParcel(parcelR); in testWifiConfigurationParcel()
127 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_IsOpen_NullWepKeys()
136 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_IsOpen_ZeroLengthWepKeysArray()
145 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_IsOpen_NullWepKeysArray()
154 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_NotOpen_HasWepKeys()
163 WifiConfiguration config = new WifiConfiguration(); in testIsOpenNetwork_NotOpen_HasNullWepKeyFollowedByNonNullKey()
172 for (int keyMgmt = 0; keyMgmt < WifiConfiguration.KeyMgmt.strings.length; keyMgmt++) { in testIsOpenNetwork_NotOpen_HasAuthType()
[all …]
DWifiNetworkSpecifierTest.java71 .get(WifiConfiguration.KeyMgmt.NONE)); in testWifiNetworkSpecifierBuilderForOpenNetworkWithSsidPattern()
97 .get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWifiNetworkSpecifierBuilderForWpa2PskNetworkWithBssidPattern()
130 .get(WifiConfiguration.KeyMgmt.WPA_EAP)); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
132 .get(WifiConfiguration.KeyMgmt.IEEE8021X)); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
360 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testWifiNetworkSpecifierParcel()
361 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierParcel()
392 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testWifiNetworkSpecifierSatisfiesNullAndAllMatch()
393 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierSatisfiesNullAndAllMatch()
414 WifiConfiguration wifiConfiguration = new WifiConfiguration(); in testWifiNetworkSpecifierSatisfiesSame()
415 wifiConfiguration.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in testWifiNetworkSpecifierSatisfiesSame()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java25 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/util/
DApConfigUtilTest.java23 import android.net.wifi.WifiConfiguration;
147 WifiConfiguration.AP_BAND_2GHZ, null, ALLOWED_5G_FREQS)); in chooseApChannel2GBandWithNoAllowedChannel()
156 WifiConfiguration.AP_BAND_2GHZ, mAllowed2GChannels, ALLOWED_5G_FREQS); in chooseApChannel2GBandWithAllowedChannels()
166 WifiConfiguration.AP_BAND_5GHZ, mAllowed2GChannels, ALLOWED_5G_FREQS); in chooseApChannel5GBandWithAllowedChannels()
177 WifiConfiguration.AP_BAND_5GHZ, mAllowed2GChannels, null)); in chooseApChannel5GBandWithNoAllowedChannels()
186 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfigWithoutHal()
188 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfigWithoutHal()
204 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfig5GBandNoCountryCode()
205 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in updateApChannelConfig5GBandNoCountryCode()
217 WifiConfiguration config = new WifiConfiguration(); in updateApChannelConfigWithChannelSpecified()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java24 import android.net.wifi.WifiConfiguration;
25 import android.net.wifi.WifiConfiguration.AuthAlgorithm;
26 import android.net.wifi.WifiConfiguration.KeyMgmt;
58 public static WifiConfiguration createOpenConfig(String ssid) { in createOpenConfig()
59 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig()
72 public static WifiConfiguration createWepConfig(String ssid, String password) { in createWepConfig()
73 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig()
94 public static WifiConfiguration createPskConfig(String ssid, String password) { in createPskConfig()
95 WifiConfiguration config = createGenericConfig(ssid); in createPskConfig()
119 public static WifiConfiguration createEapConfig(String ssid, String password, int eapMethod, in createEapConfig()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java19 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()

123456