Searched refs:getNetworkCallbacks (Results 1 – 2 of 2) sorted by relevance
306 assertThat(shadowOf(connectivityManager).getNetworkCallbacks()).isEmpty(); in getNetworkCallbacks_shouldHaveEmptyDefault()324 assertThat(shadowOf(connectivityManager).getNetworkCallbacks()).hasSize(1); in requestNetwork_shouldAddCallback()332 assertThat(shadowOf(connectivityManager).getNetworkCallbacks()).hasSize(1); in registerCallback_shouldAddCallback()344 assertThat(shadowOf(connectivityManager).getNetworkCallbacks()).hasSize(2); in unregisterCallback_shouldRemoveCallbacks()346 assertThat(shadowOf(connectivityManager).getNetworkCallbacks()).hasSize(1); in unregisterCallback_shouldRemoveCallbacks()348 assertThat(shadowOf(connectivityManager).getNetworkCallbacks()).isEmpty(); in unregisterCallback_shouldRemoveCallbacks()
71 public Set<ConnectivityManager.NetworkCallback> getNetworkCallbacks() { in getNetworkCallbacks() method in ShadowConnectivityManager