Searched refs:activeNetworkInfo (Results 1 – 2 of 2) sorted by relevance
34 private NetworkInfo activeNetworkInfo; field in ShadowConnectivityManager60 this.activeNetworkInfo = mobile; in ShadowConnectivityManager()115 return activeNetworkInfo; in getActiveNetworkInfo()189 if (defaultNetworkActive && activeNetworkInfo != null) { in isActiveNetworkMetered()190 return activeNetworkInfo.getType() == ConnectivityManager.TYPE_MOBILE; in isActiveNetworkMetered()235 activeNetworkInfo = info; in setActiveNetworkInfo()245 activeNetworkInfo = info; in setActiveNetworkInfo()
319 public void setActiveNetworkInfo(NetworkInfo activeNetworkInfo) { in setActiveNetworkInfo() argument322 if (activeNetworkInfo != null && activeNetworkInfo.isConnected()) { in setActiveNetworkInfo()324 ShadowNetwork.newInstance(activeNetworkInfo.getType() /* use type as network ID */)); in setActiveNetworkInfo()331 super.setActiveNetworkInfo(activeNetworkInfo); in setActiveNetworkInfo()