Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java217 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackInvokedWhenConnected()
218 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackInvokedWhenConnected()
221 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackInvokedWhenConnected()
232 .NetworkCallback.class)); in verifyNetworkCallbackInvokedWhenConnected()
247 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkCallbackWithoutOnAvailable()
248 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkCallbackWithoutOnAvailable()
251 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkCallbackWithoutOnAvailable()
270 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallbackCaptor = in verifyNetworkConnectionTimeout()
271 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in verifyNetworkConnectionTimeout()
274 ConnectivityManager.NetworkCallback callback = networkCallbackCaptor.getValue(); in verifyNetworkConnectionTimeout()
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java45 import android.net.ConnectivityManager.NetworkCallback;
169 eq(mDefaultRequest), 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()
215 any(NetworkRequest.class), any(NetworkCallback.class), anyInt(), anyInt(), in testDuplicateMobileRequestsIgnored()
232 verify(mCM, times(2)).unregisterNetworkCallback(any(NetworkCallback.class)); in testDuplicateMobileRequestsIgnored()
560 public Map<NetworkCallback, Handler> allCallbacks = new HashMap<>();
561 public Set<NetworkCallback> trackingDefault = new HashSet<>();
563 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()
238 NetworkCallback callback = mock(ConnectivityManager.NetworkCallback.class); in testCallbackRecycling()
279 NetworkCallback callback = new ConnectivityManager.NetworkCallback(); in noDoubleCallbackRegistration()
306 NetworkCallback callback = mock(NetworkCallback.class); in testArgumentValidation()
308 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/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java151 private ConnectivityManager.NetworkCallback mNetworkConnectivityCallback;
158 private ConnectivityManager.NetworkCallback mSuplConnectivityCallback;
226 private ConnectivityManager.NetworkCallback createNetworkConnectivityCallback() { in createNetworkConnectivityCallback()
227 return new ConnectivityManager.NetworkCallback() { in createNetworkConnectivityCallback()
278 private ConnectivityManager.NetworkCallback createSuplConnectivityCallback() { in createSuplConnectivityCallback()
279 return new ConnectivityManager.NetworkCallback() { in createSuplConnectivityCallback()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java29 import android.net.ConnectivityManager.NetworkCallback;
97 private NetworkCallback mListenAllCallback;
98 private NetworkCallback mDefaultNetworkCallback;
99 private NetworkCallback mMobileNetworkCallback;
404 private class UpstreamNetworkCallback extends NetworkCallback {
477 private void releaseCallback(NetworkCallback cb) { in releaseCallback()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java39 public class WifiStatusTracker extends ConnectivityManager.NetworkCallback {
58 private final ConnectivityManager.NetworkCallback mNetworkCallback = new ConnectivityManager
59 .NetworkCallback() {
/frameworks/base/core/java/android/net/
DConnectivityManager.java1617 NetworkCallback networkCallback = new NetworkCallback() {
3221 public static class NetworkCallback { class in ConnectivityManager
3449 final NetworkCallback callback; in handleMessage()
3528 private static final HashMap<NetworkRequest, NetworkCallback> sCallbacks = new HashMap<>();
3534 private NetworkRequest sendRequestForNetwork(NetworkCapabilities need, NetworkCallback callback, in sendRequestForNetwork()
3581 @NonNull NetworkCallback networkCallback, int timeoutMs, int legacyType, in requestNetwork()
3621 @NonNull NetworkCallback networkCallback) { in requestNetwork()
3658 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) { in requestNetwork()
3696 @NonNull NetworkCallback networkCallback, int timeoutMs) { in requestNetwork()
3733 @NonNull NetworkCallback networkCallback, @NonNull Handler handler, int timeoutMs) { in requestNetwork()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java37 import android.net.ConnectivityManager.NetworkCallback;
194 ), any(NetworkCallback.class)); in testNetworkRequest()
DNetworkControllerBaseTest.java102 private ConnectivityManager.NetworkCallback mNetworkCallback;
173 ArgumentCaptor<ConnectivityManager.NetworkCallback> callbackArg = in setupNetworkController()
174 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in setupNetworkController()
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osu/
DOsuLoginActivity.java61 private ConnectivityManager.NetworkCallback mNetworkCallback;
139 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in onCreate()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java28 import android.net.ConnectivityManager.NetworkCallback;
80 private NetworkCallback mNetworkCallback;
288 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in requestNetworkForCaptivePortal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java31 import android.net.ConnectivityManager.NetworkCallback;
385 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
/frameworks/base/services/core/java/com/android/server/
DOldNetworkTimeUpdateService.java28 import android.net.ConnectivityManager.NetworkCallback;
275 private class NetworkTimeUpdateCallback extends NetworkCallback {
DNewNetworkTimeUpdateService.java28 import android.net.ConnectivityManager.NetworkCallback;
275 private class NetworkTimeUpdateCallback extends NetworkCallback {
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java120 import android.net.ConnectivityManager.NetworkCallback;
723 NetworkCallback callback = null; in connect()
731 callback = new NetworkCallback() { in connect()
1755 private class TestNetworkCallback extends NetworkCallback {
2274 NetworkCallback noopCallback = new NetworkCallback(); in testMultipleLingering()
2290 noopCallback = new NetworkCallback(); // Can't reuse NetworkCallbacks. http://b/20701525 in testMultipleLingering()
2375 NetworkCallback noopCallback = new NetworkCallback(); in testNetworkGoesIntoBackgroundAfterLinger()
2496 NetworkCallback networkCallback = null; in tryNetworkFactoryRequests()
2502 networkCallback = new NetworkCallback(); in tryNetworkFactoryRequests()
2533 ConnectivityManager.NetworkCallback[] networkCallbacks = in tryNetworkFactoryRequests()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java42 import android.net.ConnectivityManager.NetworkCallback;
112 private NetworkCallback mMobileNetworkCallback;
452 mMobileNetworkCallback = new ConnectivityManager.NetworkCallback() { in registerTrackMobileCallback()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierSignalAgent.java119 private ConnectivityManager.NetworkCallback mNetworkCallback;
145 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in handleMessage()
DCellularNetworkValidator.java201 class ConnectivityNetworkCallback extends ConnectivityManager.NetworkCallback {
DDeviceStateMonitor.java96 private final ConnectivityManager.NetworkCallback mNetworkCallback =
97 new ConnectivityManager.NetworkCallback() {
DPhoneSwitcher.java33 import android.net.ConnectivityManager.NetworkCallback;
258 private final ConnectivityManager.NetworkCallback mDefaultNetworkCallback =
259 new NetworkCallback() {
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java25 import android.net.ConnectivityManager.NetworkCallback;
526 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java226 ArgumentCaptor<ConnectivityManager.NetworkCallback> networkCallback = in testGetMultipathPreference()
227 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in testGetMultipathPreference()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java238 private class ConnectivityCallbacks extends ConnectivityManager.NetworkCallback {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java48 import android.net.ConnectivityManager.NetworkCallback;
216 final ArgumentCaptor<NetworkCallback> callback = ArgumentCaptor in testUpdates()
217 .forClass(NetworkCallback.class); in testUpdates()

12