/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetPhoneState.java | 71 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/ |
D | MobileNetworkPreferenceController.java | 57 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()
|
D | ApnSettings.java | 134 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/ |
D | MobileNetworkPreferenceController.java | 63 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/ |
D | AirplaneModeEnabler.java | 63 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/ |
D | SimSettings.java | 79 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/ |
D | SimSettings.java | 79 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/ |
D | Enhanced4gLtePreferenceController.java | 53 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()
|
D | WifiCallingPreferenceController.java | 62 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()
|
D | VideoCallingPreferenceController.java | 53 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/ |
D | Enhanced4gLtePreferenceController.java | 53 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()
|
D | VideoCallingPreferenceController.java | 53 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()
|
D | WifiCallingPreferenceController.java | 60 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/ |
D | ConnectivityUtil.java | 63 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/ |
D | MobileNetworkPreferenceControllerTest.java | 118 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/ |
D | AlarmService.java | 72 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()
|
D | AlarmService.kt | 52 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/ |
D | SimStatusDialogController.java | 137 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/ |
D | ConnectivityListener.java | 76 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/ |
D | AccessibilitySettingsFragment.java | 59 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/ |
D | CellBroadcastAlertAudio.java | 142 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/ |
D | PhoneFragmentViewModel.java | 44 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/ |
D | SimStatusDialogController.java | 165 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/ |
D | WifiCallingSettingsForSub.java | 103 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/ |
D | WifiCallingSettingsForSub.java | 105 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in WifiCallingSettingsForSub 421 getTelephonyManagerForSub(mSubId).listen(mPhoneStateListener, in onResume() 450 getTelephonyManagerForSub(mSubId).listen(mPhoneStateListener, in onPause()
|