Home
last modified time | relevance | path

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

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowConnectivityManager.java34 private NetworkInfo activeNetworkInfo; field in ShadowConnectivityManager
60 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()
/external/grpc-grpc-java/android/src/test/java/io/grpc/android/
DAndroidChannelBuilderTest.java319 public void setActiveNetworkInfo(NetworkInfo activeNetworkInfo) { in setActiveNetworkInfo() argument
322 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()