Searched refs:wifiConf (Results 1 – 3 of 3) sorted by relevance
112 WifiConfiguration wifiConf = mProvider.generateWifiConfiguration(WIFI_INFO_WPA); in testWpa() local114 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() local126 assertBase(wifiConf); in testWep()127 assertTrue(wifiConf.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.NONE)); in testWep()128 assertEquals("\"" + TEST_PASSWORD + "\"", wifiConf.wepKeys[0]); in testWep()[all …]
105 WifiConfiguration wifiConf = new WifiConfiguration(); in generateWifiConfiguration() local106 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 …]
124 WifiConfiguration wifiConf = in connectToProvidedNetwork() local127 if (wifiConf == null) { in connectToProvidedNetwork()133 int netId = tryAddingNetwork(wifiConf); in connectToProvidedNetwork()158 private int tryAddingNetwork(WifiConfiguration wifiConf) { in tryAddingNetwork() argument159 int netId = mWifiManager.addNetwork(wifiConf); in tryAddingNetwork()172 netId = mWifiManager.addNetwork(wifiConf); in tryAddingNetwork()