/frameworks/base/wifi/java/android/net/wifi/ |
WifiConfiguration.aidl | 19 parcelable WifiConfiguration;
|
IWifiManager.aidl | 21 import android.net.wifi.WifiConfiguration; 46 List<WifiConfiguration> getConfiguredNetworks(); 48 List<WifiConfiguration> getPrivilegedConfiguredNetworks(); 50 int addOrUpdateNetwork(in WifiConfiguration config); 106 void setWifiApEnabled(in WifiConfiguration wifiConfig, boolean enable); 110 WifiConfiguration getWifiApConfiguration(); 112 void setWifiApConfiguration(in WifiConfiguration wifiConfig);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
WifiConfig.java | 21 import android.net.wifi.WifiConfiguration; 51 WifiConfiguration wifiConf = new WifiConfiguration(); 65 wifiConf.status = WifiConfiguration.Status.ENABLED; 69 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); 70 wifiConf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); 93 protected void updateForWPAConfiguration(WifiConfiguration wifiConf, String wifiPassword) { 94 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); 95 wifiConf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); 96 wifiConf.allowedProtocols.set(WifiConfiguration.Protocol.WPA); // For WP [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
WifiConfig.java | 21 import android.net.wifi.WifiConfiguration; 30 private WifiConfiguration mWifiConfiguration; 34 mWifiConfiguration = new WifiConfiguration(); 59 public void setWifiConfiguration(WifiConfiguration configuration) { 63 public WifiConfiguration getWifiConfiguration() { 79 if (parcelable instanceof WifiConfiguration) { 80 mWifiConfiguration = (WifiConfiguration) parcelable;
|
WifiConfigHelper.java | 23 import android.net.wifi.WifiConfiguration; 26 import android.net.wifi.WifiConfiguration.AuthAlgorithm; 27 import android.net.wifi.WifiConfiguration.KeyMgmt; 64 public static void setConfigSsid(WifiConfiguration config, String ssid) { 73 public static void setConfigSsid(WifiConfiguration config, ScanResult scanResult) { 80 WifiConfiguration config, WifiSecurity security) { 126 WifiConfiguration wifiConfiguration = getWifiConfiguration(wifiManager, 128 if (wifiConfiguration != null) { 129 return WifiSecurity.getSecurity(wifiConfiguration); [all...] |
WifiSecurity.java | 23 import android.net.wifi.WifiConfiguration; 24 import android.net.wifi.WifiConfiguration.KeyMgmt; 46 public static WifiSecurity getSecurity(WifiConfiguration config) { 73 public static boolean isOpen(WifiConfiguration config) {
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
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(); 125 List<WifiConfiguration> configList = mWifiManager.getConfiguredNetworks(); 127 for (WifiConfiguration c : configList) { 141 for (WifiConfiguration c : configList) { 153 WifiConfiguration config = new WifiConfiguration(); [all...] |
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();
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
WifiConfigurationTest.java | 22 import android.net.wifi.WifiConfiguration; 40 List<WifiConfiguration> wifiConfigurations = mWifiManager.getConfiguredNetworks(); 43 WifiConfiguration wifiConfiguration = wifiConfigurations.get(i); 44 assertNotNull(wifiConfiguration); 45 assertNotNull(wifiConfiguration.toString());
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowWifiManager.java | 4 import android.net.wifi.WifiConfiguration; 27 private Map<Integer, WifiConfiguration> networkIdToConfiguredNetworks = new LinkedHashMap<Integer, WifiConfiguration>(); 59 public List<WifiConfiguration> getConfiguredNetworks() { 60 final ArrayList<WifiConfiguration> wifiConfigurations = new ArrayList<WifiConfiguration>(); 61 for (WifiConfiguration wifiConfiguration : networkIdToConfiguredNetworks.values()) { 62 wifiConfigurations.add(wifiConfiguration); 68 public int addNetwork(WifiConfiguration config) [all...] |
ShadowWifiConfiguration.java | 3 import android.net.wifi.WifiConfiguration; 9 @Implements(WifiConfiguration.class) 11 @RealObject WifiConfiguration realObject; 32 public WifiConfiguration copy(){ 33 WifiConfiguration config = new WifiConfiguration();
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
WifiConnectionTest.java | 19 import android.net.wifi.WifiConfiguration; 61 List<WifiConfiguration> wifiConfigs = loadConfigurations(); 68 for (WifiConfiguration config : wifiConfigs) { 90 private List<WifiConfiguration> loadConfigurations() { 116 private void printWifiConfigurations(List<WifiConfiguration> wifiConfigs) { 118 for (WifiConfiguration config : wifiConfigs) {
|
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); 105 * Get the {@link WifiConfiguration} based on ssid, security, and password. 107 private WifiConfiguration getConfig(String ssid, SecurityType securityType, String password) { 110 WifiConfiguration config = null;
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
WifiConfigurationHelper.java | 23 import android.net.wifi.WifiConfiguration; 24 import android.net.wifi.WifiConfiguration.AuthAlgorithm; 25 import android.net.wifi.WifiConfiguration.KeyMgmt; 38 * Helper for dealing with creating {@link WifiConfiguration} objects. 52 * Create a {@link WifiConfiguration} for an open network 55 * @return The {@link WifiConfiguration} 57 public static WifiConfiguration createOpenConfig(String ssid) { 58 WifiConfiguration config = createGenericConfig(ssid); 65 * Create a {@link WifiConfiguration} for a WEP secured network 69 * @return The {@link WifiConfiguration} [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
WifiManagerTest.java | 4 import android.net.wifi.WifiConfiguration; 86 WifiConfiguration wifiConfiguration = new WifiConfiguration(); 87 wifiConfiguration.networkId = -1; 88 int networkId = wifiManager.addNetwork(wifiConfiguration); 90 assertThat(wifiManager.getConfiguredNetworks().get(0), not(sameInstance(wifiConfiguration))); 91 assertThat(wifiConfiguration.networkId, equalTo(-1)); 94 WifiConfiguration anotherConfig = new WifiConfiguration(); [all...] |
WifiConfigurationTest.java | 3 import android.net.wifi.WifiConfiguration; 17 WifiConfiguration wifiConfiguration = new WifiConfiguration(); 18 assertNotNull(wifiConfiguration.allowedAuthAlgorithms); 23 WifiConfiguration wifiConfiguration = new WifiConfiguration(); 25 wifiConfiguration.networkId = 1; 26 wifiConfiguration.SSID = "SSID" [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiConfigStore.java | 29 import android.net.wifi.WifiConfiguration; 30 import android.net.wifi.WifiConfiguration.KeyMgmt; 31 import android.net.wifi.WifiConfiguration.Status; 32 import static android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID; 90 * - Add/update/remove a WifiConfiguration 140 private HashMap<Integer, WifiConfiguration> mConfiguredNetworks = 141 new HashMap<Integer, WifiConfiguration>(); 287 // As we keep deleted PSK WifiConfiguration for a while, the PSK of 288 // those deleted WifiConfiguration is set to this random unused PSK 308 = WifiConfiguration.INITIAL_AUTO_JOIN_ATTEMPT_MIN_5 [all...] |
WifiApConfigStore.java | 20 import android.net.wifi.WifiConfiguration; 21 import android.net.wifi.WifiConfiguration.KeyMgmt; 60 private WifiConfiguration mWifiApConfig = null; 103 WifiConfiguration config = (WifiConfiguration) message.obj; 105 mWifiApConfig = (WifiConfiguration) message.obj; 148 WifiConfiguration config = new WifiConfiguration(); 180 private void writeApConfiguration(final WifiConfiguration config) { 209 WifiConfiguration config = new WifiConfiguration() [all...] |
NetworkUpdateResult.java | 19 import static android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID;
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
WifiApStress.java | 20 import android.net.wifi.WifiConfiguration; 21 import android.net.wifi.WifiConfiguration.AuthAlgorithm; 22 import android.net.wifi.WifiConfiguration.KeyMgmt; 78 WifiConfiguration config = new WifiConfiguration();
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
AccessPoint.java | 26 import android.net.wifi.WifiConfiguration; 27 import android.net.wifi.WifiConfiguration.KeyMgmt; 109 private WifiConfiguration mConfig; 122 static int getSecurity(WifiConfiguration config) { 190 AccessPoint(Context context, WifiConfiguration config) { 229 private void loadConfig(WifiConfiguration config) { 305 if (networkId != WifiConfiguration.INVALID_NETWORK_ID 306 && other.networkId == WifiConfiguration.INVALID_NETWORK_ID) return -1; 307 if (networkId == WifiConfiguration.INVALID_NETWORK_ID 308 && other.networkId != WifiConfiguration.INVALID_NETWORK_ID) return 1 [all...] |
WifiApDialog.java | 22 import android.net.wifi.WifiConfiguration; 23 import android.net.wifi.WifiConfiguration.AuthAlgorithm; 24 import android.net.wifi.WifiConfiguration.KeyMgmt; 57 WifiConfiguration mWifiConfig; 60 WifiConfiguration wifiConfig) { 69 public static int getSecurityTypeIndex(WifiConfiguration wifiConfig) { 76 public WifiConfiguration getConfig() { 78 WifiConfiguration config = new WifiConfiguration(); 81 * TODO: SSID in WifiConfiguration for soft a [all...] |
WifiConfigInfo.java | 23 import android.net.wifi.WifiConfiguration; 50 final List<WifiConfiguration> wifiConfigs = mWifiManager.getConfiguredNetworks();
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoWifiStatePermissionTest.java | 20 import android.net.wifi.WifiConfiguration; 31 private static final WifiConfiguration TEST_WIFI_CONFIGURATION = new WifiConfiguration();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
WifiAccessPointController.java | 24 import android.net.wifi.WifiConfiguration; 118 private ArrayMap<String, WifiConfiguration> getConfiguredNetworksBySsid() { 119 final List<WifiConfiguration> configs = mWifiManager.getConfiguredNetworks(); 121 final ArrayMap<String, WifiConfiguration> rt = new ArrayMap<String, WifiConfiguration>(); 122 for (WifiConfiguration config : configs) { 132 final ArrayMap<String, WifiConfiguration> configured = getConfiguredNetworksBySsid(); 144 final WifiConfiguration config = configured.get(ssid);
|