Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java68 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 …]
DWifiServiceImplTest.java370 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/
DHeadsetPhoneState.java70 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/
DAirplaneModeEnabler.java65 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/
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/src/com/android/settings/homepage/contextualcards/conditional/
DCellularDataConditionController.java131 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/
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/apps/Car/Cluster/DirectRenderingCluster/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/modules/Wifi/service/java/com/android/server/wifi/
DSarManager.java92 private final WifiPhoneStateListener mPhoneStateListener; field in SarManager
108 mPhoneStateListener = new WifiPhoneStateListener(looper); in SarManager()
297 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in registerPhoneStateListener()
DWifiDataStall.java83 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/
DConnectivityListener.java82 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/
DConnectivityListener.java82 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/
DCellBroadcastAlertAudio.java165 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()
DCellBroadcastAlertService.java217 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/
DAirplaneModeEnablerTest.java60 mAirplaneModeEnabler.mPhoneStateListener.onRadioPowerStateChanged( in onRadioPowerStateChanged_beenInvoke_invokeOnAirplaneModeChanged()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java538 PhoneStateListener mPhoneStateListener = phoneStateListenerCaptor.getValue(); local
551 mPhoneStateListener.onCallStateChanged(TelephonyManager.CALL_STATE_OFFHOOK, "");
DCellBroadcastAlertServiceTest.java926 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/
DTetheringTest.java313 private PhoneStateListener mPhoneStateListener; field in TetheringTest
701 mPhoneStateListener = phoneListenerCaptor.getValue(); in initTetheringOnTestThread()
2422 mPhoneStateListener.onActiveDataSubscriptionIdChanged(fakeSubId); in testMultiSimAware()
2537 mPhoneStateListener.onActiveDataSubscriptionIdChanged(fakeSubId); in workingWifiP2pGroupOwnerLegacyMode()