Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/VpnTests/java/com/android/server/net/
DLockdownVpnTrackerTest.java36 import android.net.ConnectivityManager.NetworkCallback;
118 private NetworkCallback getDefaultNetworkCallback() { in getDefaultNetworkCallback()
119 final ArgumentCaptor<NetworkCallback> callbackCaptor = in getDefaultNetworkCallback()
120 ArgumentCaptor.forClass(NetworkCallback.class); in getDefaultNetworkCallback()
125 private NetworkCallback getVpnNetworkCallback() { in getVpnNetworkCallback()
126 final ArgumentCaptor<NetworkCallback> callbackCaptor = in getVpnNetworkCallback()
127 ArgumentCaptor.forClass(NetworkCallback.class); in getVpnNetworkCallback()
171 private void callCallbacksForNetworkConnect(NetworkCallback callback, Network network, in callCallbacksForNetworkConnect()
179 private void callCallbacksForNetworkConnect(NetworkCallback callback, Network network) { in callCallbacksForNetworkConnect()
200 final NetworkCallback defaultCallback = getDefaultNetworkCallback(); in testShutdown()
[all …]
/frameworks/base/services/core/java/com/android/server/vcn/routeselection/
DUnderlyingNetworkController.java32 import android.net.ConnectivityManager.NetworkCallback;
92 @NonNull private final List<NetworkCallback> mCellBringupCallbacks = new ArrayList<>();
93 @Nullable private NetworkCallback mWifiBringupCallback;
94 @Nullable private NetworkCallback mWifiEntryRssiThresholdCallback;
95 @Nullable private NetworkCallback mWifiExitRssiThresholdCallback;
200 NetworkCallback oldRouteSelectionCallback = mRouteSelectionCallback; in registerOrUpdateNetworkRequests()
201 NetworkCallback oldWifiCallback = mWifiBringupCallback; in registerOrUpdateNetworkRequests()
202 NetworkCallback oldWifiEntryRssiThresholdCallback = mWifiEntryRssiThresholdCallback; in registerOrUpdateNetworkRequests()
203 NetworkCallback oldWifiExitRssiThresholdCallback = mWifiExitRssiThresholdCallback; in registerOrUpdateNetworkRequests()
204 List<NetworkCallback> oldCellCallbacks = new ArrayList<>(mCellBringupCallbacks); in registerOrUpdateNetworkRequests()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DDefaultNetworkMonitor.java23 import android.net.ConnectivityManager.NetworkCallback;
40 @Nullable private NetworkCallback mDefaultNetworkCallback;
44 private final class DefaultNetworkCallback extends NetworkCallback {
/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/layoutlib/bridge/src/android/net/
DConnectivityManager.java696 public static class NetworkCallback { class in ConnectivityManager
762 @NonNull NetworkCallback networkCallback) {} in requestNetwork()
765 @NonNull NetworkCallback networkCallback) {} in requestNetwork()
768 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) {} in requestNetwork()
771 @NonNull NetworkCallback networkCallback, int timeoutMs) {} in requestNetwork()
774 @NonNull NetworkCallback networkCallback, @NonNull Handler handler, int timeoutMs) {} in requestNetwork()
787 @NonNull NetworkCallback networkCallback) {} in registerNetworkCallback()
790 @NonNull NetworkCallback networkCallback, @NonNull Handler handler) {} in registerNetworkCallback()
795 public void registerDefaultNetworkCallback(@NonNull NetworkCallback networkCallback) {} in registerDefaultNetworkCallback()
797 public void registerDefaultNetworkCallback(@NonNull NetworkCallback networkCallback, in registerDefaultNetworkCallback()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java71 @NonNull private final NetworkCallback mDefaultNetworkCallback = new NetworkCallback();
74 private class NetworkCallback extends ConnectivityManager.NetworkCallback { class in LockdownVpnTracker
115 private class VpnNetworkCallback extends NetworkCallback {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java23 import android.net.ConnectivityManager.NetworkCallback;
78 private final NetworkCallback mNetworkCallback =
79 new NetworkCallback(NetworkCallback.FLAG_INCLUDE_LOCATION_INFO) {
134 private final NetworkCallback mDefaultNetworkCallback =
135 new NetworkCallback(NetworkCallback.FLAG_INCLUDE_LOCATION_INFO) {
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java72 import android.net.ConnectivityManager.NetworkCallback;
474 final ArgumentCaptor<NetworkCallback> callbackCaptor = in testStrongEnough_Cellular()
475 ArgumentCaptor.forClass(NetworkCallback.class); in testStrongEnough_Cellular()
506 final NetworkCallback generalCallback = callbackCaptor.getValue(); in testStrongEnough_Cellular()
648 final ArgumentCaptor<NetworkCallback> callbackCaptor = in testStrongEnough_Cellular_CheckDisabled()
649 ArgumentCaptor.forClass(NetworkCallback.class); in testStrongEnough_Cellular_CheckDisabled()
680 final NetworkCallback generalCallback = callbackCaptor.getValue(); in testStrongEnough_Cellular_CheckDisabled()
821 final ArgumentCaptor<NetworkCallback> callbackCaptor = in testStrongEnough_Cellular_VPN()
822 ArgumentCaptor.forClass(NetworkCallback.class); in testStrongEnough_Cellular_VPN()
854 final NetworkCallback generalCallback = callbackCaptor.getValue(); in testStrongEnough_Cellular_VPN()
[all …]
/frameworks/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DBaseWifiTracker.java180 private final ConnectivityManager.NetworkCallback mNetworkCallback =
181 new ConnectivityManager.NetworkCallback(
182 ConnectivityManager.NetworkCallback.FLAG_INCLUDE_LOCATION_INFO) {
204 private final ConnectivityManager.NetworkCallback mDefaultNetworkCallback =
205 new ConnectivityManager.NetworkCallback(
206 ConnectivityManager.NetworkCallback.FLAG_INCLUDE_LOCATION_INFO) {
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssNetworkConnectivityHandler.java181 private ConnectivityManager.NetworkCallback mNetworkConnectivityCallback;
188 private ConnectivityManager.NetworkCallback mSuplConnectivityCallback;
367 private ConnectivityManager.NetworkCallback createNetworkConnectivityCallback() { in createNetworkConnectivityCallback()
368 return new ConnectivityManager.NetworkCallback() { in createNetworkConnectivityCallback()
419 private ConnectivityManager.NetworkCallback createSuplConnectivityCallback() { in createSuplConnectivityCallback()
420 return new ConnectivityManager.NetworkCallback() { in createSuplConnectivityCallback()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiStatusTrackerTest.java55 private final ArgumentCaptor<ConnectivityManager.NetworkCallback>
57 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class);
59 private final ArgumentCaptor<ConnectivityManager.NetworkCallback>
61 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class);
/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/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java42 import android.net.ConnectivityManager.NetworkCallback;
220 ), any(NetworkCallback.class)); in testNetworkRequest()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerBaseTest.java142 private ConnectivityManager.NetworkCallback mDefaultCallbackInWifiTracker;
143 private ConnectivityManager.NetworkCallback mDefaultCallbackInNetworkController;
144 private ConnectivityManager.NetworkCallback mNetworkCallback;
287 ArgumentCaptor<ConnectivityManager.NetworkCallback> callbackArg = in setupNetworkController()
288 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class); in setupNetworkController()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java41 import android.net.ConnectivityManager.NetworkCallback;
114 private NetworkCallback mMobileNetworkCallback;
476 mMobileNetworkCallback = new ConnectivityManager.NetworkCallback() { in registerTrackMobileCallback()
DVpnIkev2Utils.java19 import static android.net.ConnectivityManager.NetworkCallback;
395 static class Ikev2VpnNetworkCallback extends NetworkCallback {
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DConnectivitySetupRule.java109 private class NetworkTracker extends ConnectivityManager.NetworkCallback {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java37 import android.net.ConnectivityManager.NetworkCallback;
529 private final NetworkCallback mNetworkCallback = new NetworkCallback() {
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowManager.java218 private ConnectivityManager.NetworkCallback mNetworkCallback;
307 ConnectivityManager.NetworkCallback networkCallback) { in requestNetworkWithInternet()
323 public void stopRequestingNetwork(ConnectivityManager.NetworkCallback networkCallback) { in stopRequestingNetwork()
597 new ConnectivityManager.NetworkCallback() { in loadRebootEscrowDataOnInternet()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DMobileConnectionRepositoryTest.kt23 import android.net.ConnectivityManager.NetworkCallback
1083 val callback: NetworkCallback = in hasPrioritizedCaps_trueWhenAvailable()
1084 withArgCaptor<NetworkCallback> { in hasPrioritizedCaps_trueWhenAvailable()
1098 val callback: NetworkCallback = in hasPrioritizedCaps_becomesFalseWhenNetworkLost()
1099 withArgCaptor<NetworkCallback> { in hasPrioritizedCaps_becomesFalseWhenNetworkLost()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DSavedNetworkTrackerTest.java100 private final ArgumentCaptor<ConnectivityManager.NetworkCallback> mNetworkCallbackCaptor =
101 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class);
102 private final ArgumentCaptor<ConnectivityManager.NetworkCallback>
104 ArgumentCaptor.forClass(ConnectivityManager.NetworkCallback.class);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyCountryDetector.java505 ConnectivityManager.NetworkCallback networkCallback = in registerForWifiConnectivityStateChanged()
506 new ConnectivityManager.NetworkCallback() { in registerForWifiConnectivityStateChanged()
DCarrierSignalAgent.java125 private ConnectivityManager.NetworkCallback mNetworkCallback;
157 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in handleMessage()
DDeviceStateMonitor.java113 private final ConnectivityManager.NetworkCallback mNetworkCallback =
114 new ConnectivityManager.NetworkCallback() {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyCountryDetectorTest.java79 private ArgumentCaptor<ConnectivityManager.NetworkCallback> mNetworkCallbackCaptor;
148 any(NetworkRequest.class), any(ConnectivityManager.NetworkCallback.class)); in testGetInstance()

123