Home
last modified time | relevance | path

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

/packages/services/Mms/src/com/android/mms/service/
DMmsNetworkManager.java57 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MmsNetworkManager
110 mNetworkCallback = null; in MmsNetworkManager()
128 releaseRequestLocked(mNetworkCallback); in MmsNetworkManager()
152 if (mNetworkCallback == null) { in acquireNetwork()
168 if (mNetworkCallback != null) { in acquireNetwork()
172 releaseRequestLocked(mNetworkCallback); in acquireNetwork()
201 releaseRequestLocked(mNetworkCallback); in releaseNetwork()
213 mNetworkCallback = new NetworkRequestCallback(); in startNewNetworkRequestLocked()
215 mNetworkRequest, mNetworkCallback, NETWORK_REQUEST_TIMEOUT_MILLIS); in startNewNetworkRequestLocked()
246 mNetworkCallback = null; in resetLocked()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiScanWorker.java61 WifiNetworkCallback mNetworkCallback; field in WifiScanWorker
173 if (mNetworkCallback != null && mNetworkCallback.isSameNetwork(wifiNetwork)) { in registerNetworkCallback()
179 mNetworkCallback = new WifiNetworkCallback(wifiNetwork); in registerNetworkCallback()
185 mNetworkCallback, in registerNetworkCallback()
190 if (mNetworkCallback != null) { in unregisterNetworkCallback()
192 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in unregisterNetworkCallback()
196 mNetworkCallback = null; in unregisterNetworkCallback()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiNoInternetDialog.java52 private ConnectivityManager.NetworkCallback mNetworkCallback; field in WifiNoInternetDialog
90 mNetworkCallback = new NetworkCallback() { in onCreate()
110 mCM.registerNetworkCallback(request, mNetworkCallback); in onCreate()
168 if (mNetworkCallback != null) { in onDestroy()
169 mCM.unregisterNetworkCallback(mNetworkCallback); in onDestroy()
170 mNetworkCallback = null; in onDestroy()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiNoInternetDialog.java52 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/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiScanWorkerTest.java138 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_shouldNotifyChange()
152 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_isClickedWifi_shouldSendBroadcast()
166 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_isNotClickedWifi_shouldNotSendBroadcast()
178 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_neverClickWifi_shouldNotSendBroadcast()
190 final NetworkCallback callback = mWifiScanWorker.mNetworkCallback; in NetworkCallback_onCapabilitiesChanged_sliceIsUnpinned_shouldNotSendBroadcast()
DContextualWifiScanWorkerTest.java80 final NetworkCallback callback = mWifiScanWorker.mNetworkCallback; in NetworkCallback_onCapabilitiesChanged_sliceIsUnpinned_shouldSendBroadcast()
100 mWifiScanWorker.mNetworkCallback.onCapabilitiesChanged(network, in NetworkCallback_onCapabilitiesChanged_newSession_shouldNotSendBroadcast()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DPrivateDnsPreferenceController.java108 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback, mHandler); in onStart()
114 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
168 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in PrivateDnsPreferenceController
DVpnPreferenceController.java107 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
114 mConnectivityManager.registerNetworkCallback(REQUEST, mNetworkCallback); in onResume()
183 mNetworkCallback = new ConnectivityManager.NetworkCallback() { field in VpnPreferenceController
/packages/apps/Settings/src/com/android/settings/network/
DPrivateDnsPreferenceController.java108 mConnectivityManager.registerDefaultNetworkCallback(mNetworkCallback, mHandler); in onStart()
114 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
168 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in PrivateDnsPreferenceController
DVpnPreferenceController.java107 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
114 mConnectivityManager.registerNetworkCallback(REQUEST, mNetworkCallback); in onResume()
183 mNetworkCallback = new ConnectivityManager.NetworkCallback() { field in VpnPreferenceController
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/details/
DWifiInfoProviderImpl.java108 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in WifiInfoProviderImpl
192 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback, in onStart()
207 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onStop()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java99 private NetworkCallback mNetworkCallback; field in CaptivePortalLoginActivity
139 mNetworkCallback = new NetworkCallback() { in onCreate()
146 mCm.registerNetworkCallback(new NetworkRequest.Builder().build(), mNetworkCallback); in onCreate()
295 if (mNetworkCallback != null) { in onDestroy()
297 mCm.unregisterNetworkCallback(mNetworkCallback); in onDestroy()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java189 mConnectivityManager.registerNetworkCallback(VPN_REQUEST, mNetworkCallback); in onResume()
206 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
423 private NetworkCallback mNetworkCallback = new NetworkCallback() { field in VpnSettings
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DVpnSettings.java189 mConnectivityManager.registerNetworkCallback(VPN_REQUEST, mNetworkCallback); in onResume()
206 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
423 private NetworkCallback mNetworkCallback = new NetworkCallback() { field in VpnSettings
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java222 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in WifiDetailPreferenceController
482 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback, in onResume()
494 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java221 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in WifiDetailPreferenceController
464 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback, in onResume()
476 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java246 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in RadioInfo
581 mDefaultNetworkRequest, mNetworkCallback, mHandler); in onResume()
594 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java259 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in RadioInfo
619 mDefaultNetworkRequest, mNetworkCallback, mHandler); in updateAllFields()
632 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()