Home
last modified time | relevance | path

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

/development/samples/browseable/BasicNetworking/src/com.example.android.basicnetworking/
DMainActivity.java97 NetworkInfo activeInfo = connMgr.getActiveNetworkInfo(); in checkNetworkConnection() local
98 if (activeInfo != null && activeInfo.isConnected()) { in checkNetworkConnection()
99 wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI; in checkNetworkConnection()
100 mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE; in checkNetworkConnection()
/development/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()