Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNetworkTest.java25 Network network = ShadowNetwork.newInstance(netId); in getNetId_shouldReturnConstructorNetId()
26 ShadowNetwork shadowNetwork = Shadows.shadowOf(network); in getNetId_shouldReturnConstructorNetId()
33 Network network = ShadowNetwork.newInstance(0); in bindSocketDatagramSocket_shouldNotCrash()
39 Network network = ShadowNetwork.newInstance(0); in bindSocketSocket_shouldNotCrash()
46 Network network = ShadowNetwork.newInstance(0); in bindSocketFileDescriptor_shouldNotCrash()
DShadowConnectivityManagerTest.java85 Network vpnNetwork = ShadowNetwork.newInstance(123); in getNetworkInfo_shouldReturnAddedNetwork()
101 Network wifiNetwork = ShadowNetwork.newInstance(ShadowConnectivityManager.NET_ID_WIFI); in getNetworkInfo_shouldNotReturnRemovedNetwork()
240 Network vpnNetwork = ShadowNetwork.newInstance(123); in getAllNetworks_shouldReturnAddedNetworks()
262 Network wifiNetwork = ShadowNetwork.newInstance(ShadowConnectivityManager.NET_ID_WIFI); in getAllNetworks_shouldNotReturnRemovedNetworks()
269 ShadowNetwork shadowReturnedNetwork = shadowOf(returnedNetwork); in getAllNetworks_shouldNotReturnRemovedNetworks()
281 Network wifiNetwork = ShadowNetwork.newInstance(ShadowConnectivityManager.NET_ID_WIFI); in getReportedNetworkConnectivity()
391 Network network = ShadowNetwork.newInstance(789); in bindProcessToNetwork_shouldGetBoundNetworkForProcess()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowConnectivityManager.java63 netIdToNetwork.put(NET_ID_WIFI, ShadowNetwork.newInstance(NET_ID_WIFI)); in ShadowConnectivityManager()
64 netIdToNetwork.put(NET_ID_MOBILE, ShadowNetwork.newInstance(NET_ID_MOBILE)); in ShadowConnectivityManager()
155 ShadowNetwork shadowNetwork = Shadow.extract(network); in getNetworkInfo()
238 netIdToNetwork.put(info.getType(), ShadowNetwork.newInstance(info.getType())); in setActiveNetworkInfo()
261 ShadowNetwork shadowNetwork = Shadow.extract(network); in addNetwork()
272 ShadowNetwork shadowNetwork = Shadow.extract(network); in removeNetwork()
DShadowNetwork.java16 public class ShadowNetwork { class
/external/grpc-grpc-java/android/src/test/java/io/grpc/android/
DAndroidChannelBuilderTest.java54 import org.robolectric.shadows.ShadowNetwork;
324 ShadowNetwork.newInstance(activeNetworkInfo.getType() /* use type as network ID */)); in setActiveNetworkInfo()
327 ShadowNetwork.newInstance( in setActiveNetworkInfo()
/external/downloader/src/test/java/com/google/android/downloader/
DAndroidConnectivityHandlerTest.java50 import org.robolectric.shadows.ShadowNetwork;
243 Network network = ShadowNetwork.newInstance(0); in checkConnectivity_requiredNetworkConnected_sdk23()