Home
last modified time | relevance | path

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

/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java132 NetworkInfo activeInfo = connMgr.getActiveNetworkInfo(); in updateConnectedFlags() local
133 if (activeInfo != null && activeInfo.isConnected()) { in updateConnectedFlags()
134 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI; in updateConnectedFlags()
135 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE; in updateConnectedFlags()