Searched refs:ShadowNetwork (Results 1 – 6 of 6) sorted by relevance
25 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()
85 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()
63 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()
16 public class ShadowNetwork { class
54 import org.robolectric.shadows.ShadowNetwork;324 ShadowNetwork.newInstance(activeNetworkInfo.getType() /* use type as network ID */)); in setActiveNetworkInfo()327 ShadowNetwork.newInstance( in setActiveNetworkInfo()
50 import org.robolectric.shadows.ShadowNetwork;243 Network network = ShadowNetwork.newInstance(0); in checkConnectivity_requiredNetworkConnected_sdk23()