Home
last modified time | relevance | path

Searched refs:mPhoneStateListener (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java71 private PhoneStateListener mPhoneStateListener; field in HeadsetPhoneState
142 if (mPhoneStateListener != null) { in startListenForPhoneState()
158 mPhoneStateListener = new HeadsetPhoneStateListener(command -> mHandler.post(command)); in startListenForPhoneState()
159 mTelephonyManager.listen(mPhoneStateListener, events); in startListenForPhoneState()
163 if (mPhoneStateListener == null) { in stopListenForPhoneState()
169 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopListenForPhoneState()
170 mPhoneStateListener = null; in stopListenForPhoneState()
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkPreferenceController.java57 PhoneStateListener mPhoneStateListener; field in MobileNetworkPreferenceController
102 if (mPhoneStateListener == null) { in onStart()
103 mPhoneStateListener = new PhoneStateListener() { in onStart()
110 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in onStart()
120 if (mPhoneStateListener != null) { in onStop()
121 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onStop()
DApnSettings.java134 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in ApnSettings
180 mTelephonyManager.listen(mPhoneStateListener, in restartPhoneStateListener()
185 mTelephonyManager.listen(mPhoneStateListener, in restartPhoneStateListener()
269 mTelephonyManager.listen(mPhoneStateListener, in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DMobileNetworkPreferenceController.java63 PhoneStateListener mPhoneStateListener; field in MobileNetworkPreferenceController
108 if (mPhoneStateListener == null) { in onStart()
109 mPhoneStateListener = new PhoneStateListener() { in onStart()
116 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in onStart()
126 if (mPhoneStateListener != null) { in onStop()
127 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onStop()
/packages/apps/Settings/src/com/android/settings/
DAirplaneModeEnabler.java63 PhoneStateListener mPhoneStateListener; field in AirplaneModeEnabler
76 mPhoneStateListener = new PhoneStateListener() { in AirplaneModeEnabler()
98 mTelephonyManager.listen(mPhoneStateListener, in resume()
103 mTelephonyManager.listen(mPhoneStateListener, in pause()
/packages/apps/Settings/src/com/android/settings/sim/
DSimSettings.java79 private PhoneStateListener[] mPhoneStateListener = new PhoneStateListener[mPhoneCount]; field in SimSettings
235 if (mPhoneStateListener[i] != null) { in onPause()
236 tm.listen(mPhoneStateListener[i], PhoneStateListener.LISTEN_NONE); in onPause()
237 mPhoneStateListener[i] = null; in onPause()
248 mPhoneStateListener[phoneId] = new PhoneStateListener() { in getPhoneStateListener()
256 return mPhoneStateListener[phoneId]; in getPhoneStateListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimSettings.java79 private PhoneStateListener[] mPhoneStateListener = new PhoneStateListener[mPhoneCount]; field in SimSettings
235 if (mPhoneStateListener[i] != null) { in onPause()
236 tm.listen(mPhoneStateListener[i], PhoneStateListener.LISTEN_NONE); in onPause()
237 mPhoneStateListener[i] = null; in onPause()
248 mPhoneStateListener[phoneId] = new PhoneStateListener() { in getPhoneStateListener()
256 return mPhoneStateListener[phoneId]; in getPhoneStateListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DEnhanced4gLtePreferenceController.java53 private PhoneCallStateListener mPhoneStateListener; field in Enhanced4gLtePreferenceController
66 mPhoneStateListener = new PhoneCallStateListener(Looper.getMainLooper()); in Enhanced4gLtePreferenceController()
95 mPhoneStateListener.register(mSubId); in onStart()
100 mPhoneStateListener.unregister(); in onStop()
DWifiCallingPreferenceController.java62 private PhoneCallStateListener mPhoneStateListener; field in WifiCallingPreferenceController
72 mPhoneStateListener = new PhoneCallStateListener(Looper.getMainLooper()); in WifiCallingPreferenceController()
88 mPhoneStateListener.register(mSubId); in onStart()
93 mPhoneStateListener.unregister(); in onStop()
DVideoCallingPreferenceController.java53 private PhoneCallStateListener mPhoneStateListener; field in VideoCallingPreferenceController
60 mPhoneStateListener = new PhoneCallStateListener(Looper.getMainLooper()); in VideoCallingPreferenceController()
81 mPhoneStateListener.register(mSubId); in onStart()
87 mPhoneStateListener.unregister(); in onStop()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnhanced4gLtePreferenceController.java53 private PhoneCallStateListener mPhoneStateListener; field in Enhanced4gLtePreferenceController
66 mPhoneStateListener = new PhoneCallStateListener(Looper.getMainLooper()); in Enhanced4gLtePreferenceController()
95 mPhoneStateListener.register(mSubId); in onStart()
100 mPhoneStateListener.unregister(); in onStop()
DVideoCallingPreferenceController.java53 private PhoneCallStateListener mPhoneStateListener; field in VideoCallingPreferenceController
60 mPhoneStateListener = new PhoneCallStateListener(Looper.getMainLooper()); in VideoCallingPreferenceController()
79 mPhoneStateListener.register(mSubId); in onStart()
85 mPhoneStateListener.unregister(); in onStop()
DWifiCallingPreferenceController.java60 private PhoneCallStateListener mPhoneStateListener; field in WifiCallingPreferenceController
66 mPhoneStateListener = new PhoneCallStateListener(); in WifiCallingPreferenceController()
79 mPhoneStateListener.register(mContext, mSubId); in onStart()
84 mPhoneStateListener.unregister(); in onStop()
/packages/apps/Messaging/src/com/android/messaging/util/
DConnectivityUtil.java63 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in ConnectivityUtil
92 mTelephonyManager.listen(mPhoneStateListener, in register()
102 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in unregister()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkPreferenceControllerTest.java118 verify(mTelephonyManager).listen(mController.mPhoneStateListener, in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
122 verify(mTelephonyManager).listen(mController.mPhoneStateListener, in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
140 verify(mTelephonyManager).listen(mController.mPhoneStateListener, in serviceStateChange_shouldUpdatePrefSummary()
145 mController.mPhoneStateListener.onServiceStateChanged(null); in serviceStateChange_shouldUpdatePrefSummary()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmService.java72 private final PhoneStateChangeListener mPhoneStateListener = new PhoneStateChangeListener(); field in AlarmService
118 mTelephonyManager.listen(mPhoneStateListener.init(), PhoneStateListener.LISTEN_CALL_STATE); in startAlarm()
133 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopCurrentAlarm()
DAlarmService.kt52 private val mPhoneStateListener = PhoneStateChangeListener() constant in com.android.deskclock.alarms.AlarmService
81 mTelephonyManager.listen(mPhoneStateListener.init(), PhoneStateListener.LISTEN_CALL_STATE) in startAlarm()
96 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE) in stopCurrentAlarm()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/simstatus/
DSimStatusDialogController.java137 private PhoneStateListener mPhoneStateListener; field in SimStatusDialogController
166 mPhoneStateListener = getPhoneStateListener(); in initialize()
187 .listen(mPhoneStateListener, in onResume()
211 .listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onPause()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java76 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in ConnectivityListener
141 telephonyManager.listen(mPhoneStateListener, in onStart()
170 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onStop()
/packages/services/Telephony/src/com/android/phone/settings/
DAccessibilitySettingsFragment.java59 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in AccessibilitySettingsFragment
147 tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onResume()
155 tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onPause()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java142 private PhoneStateListener mPhoneStateListener; field in CellBroadcastAlertAudio
266 mPhoneStateListener = new PhoneStateListener() { in onCreate()
277 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onCreate()
286 mTelephonyManager.listen(mPhoneStateListener, LISTEN_NONE); in onDestroy()
/packages/apps/Car/Cluster/src/android/car/cluster/
DPhoneFragmentViewModel.java44 private ClusterPhoneStateListener mPhoneStateListener = new ClusterPhoneStateListener(); field in PhoneFragmentViewModel
54 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in PhoneFragmentViewModel()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java165 private PhoneStateListener mPhoneStateListener; field in SimStatusDialogController
229 mPhoneStateListener = getPhoneStateListener(); in initialize()
269 mTelephonyManager.listen(mPhoneStateListener, in onResume()
293 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onPause()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/calling/
DWifiCallingSettingsForSub.java103 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in WifiCallingSettingsForSub
362 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onResume()
395 tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onPause()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DWifiCallingSettingsForSub.java105 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in WifiCallingSettingsForSub
421 getTelephonyManagerForSub(mSubId).listen(mPhoneStateListener, in onResume()
450 getTelephonyManagerForSub(mSubId).listen(mPhoneStateListener, in onPause()

12