/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SarManagerTest.java | 68 private PhoneStateListener mPhoneStateListener; field in SarManagerTest 143 mPhoneStateListener = phoneStateListenerCaptor.getValue(); in createSarManager() 144 assertNotNull(mPhoneStateListener); in createSarManager() 191 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook() 209 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn() 239 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook() 246 mPhoneStateListener.onCallStateChanged(CALL_STATE_IDLE, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook() 269 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOff_offHook_onHook() 272 mPhoneStateListener.onCallStateChanged(CALL_STATE_IDLE, ""); in testSarMgr_enabledTxPowerScenario_wifiOff_offHook_onHook() 301 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledSar_wifiOn_offHook_wifiOff_onHook() [all …]
|
D | WifiServiceImplTest.java | 370 private PhoneStateListener mPhoneStateListener; field in WifiServiceImplTest 8990 mPhoneStateListener = phoneStateListenerCaptor.getValue(); in testPhoneActiveDataSubscriptionIdChangedUpdateSoftApCapability() 8991 assertNotNull(mPhoneStateListener); in testPhoneActiveDataSubscriptionIdChangedUpdateSoftApCapability() 8992 mPhoneStateListener.onActiveDataSubscriptionIdChanged(2); in testPhoneActiveDataSubscriptionIdChangedUpdateSoftApCapability()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetPhoneState.java | 70 private PhoneStateListener mPhoneStateListener; field in HeadsetPhoneState 160 if (mPhoneStateListener != null) { in startListenForPhoneState() 176 mPhoneStateListener = new HeadsetPhoneStateListener(command -> mHandler.post(command)); in startListenForPhoneState() 177 mTelephonyManager.listen(mPhoneStateListener, events); in startListenForPhoneState() 187 if (mPhoneStateListener == null) { in stopListenForPhoneState() 195 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopListenForPhoneState() 196 mPhoneStateListener = null; in stopListenForPhoneState()
|
/packages/apps/Settings/src/com/android/settings/ |
D | AirplaneModeEnabler.java | 65 PhoneStateListener mPhoneStateListener; field in AirplaneModeEnabler 76 mPhoneStateListener = new PhoneStateListener(Looper.getMainLooper()) { in AirplaneModeEnabler() 102 mTelephonyManager.listen(mPhoneStateListener, in start() 110 mTelephonyManager.listen(mPhoneStateListener, in stop()
|
/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/src/com/android/settings/homepage/contextualcards/conditional/ |
D | CellularDataConditionController.java | 131 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in CellularDataConditionController 141 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopPhoneStateListener() 154 mTelephonyManager.listen(mPhoneStateListener, in restartPhoneStateListener()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
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/apps/Car/Cluster/DirectRenderingCluster/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/modules/Wifi/service/java/com/android/server/wifi/ |
D | SarManager.java | 92 private final WifiPhoneStateListener mPhoneStateListener; field in SarManager 108 mPhoneStateListener = new WifiPhoneStateListener(looper); in SarManager() 297 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in registerPhoneStateListener()
|
D | WifiDataStall.java | 83 private final PhoneStateListener mPhoneStateListener; field in WifiDataStall 165 mPhoneStateListener = new PhoneStateListener(new HandlerExecutor(handler)) { in WifiDataStall() 240 mTelephonyManager.listen(mPhoneStateListener, in enablePhoneStateListener() 251 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in disablePhoneStateListener()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ConnectivityListener.java | 82 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in ConnectivityListener 148 telephonyManager.listen(mPhoneStateListener, in start() 164 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stop()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | ConnectivityListener.java | 82 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in ConnectivityListener 160 telephonyManager.listen(mPhoneStateListener, in onStart() 194 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onStop()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertAudio.java | 165 private PhoneStateListener mPhoneStateListener; field in CellBroadcastAlertAudio 291 mPhoneStateListener = new PhoneStateListener() { in onCreate() 302 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onCreate() 312 mTelephonyManager.listen(mPhoneStateListener, LISTEN_NONE); in onDestroy()
|
D | CellBroadcastAlertService.java | 217 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onCreate() 223 mTelephonyManager.listen(mPhoneStateListener, 0); in onDestroy() 1081 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener( field in CellBroadcastAlertService
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | AirplaneModeEnablerTest.java | 60 mAirplaneModeEnabler.mPhoneStateListener.onRadioPowerStateChanged( in onRadioPowerStateChanged_beenInvoke_invokeOnAirplaneModeChanged()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastAlertAudioTest.java | 538 PhoneStateListener mPhoneStateListener = phoneStateListenerCaptor.getValue(); local 551 mPhoneStateListener.onCallStateChanged(TelephonyManager.CALL_STATE_OFFHOOK, "");
|
D | CellBroadcastAlertServiceTest.java | 926 PhoneStateListener mPhoneStateListener = phoneStateListenerCaptor.getValue(); in testPlayPendingAlert() local 927 mPhoneStateListener.onCallStateChanged(TelephonyManager.CALL_STATE_OFFHOOK, ""); in testPlayPendingAlert() 940 mPhoneStateListener.onCallStateChanged(TelephonyManager.CALL_STATE_IDLE, ""); in testPlayPendingAlert()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 313 private PhoneStateListener mPhoneStateListener; field in TetheringTest 701 mPhoneStateListener = phoneListenerCaptor.getValue(); in initTetheringOnTestThread() 2422 mPhoneStateListener.onActiveDataSubscriptionIdChanged(fakeSubId); in testMultiSimAware() 2537 mPhoneStateListener.onActiveDataSubscriptionIdChanged(fakeSubId); in workingWifiP2pGroupOwnerLegacyMode()
|