Searched refs:wifiConnected (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java71 private static boolean wifiConnected = false; field in class:NetworkActivity
126 // Checks the network connection and sets the wifiConnected and mobileConnected
134 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;
137 wifiConnected = false;
147 if (((sPref.equals(ANY)) && (wifiConnected || mobileConnected))
148 || ((sPref.equals(WIFI)) && (wifiConnected))) {
282 * If it is, it checks whether Wi-Fi is connected and sets the wifiConnected flag in the
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DWifiTile.java136 boolean wifiConnected = cb.enabled && (cb.wifiSignalIconId > 0) && (cb.enabledDesc != null);
144 state.connected = wifiConnected;
154 } else if (wifiConnected) {
169 if (wifiConnected) {

Completed in 279 milliseconds