HomeSort by relevance Sort by last modified time
    Searched refs:PhoneStateListener (Results 1 - 14 of 14) sorted by null

  /cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
PhoneStateListenerTest.java 21 import android.telephony.PhoneStateListener;
41 private PhoneStateListener mListener;
64 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
71 new PhoneStateListener();
84 mListener = new PhoneStateListener() {
93 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE);
114 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
124 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE);
  /cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
CtsLocationAccessService.java 27 import android.telephony.PhoneStateListener;
91 PhoneStateListener listener = new PhoneStateListener(executor) {
99 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE);
115 PhoneStateListener listener = new PhoneStateListener(executor) {
123 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE);
139 PhoneStateListener listener = new PhoneStateListener(executor) {
147 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE)
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
TelephonyStateListeners.java 22 import android.telephony.PhoneStateListener;
35 * Store all subclasses of PhoneStateListener here.
39 public static class CallStateChangeListener extends PhoneStateListener {
42 public static final int sListeningStates = PhoneStateListener.LISTEN_CALL_STATE |
43 PhoneStateListener.LISTEN_PRECISE_CALL_STATE;
108 public static class DataConnectionRealTimeInfoChangeListener extends PhoneStateListener {
112 PhoneStateListener.LISTEN_DATA_CONNECTION_REAL_TIME_INFO;
143 public static class DataConnectionStateChangeListener extends PhoneStateListener {
148 PhoneStateListener.LISTEN_DATA_CONNECTION_STATE;
184 public static class ActiveDataSubIdChangeListener extends PhoneStateListener {
    [all...]
TelephonyManagerFacade.java 33 import android.telephony.PhoneStateListener;
265 PhoneStateListener.LISTEN_CELL_INFO);
287 PhoneStateListener.LISTEN_ACTIVE_DATA_SUBSCRIPTION_ID_CHANGE);
343 PhoneStateListener.LISTEN_NONE);
365 PhoneStateListener.LISTEN_NONE);
387 PhoneStateListener.LISTEN_NONE);
431 PhoneStateListener.LISTEN_NONE);
475 PhoneStateListener.LISTEN_NONE);
519 PhoneStateListener.LISTEN_NONE);
563 PhoneStateListener.LISTEN_NONE)
    [all...]
  /cts/tests/tests/telephony/current/src/android/telephony/cts/
PhoneStateListenerTest.java 30 import android.telephony.PhoneStateListener;
80 private PhoneStateListener mListener;
121 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
133 new PhoneStateListener();
152 mListener = new PhoneStateListener() {
161 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE);
190 mListener = new PhoneStateListener() {
199 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE);
220 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
230 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE)
    [all...]
CellLocationTest.java 28 import android.telephony.PhoneStateListener;
43 private PhoneStateListener mListener;
58 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
90 mListener = new PhoneStateListener() {
99 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION);
TelephonyManagerTest.java 52 import android.telephony.PhoneStateListener;
105 private PhoneStateListener mListener;
174 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
203 mListener = new PhoneStateListener() {
231 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION);
248 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
255 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE);
    [all...]
CellInfoTest.java 54 import android.telephony.PhoneStateListener;
189 private static class CellInfoListener extends PhoneStateListener {
226 * Test to ensure that the PhoneStateListener receives callbacks every time that new CellInfo
237 // Register a new PhoneStateListener for CellInfo
239 mTm.listen(listener, PhoneStateListener.LISTEN_CELL_INFO);
262 assertNull("PhoneStateListener Fired For Old CellInfo Data", listener.cellInfo);
    [all...]
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowTelephonyManager.java 10 import static android.telephony.PhoneStateListener.LISTEN_CALL_STATE;
11 import static android.telephony.PhoneStateListener.LISTEN_CELL_INFO;
12 import static android.telephony.PhoneStateListener.LISTEN_CELL_LOCATION;
13 import static android.telephony.PhoneStateListener.LISTEN_NONE;
25 import android.telephony.PhoneStateListener;
44 private final Map<PhoneStateListener, Integer> phoneStateRegistrations = new HashMap<>();
51 private PhoneStateListener lastListener;
95 protected void listen(PhoneStateListener listener, int flags) {
114 public PhoneStateListener getListener() {
152 for (PhoneStateListener listener : getListenersForFlags(LISTEN_CALL_STATE))
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowTelephonyManagerTest.java 10 import static android.telephony.PhoneStateListener.LISTEN_CALL_STATE;
11 import static android.telephony.PhoneStateListener.LISTEN_CELL_INFO;
12 import static android.telephony.PhoneStateListener.LISTEN_CELL_LOCATION;
33 import android.telephony.PhoneStateListener;
60 PhoneStateListener listener = mock(PhoneStateListener.class);
145 PhoneStateListener listener = mock(PhoneStateListener.class);
196 PhoneStateListener listener = mock(PhoneStateListener.class)
    [all...]
  /cts/tests/tests/permission2/src/android/permission2/cts/
NoLocationPermissionTest.java 30 import android.telephony.PhoneStateListener;
81 PhoneStateListener phoneStateListener = new PhoneStateListener() {
91 telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION);
  /cts/tests/tests/carrierapi/src/android/carrierapi/cts/
CarrierApiTest.java 49 import android.telephony.PhoneStateListener;
542 PhoneStateListener listener = new PhoneStateListener() {};
545 listener, PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR);
547 listener, PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR);
551 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_NONE);
    [all...]
  /cts/tests/tests/telecom/src/android/telecom/cts/
BaseTelecomTestWithMockServices.java 49 import android.telephony.PhoneStateListener;
108 static class TestPhoneStateListener extends PhoneStateListener {
141 // PhoneStateListener's public API registers the listener on the calling thread, which must
152 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
171 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
ClientTest.java 66 import android.telephony.PhoneStateListener;
111 private PhoneStateListener mPhoneStateListener;
    [all...]

Completed in 341 milliseconds