/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | OsuNetworkConnectionTest.java | 209 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackInvokedWhenConnected() 210 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackInvokedWhenConnected() 213 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackInvokedWhenConnected() 224 .NetworkCallback.class)); in verifyNetworkCallbackInvokedWhenConnected() 239 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackWithoutOnAvailable() 240 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackWithoutOnAvailable() 243 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackWithoutOnAvailable() 262 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkConnectionTimeout() 263 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkConnectionTimeout() 266 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkConnectionTimeout() [all …]
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitorTest.java | 46 import android.net.ConnectivityManager.NetworkCallback; 169 eq(sDefaultRequest), any(NetworkCallback.class), any(Handler.class)); in testCallbacksRegistered() 172 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in testCallbacksRegistered() 175 verify(mCM, times(1)).unregisterNetworkCallback(any(NetworkCallback.class)); in testCallbacksRegistered() 208 any(NetworkRequest.class), any(NetworkCallback.class), any(Handler.class)); in testDuplicateMobileRequestsIgnored() 216 any(NetworkCallback.class)); in testDuplicateMobileRequestsIgnored() 232 verify(mCM, times(2)).unregisterNetworkCallback(any(NetworkCallback.class)); in testDuplicateMobileRequestsIgnored() 571 public Map<NetworkCallback, Handler> allCallbacks = new HashMap<>(); 572 public Set<NetworkCallback> trackingDefault = new HashSet<>(); 574 public Map<NetworkCallback, NetworkRequest> listening = new HashMap<>(); [all …]
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 52 import android.net.ConnectivityManager.NetworkCallback; 210 NetworkCallback callback = mock(ConnectivityManager.NetworkCallback.class); in testCallbackRelease() 239 NetworkCallback callback = mock(ConnectivityManager.NetworkCallback.class); in testCallbackRecycling() 282 NetworkCallback callback = new ConnectivityManager.NetworkCallback(); in noDoubleCallbackRegistration() 310 NetworkCallback callback = mock(NetworkCallback.class); in testArgumentValidation() 312 NetworkCallback nullCallback = null; in testArgumentValidation()
|
/frameworks/base/core/java/com/android/server/net/ |
D | NetworkPinner.java | 21 import android.net.ConnectivityManager.NetworkCallback; 60 public class NetworkPinner extends NetworkCallback { 88 private static class Callback extends NetworkCallback {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiStatusTracker.java | 20 import android.net.ConnectivityManager.NetworkCallback; 62 private final NetworkCallback mNetworkCallback = new NetworkCallback() { 72 private final NetworkCallback mDefaultNetworkCallback = new NetworkCallback() {
|
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/ |
D | UpstreamNetworkMonitor.java | 33 import android.net.ConnectivityManager.NetworkCallback; 114 private NetworkCallback mListenAllCallback; 115 private NetworkCallback mDefaultNetworkCallback; 116 private NetworkCallback mMobileNetworkCallback; 435 private class UpstreamNetworkCallback extends NetworkCallback { 494 private void releaseCallback(NetworkCallback cb) { in releaseCallback()
|
/frameworks/base/services/core/java/com/android/server/location/gnss/ |
D | GnssNetworkConnectivityHandler.java | 167 private ConnectivityManager.NetworkCallback mNetworkConnectivityCallback; 174 private ConnectivityManager.NetworkCallback mSuplConnectivityCallback; 333 private ConnectivityManager.NetworkCallback createNetworkConnectivityCallback() { in createNetworkConnectivityCallback() 334 return new ConnectivityManager.NetworkCallback() { in createNetworkConnectivityCallback() 385 private ConnectivityManager.NetworkCallback createSuplConnectivityCallback() { in createSuplConnectivityCallback() 386 return new ConnectivityManager.NetworkCallback() { in createSuplConnectivityCallback()
|
/frameworks/base/core/java/android/net/ |
D | ConnectivityManager.java | 1584 NetworkCallback networkCallback = new NetworkCallback() { 3287 public static class NetworkCallback { class in ConnectivityManager 3582 final NetworkCallback callback; in handleMessage() 3661 private static final HashMap<NetworkRequest, NetworkCallback> sCallbacks = new HashMap<>(); 3667 private NetworkRequest sendRequestForNetwork(NetworkCapabilities need, NetworkCallback callback, in sendRequestForNetwork() 3726 @NonNull NetworkCallback networkCallback) { in requestNetwork() 3815 @NonNull NetworkCallback networkCallback) { in requestNetwork() 3835 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) { in requestNetwork() 3869 @NonNull NetworkCallback networkCallback, int timeoutMs) { in requestNetwork() 3896 @NonNull NetworkCallback networkCallback, @NonNull Handler handler, int timeoutMs) { in requestNetwork() [all …]
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkProviderTest.kt | 106 val cb = ConnectivityManager.NetworkCallback() in <lambda>() 155 private class TestNetworkCallback : ConnectivityManager.NetworkCallback() { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 39 import android.net.ConnectivityManager.NetworkCallback; 186 ), any(NetworkCallback.class)); in testNetworkRequest()
|
D | NetworkControllerBaseTest.java | 120 private ConnectivityManager.NetworkCallback mNetworkCallback; 224 ArgumentCaptor<ConnectivityManager.NetworkCallback> callbackArg = in setupNetworkController() 225 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in setupNetworkController()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkTimeUpdateService.java | 30 import android.net.ConnectivityManager.NetworkCallback; 218 private class NetworkTimeUpdateCallback extends NetworkCallback {
|
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osulogin/ |
D | OsuLoginActivity.java | 59 private ConnectivityManager.NetworkCallback mNetworkCallback; 137 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in onCreate()
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CaptivePortalLoginActivity.java | 28 import android.net.ConnectivityManager.NetworkCallback; 78 private NetworkCallback mNetworkCallback; 286 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in requestNetworkForCaptivePortal()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerImpl.java | 29 import android.net.ConnectivityManager.NetworkCallback; 399 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/ |
D | BaseWifiTracker.java | 143 private final ConnectivityManager.NetworkCallback mNetworkCallback = 144 new ConnectivityManager.NetworkCallback() {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiShellCommand.java | 106 private static final Map<String, Pair<NetworkRequest, ConnectivityManager.NetworkCallback>> 555 ConnectivityManager.NetworkCallback networkCallback = in onCommand() 556 new ConnectivityManager.NetworkCallback(); in onCommand() 565 Pair<NetworkRequest, ConnectivityManager.NetworkCallback> nrAndNc = in onCommand() 580 for (Pair<NetworkRequest, ConnectivityManager.NetworkCallback> nrAndNc in onCommand() 593 Pair<NetworkRequest, ConnectivityManager.NetworkCallback>> entry : in onCommand()
|
D | ClientModeManager.java | 23 import android.net.ConnectivityManager.NetworkCallback; 158 private NetworkCallback mImsNetworkCallback = new NetworkCallback() {
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 44 import android.net.ConnectivityManager.NetworkCallback; 112 private NetworkCallback mMobileNetworkCallback; 452 mMobileNetworkCallback = new ConnectivityManager.NetworkCallback() { in registerTrackMobileCallback()
|
D | VpnIkev2Utils.java | 19 import static android.net.ConnectivityManager.NetworkCallback; 334 static class Ikev2VpnNetworkCallback extends NetworkCallback {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierSignalAgent.java | 120 private ConnectivityManager.NetworkCallback mNetworkCallback; 146 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in handleMessage()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ClientModeManagerTest.java | 45 import android.net.ConnectivityManager.NetworkCallback; 110 private NetworkCallback mImsNetworkCallback = null; 204 public void answer(NetworkRequest req, NetworkCallback callback, Handler handler) { in setUp() 211 public void answer(NetworkCallback callback) { in setUp() 214 }).when(mConnectivityManager).unregisterNetworkCallback(any(NetworkCallback.class)); in setUp()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 27 import android.net.ConnectivityManager.NetworkCallback; 543 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 144 import android.net.ConnectivityManager.NetworkCallback; 704 ConnectivityManager.NetworkCallback callback = null; in connect() 712 callback = new ConnectivityManager.NetworkCallback() { in connect() 2113 NetworkCallback noopCallback = new NetworkCallback(); in testMultipleLingering() 2129 noopCallback = new NetworkCallback(); // Can't reuse NetworkCallbacks. http://b/20701525 in testMultipleLingering() 2214 NetworkCallback noopCallback = new NetworkCallback(); in testNetworkGoesIntoBackgroundAfterLinger() 2357 NetworkCallback networkCallback = null; in tryNetworkFactoryRequests() 2363 networkCallback = new NetworkCallback(); in tryNetworkFactoryRequests() 2394 ConnectivityManager.NetworkCallback[] networkCallbacks = in tryNetworkFactoryRequests() 2395 new ConnectivityManager.NetworkCallback[10]; in tryNetworkFactoryRequests() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 227 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallback = in testGetMultipathPreference() 228 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in testGetMultipathPreference()
|