HomeSort by relevance Sort by last modified time
    Searched refs:TelephonyManager (Results 1 - 25 of 244) sorted by null

1 2 3 4 5 6 7 8 910

  /cts/tests/tests/telephony/src/android/telephony/cts/
SimRestrictedApisTest.java 21 import android.telephony.TelephonyManager;
27 private TelephonyManager mTelephonyManager;
33 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
37 return mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT;
55 * Tests the TelephonyManager.setLine1NumberForDisplay() API. This makes a call to
62 TelephonyManager.getDefault().setLine1NumberForDisplay("", "");
70 * Tests the TelephonyManager.setLine1NumberForDisplay(long, string, string) API. This makes a
77 TelephonyManager.getDefault().setLine1NumberForDisplayForSubscriber(0, "", "");
85 * Tests the TelephonyManager.iccOpenLogicalChannel() API. This makes a call to
92 TelephonyManager.getDefault().iccOpenLogicalChannel("")
    [all...]
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 31 import android.telephony.TelephonyManager;
40 private TelephonyManager mTelephonyManager;
52 (TelephonyManager)getContext().getSystemService(Context.TELEPHONY_SERVICE);
71 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 26 import android.telephony.TelephonyManager;
35 private TelephonyManager mTelephonyManager;
44 (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;
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
NetworkControllerDataTest.java 5 import android.telephony.TelephonyManager;
30 updateDataConnectionState(TelephonyManager.DATA_CONNECTED,
31 TelephonyManager.NETWORK_TYPE_GSM);
39 updateDataConnectionState(TelephonyManager.DATA_CONNECTED,
40 TelephonyManager.NETWORK_TYPE_CDMA);
48 updateDataConnectionState(TelephonyManager.DATA_CONNECTED,
49 TelephonyManager.NETWORK_TYPE_EDGE);
57 updateDataConnectionState(TelephonyManager.DATA_CONNECTED,
58 TelephonyManager.NETWORK_TYPE_LTE);
66 updateDataConnectionState(TelephonyManager.DATA_CONNECTED
    [all...]
  /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...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
TelephonyManagerUtils.java 20 import android.telephony.TelephonyManager;
27 * This class provides several TelephonyManager util functions.
39 final TelephonyManager telephonyManager =
40 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
41 final String voiceMailLabel = telephonyManager.getVoiceMailAlphaTag();
53 final TelephonyManager telephonyManager =
54 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
55 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase()
    [all...]
  /packages/apps/Email/tests/src/com/android/emailcommon/
DeviceTests.java 21 import android.telephony.TelephonyManager;
31 TelephonyManager tm =
32 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
34 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;
169 // Use information from TelephonyManager to classify the connection.
171 case TelephonyManager.NETWORK_TYPE_GPRS:
172 case TelephonyManager.NETWORK_TYPE_EDGE:
173 case TelephonyManager.NETWORK_TYPE_CDMA:
174 case TelephonyManager.NETWORK_TYPE_1xRTT:
175 case TelephonyManager.NETWORK_TYPE_IDEN:
177 case TelephonyManager.NETWORK_TYPE_UMTS:
178 case TelephonyManager.NETWORK_TYPE_EVDO_0:
179 case TelephonyManager.NETWORK_TYPE_EVDO_A
    [all...]
  /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())) {
  /packages/services/Telecomm/src/com/android/server/telecom/
PhoneStateBroadcaster.java 22 import android.telephony.TelephonyManager;
27 * Send a {@link TelephonyManager#ACTION_PHONE_STATE_CHANGED} broadcast when the call state
33 private int mCurrentState = TelephonyManager.CALL_STATE_IDLE;
51 sendPhoneStateChangedBroadcast(call, TelephonyManager.CALL_STATE_OFFHOOK);
58 sendPhoneStateChangedBroadcast(call, TelephonyManager.CALL_STATE_RINGING);
67 int callState = TelephonyManager.CALL_STATE_IDLE;
69 callState = TelephonyManager.CALL_STATE_RINGING;
72 callState = TelephonyManager.CALL_STATE_OFFHOOK;
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
DefaultPhoneNotifier.java 30 import android.telephony.TelephonyManager;
166 TelephonyManager telephony = TelephonyManager.getDefault();
188 TelephonyManager.NETWORK_TYPE_UNKNOWN),
312 * Convert the {@link PhoneConstants.State} enum into the TelephonyManager.CALL_STATE_*
318 return TelephonyManager.CALL_STATE_RINGING;
320 return TelephonyManager.CALL_STATE_OFFHOOK;
322 return TelephonyManager.CALL_STATE_IDLE;
327 * Convert the TelephonyManager.CALL_STATE_* constants into the
332 case TelephonyManager.CALL_STATE_RINGING
    [all...]
  /frameworks/base/core/java/android/net/
MobileDataStateTracker.java 33 import android.telephony.TelephonyManager;
95 TelephonyManager.getDefault().getNetworkType(), tag,
96 TelephonyManager.getDefault().getNetworkTypeName());
120 TelephonyManager tm = (TelephonyManager)mContext.getSystemService(
251 int newSubType = TelephonyManager.getDefault().getNetworkType();
252 String subTypeName = TelephonyManager.getDefault().getNetworkTypeName();
390 TelephonyManager tm = new TelephonyManager(mContext);
393 case TelephonyManager.NETWORK_TYPE_GPRS
    [all...]
  /frameworks/base/telephony/java/android/telephony/
CellLocation.java 61 // TelephonyManager.getDefault().getCurrentPhoneType() handles the case when
63 switch(TelephonyManager.getDefault().getCurrentPhoneType()) {
89 // TelephonyManager.getDefault().getCurrentPhoneType() handles the case when
91 switch(TelephonyManager.getDefault().getCurrentPhoneType()) {
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...]
  /packages/services/Mms/src/com/android/mms/service/
PhoneUtils.java 19 import android.telephony.TelephonyManager;
37 * @param telephonyManager
42 public static String getNationalNumber(TelephonyManager telephonyManager, int subId,
44 final String country = getSimOrDefaultLocaleCountry(telephonyManager, subId);
74 private static String getSimOrDefaultLocaleCountry(TelephonyManager telephonyManager,
76 String country = getSimCountry(telephonyManager, subId);
85 private static String getSimCountry(TelephonyManager telephonyManager, int subId)
    [all...]
  /cts/tests/tests/permission/src/android/permission/cts/
TelephonyManagerPermissionTest.java 22 import android.telephony.TelephonyManager;
27 * Test the non-location-related functionality of TelephonyManager.
32 TelephonyManager mTelephonyManager = null;
40 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
47 * Verify that TelephonyManager.getDeviceId requires Permission.
67 * Verify that TelephonyManager.getLine1Number requires Permission.
87 * Verify that TelephonyManager.getSimSerialNumber requires Permission.
107 * Verify that TelephonyManager.getSubscriberId requires Permission.
127 * 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;
  /packages/apps/ContactsCommon/src/com/android/contacts/common/location/
CountryDetector.java 12 import android.telephony.TelephonyManager;
49 private final TelephonyManager mTelephonyManager;
77 this (context, (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE),
82 private CountryDetector(Context context, TelephonyManager telephonyManager,
84 mTelephonyManager = telephonyManager;
112 public CountryDetector getInstanceForTest(Context context, TelephonyManager telephonyManager,
114 return new CountryDetector(context, telephonyManager, locationManager, localeProvider);
188 // On CDMA TelephonyManager.getNetworkCountryIso() just returns the SIM's country code
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
PhoneCapabilityTester.java 28 import android.telephony.TelephonyManager;
65 final TelephonyManager telephonyManager = new TelephonyManager(context);
66 sIsPhone = telephonyManager.isVoiceCapable();
  /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/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/Stk/src/com/android/stk/
StkMain.java 28 import android.telephony.TelephonyManager;
43 private TelephonyManager mTm = null;
52 mTm = (TelephonyManager) mContext.getSystemService(
71 int simCount = TelephonyManager.from(mContext).getSimCount();
  /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();

Completed in 1689 milliseconds

1 2 3 4 5 6 7 8 910