Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java72 private PhoneStateListener mPhoneStateListener; field in SarManagerTest
124 mPhoneStateListener = phoneStateListenerCaptor.getValue(); in createSarManager()
162 assertNotNull(mPhoneStateListener); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
173 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
189 assertNotNull(mPhoneStateListener); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
192 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
209 assertNotNull(mPhoneStateListener); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
221 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
228 mPhoneStateListener.onCallStateChanged(CALL_STATE_IDLE, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
243 assertNotNull(mPhoneStateListener); in testSarMgr_enabledTxPowerScenario_wifiOff_offHook_onHook()
[all …]
DWifiStateMachineTest.java337 PhoneStateListener mPhoneStateListener; field in WifiStateMachineTest
451 mPhoneStateListener = phoneStateListener; in setUp()
1981 assertNull(mPhoneStateListener); in testVoiceCallSar_disabledTxPowerScenario_WifiOn()
/frameworks/base/services/core/java/com/android/server/location/
DComprehensiveCountryDetector.java81 private PhoneStateListener mPhoneStateListener; field in ComprehensiveCountryDetector
436 if (mPhoneStateListener == null) { in addPhoneStateListener()
437 mPhoneStateListener = new PhoneStateListener() { in addPhoneStateListener()
451 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in addPhoneStateListener()
456 if (mPhoneStateListener != null) { in removePhoneStateListener()
457 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in removePhoneStateListener()
458 mPhoneStateListener = null; in removePhoneStateListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java82 protected PhoneStateListener mPhoneStateListener; field in NetworkControllerBaseTest
162 mPhoneStateListener = mMobileSignalController.mPhoneStateListener; in setupNetworkController()
293 mPhoneStateListener.onSignalStrengthsChanged(mSignalStrength); in updateSignalStrength()
298 mPhoneStateListener.onServiceStateChanged(mServiceState); in updateServiceState()
303 mPhoneStateListener.onCallStateChanged(state, "0123456789"); in updateCallState()
308 mPhoneStateListener.onDataConnectionStateChanged(dataState, dataNetType); in updateDataConnectionState()
312 mPhoneStateListener.onDataActivity(dataActivity); in updateDataActivity()
317 mPhoneStateListener.onCarrierNetworkChange(enable); in setCarrierNetworkChange()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarManager.java66 private final WifiPhoneStateListener mPhoneStateListener; field in SarManager
81 mPhoneStateListener = new WifiPhoneStateListener(looper); in SarManager()
169 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in registerPhoneListener()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java147 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); in initLocationListeners()
161 mTelephonyManager.listen(mPhoneStateListener, in initLocationListeners()
252 mTelephonyManager.listen(mPhoneStateListener, 0); in stopListeners()
344 PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in TrackerService
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java75 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in EmergencyAffordanceService
142 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopScanning()
179 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_INFO in startScanning()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcController.java83 private PhoneStateListener mPhoneStateListener; field in DcController
110 mPhoneStateListener = new PhoneStateListener(handler.getLooper()) { in DcController()
127 mTelephonyManager.listen(mPhoneStateListener, in DcController()
140 if(mTelephonyManager != null) mTelephonyManager.listen(mPhoneStateListener, 0); in dispose()
/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java56 phone.listen(mPhoneStateListener, in startMonitoring()
131 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in DataConnectionStats
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java99 private final PhoneStateListener mPhoneStateListener; field in GpsNetInitiatedHandler
192 mPhoneStateListener = new PhoneStateListener() { in GpsNetInitiatedHandler()
202 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in GpsNetInitiatedHandler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java58 final PhoneStateListener mPhoneStateListener; field in MobileSignalController
89 mPhoneStateListener = new MobilePhoneStateListener(info.getSubscriptionId(), in MobileSignalController()
151 mPhone.listen(mPhoneStateListener, in registerListener()
169 mPhone.listen(mPhoneStateListener, 0); in unregisterListener()
DUserSwitcherController.java455 TelephonyManager.from(mContext).listen(mPhoneStateListener, in listenForCallState()
459 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in UserSwitcherController
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java87 private final PhoneStateListener mPhoneStateListener; field in SoundTriggerHelper
119 mPhoneStateListener = new MyCallStateListener(); in SoundTriggerHelper()
833 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in internalClearGlobalStateLocked()
895 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in initializeTelephonyAndPowerStateListeners()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java148 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in LegacyGlobalActions()
762 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java188 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in GlobalActionsDialog()
1266 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {