Lines Matching refs:wifiManager
31 import android.net.wifi.WifiManager;
369 WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
370 if (wifiManager != null) {
371 return wifiStateToFiveState(wifiManager.getWifiState());
378 final WifiManager wifiManager =
379 (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
380 if (wifiManager == null) {
381 Log.d(TAG, "No wifiManager.");
395 int wifiApState = wifiManager.getWifiApState();
396 if (desiredState && ((wifiApState == WifiManager.WIFI_AP_STATE_ENABLING) ||
397 (wifiApState == WifiManager
398 wifiManager.setWifiApEnabled(null, false);
401 wifiManager.setWifiEnabled(desiredState);
409 if (!WifiManager.WIFI_STATE_CHANGED_ACTION.equals(intent.getAction())) {
412 int wifiState = intent.getIntExtra(WifiManager.EXTRA_WIFI_STATE, -1);
417 * Converts WifiManager's state values into our
422 case WifiManager.WIFI_STATE_DISABLED:
424 case WifiManager.WIFI_STATE_ENABLED:
426 case WifiManager.WIFI_STATE_DISABLING:
428 case WifiManager.WIFI_STATE_ENABLING:
806 if (WifiManager.WIFI_STATE_CHANGED_ACTION.equals(action)) {