Searched refs:connectivityManager (Results 1 – 6 of 6) sorted by relevance
21 private ConnectivityManager connectivityManager; field in ConnectivityManagerTest27 …connectivityManager = (ConnectivityManager) Robolectric.application.getSystemService(Context.CONNE… in setUp()28 shadowConnectivityManager = shadowOf(connectivityManager); in setUp()29 shadowOfActiveNetworkInfo = shadowOf(connectivityManager.getActiveNetworkInfo()); in setUp()34 assertNotNull(connectivityManager); in getConnectivityManagerShouldNotBeNull()35 assertNotNull(connectivityManager.getActiveNetworkInfo()); in getConnectivityManagerShouldNotBeNull()42 assertTrue(connectivityManager.getActiveNetworkInfo().isConnectedOrConnecting()); in networkInfoShouldReturnTrueCorrectly()43 assertTrue(connectivityManager.getActiveNetworkInfo().isConnected()); in networkInfoShouldReturnTrueCorrectly()50 NetworkInfo actual = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); in getNetworkInfoShouldReturnAssignedValue()59 assertFalse(connectivityManager.getActiveNetworkInfo().isConnectedOrConnecting()); in networkInfoShouldReturnFalseCorrectly()[all …]
103 private final ConnectivityManager connectivityManager; field in NetworkMonitorAutoDetect.ConnectivityManagerDelegate106 connectivityManager = in ConnectivityManagerDelegate()113 connectivityManager = null; in ConnectivityManagerDelegate()121 if (connectivityManager == null) { in getNetworkState()124 return getNetworkState(connectivityManager.getActiveNetworkInfo()); in getNetworkState()133 if (connectivityManager == null) { in getNetworkState()136 return getNetworkState(connectivityManager.getNetworkInfo(network)); in getNetworkState()155 if (connectivityManager == null) { in getAllNetworks()158 return connectivityManager.getAllNetworks(); in getAllNetworks()168 if (connectivityManager == null) { in getDefaultNetId()[all …]
53 ConnectivityManager connectivityManager = in isConnected() local55 NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); in isConnected()
META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...