/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ConfigurationMap.java | 4 import android.net.wifi.WifiConfiguration; 18 private final Map<Integer, WifiConfiguration> mPerID = new HashMap<>(); 19 private final Map<Integer, WifiConfiguration> mPerConfigKey = new HashMap<>(); 21 private final Map<Integer, WifiConfiguration> mPerIDForCurrentUser = new HashMap<>(); 22 private final Map<String, WifiConfiguration> mPerFQDNForCurrentUser = new HashMap<>(); 38 public WifiConfiguration put(WifiConfiguration config) { in put() 39 final WifiConfiguration current = mPerID.put(config.networkId, config); in put() 54 public WifiConfiguration remove(int netID) { in remove() 55 WifiConfiguration config = mPerID.remove(netID); in remove() 62 Iterator<Map.Entry<String, WifiConfiguration>> entries = in remove() [all …]
|
D | WifiConfigManager.java | 19 import static android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID; 37 import android.net.wifi.WifiConfiguration; 38 import android.net.wifi.WifiConfiguration.KeyMgmt; 39 import android.net.wifi.WifiConfiguration.Status; 299 WifiConfiguration.NetworkSelectionStatus.INVALID_NETWORK_SELECTION_DISABLE_TIMESTAMP; 444 private List<WifiConfiguration> getSavedNetworks(Map<String, String> pskMap) { in getSavedNetworks() 445 List<WifiConfiguration> networks = new ArrayList<>(); in getSavedNetworks() 446 for (WifiConfiguration config : mConfiguredNetworks.valuesForCurrentUser()) { in getSavedNetworks() 447 WifiConfiguration newConfig = new WifiConfiguration(config); in getSavedNetworks() 458 && config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK) in getSavedNetworks() [all …]
|
D | WifiConfigStore.java | 21 import android.net.wifi.WifiConfiguration; 22 import android.net.wifi.WifiConfiguration.Status; 246 public void readNetworkVariables(WifiConfiguration config) { in readNetworkVariables() 262 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.ssidVarName); in readNetworkVariables() 275 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.bssidVarName); in readNetworkVariables() 282 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.priorityVarName); in readNetworkVariables() 291 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.hiddenSSIDVarName); in readNetworkVariables() 300 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.pmfVarName); in readNetworkVariables() 309 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.wepTxKeyIdxVarName); in readNetworkVariables() 320 WifiConfiguration.wepKeyVarNames[i]); in readNetworkVariables() [all …]
|
D | WifiQualifiedNetworkSelector.java | 25 import android.net.wifi.WifiConfiguration; 60 private WifiConfiguration mCurrentConnectedNetwork = null; 66 private volatile List<Pair<ScanDetail, WifiConfiguration>> mFilteredScanDetails = null; 141 public WifiConfiguration getConnetionTargetNetwork() { in getConnetionTargetNetwork() 151 public List<Pair<ScanDetail, WifiConfiguration>> getFilteredScanDetails() { in getFilteredScanDetails() 201 private String getNetworkString(WifiConfiguration network) { in getNetworkString() 217 private boolean isNetworkQualified(WifiConfiguration currentNetwork) { in isNetworkQualified() 308 WifiConfiguration currentNetwork = in needQualifiedNetworkSelection() 340 int calculateBssidScore(ScanResult scanResult, WifiConfiguration network, in calculateBssidScore() 341 WifiConfiguration currentNetwork, boolean sameBssid, boolean sameSelect, in calculateBssidScore() [all …]
|
D | WifiApConfigStore.java | 20 import android.net.wifi.WifiConfiguration; 21 import android.net.wifi.WifiConfiguration.KeyMgmt; 49 private WifiConfiguration mWifiApConfig = null; 95 public synchronized WifiConfiguration getApConfiguration() { in getApConfiguration() 105 public synchronized void setApConfiguration(WifiConfiguration config) { in setApConfiguration() 124 private static WifiConfiguration loadApConfiguration(final String filename) { in loadApConfiguration() 125 WifiConfiguration config = null; in loadApConfiguration() 128 config = new WifiConfiguration(); in loadApConfiguration() 168 final WifiConfiguration config) { in writeApConfiguration() 191 private WifiConfiguration getDefaultApConfiguration() { in getDefaultApConfiguration() [all …]
|
D | ScanDetailCache.java | 20 import android.net.wifi.WifiConfiguration; 43 private WifiConfiguration mConfig; 47 ScanDetailCache(WifiConfiguration config) { in ScanDetailCache() 175 public WifiConfiguration.Visibility getVisibilityByRssi(long age) { in getVisibilityByRssi() 176 WifiConfiguration.Visibility status = new WifiConfiguration.Visibility(); in getVisibilityByRssi() 232 public WifiConfiguration.Visibility getVisibilityByPasspointMatch(long age) { in getVisibilityByPasspointMatch() 258 WifiConfiguration.Visibility status = new WifiConfiguration.Visibility(); in getVisibilityByPasspointMatch() 287 public WifiConfiguration.Visibility getVisibility(long age) { in getVisibility()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiQualifiedNetworkSelectorTest.java | 39 import android.net.wifi.WifiConfiguration; 159 when(wifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo() 191 private WifiConfiguration[] generateWifiConfigurations(String[] ssid, int[] security) { in generateWifiConfigurations() 197 WifiConfiguration[] configs = new WifiConfiguration[ssid.length]; in generateWifiConfigurations() 211 private void setConfigPasspoint(WifiConfiguration config) { in setConfigPasspoint() 225 private void prepareConfigStore(final WifiConfiguration[] configs) { in prepareConfigStore() 228 public WifiConfiguration answer(int netId) { in prepareConfigStore() 248 private void scanResultLinkConfiguration(WifiConfiguration[] configs, in scanResultLinkConfiguration() 253 List<WifiConfiguration> associateWithScanResult = new ArrayList<>(); in scanResultLinkConfiguration() 261 List<WifiConfiguration> associateWithScanResult = new ArrayList<>(); in scanResultLinkConfiguration() [all …]
|
D | WifiConfigManagerTest.java | 26 import android.net.wifi.WifiConfiguration; 27 import android.net.wifi.WifiConfiguration.AuthAlgorithm; 28 import android.net.wifi.WifiConfiguration.GroupCipher; 29 import android.net.wifi.WifiConfiguration.KeyMgmt; 30 import android.net.wifi.WifiConfiguration.PairwiseCipher; 31 import android.net.wifi.WifiConfiguration.Protocol; 89 private static final List<WifiConfiguration> CONFIGS = Arrays.asList( 110 private static final Map<Integer, List<WifiConfiguration>> VISIBLE_CONFIGS = new HashMap<>(); 113 List<WifiConfiguration> configs = new ArrayList<>(); 128 private static final WifiConfiguration BASE_HAS_EVER_CONNECTED_CONFIG = [all …]
|
D | WifiConfigurationTestUtil.java | 19 import android.net.wifi.WifiConfiguration; 46 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() 48 final WifiConfiguration config = new WifiConfiguration(); in generateWifiConfig() 53 config.status = enabled ? WifiConfiguration.Status.ENABLED in generateWifiConfig() 54 : WifiConfiguration.Status.DISABLED; in generateWifiConfig() 75 public static WifiConfiguration generateWifiConfig(int networkId, int uid, String ssid, in generateWifiConfig() 78 WifiConfiguration config = generateWifiConfig(networkId, uid, ssid, shared, enabled, fqdn, in generateWifiConfig() 82 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfig() 85 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in generateWifiConfig() 89 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP); in generateWifiConfig() [all …]
|
D | ConfigurationMapTest.java | 25 import android.net.wifi.WifiConfiguration; 49 private static final List<WifiConfiguration> CONFIGS = Arrays.asList( 94 Set<WifiConfiguration> hiddenConfigurations = new HashSet<>(); in switchUser() 95 for (WifiConfiguration config : mConfigs.valuesForAllUsers()) { in switchUser() 108 public void verifyGetters(List<WifiConfiguration> configs) { in verifyGetters() 109 final Set<WifiConfiguration> configsForCurrentUser = new HashSet<>(); in verifyGetters() 110 final Set<WifiConfiguration> enabledConfigsForCurrentUser = new HashSet<>(); in verifyGetters() 111 final List<WifiConfiguration> configsNotForCurrentUser = new ArrayList<>(); in verifyGetters() 116 for (WifiConfiguration config : configs) { in verifyGetters() 120 if (config.status != WifiConfiguration.Status.DISABLED) { in verifyGetters() [all …]
|
D | WifiApConfigStoreTest.java | 25 import android.net.wifi.WifiConfiguration; 26 import android.net.wifi.WifiConfiguration.KeyMgmt; 82 private WifiConfiguration setupApConfig( in setupApConfig() 84 WifiConfiguration config = new WifiConfiguration(); in setupApConfig() 93 private void writeApConfigFile(WifiConfiguration config) throws Exception { in writeApConfigFile() 95 "writeApConfiguration", String.class, WifiConfiguration.class); in writeApConfigFile() 100 private void verifyApConfig(WifiConfiguration config1, WifiConfiguration config2) { in verifyApConfig() 108 private void verifyDefaultApConfig(WifiConfiguration config) { in verifyDefaultApConfig() 130 WifiConfiguration expectedConfig = setupApConfig( in initWithExistingConfiguration() 150 WifiConfiguration expectedConfig = setupApConfig( in setNullApConfiguration() [all …]
|
D | WifiLastResortWatchdogTest.java | 23 import android.net.wifi.WifiConfiguration; 58 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates() 61 List<Pair<ScanDetail, WifiConfiguration>> candidates = new ArrayList<>(); in createFilteredQnsCandidates() 68 WifiConfiguration config = null; in createFilteredQnsCandidates() 70 config = mock(WifiConfiguration.class); in createFilteredQnsCandidates() 71 WifiConfiguration.NetworkSelectionStatus networkSelectionStatus = in createFilteredQnsCandidates() 72 mock(WifiConfiguration.NetworkSelectionStatus.class); in createFilteredQnsCandidates() 81 private List<Pair<ScanDetail, WifiConfiguration>> createFilteredQnsCandidates(String[] ssids, in createFilteredQnsCandidates() 84 List<Pair<ScanDetail, WifiConfiguration>> candidates = in createFilteredQnsCandidates() 85 new ArrayList<Pair<ScanDetail, WifiConfiguration>>(); in createFilteredQnsCandidates() [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 …]
|
D | WifiSoftAPTest.java | 21 import android.net.wifi.WifiConfiguration; 22 import android.net.wifi.WifiConfiguration.KeyMgmt; 35 private WifiConfiguration mWifiConfig = null; 63 WifiConfiguration config = new WifiConfiguration(); in testApSsidWithAlphabet()
|
/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 …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
D | WifiNetworkAdapter.java | 9 import android.net.wifi.WifiConfiguration; 46 private final WifiConfiguration mWifiConfiguration; 50 private PasspointConfig(WifiConfiguration config) throws IOException, SAXException { in PasspointConfig() 61 public WifiConfiguration getWifiConfiguration() { in getWifiConfiguration() 83 public void networkConfigChange(WifiConfiguration configuration) { in networkConfigChange() 90 for (WifiConfiguration config : wifiManager.getPrivilegedConfiguredNetworks()) { in loadAllSps() 156 public WifiConfiguration getActiveWifiConfig() { in getActiveWifiConfig() 162 for (WifiConfiguration config : wifiManager.getConfiguredNetworks()) { in getActiveWifiConfig() 182 public WifiConfiguration getWifiConfig(HomeSP homeSP) { in getWifiConfig() 187 public WifiConfiguration getActivePasspointNetwork() { in getActivePasspointNetwork() [all …]
|
/frameworks/base/packages/Osu/src/com/android/configparse/ |
D | ConfigBuilder.java | 5 import android.net.wifi.WifiConfiguration; 34 public static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert, in buildConfig() 40 WifiConfiguration config; in buildConfig() 98 private static WifiConfiguration buildTTLSConfig(HomeSP homeSP) in buildTTLSConfig() 114 WifiConfiguration config = buildBaseConfiguration(homeSP); in buildTTLSConfig() 124 private static WifiConfiguration buildTLSConfig(HomeSP homeSP, in buildTLSConfig() 157 WifiConfiguration config = buildBaseConfiguration(homeSP); in buildTLSConfig() 165 private static WifiConfiguration buildSIMConfig(HomeSP homeSP) in buildSIMConfig() 190 WifiConfiguration config = buildBaseConfiguration(homeSP); in buildSIMConfig() 195 private static WifiConfiguration buildBaseConfiguration(HomeSP homeSP) throws IOException { in buildBaseConfiguration() [all …]
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | IWifiManager.aidl | 19 import android.net.wifi.WifiConfiguration; 53 List<WifiConfiguration> getConfiguredNetworks(); in getConfiguredNetworks() 55 List<WifiConfiguration> getPrivilegedConfiguredNetworks(); in getPrivilegedConfiguredNetworks() 57 WifiConfiguration getMatchingWifiConfig(in ScanResult scanResult); in getMatchingWifiConfig() 59 int addOrUpdateNetwork(in WifiConfiguration config); in addOrUpdateNetwork() 126 void setWifiApEnabled(in WifiConfiguration wifiConfig, boolean enable); in setWifiApEnabled() 130 WifiConfiguration getWifiApConfiguration(); in getWifiApConfiguration() 132 WifiConfiguration buildWifiConfig(String uriString, String mimeType, in byte[] data); in buildWifiConfig() 134 void setWifiApConfiguration(in WifiConfiguration wifiConfig); in setWifiApConfiguration()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
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() 79 if (apBand == WifiConfiguration.AP_BAND_2GHZ) { in chooseApChannel() 115 WifiConfiguration config) { in updateApChannelConfig() 124 if (config.apBand == WifiConfiguration.AP_BAND_5GHZ in updateApChannelConfig()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 32 import android.net.wifi.WifiConfiguration; 33 import android.net.wifi.WifiConfiguration.KeyMgmt; 115 private int networkId = WifiConfiguration.INVALID_NETWORK_ID; 119 private WifiConfiguration mConfig; 167 AccessPoint(Context context, WifiConfiguration config) { in AccessPoint() 183 if (networkId != WifiConfiguration.INVALID_NETWORK_ID in compareTo() 184 && other.networkId == WifiConfiguration.INVALID_NETWORK_ID) return -1; in compareTo() 185 if (networkId == WifiConfiguration.INVALID_NETWORK_ID in compareTo() 186 && other.networkId != WifiConfiguration.INVALID_NETWORK_ID) return 1; in compareTo() 240 public boolean matches(WifiConfiguration config) { in matches() [all …]
|
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/ |
D | WifiTrackerTest.java | 22 import android.net.wifi.WifiConfiguration; 131 List<WifiConfiguration> wifiConfigs = new ArrayList<WifiConfiguration>(); in testNetworkSorting() 155 List<WifiConfiguration> wifiConfigs = new ArrayList<WifiConfiguration>(); in testSavedOnly() 182 List<WifiConfiguration> wifiConfigs = new ArrayList<WifiConfiguration>(); in testSavedOnlyNoLooper() 203 List<WifiConfiguration> wifiConfigs = new ArrayList<WifiConfiguration>(); in testAvailableOnly() 228 List<WifiConfiguration> wifiConfigs = new ArrayList<WifiConfiguration>(); in testNonEphemeralConnected() 270 private String[] generateTestNetworks(List<WifiConfiguration> wifiConfigs, in generateTestNetworks() 299 int netId = WifiConfiguration.INVALID_NETWORK_ID; in generateTestNetworks() 328 private int addConfig(List<WifiConfiguration> configs, String ssid) { in addConfig() 329 WifiConfiguration config = new WifiConfiguration(); in addConfig()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | WifiConnectionTest.java | 19 import android.net.wifi.WifiConfiguration; 61 List<WifiConfiguration> wifiConfigs = loadConfigurations(); in testWifiConnections() 68 for (WifiConfiguration config : wifiConfigs) { in testWifiConnections() 90 private List<WifiConfiguration> loadConfigurations() { in loadConfigurations() 116 private void printWifiConfigurations(List<WifiConfiguration> wifiConfigs) { in printWifiConfigurations() 118 for (WifiConfiguration config : wifiConfigs) { in printWifiConfigurations()
|
D | WifiAssociationTest.java | 19 import android.net.wifi.WifiConfiguration; 20 import android.net.wifi.WifiConfiguration.AuthAlgorithm; 21 import android.net.wifi.WifiConfiguration.GroupCipher; 22 import android.net.wifi.WifiConfiguration.PairwiseCipher; 23 import android.net.wifi.WifiConfiguration.Protocol; 76 WifiConfiguration config = getConfig(ssid, securityType, password); in testWifiAssociation() 107 private WifiConfiguration getConfig(String ssid, SecurityType securityType, String password) { in getConfig() 110 WifiConfiguration config = null; in getConfig()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/ |
D | ConfigBuilder.java | 5 import android.net.wifi.WifiConfiguration; 50 public static WifiConfiguration buildConfig(String uriString, byte[] data, Context context) in buildConfig() 90 private static WifiConfiguration parse(MIMEContainer root) in parse() 172 private static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert, in buildConfig() 178 WifiConfiguration config; in buildConfig() 236 private static WifiConfiguration buildTTLSConfig(HomeSP homeSP) in buildTTLSConfig() 252 WifiConfiguration config = buildBaseConfiguration(homeSP); in buildTTLSConfig() 262 private static WifiConfiguration buildTLSConfig(HomeSP homeSP, in buildTLSConfig() 295 WifiConfiguration config = buildBaseConfiguration(homeSP); in buildTLSConfig() 303 private static WifiConfiguration buildSIMConfig(HomeSP homeSP) in buildSIMConfig() [all …]
|