Home
last modified time | relevance | path

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

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DNetworkInfoTest.java18 NetworkInfo networkInfo = Robolectric.newInstanceOf(NetworkInfo.class); in getDetailedState_shouldReturnTheAssignedState() local
19 shadowOf(networkInfo).setDetailedState(NetworkInfo.DetailedState.SCANNING); in getDetailedState_shouldReturnTheAssignedState()
20 assertThat(networkInfo.getDetailedState(), equalTo(NetworkInfo.DetailedState.SCANNING)); in getDetailedState_shouldReturnTheAssignedState()
DConnectivityManagerTest.java48 … NetworkInfo networkInfo = ShadowNetworkInfo.newInstance(NetworkInfo.DetailedState.CONNECTING); in getNetworkInfoShouldReturnAssignedValue() local
49 shadowConnectivityManager.setNetworkInfo(ConnectivityManager.TYPE_WIFI, networkInfo); in getNetworkInfoShouldReturnAssignedValue()
51 assertThat(actual, sameInstance(networkInfo)); in getNetworkInfoShouldReturnAssignedValue()
/external/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java55 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected() local
56 return networkInfo != null && networkInfo.isConnected(); in isConnected()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowNetworkInfo.java34 NetworkInfo networkInfo = Robolectric.newInstanceOf(NetworkInfo.class); in newInstance() local
35 final ShadowNetworkInfo info = shadowOf(networkInfo); in newInstance()
41 return networkInfo; in newInstance()
DShadowConnectivityManager.java48 public void setNetworkInfo(int networkType, NetworkInfo networkInfo) { in setNetworkInfo() argument
49 networkTypeToNetworkInfo.put(networkType, networkInfo); in setNetworkInfo()