Home
last modified time | relevance | path

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

123

/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java71 final Map<NetworkCallback, NetworkCallbackInfo> mAllCallbacks = new ArrayMap<>();
74 final Map<NetworkCallback, NetworkCallbackInfo> mTrackingDefault = new ArrayMap<>();
75 final Map<NetworkCallback, NetworkRequestInfo> mListening = new ArrayMap<>();
76 final Map<NetworkCallback, NetworkRequestInfo> mRequested = new ArrayMap<>();
77 final Map<NetworkCallback, Integer> mLegacyTypeMap = new ArrayMap<>();
154 for (NetworkCallback cb : mTrackingDefault.keySet()) { in sendDefaultNetworkCallbacks()
200 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork()
215 @NonNull NetworkCallback cb, @NonNull Handler h) { in registerSystemDefaultNetworkCallback()
223 public void requestNetwork(NetworkRequest req, NetworkCallback cb) { in requestNetwork()
229 int timeoutMs, int legacyType, Handler h, NetworkCallback cb) { in requestNetwork()
[all …]
DUpstreamNetworkMonitorTest.java45 import android.net.ConnectivityManager.NetworkCallback;
181 requestCaptor.capture(), any(NetworkCallback.class), any(Handler.class)); in testCallbacksRegistered()
190 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in testCallbacksRegistered()
193 verify(mCM, times(1)).unregisterNetworkCallback(any(NetworkCallback.class)); in testCallbacksRegistered()
226 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in testDuplicateMobileRequestsIgnored()
234 any(NetworkCallback.class)); in testDuplicateMobileRequestsIgnored()
250 verify(mCM, times(2)).unregisterNetworkCallback(any(NetworkCallback.class)); in testDuplicateMobileRequestsIgnored()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitorTest.java28 import android.net.ConnectivityManager.NetworkCallback;
65 final NetworkCallback cb = verifyCallbackRegistered(); in testStartListening()
86 final NetworkCallback cb = verifyCallbackRegistered(); in testStopListening()
101 final NetworkCallback cb = verifyCallbackRegistered(); in testWaitForValidated_NoCallbackBeforeValidated()
118 final NetworkCallback cb = verifyCallbackRegistered(); in testWaitForValidated_NetworkChange()
150 final NetworkCallback cb = verifyCallbackRegistered(); in testWaitForValidated_NoCallbackOnCapabilitiesChange()
174 final NetworkCallback cb = verifyCallbackRegistered(); in testWaitForValidated_ToggleBlocked()
197 private NetworkCallback verifyCallbackRegistered() { in verifyCallbackRegistered()
198 final ArgumentCaptor<NetworkCallback> cbCaptor = in verifyCallbackRegistered()
199 ArgumentCaptor.forClass(NetworkCallback.class); in verifyCallbackRegistered()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java207 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackInvokedWhenConnected()
208 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackInvokedWhenConnected()
211 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackInvokedWhenConnected()
222 .NetworkCallback.class)); in verifyNetworkCallbackInvokedWhenConnected()
237 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackWithoutOnAvailable()
238 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackWithoutOnAvailable()
241 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackWithoutOnAvailable()
260 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkConnectionTimeout()
261 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkConnectionTimeout()
264 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkConnectionTimeout()
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java61 import android.net.ConnectivityManager.NetworkCallback;
222 NetworkCallback callback = mock(ConnectivityManager.NetworkCallback.class, in testCallbackRelease()
251 NetworkCallback callback = mock(ConnectivityManager.NetworkCallback.class, in testCallbackRecycling()
293 NetworkCallback callback = new ConnectivityManager.NetworkCallback(); in noDoubleCallbackRegistration()
321 NetworkCallback callback = mock(NetworkCallback.class); in testArgumentValidation()
323 NetworkCallback nullCallback = null; in testArgumentValidation()
372 final NetworkCallback callback = new ConnectivityManager.NetworkCallback(); in testRequestType()
/packages/modules/NetworkStack/apishim/common/com/android/networkstack/apishim/common/
DConnectivityManagerShim.java19 import android.net.ConnectivityManager.NetworkCallback;
40 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) in requestBackgroundNetwork()
45 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) in registerSystemDefaultNetworkCallback()
50 int uid, @NonNull NetworkCallback networkCallback, @NonNull Handler handler) in registerDefaultNetworkCallbackForUid()
/packages/modules/NetworkStack/apishim/31/com/android/networkstack/apishim/api31/
DConnectivityManagerShimImpl.java22 import android.net.ConnectivityManager.NetworkCallback;
63 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) { in requestBackgroundNetwork()
72 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) { in registerSystemDefaultNetworkCallback()
81 int uid, @NonNull NetworkCallback networkCallback, @NonNull Handler handler) { in registerDefaultNetworkCallbackForUid()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java1763 NetworkCallback networkCallback = new NetworkCallback() {
3455 public static class NetworkCallback { class in ConnectivityManager
3497 public NetworkCallback() { in NetworkCallback() method in ConnectivityManager.NetworkCallback
3501 public NetworkCallback(@Flag int flags) { in NetworkCallback() method in ConnectivityManager.NetworkCallback
3841 final NetworkCallback callback; in handleMessage()
3919 private static final HashMap<NetworkRequest, NetworkCallback> sCallbacks = new HashMap<>();
3923 NetworkCallback callback, int timeoutMs, NetworkRequest.Type reqType, int legacyType, in sendRequestForNetwork()
3965 private NetworkRequest sendRequestForNetwork(NetworkCapabilities need, NetworkCallback callback, in sendRequestForNetwork()
3993 @NonNull NetworkCallback networkCallback) { in requestNetwork()
4082 @NonNull NetworkCallback networkCallback) { in requestNetwork()
[all …]
/packages/modules/NetworkStack/apishim/29/com/android/networkstack/apishim/api29/
DConnectivityManagerShimImpl.java20 import android.net.ConnectivityManager.NetworkCallback;
47 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) in requestBackgroundNetwork()
58 public void registerSystemDefaultNetworkCallback(@NonNull NetworkCallback networkCallback, in registerSystemDefaultNetworkCallback()
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/fragments/
DManagerFragment.java28 import android.net.ConnectivityManager.NetworkCallback;
106 private NetworkCallback mConnectToOemPaidWifiSwitchNC;
108 private NetworkCallback mConnectToOemPrivateWifiSwitchNC;
236 private NetworkCallback sendNetworkRequest(boolean isOemPaid) { in sendNetworkRequest()
237 NetworkCallback nc = new NetworkCallback(); in sendNetworkRequest()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitor.java23 import android.net.ConnectivityManager.NetworkCallback;
87 private final NetworkCallback mConnectivityCallback = new NetworkCallback() {
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DConnectivityManagerShimImpl.java21 import android.net.ConnectivityManager.NetworkCallback;
62 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) in requestBackgroundNetwork()
74 public void registerSystemDefaultNetworkCallback(@NonNull NetworkCallback networkCallback, in registerSystemDefaultNetworkCallback()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java33 import android.net.ConnectivityManager.NetworkCallback;
122 private NetworkCallback mListenAllCallback;
123 private NetworkCallback mDefaultNetworkCallback;
124 private NetworkCallback mMobileNetworkCallback;
492 private class UpstreamNetworkCallback extends NetworkCallback {
576 private void releaseCallback(NetworkCallback cb) { in releaseCallback()
/packages/modules/Connectivity/framework/api/
Dcurrent.txt90 …android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull and…
91 …blic void registerDefaultNetworkCallback(@NonNull android.net.ConnectivityManager.NetworkCallback);
92 …isterDefaultNetworkCallback(@NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull and…
93 …ack(@NonNull android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback);
94 …android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull and…
101 …ork(@NonNull android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback);
102 …android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull and…
103 …NonNull android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback, int);
104 …android.net.NetworkRequest, @NonNull android.net.ConnectivityManager.NetworkCallback, @NonNull and…
108 …od public void unregisterNetworkCallback(@NonNull android.net.ConnectivityManager.NetworkCallback);
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt32 import android.net.ConnectivityManager.NetworkCallback
102 private lateinit var mAllNetworksCb: NetworkCallback
103 private lateinit var mDefaultNetworkCb: NetworkCallback
177 val allNetworksCbCaptor = ArgumentCaptor.forClass(NetworkCallback::class.java) in setUp()
182 val defaultNetworkCbCaptor = ArgumentCaptor.forClass(NetworkCallback::class.java) in setUp()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProvider.java24 import android.net.ConnectivityManager.NetworkCallback;
103 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
/packages/apps/Settings/src/com/android/settings/network/
DInternetUpdater.java33 import android.net.ConnectivityManager.NetworkCallback;
144 private NetworkCallback mNetworkCallback = new NetworkCallback() {
DPrivateDnsPreferenceController.java31 import android.net.ConnectivityManager.NetworkCallback;
165 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java71 private ConnectivityManager.NetworkCallback mNetworkCallback;
143 private class NetworkRequestCallback extends ConnectivityManager.NetworkCallback {
324 private void releaseRequestLocked(ConnectivityManager.NetworkCallback callback) { in releaseRequestLocked()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDnsTest.java22 import android.net.ConnectivityManager.NetworkCallback;
290 final NetworkCallback callback = new NetworkCallback() { in ensureIpv6Connectivity()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java28 import android.net.ConnectivityManager.NetworkCallback;
57 private ConnectivityManager.NetworkCallback mNetworkCallback;
91 mNetworkCallback = new NetworkCallback() { in onCreate()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeNetworkCallbackBase.java21 import android.net.ConnectivityManager.NetworkCallback;
31 public abstract class IkeNetworkCallbackBase extends NetworkCallback {
/packages/modules/Connectivity/tests/common/java/android/net/
DNetworkProviderTest.kt147 val cb = ConnectivityManager.NetworkCallback() in <lambda>()
264 val cb1 = ConnectivityManager.NetworkCallback() in <lambda>()
285 val cb2 = ConnectivityManager.NetworkCallback() in <lambda>()
358 private class TestNetworkCallback : ConnectivityManager.NetworkCallback() { in <lambda>()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/msrp/
DImsPdnNetworkFetcher.java70 ConnectivityManager.NetworkCallback cb = in requestNetwork()
71 new ConnectivityManager.NetworkCallback() { in requestNetwork()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java140 private static final Map<String, Pair<NetworkRequest, ConnectivityManager.NetworkCallback>>
728 ConnectivityManager.NetworkCallback networkCallback = in onCommand()
729 new ConnectivityManager.NetworkCallback(); in onCommand()
755 Pair<NetworkRequest, ConnectivityManager.NetworkCallback> nrAndNc = in onCommand()
791 ConnectivityManager.NetworkCallback networkCallback = in onCommand()
792 new ConnectivityManager.NetworkCallback(); in onCommand()
801 Pair<NetworkRequest, ConnectivityManager.NetworkCallback> nrAndNc = in onCommand()
816 for (Pair<NetworkRequest, ConnectivityManager.NetworkCallback> nrAndNc in onCommand()
829 Pair<NetworkRequest, ConnectivityManager.NetworkCallback>> entry : in onCommand()

123