Home
last modified time | relevance | path

Searched refs:mNetworkCallback (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellularNetworkValidatorTest.java112 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testValidateSuccess()
138 mValidatorUT.mNetworkCallback.onUnavailable(); in testValidateFailure()
150 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testNetworkAvailableNotValidated()
179 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testSkipRecentlyValidatedNetwork()
201 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testDoNotSkipIfValidationFailed()
228 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testDoNotSkipIfCacheExpires()
249 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testNetworkCachingOfMultipleSub()
256 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testNetworkCachingOfMultipleSub()
260 mValidatorUT.mNetworkCallback.onCapabilitiesChanged(null, new NetworkCapabilities() in testNetworkCachingOfMultipleSub()
270 mValidatorUT.mNetworkCallback.onAvailable(new Network(100)); in testNetworkCachingOfMultipleSub()
[all …]
/frameworks/base/packages/OsuLogin/src/com/android/hotspot2/osu/
DOsuLoginActivity.java61 private ConnectivityManager.NetworkCallback mNetworkCallback; field in OsuLoginActivity
139 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in onCreate()
159 mNetworkCallback); in onCreate()
207 if (mNetworkCallback != null) { in onDestroy()
208 mCm.unregisterNetworkCallback(mNetworkCallback); in onDestroy()
209 mNetworkCallback = null; in onDestroy()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierSignalAgent.java120 private ConnectivityManager.NetworkCallback mNetworkCallback; field in CarrierSignalAgent
146 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in handleMessage()
171 connectivityMgr.registerDefaultNetworkCallback(mNetworkCallback, mPhone); in handleMessage()
174 } else if (mNetworkCallback != null) { in handleMessage()
175 connectivityMgr.unregisterNetworkCallback(mNetworkCallback); in handleMessage()
176 mNetworkCallback = null; in handleMessage()
DCellularNetworkValidator.java87 public ConnectivityNetworkCallback mNetworkCallback; field in CellularNetworkValidator
282 mNetworkCallback = new ConnectivityNetworkCallback(subId);
284 mConnectivityManager.requestNetwork(mNetworkRequest, mNetworkCallback, mHandler);
303 if (mNetworkCallback != null) {
304 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback);
DDeviceStateMonitor.java106 private final ConnectivityManager.NetworkCallback mNetworkCallback = field in DeviceStateMonitor
311 cm.registerNetworkCallback(mWifiNetworkRequest, mNetworkCallback); in DeviceStateMonitor()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java78 private NetworkCallback mNetworkCallback; field in CaptivePortalLoginActivity
287 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in requestNetworkForCaptivePortal()
320 mCm.requestNetwork(request, mNetworkCallback, NETWORK_REQUEST_TIMEOUT_MS); in requestNetworkForCaptivePortal()
325 if (mNetworkCallback != null) { in releaseNetworkRequest()
326 mCm.unregisterNetworkCallback(mNetworkCallback); in releaseNetworkRequest()
327 mNetworkCallback = null; in releaseNetworkRequest()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiStatusTracker.java59 private final ConnectivityManager.NetworkCallback mNetworkCallback = new ConnectivityManager field in WifiStatusTracker
96 mNetworkRequest, mNetworkCallback, mHandler); in setListening()
101 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in setListening()
DWifiTracker.java123 private WifiTrackerNetworkCallback mNetworkCallback; field in WifiTracker
338 mNetworkCallback = new WifiTrackerNetworkCallback(); in onStart()
340 mNetworkRequest, mNetworkCallback, mWorkHandler); in onStart()
394 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java112 private ConnectivityManager.NetworkCallback mNetworkCallback; field in NetworkControllerBaseTest
189 mNetworkCallback = callbackArg.getValue(); in setupNetworkController()
190 assertNotNull(mNetworkCallback); in setupNetworkController()
248 mNetworkCallback.onCapabilitiesChanged( in setConnectivityViaCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java132 mConnectivityManager.registerNetworkCallback(REQUEST, mNetworkCallback); in SecurityControllerImpl()
385 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in SecurityControllerImpl
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java107 mConnManager.registerNetworkCallback(request, mNetworkCallback); in ConnectivityController()
526 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in ConnectivityController
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java2203 @NonNull private final ConnectivityManager.NetworkCallback mNetworkCallback;
2225 mNetworkCallback = new VpnIkev2Utils.Ikev2VpnNetworkCallback(TAG, this);
2250 cm.requestNetwork(req, mNetworkCallback);
2502 cm.unregisterNetworkCallback(mNetworkCallback);
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java825 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback); in checkParoleTimeout()
1807 private final ConnectivityManager.NetworkCallback mNetworkCallback field in AppStandbyController
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java338 private ConnectivityManager.NetworkCallback mNetworkCallback = field in ImsPhoneCallTracker
4684 cm.registerNetworkCallback(builder.build(), mNetworkCallback); in registerForConnectivityChanges() local
4701 cm.unregisterNetworkCallback(mNetworkCallback); in unregisterForConnectivityChanges()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java874 new NetworkRequest.Builder().build(), mNetworkCallback); in initService()
1100 private final NetworkCallback mNetworkCallback = new NetworkCallback() {