Searched refs:NetworkCallback (Results 1 – 6 of 6) sorted by relevance
190 class NetworkCallback extends ConnectivityManager.NetworkCallback { class in ConnectivityManagerFacade216 public NetworkCallback(int events) { in NetworkCallback() method in ConnectivityManagerFacade.NetworkCallback349 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 …]
39 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()
309 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()
312 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()
28 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()
318 private class DefaultNetworkCallback extends ConnectivityManager.NetworkCallback {