Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java209 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/
DUpstreamNetworkMonitorTest.java46 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/
DConnectivityManagerTest.java52 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/
DNetworkPinner.java21 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/
DWifiStatusTracker.java20 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/
DUpstreamNetworkMonitor.java33 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/
DGnssNetworkConnectivityHandler.java167 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/
DConnectivityManager.java1584 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/
DNetworkProviderTest.kt106 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/
DSecurityControllerTest.java39 import android.net.ConnectivityManager.NetworkCallback;
186 ), any(NetworkCallback.class)); in testNetworkRequest()
DNetworkControllerBaseTest.java120 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/
DNetworkTimeUpdateService.java30 import android.net.ConnectivityManager.NetworkCallback;
218 private class NetworkTimeUpdateCallback extends NetworkCallback {
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osulogin/
DOsuLoginActivity.java59 private ConnectivityManager.NetworkCallback mNetworkCallback;
137 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in onCreate()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java28 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/
DSecurityControllerImpl.java29 import android.net.ConnectivityManager.NetworkCallback;
399 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DBaseWifiTracker.java143 private final ConnectivityManager.NetworkCallback mNetworkCallback =
144 new ConnectivityManager.NetworkCallback() {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiShellCommand.java106 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()
DClientModeManager.java23 import android.net.ConnectivityManager.NetworkCallback;
158 private NetworkCallback mImsNetworkCallback = new NetworkCallback() {
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java44 import android.net.ConnectivityManager.NetworkCallback;
112 private NetworkCallback mMobileNetworkCallback;
452 mMobileNetworkCallback = new ConnectivityManager.NetworkCallback() { in registerTrackMobileCallback()
DVpnIkev2Utils.java19 import static android.net.ConnectivityManager.NetworkCallback;
334 static class Ikev2VpnNetworkCallback extends NetworkCallback {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierSignalAgent.java120 private ConnectivityManager.NetworkCallback mNetworkCallback;
146 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in handleMessage()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeManagerTest.java45 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/
DConnectivityController.java27 import android.net.ConnectivityManager.NetworkCallback;
543 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java144 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/
DMultipathPolicyTrackerTest.java227 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallback = in testGetMultipathPreference()
228 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in testGetMultipathPreference()

12