Searched refs:networkCallback (Results 1 – 4 of 4) sorted by relevance
187 final NetworkCallback networkCallback = new NetworkCallback() { in assertActiveNetworkMetered() local199 getConnectivityManager().registerDefaultNetworkCallback(networkCallback); in assertActiveNetworkMetered()205 getConnectivityManager().unregisterNetworkCallback(networkCallback); in assertActiveNetworkMetered()
242 NetworkCallback networkCallback = new NetworkCallback() { in enableWifi() local248 cm.registerNetworkCallback(request, networkCallback); in enableWifi()251 cm.unregisterNetworkCallback(networkCallback); in enableWifi()
763 final TestNetworkCallback networkCallback = new TestNetworkCallback(); in testTetheringUpstream() local766 mCm.registerDefaultNetworkCallback(networkCallback); in testTetheringUpstream()767 activeNetwork = networkCallback.waitForAvailable(); in testTetheringUpstream()769 mCm.unregisterNetworkCallback(networkCallback); in testTetheringUpstream()
688 final NetworkCallback networkCallback = new NetworkCallback() { in waitForActiveNetworkMetered() local702 mCm.registerDefaultNetworkCallback(networkCallback); in waitForActiveNetworkMetered()707 mCm.unregisterNetworkCallback(networkCallback); in waitForActiveNetworkMetered()