Lines Matching refs:wifiManager
24 import android.net.wifi.WifiManager;
55 final WifiManager wifiManager =
56 (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
61 int wifiState = wifiManager.getWifiState();
62 if (enable && ((wifiState == WifiManager.WIFI_STATE_ENABLING) ||
63 (wifiState == WifiManager.WIFI_STATE_ENABLED))) {
64 wifiManager.setWifiEnabled(false);
68 boolean success = wifiManager.setWifiApEnabled(null, enable);
75 wifiManager.setWifiEnabled(true);
83 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
84 return wifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED;