/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 71 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 …]
|
D | UpstreamNetworkMonitorTest.java | 45 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/ |
D | NetworkMonitorTest.java | 28 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/ |
D | OsuNetworkConnectionTest.java | 207 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/ |
D | ConnectivityManagerTest.java | 61 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/ |
D | ConnectivityManagerShim.java | 19 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/ |
D | ConnectivityManagerShimImpl.java | 22 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/ |
D | ConnectivityManager.java | 1763 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/ |
D | ConnectivityManagerShimImpl.java | 20 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/ |
D | ManagerFragment.java | 28 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/ |
D | NetworkMonitor.java | 23 import android.net.ConnectivityManager.NetworkCallback; 87 private final NetworkCallback mConnectivityCallback = new NetworkCallback() {
|
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/ |
D | ConnectivityManagerShimImpl.java | 21 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/ |
D | UpstreamNetworkMonitor.java | 33 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/ |
D | current.txt | 90 …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/ |
D | NetworkStackNotifierTest.kt | 32 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/ |
D | WifiInfoProvider.java | 24 import android.net.ConnectivityManager.NetworkCallback; 103 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | InternetUpdater.java | 33 import android.net.ConnectivityManager.NetworkCallback; 144 private NetworkCallback mNetworkCallback = new NetworkCallback() {
|
D | PrivateDnsPreferenceController.java | 31 import android.net.ConnectivityManager.NetworkCallback; 165 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsNetworkManager.java | 71 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/ |
D | DnsTest.java | 22 import android.net.ConnectivityManager.NetworkCallback; 290 final NetworkCallback callback = new NetworkCallback() { in ensureIpv6Connectivity()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiNoInternetDialog.java | 28 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/ |
D | IkeNetworkCallbackBase.java | 21 import android.net.ConnectivityManager.NetworkCallback; 31 public abstract class IkeNetworkCallbackBase extends NetworkCallback {
|
/packages/modules/Connectivity/tests/common/java/android/net/ |
D | NetworkProviderTest.kt | 147 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/ |
D | ImsPdnNetworkFetcher.java | 70 ConnectivityManager.NetworkCallback cb = in requestNetwork() 71 new ConnectivityManager.NetworkCallback() { in requestNetwork()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiShellCommand.java | 140 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()
|