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.java64 private ConnectivityManager.NetworkCallback mNetworkCallback; field in MmsNetworkManager
117 mNetworkCallback = null; in MmsNetworkManager()
136 releaseRequestLocked(mNetworkCallback); in MmsNetworkManager()
162 if (mNetworkCallback == null) { in acquireNetwork()
182 if (mNetworkCallback != null) { in acquireNetwork()
186 releaseRequestLocked(mNetworkCallback); in acquireNetwork()
224 releaseRequestLocked(mNetworkCallback); in releaseNetwork()
236 mNetworkCallback = new NetworkRequestCallback(); in startNewNetworkRequestLocked()
238 mNetworkRequest, mNetworkCallback, networkRequestTimeoutMillis); in startNewNetworkRequestLocked()
269 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()
164 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.java122 private NetworkCallback mNetworkCallback; field in CaptivePortalLoginActivity
179 mNetworkCallback = new NetworkCallback() { in onCreate()
191 mCm.registerNetworkCallback(new NetworkRequest.Builder().build(), mNetworkCallback); in onCreate()
364 if (mNetworkCallback != null) { in onDestroy()
366 mCm.unregisterNetworkCallback(mNetworkCallback); in onDestroy()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java188 mConnectivityManager.registerNetworkCallback(VPN_REQUEST, mNetworkCallback); in onResume()
205 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
422 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/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java221 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in WifiDetailPreferenceController
478 mConnectivityManager.registerNetworkCallback(mNetworkRequest, mNetworkCallback, in onResume()
490 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRadioInfo.java247 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in RadioInfo
584 mDefaultNetworkRequest, mNetworkCallback, mHandler); in onResume()
597 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()
/packages/services/Telephony/src/com/android/phone/settings/
DRadioInfo.java298 private final NetworkCallback mNetworkCallback = new NetworkCallback() { field in RadioInfo
695 mDefaultNetworkRequest, mNetworkCallback, mHandler); in updateAllFields()
708 mConnectivityManager.unregisterNetworkCallback(mNetworkCallback); in onPause()