Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyRegistryTest.java68 private PhoneStateListenerWrapper mPhoneStateListener; field in TelephonyRegistryTest
169 mPhoneStateListener = new PhoneStateListenerWrapper(); in setUp()
189 mPhoneStateListener.callback, in testPhoneCapabilityChanged()
210 mPhoneStateListener.callback, in testActiveDataSubChanged()
237 null, mPhoneStateListener.callback, in testSrvccStateChanged()
262 null, mPhoneStateListener.callback, in testSrvccStateChangedNoPermission()
276 null, mPhoneStateListener.callback, in testMultiSimConfigChange()
315 null, mPhoneStateListener.callback, in testPreciseDataConnectionStateChanged()
319 assertEquals(mPhoneStateListener.invocationCount.get(), 1); in testPreciseDataConnectionStateChanged()
328 assertEquals(mPhoneStateListener.invocationCount.get(), 2); in testPreciseDataConnectionStateChanged()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java84 private PhoneStateListener mPhoneStateListener; field in SarManagerTest
207 mPhoneStateListener = phoneStateListenerCaptor.getValue(); in createSarManager()
208 assertNotNull(mPhoneStateListener); in createSarManager()
262 mPhoneStateListener = phoneStateListenerCaptor.getValue(); in createSarManagerSensorNegTest()
263 assertNotNull(mPhoneStateListener); in createSarManagerSensorNegTest()
327 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook()
345 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_offHook_wifiOn()
375 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
382 mPhoneStateListener.onCallStateChanged(CALL_STATE_IDLE, ""); in testSarMgr_enabledTxPowerScenario_wifiOn_offHook_onHook()
405 mPhoneStateListener.onCallStateChanged(CALL_STATE_OFFHOOK, ""); in testSarMgr_enabledTxPowerScenario_wifiOff_offHook_onHook()
[all …]
DClientModeImplTest.java347 PhoneStateListener mPhoneStateListener; field in ClientModeImplTest
497 mPhoneStateListener = phoneStateListener; in setUp()
2345 assertNull(mPhoneStateListener); in testVoiceCallSar_disabledTxPowerScenario_WifiOn()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/dataconnection/
DVendorDataResetEventTracker.java58 private PhoneStateListener mPhoneStateListener = null; field in VendorDataResetEventTracker
137 if (mPhoneStateListener == null) { in startResetEventTracker()
138 mPhoneStateListener = new PhoneStateListener() { in startResetEventTracker()
164 listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); in startResetEventTracker()
175 if (mPhoneStateListener != null) { in stopResetEventTracker()
176 mTelephonyManager.listen(mPhoneStateListener, in stopResetEventTracker()
/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.java94 protected PhoneStateListener mPhoneStateListener; field in NetworkControllerBaseTest
183 mPhoneStateListener = mMobileSignalController.mPhoneStateListener; in setupNetworkController()
316 mPhoneStateListener.onSignalStrengthsChanged(mSignalStrength); in updateSignalStrength()
321 mPhoneStateListener.onServiceStateChanged(mServiceState); in updateServiceState()
322 mPhoneStateListener.onDisplayInfoChanged(mTelephonyDisplayInfo); in updateServiceState()
327 mPhoneStateListener.onCallStateChanged(state, "0123456789"); in updateCallState()
339 mPhoneStateListener.onDataConnectionStateChanged(dataState, dataNetType); in updateDataConnectionState()
343 mPhoneStateListener.onDataActivity(dataActivity); in updateDataActivity()
348 mPhoneStateListener.onCarrierNetworkChange(enable); in setCarrierNetworkChange()
/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java47 private final PhoneStateListener mPhoneStateListener; field in DataConnectionStats
58 mPhoneStateListener = new PhoneStateListenerImpl(listenerHandler.getLooper()); in DataConnectionStats()
64 phone.listen(mPhoneStateListener, in startMonitoring()
/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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcController.java95 private PhoneStateListener mPhoneStateListener; field in DcController
132 mPhoneStateListener = new PhoneStateListener(new HandlerExecutor(handler)) { in DcController()
147 mTelephonyManager.listen(mPhoneStateListener, in DcController()
160 if(mTelephonyManager != null) mTelephonyManager.listen(mPhoneStateListener, 0); in dispose()
DDataEnabledSettings.java153 mTelephonyManager.listen(mPhoneStateListener, LISTEN_NONE); in updatePhoneStateListener()
157 mTelephonyManager.listen(mPhoneStateListener, LISTEN_CALL_STATE); in updatePhoneStateListener()
160 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in DataEnabledSettings
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarManager.java87 private final WifiPhoneStateListener mPhoneStateListener; field in SarManager
111 mPhoneStateListener = new WifiPhoneStateListener(looper); in SarManager()
311 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in registerPhoneStateListener()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java98 private final PhoneStateListener mPhoneStateListener; field in GpsNetInitiatedHandler
199 mPhoneStateListener = new PhoneStateListener() { in GpsNetInitiatedHandler()
212 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in GpsNetInitiatedHandler()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java123 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in CarrierTextController
230 telephonyManager.listen(mPhoneStateListener, in setListening()
243 telephonyManager.listen(mPhoneStateListener, LISTEN_NONE); in setListening()
DKeyguardUpdateMonitor.java397 public PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in KeyguardUpdateMonitor
1628 telephony.listen(mPhoneStateListener, LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE); in KeyguardUpdateMonitor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java67 final PhoneStateListener mPhoneStateListener; field in MobileSignalController
102 mPhoneStateListener = new MobilePhoneStateListener(receiverLooper); in MobileSignalController()
161 mPhone.listen(mPhoneStateListener, in registerListener()
181 mPhone.listen(mPhoneStateListener, 0); in unregisterListener()
DNetworkControllerImpl.java109 private PhoneStateListener mPhoneStateListener; field in NetworkControllerImpl
282 mPhoneStateListener = new PhoneStateListener(bgLooper) { in NetworkControllerImpl()
333 mPhone.listen(mPhoneStateListener, LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE); in registerListeners()
DUserSwitcherController.java458 TelephonyManager.from(mContext).listen(mPhoneStateListener, in listenForCallState()
462 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in UserSwitcherController
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java88 private final PhoneStateListener mPhoneStateListener; field in SoundTriggerHelper
120 mPhoneStateListener = new MyCallStateListener(); in SoundTriggerHelper()
876 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in internalClearGlobalStateLocked()
942 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in initializeTelephonyAndPowerStateListeners()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java146 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in LegacyGlobalActions()
758 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java226 private PhoneStateListener mPhoneStateListener; field in TetheringTest
549 mPhoneStateListener = phoneListenerCaptor.getValue(); in setUp()
1475 mPhoneStateListener.onActiveDataSubscriptionIdChanged(fakeSubId); in testMultiSimAware()
1588 mPhoneStateListener.onActiveDataSubscriptionIdChanged(fakeSubId); in workingWifiP2pGroupOwnerLegacyMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java469 mKeyguardUpdateMonitor.mPhoneStateListener.onActiveDataSubscriptionIdChanged( in testGetSubscriptionInfo_whenInGroupedSubWithOpportunistic()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java199 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in GlobalActionsDialog()
1409 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierResolver.java183 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { field in CarrierResolver