Home
last modified time | relevance | path

Searched refs:PhoneStateListener (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/telephony/java/android/telephony/
DPhoneStateListener.java59 public class PhoneStateListener { class
384 public PhoneStateListener() { in PhoneStateListener() method in PhoneStateListener
394 public PhoneStateListener(Looper looper) { in PhoneStateListener() method in PhoneStateListener
405 public PhoneStateListener(Integer subId) { in PhoneStateListener() method in PhoneStateListener
419 public PhoneStateListener(Integer subId, Looper looper) { in PhoneStateListener() method in PhoneStateListener
436 public PhoneStateListener(@NonNull Executor executor) { in PhoneStateListener() method in PhoneStateListener
440 private PhoneStateListener(Integer subId, Executor e) { in PhoneStateListener() method in PhoneStateListener
958 private WeakReference<PhoneStateListener> mPhoneStateListenerWeakRef;
961 IPhoneStateListenerStub(PhoneStateListener phoneStateListener, Executor executor) { in IPhoneStateListenerStub()
962 mPhoneStateListenerWeakRef = new WeakReference<PhoneStateListener>(phoneStateListener); in IPhoneStateListenerStub()
[all …]
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java44 import android.telephony.PhoneStateListener;
258 PhoneStateListener.LISTEN_CELL_LOCATION
259 | PhoneStateListener.LISTEN_CELL_INFO;
262 PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR
263 | PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR
264 | PhoneStateListener.LISTEN_EMERGENCY_NUMBER_LIST;
267 PhoneStateListener.LISTEN_PRECISE_CALL_STATE |
268 PhoneStateListener.LISTEN_PRECISE_DATA_CONNECTION_STATE;
634 if (events != PhoneStateListener.LISTEN_NONE) { in listen()
670 if ((events & PhoneStateListener.LISTEN_SERVICE_STATE) != 0) { in listen()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneStateListenerExecutorTest.java23 import android.telephony.PhoneStateListener;
46 private PhoneStateListener mPhoneStateListenerUT;
55 mPhoneStateListenerUT = new PhoneStateListener(mSimpleExecutor) { in setUp()
85 Field field = PhoneStateListener.class.getDeclaredField("callback"); in testTriggerServiceStateChanged()
100 Field field = PhoneStateListener.class.getDeclaredField("callback"); in testTriggerUserMobileDataStateChanged()
112 Field field = PhoneStateListener.class.getDeclaredField("callback"); in testTriggerPhysicalChannelConfigurationChanged()
DPhoneStateListenerTest.java24 import android.telephony.PhoneStateListener;
39 private PhoneStateListener mPhoneStateListenerUT;
51 mPhoneStateListenerUT = new PhoneStateListener() { in onLooperPrepared()
95 Field field = PhoneStateListener.class.getDeclaredField("callback"); in testTriggerServiceStateChanged()
112 Field field = PhoneStateListener.class.getDeclaredField("callback"); in testTriggerUserMobileDataStateChanged()
126 Field field = PhoneStateListener.class.getDeclaredField("callback"); in testTriggerPhysicalChannelConfigurationChanged()
DTelephonyRegistryTest.java18 import static android.telephony.PhoneStateListener.LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE;
19 import static android.telephony.PhoneStateListener.LISTEN_PHONE_CAPABILITY_CHANGE;
20 import static android.telephony.PhoneStateListener.LISTEN_SRVCC_STATE_CHANGED;
31 import android.telephony.PhoneStateListener;
45 private PhoneStateListener mPhoneStateListener;
51 public class PhoneStateListenerWrapper extends PhoneStateListener {
/frameworks/base/services/core/java/com/android/server/connectivity/
DDataConnectionStats.java25 import android.telephony.PhoneStateListener;
57 PhoneStateListener.LISTEN_SERVICE_STATE in startMonitoring()
58 | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS in startMonitoring()
59 | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE in startMonitoring()
60 | PhoneStateListener.LISTEN_DATA_ACTIVITY); in startMonitoring()
131 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/base/services/core/java/com/android/server/emergency/
DEmergencyAffordanceService.java33 import android.telephony.PhoneStateListener;
75 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
142 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopScanning()
179 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_INFO in startScanning()
180 | PhoneStateListener.LISTEN_CELL_LOCATION); in startScanning()
/frameworks/base/services/core/java/com/android/server/location/
DComprehensiveCountryDetector.java25 import android.telephony.PhoneStateListener;
81 private PhoneStateListener mPhoneStateListener;
437 mPhoneStateListener = new PhoneStateListener() { in addPhoneStateListener()
451 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in addPhoneStateListener()
457 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in removePhoneStateListener()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java38 import android.telephony.PhoneStateListener;
147 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); in initLocationListeners()
162 PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in initLocationListeners()
344 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataEnabledSettings.java20 import static android.telephony.PhoneStateListener.LISTEN_CALL_STATE;
21 import static android.telephony.PhoneStateListener.LISTEN_NONE;
31 import android.telephony.PhoneStateListener;
158 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
DDcController.java32 import android.telephony.PhoneStateListener;
74 private PhoneStateListener mPhoneStateListener;
101 mPhoneStateListener = new PhoneStateListener(handler.getLooper()) { in DcController()
119 PhoneStateListener.LISTEN_CARRIER_NETWORK_CHANGE); in DcController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileSignalController.java26 import android.telephony.PhoneStateListener;
63 final PhoneStateListener mPhoneStateListener;
161 PhoneStateListener.LISTEN_SERVICE_STATE in registerListener()
162 | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS in registerListener()
163 | PhoneStateListener.LISTEN_CALL_STATE in registerListener()
164 | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE in registerListener()
165 | PhoneStateListener.LISTEN_DATA_ACTIVITY in registerListener()
166 | PhoneStateListener.LISTEN_CARRIER_NETWORK_CHANGE); in registerListener()
572 class MobilePhoneStateListener extends PhoneStateListener {
DUserSwitcherController.java40 import android.telephony.PhoneStateListener;
458 PhoneStateListener.LISTEN_CALL_STATE); in listenForCallState()
461 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
DNetworkControllerImpl.java24 import static android.telephony.PhoneStateListener.LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE;
46 import android.telephony.PhoneStateListener;
115 private PhoneStateListener mPhoneStateListener;
278 mPhoneStateListener = new PhoneStateListener(bgLooper) { in NetworkControllerImpl()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSarManagerTest.java38 import android.telephony.PhoneStateListener;
84 private PhoneStateListener mPhoneStateListener;
203 ArgumentCaptor<PhoneStateListener> phoneStateListenerCaptor = in createSarManager()
204 ArgumentCaptor.forClass(PhoneStateListener.class); in createSarManager()
206 eq(PhoneStateListener.LISTEN_CALL_STATE)); in createSarManager()
258 ArgumentCaptor<PhoneStateListener> phoneStateListenerCaptor = in createSarManagerSensorNegTest()
259 ArgumentCaptor.forClass(PhoneStateListener.class); in createSarManagerSensorNegTest()
261 eq(PhoneStateListener.LISTEN_CALL_STATE)); in createSarManagerSensorNegTest()
294 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_CALL_STATE)); in testSarMgr_enabledTxPowerScenario_registerPhone()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java32 import android.telephony.PhoneStateListener;
97 private final PhoneStateListener mPhoneStateListener;
190 mPhoneStateListener = new PhoneStateListener() { in GpsNetInitiatedHandler()
203 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in GpsNetInitiatedHandler()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextController.java19 import static android.telephony.PhoneStateListener.LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE;
20 import static android.telephony.PhoneStateListener.LISTEN_NONE;
32 import android.telephony.PhoneStateListener;
130 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSarManager.java36 import android.telephony.PhoneStateListener;
311 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in registerPhoneStateListener()
487 private class WifiPhoneStateListener extends PhoneStateListener {
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java60 import android.telephony.PhoneStateListener;
148 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in LegacyGlobalActions()
762 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerHelper.java42 import android.telephony.PhoneStateListener;
88 private final PhoneStateListener mPhoneStateListener;
868 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in internalClearGlobalStateLocked()
887 class MyCallStateListener extends PhoneStateListener {
930 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in initializeTelephonyAndPowerStateListeners()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java50 import android.telephony.PhoneStateListener;
165 public final PhoneStateListener mPhoneStateListener;
309 mPhoneStateListener = new PhoneStateListener(looper) { in PhoneSwitcher()
348 mPhoneStateListener = new PhoneStateListener(looper) { in PhoneSwitcher()
DCarrierResolver.java31 import android.telephony.PhoneStateListener;
182 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java41 import android.telephony.PhoneStateListener;
86 protected PhoneStateListener mPhoneStateListener;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalCallTracker.java44 public class ImsExternalCallTracker implements ImsPhoneCallTracker.PhoneStateListener {
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java55 import android.telephony.PhoneStateListener;
198 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in GlobalActionsDialog()
1418 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {

12