OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:TelephonyManager
(Results
1 - 25
of
159
) sorted by null
1
2
3
4
5
6
7
/cts/tests/tests/telephony/src/android/telephony/cts/
TelephonyUtils.java
19
import android.telephony.
TelephonyManager
;
23
public static boolean isSkt(
TelephonyManager
telephonyManager
) {
24
return isOperator(
telephonyManager
, "45005");
27
public static boolean isKt(
TelephonyManager
telephonyManager
) {
28
return isOperator(
telephonyManager
, "45002")
29
|| isOperator(
telephonyManager
, "45004")
30
|| isOperator(
telephonyManager
, "45008");
33
private static boolean isOperator(
TelephonyManager
telephonyManager, String operator)
[
all
...]
TelephonyManagerTest.java
29
import android.telephony.
TelephonyManager
;
37
private
TelephonyManager
mTelephonyManager;
49
(
TelephonyManager
)getContext().getSystemService(Context.TELEPHONY_SERVICE);
63
if (mTelephonyManager.getPhoneType() ==
TelephonyManager
.PHONE_TYPE_CDMA) {
131
assertTrue(mTelephonyManager.getNetworkType() >=
TelephonyManager
.NETWORK_TYPE_UNKNOWN);
132
assertTrue(mTelephonyManager.getPhoneType() >=
TelephonyManager
.PHONE_TYPE_NONE);
133
assertTrue(mTelephonyManager.getSimState() >=
TelephonyManager
.SIM_STATE_UNKNOWN);
134
assertTrue(mTelephonyManager.getDataActivity() >=
TelephonyManager
.DATA_ACTIVITY_NONE);
135
assertTrue(mTelephonyManager.getDataState() >=
TelephonyManager
.DATA_DISCONNECTED);
136
assertTrue(mTelephonyManager.getCallState() >=
TelephonyManager
.CALL_STATE_IDLE)
[
all
...]
CellLocationTest.java
24
import android.telephony.
TelephonyManager
;
31
private
TelephonyManager
mTelephonyManager;
39
(
TelephonyManager
) getContext().getSystemService(Context.TELEPHONY_SERVICE);
NeighboringCellInfoTest.java
19
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_UNKNOWN;
20
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_EDGE;
21
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_GPRS;
22
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_UMTS;
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
TelephonyManagerTest.java
4
import android.telephony.
TelephonyManager
;
23
private
TelephonyManager
manager;
29
manager = newInstanceOf(
TelephonyManager
.class);
46
TelephonyManager
telephonyManager
= (
TelephonyManager
) application.getSystemService(TELEPHONY_SERVICE);
47
shadowOf(
telephonyManager
).setDeviceId(testId);
48
assertEquals(testId,
telephonyManager
.getDeviceId());
53
TelephonyManager
telephonyManager
= (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE)
[
all
...]
/external/chromium_org/content/public/android/java/src/org/chromium/content/common/
DeviceTelephonyInfo.java
8
import android.telephony.
TelephonyManager
;
18
private
TelephonyManager
mTelManager;
22
mTelManager = (
TelephonyManager
) appContext.getSystemService(Context.TELEPHONY_SERVICE);
/packages/apps/Email/tests/src/com/android/emailcommon/
DeviceTests.java
21
import android.telephony.
TelephonyManager
;
29
TelephonyManager
tm =
30
(
TelephonyManager
) getContext().getSystemService(Context.TELEPHONY_SERVICE);
32
LogUtils.w(Logging.LOG_TAG, "
TelephonyManager
not supported. Skipping.");
/external/chromium_org/net/android/java/src/org/chromium/net/
NetworkChangeNotifierAutoDetect.java
14
import android.telephony.
TelephonyManager
;
166
// Use information from
TelephonyManager
to classify the connection.
168
case
TelephonyManager
.NETWORK_TYPE_GPRS:
169
case
TelephonyManager
.NETWORK_TYPE_EDGE:
170
case
TelephonyManager
.NETWORK_TYPE_CDMA:
171
case
TelephonyManager
.NETWORK_TYPE_1xRTT:
172
case
TelephonyManager
.NETWORK_TYPE_IDEN:
174
case
TelephonyManager
.NETWORK_TYPE_UMTS:
175
case
TelephonyManager
.NETWORK_TYPE_EVDO_0:
176
case
TelephonyManager
.NETWORK_TYPE_EVDO_A
[
all
...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DefaultPhoneNotifier.java
26
import android.telephony.
TelephonyManager
;
120
TelephonyManager
telephony =
TelephonyManager
.getDefault();
141
TelephonyManager
.NETWORK_TYPE_UNKNOWN),
187
* Convert the {@link PhoneConstants.State} enum into the
TelephonyManager
.CALL_STATE_*
193
return
TelephonyManager
.CALL_STATE_RINGING;
195
return
TelephonyManager
.CALL_STATE_OFFHOOK;
197
return
TelephonyManager
.CALL_STATE_IDLE;
202
* Convert the
TelephonyManager
.CALL_STATE_* constants into the
207
case
TelephonyManager
.CALL_STATE_RINGING
[
all
...]
PhoneFactory.java
25
import android.telephony.
TelephonyManager
;
103
if (
TelephonyManager
.getLteOnCdmaModeStatic() == PhoneConstants.LTE_ON_CDMA_TRUE) {
119
int phoneType =
TelephonyManager
.getPhoneType(networkMode);
125
switch (
TelephonyManager
.getLteOnCdmaModeStatic()) {
173
switch (
TelephonyManager
.getLteOnCdmaModeStatic()) {
/development/samples/devbytes/telephony/SmsSampleProject/SmsSample/src/main/java/com/example/android/smssample/service/
RespondService.java
21
import android.telephony.
TelephonyManager
;
41
TelephonyManager
.ACTION_RESPOND_VIA_MESSAGE.equals(intent.getAction())) {
/frameworks/base/core/java/android/net/
MobileDataStateTracker.java
33
import android.telephony.
TelephonyManager
;
96
TelephonyManager
.getDefault().getNetworkType(), tag,
97
TelephonyManager
.getDefault().getNetworkTypeName());
121
TelephonyManager
tm = (
TelephonyManager
)mContext.getSystemService(
252
int newSubType =
TelephonyManager
.getDefault().getNetworkType();
253
String subTypeName =
TelephonyManager
.getDefault().getNetworkTypeName();
391
TelephonyManager
tm = new
TelephonyManager
(mContext);
394
case
TelephonyManager
.NETWORK_TYPE_GPRS
[
all
...]
/cts/tests/tests/permission/src/android/permission/cts/
TelephonyManagerPermissionTest.java
20
import android.telephony.
TelephonyManager
;
25
* Test the non-location-related functionality of
TelephonyManager
.
29
TelephonyManager
mTelephonyManager = null;
34
mTelephonyManager = (
TelephonyManager
) mContext.getSystemService(Context.TELEPHONY_SERVICE);
39
* Verify that
TelephonyManager
.getDeviceId requires Permission.
55
* Verify that
TelephonyManager
.getLine1Number requires Permission.
71
* Verify that
TelephonyManager
.getSimSerialNumber requires Permission.
87
* Verify that
TelephonyManager
.getSubscriberId requires Permission.
103
* Verify that
TelephonyManager
.getVoiceMailNumber requires Permission.
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTelephonyManager.java
4
import android.telephony.
TelephonyManager
;
8
@Implements(
TelephonyManager
.class)
18
private int phoneType =
TelephonyManager
.PHONE_TYPE_GSM;
/frameworks/base/telephony/java/android/telephony/
NeighboringCellInfo.java
21
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_UNKNOWN;
22
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_EDGE;
23
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_GPRS;
24
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_UMTS;
25
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_HSDPA;
26
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_HSUPA;
27
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_HSPA;
66
*
TelephonyManager
.NETWORK_TYPE_XXXXXX.
106
* {@link
TelephonyManager
#NETWORK_TYPE_GPRS
TelephonyManager
.NETWORK_TYPE_GPRS}
[
all
...]
ServiceState.java
110
* should use the equivalent
TelephonyManager
.NETWORK_TYPE_*
772
return
TelephonyManager
.NETWORK_TYPE_GPRS;
774
return
TelephonyManager
.NETWORK_TYPE_EDGE;
776
return
TelephonyManager
.NETWORK_TYPE_UMTS;
778
return
TelephonyManager
.NETWORK_TYPE_HSDPA;
780
return
TelephonyManager
.NETWORK_TYPE_HSUPA;
782
return
TelephonyManager
.NETWORK_TYPE_HSPA;
785
return
TelephonyManager
.NETWORK_TYPE_CDMA;
787
return
TelephonyManager
.NETWORK_TYPE_1xRTT;
789
return
TelephonyManager
.NETWORK_TYPE_EVDO_0
[
all
...]
CellLocation.java
64
//
TelephonyManager
.getDefault().getCurrentPhoneType() handles the case when
66
switch(
TelephonyManager
.getDefault().getCurrentPhoneType()) {
92
//
TelephonyManager
.getDefault().getCurrentPhoneType() handles the case when
94
switch(
TelephonyManager
.getDefault().getCurrentPhoneType()) {
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
Device.java
21
import android.telephony.
TelephonyManager
;
98
TelephonyManager
tm =
99
(
TelephonyManager
) context.getSystemService(Context.TELEPHONY_SERVICE);
108
LogUtils.d(Logging.LOG_TAG, "Error in
TelephonyManager
.getDeviceId(): "
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
EmergencyButton.java
24
import android.telephony.
TelephonyManager
;
101
if (
TelephonyManager
.getDefault().getCallState()
102
==
TelephonyManager
.CALL_STATE_OFFHOOK) {
117
if (phoneState ==
TelephonyManager
.CALL_STATE_OFFHOOK) {
KeyguardViewBase.java
25
import android.telephony.
TelephonyManager
;
44
private
TelephonyManager
mTelephonyManager = null;
120
mTelephonyManager = (
TelephonyManager
) getContext().getSystemService(
124
mTelephonyManager.getCallState() !=
TelephonyManager
.CALL_STATE_IDLE) {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
NeighboringCellInfoTest.java
23
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_UNKNOWN;
24
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_EDGE;
25
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_GPRS;
26
import static android.telephony.
TelephonyManager
.NETWORK_TYPE_UMTS;
/packages/apps/Settings/src/com/android/settings/
SmsDefaultDialog.java
27
import android.telephony.
TelephonyManager
;
66
TelephonyManager
tm = (
TelephonyManager
)getSystemService(Context.TELEPHONY_SERVICE);
67
if (tm.getPhoneType() ==
TelephonyManager
.PHONE_TYPE_NONE) {
/frameworks/opt/telephony/src/java/android/telephony/gsm/
SmsMessage.java
19
import android.telephony.
TelephonyManager
;
28
import static android.telephony.
TelephonyManager
.PHONE_TYPE_CDMA;
153
int activePhone =
TelephonyManager
.getDefault().getCurrentPhoneType();
171
int activePhone =
TelephonyManager
.getDefault().getCurrentPhoneType();
245
int activePhone =
TelephonyManager
.getDefault().getCurrentPhoneType();
272
int activePhone =
TelephonyManager
.getDefault().getCurrentPhoneType();
303
int activePhone =
TelephonyManager
.getDefault().getCurrentPhoneType();
618
int activePhone =
TelephonyManager
.getDefault().getCurrentPhoneType();
/packages/apps/Mms/src/com/android/mms/ui/
NoConfirmationSendService.java
23
import android.telephony.
TelephonyManager
;
49
if (!
TelephonyManager
.ACTION_RESPOND_VIA_MESSAGE.equals(action)) {
/frameworks/base/services/java/com/android/server/connectivity/
DataConnectionStats.java
28
import android.telephony.
TelephonyManager
;
46
private int mDataState =
TelephonyManager
.DATA_DISCONNECTED;
54
TelephonyManager
phone =
55
(
TelephonyManager
)mContext.getSystemService(Context.TELEPHONY_SERVICE);
89
&& mDataState ==
TelephonyManager
.DATA_CONNECTED;
Completed in 2283 milliseconds
1
2
3
4
5
6
7