Home
last modified time | relevance | path

Searched refs:networkCallback (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/net/
DConnectivityManager.java1104 NetworkCallback networkCallback = new NetworkCallback() { field in ConnectivityManager.LegacyRequest
1157 l.networkRequest = sendRequestForNetwork(netCap, l.networkCallback, 0, in requestNetworkForFeatureLocked()
1179 unregisterNetworkCallback(l.networkCallback); in removeRequestForFeature()
2274 NetworkCallback networkCallback, int timeoutSec, int action, in sendRequestForNetwork() argument
2276 if (networkCallback == null) { in sendRequestForNetwork()
2284 networkCallback.networkRequest = mService.listenForNetwork(need, in sendRequestForNetwork()
2287 networkCallback.networkRequest = mService.requestNetwork(need, in sendRequestForNetwork()
2290 if (networkCallback.networkRequest != null) { in sendRequestForNetwork()
2291 sNetworkCallback.put(networkCallback.networkRequest, networkCallback); in sendRequestForNetwork()
2295 if (networkCallback.networkRequest == null) decCallbackHandlerRefCount(); in sendRequestForNetwork()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java962 NetworkCallback networkCallback = null; in tryNetworkFactoryRequests() local
969 networkCallback = new NetworkCallback(); in tryNetworkFactoryRequests()
970 mCm.requestNetwork(request, networkCallback); in tryNetworkFactoryRequests()
1017 if (networkCallback != null) mCm.unregisterNetworkCallback(networkCallback); in tryNetworkFactoryRequests()
1086 final TestNetworkCallback networkCallback = new TestNetworkCallback(); in testMMSonWiFi() local
1087 mCm.requestNetwork(builder.build(), networkCallback); in testMMSonWiFi() local
1091 cv = networkCallback.getConditionVariable(); in testMMSonWiFi()
1094 assertEquals(CallbackState.AVAILABLE, networkCallback.getLastCallback()); in testMMSonWiFi()
1098 mCm.unregisterNetworkCallback(networkCallback); in testMMSonWiFi()
1114 final TestNetworkCallback networkCallback = new TestNetworkCallback(); in testMMSonCell() local
[all …]