Home
last modified time | relevance | path

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

/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestNetworkTracker.kt61 private val networkCallback: NetworkCallback constant
73 networkCallback = object : NetworkCallback() {
78 cm.requestNetwork(networkRequest, networkCallback)
90 cm.unregisterNetworkCallback(networkCallback) in teardown()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java2357 NetworkCallback networkCallback = null; in tryNetworkFactoryRequests() local
2363 networkCallback = new NetworkCallback(); in tryNetworkFactoryRequests()
2365 mCm.requestNetwork(request, networkCallback); in tryNetworkFactoryRequests()
2424 if (networkCallback != null) mCm.unregisterNetworkCallback(networkCallback); in tryNetworkFactoryRequests()
2518 final TestNetworkCallback networkCallback = new TestNetworkCallback(); in testMMSonWiFi() local
2519 mCm.requestNetwork(builder.build(), networkCallback); in testMMSonWiFi() local
2525 networkCallback.expectAvailableCallbacksUnvalidated(mCellNetworkAgent); in testMMSonWiFi()
2529 mCm.unregisterNetworkCallback(networkCallback); in testMMSonWiFi()
2546 final TestNetworkCallback networkCallback = new TestNetworkCallback(); in testMMSonCell() local
2547 mCm.requestNetwork(builder.build(), networkCallback); in testMMSonCell() local
[all …]
/frameworks/base/core/java/android/net/
DConnectivityManager.java1584 NetworkCallback networkCallback = new NetworkCallback() { field in ConnectivityManager.LegacyRequest
1642 netCap, l.networkCallback, 0, REQUEST, type, getDefaultHandler()); in requestNetworkForFeatureLocked()
1665 unregisterNetworkCallback(l.networkCallback); in removeRequestForFeature()
3766 @NonNull NetworkCallback networkCallback) { in requestNetwork() argument
3772 sendRequestForNetwork(nc, networkCallback, timeoutMs, REQUEST, legacyType, cbHandler); in requestNetwork()
3855 @NonNull NetworkCallback networkCallback) { in requestNetwork() argument
3856 requestNetwork(request, networkCallback, getDefaultHandler()); in requestNetwork()
3875 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) { in requestNetwork() argument
3878 sendRequestForNetwork(nc, networkCallback, 0, REQUEST, TYPE_NONE, cbHandler); in requestNetwork()
3909 @NonNull NetworkCallback networkCallback, int timeoutMs) { in requestNetwork() argument
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java227 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallback = in testGetMultipathPreference() local
230 verify(mCM).registerNetworkCallback(any(), networkCallback.capture(), any()); in testGetMultipathPreference()
240 networkCallback.getValue().onCapabilitiesChanged( in testGetMultipathPreference()
253 networkCallback.getValue().onCapabilitiesChanged( in testGetMultipathPreference()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt42602 Landroid/net/ConnectivityManager$LegacyRequest;->networkCallback:Landroid/net/ConnectivityManager$N…