/frameworks/base/telephony/java/android/telephony/ |
PhoneStateListener.java | 38 * pass your PhoneStateListener object, along with bitwise-or of the LISTEN_ 47 public class PhoneStateListener { 168 public PhoneStateListener() { 354 PhoneStateListener.this.onServiceStateChanged((ServiceState)msg.obj); 357 PhoneStateListener.this.onSignalStrengthChanged(msg.arg1); 360 PhoneStateListener.this.onMessageWaitingIndicatorChanged(msg.arg1 != 0); 363 PhoneStateListener.this.onCallForwardingIndicatorChanged(msg.arg1 != 0); 366 PhoneStateListener.this.onCellLocationChanged((CellLocation)msg.obj); 369 PhoneStateListener.this.onCallStateChanged(msg.arg1, (String)msg.obj); 372 PhoneStateListener.this.onDataConnectionStateChanged(msg.arg1, msg.arg2) [all...] |
/cts/tests/tests/telephony/src/android/telephony/cts/ |
CellLocationTest.java | 23 import android.telephony.PhoneStateListener; 33 private PhoneStateListener mListener; 49 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); 69 mListener = new PhoneStateListener() { 78 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION);
|
PhoneStateListenerTest.java | 22 import android.telephony.PhoneStateListener; 40 private PhoneStateListener mListener; 59 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); 64 new PhoneStateListener(); 77 mListener = new PhoneStateListener() { 86 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); 116 mListener = new PhoneStateListener() { 125 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTH); 150 mListener = new PhoneStateListener() { 160 mListener, PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR) [all...] |
TelephonyManagerTest.java | 28 import android.telephony.PhoneStateListener; 42 private PhoneStateListener mListener; 57 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); 74 mListener = new PhoneStateListener() { 83 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); 106 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); 109 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTelephonyManager.java | 3 import android.telephony.PhoneStateListener; 11 private PhoneStateListener listener; 22 public void listen(PhoneStateListener listener, int events) { 33 public PhoneStateListener getListener() {
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
TelephonyManagerTest.java | 3 import android.telephony.PhoneStateListener; 37 manager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE); 40 assertThat(shadowManager.getEventFlags(), equalTo(PhoneStateListener.LISTEN_CALL_STATE)); 91 private class MyPhoneStateListener extends PhoneStateListener {
|
/frameworks/base/services/java/com/android/server/ |
TelephonyRegistry.java | 35 import android.telephony.PhoneStateListener; 129 PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR | 130 PhoneStateListener.LISTEN_CALL_STATE | 131 PhoneStateListener.LISTEN_DATA_ACTIVITY | 132 PhoneStateListener.LISTEN_DATA_CONNECTION_STATE | 133 PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR; 226 if ((events & PhoneStateListener.LISTEN_SERVICE_STATE) != 0) { 233 if ((events & PhoneStateListener.LISTEN_SIGNAL_STRENGTH) != 0) { 242 if ((events & PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR) != 0) { 249 if ((events & PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR) != 0) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
TimerRingService.java | 30 import android.telephony.PhoneStateListener; 44 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { 64 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
|
AlarmKlaxon.java | 34 import android.telephony.PhoneStateListener; 73 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() { 95 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
|
/packages/apps/Phone/src/com/android/phone/ |
OtaStartupReceiver.java | 29 import android.telephony.PhoneStateListener; 57 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() { 120 if (DBG) Log.d(TAG, "Register our PhoneStateListener"); 123 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_OTASP_CHANGED); 126 if (DBG) Log.d(TAG, "PhoneStateListener already registered");
|
CallNotifier.java | 51 import android.telephony.PhoneStateListener; 224 PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR 225 | PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR); 378 PhoneStateListener mPhoneStateListener = new PhoneStateListener() { [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoLocationPermissionTest.java | 27 import android.telephony.PhoneStateListener; 68 PhoneStateListener phoneStateListener = new PhoneStateListener(); 70 telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); 95 PhoneStateListener phoneStateListener = new PhoneStateListener();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetPhoneState.java | 20 import android.telephony.PhoneStateListener; 79 PhoneStateListener.LISTEN_SERVICE_STATE | 80 PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); 85 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); 174 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
|
/frameworks/base/services/java/com/android/server/location/ |
ComprehensiveCountryDetector.java | 25 import android.telephony.PhoneStateListener; 82 private PhoneStateListener mPhoneStateListener; 119 * Number of {@link PhoneStateListener#onServiceStateChanged(ServiceState state)} events that 125 * Total number of {@link PhoneStateListener#onServiceStateChanged(ServiceState state)} events 438 mPhoneStateListener = new PhoneStateListener() { 452 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); 458 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
TrackerService.java | 38 import android.telephony.PhoneStateListener; 147 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); 162 PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); 344 PhoneStateListener mPhoneStateListener = new PhoneStateListener() {
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertAudio.java | 36 import android.telephony.PhoneStateListener; 146 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { 210 mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
|
CellBroadcastReceiver.java | 30 import android.telephony.PhoneStateListener; 61 PhoneStateListener.LISTEN_SERVICE_STATE); 205 private static class ServiceStateListener extends PhoneStateListener {
|
/packages/apps/Settings/src/com/android/settings/ |
RadioInfo.java | 35 import android.telephony.PhoneStateListener; 138 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() { 364 PhoneStateListener.LISTEN_DATA_CONNECTION_STATE 365 | PhoneStateListener.LISTEN_DATA_ACTIVITY 366 | PhoneStateListener.LISTEN_CELL_LOCATION 367 | PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR 368 | PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR 369 | PhoneStateListener.LISTEN_CELL_INFO); 379 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE) [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallLogFragment.java | 35 import android.telephony.PhoneStateListener; 95 private PhoneStateListener mPhoneStateListener; 585 mPhoneStateListener = new PhoneStateListener() { 603 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); 611 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
Status.java | 41 import android.telephony.PhoneStateListener; 184 private PhoneStateListener mPhoneStateListener = new PhoneStateListener() { 318 PhoneStateListener.LISTEN_DATA_CONNECTION_STATE); 338 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); 447 // TODO PhoneStateIntentReceiver is deprecated and PhoneStateListener
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
NetworkController.java | 36 import android.telephony.PhoneStateListener; 212 PhoneStateListener.LISTEN_SERVICE_STATE 213 | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS 214 | PhoneStateListener.LISTEN_CALL_STATE 215 | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE 216 | PhoneStateListener.LISTEN_DATA_ACTIVITY); 428 PhoneStateListener mPhoneStateListener = new PhoneStateListener() { [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
GlobalActions.java | 51 import android.telephony.PhoneStateListener; 127 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); 844 PhoneStateListener mPhoneStateListener = new PhoneStateListener() { [all...] |
/frameworks/base/services/java/com/android/server/net/ |
NetworkStatsService.java | 59 import static android.telephony.PhoneStateListener.LISTEN_DATA_CONNECTION_STATE; 60 import static android.telephony.PhoneStateListener.LISTEN_NONE; 108 import android.telephony.PhoneStateListener; [all...] |
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
DialpadFragment.java | 48 import android.telephony.PhoneStateListener; 202 private final PhoneStateListener mPhoneStateListener = new PhoneStateListener() { 210 // Log.i(TAG, "PhoneStateListener.onCallStateChanged: " 603 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); 648 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
PhoneStatusBarPolicy.java | 35 import android.telephony.PhoneStateListener;
|