Home
last modified time | relevance | path

Searched refs:wifiConf (Results 1 – 3 of 3) sorted by relevance

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java112 WifiConfiguration wifiConf = mProvider.generateWifiConfiguration(WIFI_INFO_WPA); in testWpa() local
114 assertBase(wifiConf); in testWpa()
115 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_PSK)); in testWpa()
116 assertTrue(wifiConf.allowedProtocols.get(WifiConfiguration.Protocol.WPA)); in testWpa()
117 assertEquals("\"" + TEST_PASSWORD + "\"", wifiConf.preSharedKey); in testWpa()
119 wifiConf.getIpConfiguration().getProxySettings()); in testWpa()
124 WifiConfiguration wifiConf = mProvider.generateWifiConfiguration(WIFI_INFO_WEP); in testWep() local
126 assertBase(wifiConf); in testWep()
127 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testWep()
128 assertEquals("\"" + TEST_PASSWORD + "\"", wifiConf.wepKeys[0]); in testWep()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProvider.java105 WifiConfiguration wifiConf = new WifiConfiguration(); in generateWifiConfiguration() local
106 wifiConf.SSID = wifiInfo.ssid; in generateWifiConfiguration()
107 wifiConf.status = WifiConfiguration.Status.ENABLED; in generateWifiConfiguration()
108 wifiConf.hiddenSSID = wifiInfo.hidden; in generateWifiConfiguration()
109 wifiConf.userApproved = WifiConfiguration.USER_APPROVED; in generateWifiConfiguration()
113 updateForWPAConfiguration(wifiConf, wifiInfo.password); in generateWifiConfiguration()
116 updateForWEPConfiguration(wifiConf, wifiInfo.password); in generateWifiConfiguration()
119 maybeUpdateForEAPConfiguration(wifiConf, wifiInfo); in generateWifiConfiguration()
122 wifiConf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in generateWifiConfiguration()
123 wifiConf.allowedAuthAlgorithms.set(WifiConfiguration.AuthAlgorithm.OPEN); in generateWifiConfiguration()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java124 WifiConfiguration wifiConf = in connectToProvidedNetwork() local
127 if (wifiConf == null) { in connectToProvidedNetwork()
133 int netId = tryAddingNetwork(wifiConf); in connectToProvidedNetwork()
158 private int tryAddingNetwork(WifiConfiguration wifiConf) { in tryAddingNetwork() argument
159 int netId = mWifiManager.addNetwork(wifiConf); in tryAddingNetwork()
172 netId = mWifiManager.addNetwork(wifiConf); in tryAddingNetwork()