Home
last modified time | relevance | path

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

12

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeDefaultNetworkCallbackTest.java55 private IkeDefaultNetworkCallback mNetworkCallback; field in IkeDefaultNetworkCallbackTest
66 mNetworkCallback = in setUp()
80 if (onAvailableCalled) mNetworkCallback.onAvailable(updatedNetwork); in verifyNewNetworkCallback()
81 if (onLpChangedCalled) mNetworkCallback.onLinkPropertiesChanged(updatedNetwork, lp); in verifyNewNetworkCallback()
82 if (onNcChangedCalled) mNetworkCallback.onCapabilitiesChanged(updatedNetwork, nc); in verifyNewNetworkCallback()
130 mNetworkCallback.onAvailable(mMockNetwork); in testOnAvailableCurrentNetwork()
137 mNetworkCallback.onLost(mMockNetwork); in testOnLost()
144 mNetworkCallback.onLost(mock(Network.class)); in testOnLostWrongNetwork()
152 mNetworkCallback.onCapabilitiesChanged(mMockNetwork, mockNc); in testOnCapabilitiesChanged()
160 mNetworkCallback.onLinkPropertiesChanged(mMockNetwork, lp); in testOnLinkPropertiesChanged()
[all …]
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app2/src/com/android/cts/netpolicy/hostside/app2/
DMyService.java55 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MyService
101 if (mNetworkCallback != null) {
102 Log.d(TAG, "unregister previous network callback: " + mNetworkCallback);
107 mNetworkCallback = new ConnectivityManager.NetworkCallback() {
148 mCm.registerNetworkCallback(request, mNetworkCallback);
159 if (mNetworkCallback != null) {
160 mCm.unregisterNetworkCallback(mNetworkCallback);
161 mNetworkCallback = null;
/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java75 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MmsNetworkManager
152 releaseRequestLocked(mNetworkCallback);
289 mNetworkCallback = null; in MmsNetworkManager()
323 releaseRequestLocked(mNetworkCallback); in MmsNetworkManager()
376 if (mNetworkCallback == null) { in acquireNetwork()
399 if (mNetworkCallback != null) { // Timed out in acquireNetwork()
408 releaseRequestLocked(mNetworkCallback); in acquireNetwork()
438 releaseRequestLocked(mNetworkCallback); in releaseNetwork()
450 mNetworkCallback = new NetworkRequestCallback(); in startNewNetworkRequestLocked()
452 mNetworkRequest, mNetworkCallback, networkRequestTimeoutMillis); in startNewNetworkRequestLocked()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListenerLite.java41 private final ConnectivityManager.NetworkCallback mNetworkCallback; field in ConnectivityListenerLite
57 mNetworkCallback = new DefaultNetworkCallback(mHandler); in ConnectivityListenerLite()
69 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback); in registerNetworkCallback()
74 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in unregisterNetworkCallback()
DConnectivityListener.java151 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback, mUiHandler); in start()
166 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in stop()
478 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in ConnectivityListener
/packages/modules/Connectivity/thread/tests/utils/src/android/net/thread/utils/
DTapTestNetworkTracker.java66 private final TestableNetworkCallback mNetworkCallback; field in TapTestNetworkTracker
81 mNetworkCallback = new TestableNetworkCallback(); in TapTestNetworkTracker()
103 mConnectivityManager.requestNetwork(newNetworkRequest(), mNetworkCallback); in setUpTestNetwork() local
124 mNetworkCallback.eventuallyExpect( in setUpTestNetwork()
131 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in tearDownTestNetwork()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java57 private ConnectivityManager.NetworkCallback mNetworkCallback; field in WifiNoInternetDialog
91 mNetworkCallback = new NetworkCallback() { in onCreate()
111 mCM.registerNetworkCallback(request, mNetworkCallback); in onCreate()
169 if (mNetworkCallback != null) { in onDestroy()
170 mCM.unregisterNetworkCallback(mNetworkCallback); in onDestroy()
171 mNetworkCallback = null; in onDestroy()
/packages/modules/Wifi/OsuLogin/src/com/android/hotspot2/osulogin/
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()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DRateLimitTest.java106 private TestableNetworkCallback mNetworkCallback; field in RateLimitTest
151 mNetworkCallback = new TestableNetworkCallback(); in setUp()
159 mNetworkCallback); in setUp()
180 mNetworkCallback.expectAvailableThenValidatedCallbacks(mNetwork, 5_000); in setUp()
195 if (mCm != null) mCm.unregisterNetworkCallback(mNetworkCallback); in tearDown()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DDataSubscriptionController.java88 private DataSubscriptionNetworkCallback mNetworkCallback; field in DataSubscriptionController
100 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback);
136 mConnectivityManager.registerDefaultNetworkCallbackForUid(uid, mNetworkCallback,
150 if (mNetworkCallback.mNetwork == null) {
250 mNetworkCallback = new DataSubscriptionNetworkCallback(); in DataSubscriptionController()
447 mNetworkCallback = callback; in setNetworkCallback()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionController.java161 private IkeNetworkCallbackBase mNetworkCallback; field in IkeConnectionController
547 mNetworkCallback = in setUp()
551 request, mNetworkCallback, new Handler(mIkeContext.getLooper())); in setUp()
554 mNetworkCallback = in setUp()
558 mNetworkCallback, new Handler(mIkeContext.getLooper())); in setUp()
561 mNetworkCallback = null; in setUp()
572 if (mNetworkCallback != null) { in unregisterResources()
573 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in unregisterResources()
574 mNetworkCallback = null; in unregisterResources()
702 mNetworkCallback.setNetwork(network, linkProperties, networkCapabilities); in onNetworkSetByUser()
[all …]
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DCurrentEthernetNetworksViewModel.java46 private final NetworkCallback mNetworkCallback = new CurrentEthernetNetworksCallback(); field in CurrentEthernetNetworksViewModel
72 mConnectivityManager.registerNetworkCallback(request, mNetworkCallback); in CurrentEthernetNetworksViewModel()
79 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onCleared()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DWifiBackhaulMonitor.java55 private final ConnectivityManager.NetworkCallback mNetworkCallback; field in WifiBackhaulMonitor
136 mNetworkCallback = new WiFiStatusCallback(); in WifiBackhaulMonitor()
165 mNetworkCallback); in registerForRttStatusChange()
356 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in clearAll()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProvider.java103 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in WifiInfoProvider
178 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback, in onStart()
189 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
/packages/apps/Settings/src/com/android/settings/network/
DInternetUpdater.java144 private NetworkCallback mNetworkCallback = new NetworkCallback() { field in InternetUpdater
184 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback); in onResume()
193 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
DPrivateDnsPreferenceController.java112 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback, mHandler); in onStart()
118 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
170 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in PrivateDnsPreferenceController
DVpnPreferenceController.java109 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
118 mConnectivityManager.registerNetworkCallback(REQUEST, mNetworkCallback); in onResume()
232 mNetworkCallback = new ConnectivityManager.NetworkCallback() { field in VpnPreferenceController
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsSocketProviderTest.java126 private NetworkCallback mNetworkCallback; field in MdnsSocketProviderTest
218 mNetworkCallback = nwCallbackCaptor.getValue();
330 runOnHandler(() -> mNetworkCallback.onCapabilitiesChanged(TEST_NETWORK, testNc));
331 runOnHandler(() -> mNetworkCallback.onLinkPropertiesChanged(TEST_NETWORK, testLp));
386 runOnHandler(() -> mNetworkCallback.onLost(TEST_NETWORK));
497 runOnHandler(() -> mNetworkCallback.onLinkPropertiesChanged(TEST_NETWORK, newTestLp));
556 runOnHandler(() -> mNetworkCallback.onLinkPropertiesChanged(TEST_NETWORK, testLp));
583 runOnHandler(() -> mNetworkCallback.onLinkPropertiesChanged(otherNetwork, otherLp));
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DDataSubscriptionControllerTest.java95 private DataSubscriptionController.DataSubscriptionNetworkCallback mNetworkCallback; field in DataSubscriptionControllerTest
127 mNetworkCallback.mNetwork = mTestNetwork; in setUp()
232 mController.setNetworkCallback(mNetworkCallback); in onTaskMovedToFront_invalidNetCap_popUpDisplay()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DEmergencyCallDomainSelectorTest.java181 private ConnectivityManager.NetworkCallback mNetworkCallback; field in EmergencyCallDomainSelectorTest
261 mNetworkCallback = (ConnectivityManager.NetworkCallback) in setUp()
1596 mNetworkCallback.onAvailable(null); in testDefaultEpsImsRegisteredBarredScanTimeoutWifi()
1663 mNetworkCallback.onAvailable(null); in testVoWifiSosPdnRequiresSettingEnabled()
1703 mNetworkCallback.onAvailable(null); in testVoWifiSosPdnRequiresValidEid()
1737 mNetworkCallback.onAvailable(null); in testVoWifiImsPdnRequiresNone()
2625 mNetworkCallback.onAvailable(null);
2631 mNetworkCallback.onUnavailable();
2640 mNetworkCallback.onAvailable(null);
2661 mNetworkCallback.onAvailable(null);
[all …]
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/provision/grpc/impl/
DDeviceCheckInClientImpl.java93 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in DeviceCheckInClientImpl
173 mNetworkCallback, in DeviceCheckInClientImpl()
321 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in cleanUp()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiPseudonymManager.java117 private final ConnectivityManager.NetworkCallback mNetworkCallback = field in WifiPseudonymManager
128 cm.unregisterNetworkCallback(mNetworkCallback);
462 cm.registerDefaultNetworkCallback(mNetworkCallback, mWifiHandler); in onAlarm()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsSocketProvider.java84 @NonNull private final NetworkCallback mNetworkCallback; field in MdnsSocketProvider
175 mNetworkCallback = new NetworkCallback() { in MdnsSocketProvider()
347 mNetworkCallback, mHandler); in startMonitoringSockets()
375 .unregisterNetworkCallback(mNetworkCallback); in maybeStopMonitoringSockets()
/packages/services/Telephony/src/com/android/phone/satellite/entitlement/
DSatelliteEntitlementController.java89 @NonNull private final ConnectivityManager.NetworkCallback mNetworkCallback; field in SatelliteEntitlementController
151 mNetworkCallback = new ConnectivityManager.NetworkCallback() { in SatelliteEntitlementController()
159 mConnectivityManager.registerNetworkCallback(networkrequest, mNetworkCallback, this); in SatelliteEntitlementController()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java142 private NetworkCallback mNetworkCallback; field in CaptivePortalLoginActivity
322 mNetworkCallback = new NetworkCallback() { in onCreate()
334 mCm.registerNetworkCallback(new NetworkRequest.Builder().build(), mNetworkCallback); in onCreate()
580 if (mNetworkCallback != null) { in onDestroy()
582 mCm.unregisterNetworkCallback(mNetworkCallback); in onDestroy()

12