Home
last modified time | relevance | path

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

/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DConnectivityManagerFacade.java190 class NetworkCallback extends ConnectivityManager.NetworkCallback { class in ConnectivityManagerFacade
216 public NetworkCallback(int events) { in NetworkCallback() method in ConnectivityManagerFacade.NetworkCallback
349 return NetworkCallback.EVENT_PRECHECK; in getNetworkCallbackEvent()
351 return NetworkCallback.EVENT_AVAILABLE; in getNetworkCallbackEvent()
353 return NetworkCallback.EVENT_LOSING; in getNetworkCallbackEvent()
355 return NetworkCallback.EVENT_LOST; in getNetworkCallbackEvent()
357 return NetworkCallback.EVENT_UNAVAILABLE; in getNetworkCallbackEvent()
359 return NetworkCallback.EVENT_CAPABILITIES_CHANGED; in getNetworkCallbackEvent()
361 return NetworkCallback.EVENT_SUSPENDED; in getNetworkCallbackEvent()
363 return NetworkCallback.EVENT_RESUMED; in getNetworkCallbackEvent()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowConnectivityManager.java39 private HashSet<ConnectivityManager.NetworkCallback> networkCallbacks = new HashSet<>();
71 public Set<ConnectivityManager.NetworkCallback> getNetworkCallbacks() { in getNetworkCallbacks()
85 NetworkRequest request, ConnectivityManager.NetworkCallback networkCallback) { in registerNetworkCallback()
92 ConnectivityManager.NetworkCallback networkCallback, in registerNetworkCallback()
99 NetworkRequest request, ConnectivityManager.NetworkCallback networkCallback) { in requestNetwork()
104 protected void unregisterNetworkCallback(ConnectivityManager.NetworkCallback networkCallback) { in unregisterNetworkCallback()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowConnectivityManagerTest.java309 private static ConnectivityManager.NetworkCallback createSimpleCallback() { in createSimpleCallback()
310 return new ConnectivityManager.NetworkCallback() { in createSimpleCallback()
322 ConnectivityManager.NetworkCallback callback = createSimpleCallback(); in requestNetwork_shouldAddCallback()
330 ConnectivityManager.NetworkCallback callback = createSimpleCallback(); in registerCallback_shouldAddCallback()
339 ConnectivityManager.NetworkCallback callback1 = createSimpleCallback(); in unregisterCallback_shouldRemoveCallbacks()
340 ConnectivityManager.NetworkCallback callback2 = createSimpleCallback(); in unregisterCallback_shouldRemoveCallbacks()
354 connectivityManager.unregisterNetworkCallback((ConnectivityManager.NetworkCallback) null); in unregisterCallback_shouldNotAllowNullCallback()
/external/grpc-grpc-java/android/src/test/java/io/grpc/android/
DAndroidChannelBuilderTest.java312 private HashSet<ConnectivityManager.NetworkCallback> defaultNetworkCallbacks = new HashSet<>();
335 for (ConnectivityManager.NetworkCallback networkCallback : defaultNetworkCallbacks) { in notifyDefaultNetworkCallbacksOnAvailable()
341 for (ConnectivityManager.NetworkCallback networkCallback : defaultNetworkCallbacks) { in notifyDefaultNetworkCallbacksOnLost()
348 ConnectivityManager.NetworkCallback networkCallback) { in registerDefaultNetworkCallback()
354 public void unregisterNetworkCallback(ConnectivityManager.NetworkCallback networkCallback) { in unregisterNetworkCallback()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiManagerFacade.java28 import android.net.ConnectivityManager.NetworkCallback;
129 private final Map<NetworkSpecifier, NetworkCallback> mNetworkCallbacks = new HashMap<>();
202 private final class NetworkCallbackImpl extends NetworkCallback {
1494 NetworkCallback networkCallback = new NetworkCallbackImpl(); in wifiRequestNetworkWithSpecifierInternal()
1548 NetworkCallback networkCallback = mNetworkCallbacks.remove(wns); in wifiReleaseNetwork()
1563 Iterator<Map.Entry<NetworkSpecifier, NetworkCallback>> it = in wifiReleaseNetworkAll()
1566 Map.Entry<NetworkSpecifier, NetworkCallback> entry = it.next(); in wifiReleaseNetworkAll()
1567 NetworkCallback networkCallback = entry.getValue(); in wifiReleaseNetworkAll()
/external/grpc-grpc-java/android/src/main/java/io/grpc/android/
DAndroidChannelBuilder.java318 private class DefaultNetworkCallback extends ConnectivityManager.NetworkCallback {