OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:PhoneStateListener
(Results
1 - 25
of
83
) sorted by null
1
2
3
4
/frameworks/base/telephony/java/android/telephony/
PhoneStateListener.java
35
* pass your
PhoneStateListener
object, along with bitwise-or of the LISTEN_
44
public class
PhoneStateListener
{
45
private static final String LOG_TAG = "
PhoneStateListener
";
267
* Create a
PhoneStateListener
for the Phone with the default subscription.
270
public
PhoneStateListener
() {
275
* Create a
PhoneStateListener
for the Phone with the default subscription
279
public
PhoneStateListener
(Looper looper) {
284
* Create a
PhoneStateListener
for the Phone using the specified subscription.
286
* own non-null Looper use
PhoneStateListener
(int subId, Looper looper) below.
289
public
PhoneStateListener
(Integer subId)
[
all
...]
/cts/tests/tests/telephony/src/android/telephony/cts/
PhoneStateListenerTest.java
21
import android.telephony.
PhoneStateListener
;
47
private
PhoneStateListener
mListener;
65
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_NONE);
76
new
PhoneStateListener
();
94
mListener = new
PhoneStateListener
() {
103
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_SERVICE_STATE);
131
mListener = new
PhoneStateListener
() {
140
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_SIGNAL_STRENGTH);
168
mListener = new
PhoneStateListener
() {
177
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_SIGNAL_STRENGTHS)
[
all
...]
CellLocationTest.java
23
import android.telephony.
PhoneStateListener
;
37
private
PhoneStateListener
mListener;
53
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_NONE);
83
mListener = new
PhoneStateListener
() {
92
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_CELL_LOCATION);
TelephonyManagerTest.java
41
import android.telephony.
PhoneStateListener
;
64
private
PhoneStateListener
mListener;
80
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_NONE);
101
mListener = new
PhoneStateListener
() {
112
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_CELL_LOCATION);
128
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_NONE);
131
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_NONE);
443
mListener = new
PhoneStateListener
() {
452
mTelephonyManager.listen(mListener,
PhoneStateListener
.LISTEN_SERVICE_STATE);
/external/robolectric/v1/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/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
TelephonyStateListeners.java
23
import android.telephony.
PhoneStateListener
;
34
* Store all subclasses of
PhoneStateListener
here.
38
public static class CallStateChangeListener extends
PhoneStateListener
{
41
public static final int sListeningStates =
PhoneStateListener
.LISTEN_CALL_STATE |
42
PhoneStateListener
.LISTEN_PRECISE_CALL_STATE;
107
public static class DataConnectionRealTimeInfoChangeListener extends
PhoneStateListener
{
111
PhoneStateListener
.LISTEN_DATA_CONNECTION_REAL_TIME_INFO;
142
public static class DataConnectionStateChangeListener extends
PhoneStateListener
{
147
PhoneStateListener
.LISTEN_DATA_CONNECTION_STATE;
183
public static class ServiceStateChangeListener extends
PhoneStateListener
{
[
all
...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
PhoneStateListenerTest.java
19
import android.telephony.
PhoneStateListener
;
30
private
PhoneStateListener
mPhoneStateListenerUT;
40
mPhoneStateListenerUT = new
PhoneStateListener
() {
69
Field field =
PhoneStateListener
.class.getDeclaredField("callback");
/packages/services/Telephony/src/com/android/phone/otasp/
OtaspSimStateReceiver.java
23
import android.telephony.
PhoneStateListener
;
34
private
PhoneStateListener
mPhoneStateListener = new
PhoneStateListener
(){
78
PhoneStateListener
.LISTEN_OTASP_CHANGED);
/packages/apps/Settings/src/com/android/settings/network/
MobileNetworkPreferenceController.java
23
import android.telephony.
PhoneStateListener
;
47
PhoneStateListener
mPhoneStateListener;
87
mPhoneStateListener = new
PhoneStateListener
() {
96
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_SERVICE_STATE);
103
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_NONE);
/frameworks/base/services/core/java/com/android/server/connectivity/
DataConnectionStats.java
25
import android.telephony.
PhoneStateListener
;
57
PhoneStateListener
.LISTEN_SERVICE_STATE
58
|
PhoneStateListener
.LISTEN_SIGNAL_STRENGTHS
59
|
PhoneStateListener
.LISTEN_DATA_CONNECTION_STATE
60
|
PhoneStateListener
.LISTEN_DATA_ACTIVITY);
131
private final
PhoneStateListener
mPhoneStateListener = new
PhoneStateListener
() {
/external/robolectric/v1/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
{
/packages/apps/Messaging/src/com/android/messaging/util/
ConnectivityUtil.java
24
import android.telephony.
PhoneStateListener
;
59
private final
PhoneStateListener
mPhoneStateListener = new
PhoneStateListener
() {
96
PhoneStateListener
.LISTEN_SERVICE_STATE);
108
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_NONE);
138
private final
PhoneStateListener
mSignalStrengthListener = new
PhoneStateListener
() {
147
mSignalStrengthListener,
PhoneStateListener
.LISTEN_SIGNAL_STRENGTHS);
151
mTelephonyManager.listen(mSignalStrengthListener,
PhoneStateListener
.LISTEN_NONE);
/frameworks/base/services/core/java/com/android/server/
TelephonyRegistry.java
38
import android.telephony.
PhoneStateListener
;
196
PhoneStateListener
.LISTEN_CALL_FORWARDING_INDICATOR |
197
PhoneStateListener
.LISTEN_MESSAGE_WAITING_INDICATOR |
198
PhoneStateListener
.LISTEN_VOLTE_STATE;
201
PhoneStateListener
.LISTEN_CALL_STATE |
202
PhoneStateListener
.LISTEN_DATA_ACTIVITY |
203
PhoneStateListener
.LISTEN_DATA_CONNECTION_STATE;
206
PhoneStateListener
.LISTEN_PRECISE_CALL_STATE |
207
PhoneStateListener
.LISTEN_PRECISE_DATA_CONNECTION_STATE;
475
if (events !=
PhoneStateListener
.LISTEN_NONE)
[
all
...]
/packages/services/Telephony/src/com/android/phone/settings/
AccessibilitySettingsFragment.java
28
import android.telephony.
PhoneStateListener
;
45
private final
PhoneStateListener
mPhoneStateListener = new
PhoneStateListener
() {
49
* @see android.telephony.
PhoneStateListener
#onCallStateChanged(int,
54
if (DBG) Log.d(LOG_TAG, "
PhoneStateListener
.onCallStateChanged: state=" + state);
106
tm.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_CALL_STATE);
114
tm.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_NONE);
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
VoicemailErrorManager.java
25
import android.telephony.
PhoneStateListener
;
126
telephonyManager.listen(serviceStateListener,
PhoneStateListener
.LISTEN_SERVICE_STATE);
161
telephonyManager.listen(listener,
PhoneStateListener
.LISTEN_NONE);
182
private class ServiceStateListener extends
PhoneStateListener
{
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
MobileNetworkPreferenceControllerTest.java
24
import android.telephony.
PhoneStateListener
;
114
PhoneStateListener
.LISTEN_SERVICE_STATE);
118
PhoneStateListener
.LISTEN_NONE);
136
PhoneStateListener
.LISTEN_SERVICE_STATE);
/packages/apps/Settings/src/com/android/settings/deviceinfo/
SimStatus.java
36
import android.telephony.
PhoneStateListener
;
117
private
PhoneStateListener
mPhoneStateListener;
211
PhoneStateListener
.LISTEN_DATA_CONNECTION_STATE
212
|
PhoneStateListener
.LISTEN_SIGNAL_STRENGTHS
213
|
PhoneStateListener
.LISTEN_SERVICE_STATE);
233
PhoneStateListener
.LISTEN_NONE);
427
PhoneStateListener
.LISTEN_NONE);
430
mPhoneStateListener = new
PhoneStateListener
(mSir.getSubscriptionId()) {
459
PhoneStateListener
.LISTEN_DATA_CONNECTION_STATE
460
|
PhoneStateListener
.LISTEN_SIGNAL_STRENGTH
[
all
...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
HeadsetPhoneState.java
24
import android.telephony.
PhoneStateListener
;
83
private
PhoneStateListener
mPhoneStateListener = null;
145
PhoneStateListener
.LISTEN_SERVICE_STATE |
146
PhoneStateListener
.LISTEN_SIGNAL_STRENGTHS);
160
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_NONE);
259
private
PhoneStateListener
getPhoneStateListener(int subId) {
260
PhoneStateListener
mPhoneStateListener = new
PhoneStateListener
(subId) {
/packages/apps/Dialer/java/com/android/voicemail/impl/
VvmPhoneStateListener.java
20
import android.telephony.
PhoneStateListener
;
31
public class VvmPhoneStateListener extends
PhoneStateListener
{
/cts/tests/tests/permission/src/android/permission/cts/
NoLocationPermissionTest.java
28
import android.telephony.
PhoneStateListener
;
79
PhoneStateListener
phoneStateListener
= new
PhoneStateListener
();
81
telephonyManager.listen(
phoneStateListener
,
PhoneStateListener
.LISTEN_CELL_LOCATION);
110
PhoneStateListener
phoneStateListener
= new
PhoneStateListener
();
/frameworks/base/services/core/java/com/android/server/emergency/
EmergencyAffordanceService.java
33
import android.telephony.
PhoneStateListener
;
75
private
PhoneStateListener
mPhoneStateListener = new
PhoneStateListener
() {
142
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_NONE);
179
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_CELL_INFO
180
|
PhoneStateListener
.LISTEN_CELL_LOCATION);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
ConnectivityListener.java
34
import android.telephony.
PhoneStateListener
;
74
private final
PhoneStateListener
mPhoneStateListener = new
PhoneStateListener
() {
120
PhoneStateListener
.LISTEN_SIGNAL_STRENGTHS);
140
telephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_NONE);
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
AlarmService.java
26
import android.telephony.
PhoneStateListener
;
118
mTelephonyManager.listen(mPhoneStateListener.init(),
PhoneStateListener
.LISTEN_CALL_STATE);
133
mTelephonyManager.listen(mPhoneStateListener,
PhoneStateListener
.LISTEN_NONE);
246
private final class PhoneStateChangeListener extends
PhoneStateListener
{
/packages/services/Telephony/src/com/android/phone/vvm/
VvmSimStateTracker.java
27
import android.telephony.
PhoneStateListener
;
71
private class ServiceStateListener extends
PhoneStateListener
{
87
telephonyManager.listen(this,
PhoneStateListener
.LISTEN_SERVICE_STATE);
92
//
PhoneStateListener
, and mPhoneAccountHandle might be invalid at this point
95
.listen(this,
PhoneStateListener
.LISTEN_NONE);
/packages/apps/Settings/src/com/android/settings/sim/
SimSettings.java
31
import android.telephony.
PhoneStateListener
;
76
private
PhoneStateListener
[] mPhoneStateListener = new
PhoneStateListener
[mPhoneCount];
221
PhoneStateListener
.LISTEN_CALL_STATE);
233
tm.listen(mPhoneStateListener[i],
PhoneStateListener
.LISTEN_NONE);
239
private
PhoneStateListener
getPhoneStateListener(int phoneId, int subId) {
245
mPhoneStateListener[phoneId] = new
PhoneStateListener
(subId) {
248
if (DBG) log("
PhoneStateListener
.onCallStateChanged: state=" + state);
Completed in 3496 milliseconds
1
2
3
4