/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/telephony2/src/android/telephony2/cts/ |
PhoneNumberTest.java | 22 import android.telephony.TelephonyManager; 59 TelephonyManager tm = context.getSystemService(TelephonyManager.class);
|
/external/robolectric/v1/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/Messaging/src/android/support/v7/mms/ |
DefaultUserAgentInfoLoader.java | 20 import android.telephony.TelephonyManager; 75 // load the MMS User agent and UaProfUrl from TelephonyManager APIs 76 final TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( 78 mUserAgent = telephonyManager.getMmsUserAgent(); 79 mUAProfUrl = telephonyManager.getMmsUAProfUrl();
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
BugleUserAgentInfoLoader.java | 21 import android.telephony.TelephonyManager; 78 // load the MMS User agent and UaProfUrl from TelephonyManager APIs 79 final TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( 81 mUserAgent = telephonyManager.getMmsUserAgent(); 82 mUAProfUrl = telephonyManager.getMmsUAProfUrl();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
MobileSignalController.java | 27 import android.telephony.TelephonyManager; 48 private final TelephonyManager mPhone; 63 private int mDataNetType = TelephonyManager.NETWORK_TYPE_UNKNOWN; 64 private int mDataState = TelephonyManager.DATA_DISCONNECTED; 73 TelephonyManager phone, CallbackHandler callbackHandler, 163 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyIcons.THREE_G); 164 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_A, TelephonyIcons.THREE_G); 165 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EVDO_B, TelephonyIcons.THREE_G); 166 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_EHRPD, TelephonyIcons.THREE_G); 167 mNetworkToIconLookup.put(TelephonyManager.NETWORK_TYPE_UMTS, TelephonyIcons.THREE_G) [all...] |
/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 | 111 * should use the equivalent TelephonyManager.NETWORK_TYPE_* [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CarrierAppUtils.java | 25 import android.telephony.TelephonyManager; 63 IPackageManager packageManager, TelephonyManager telephonyManager, int userId) { 69 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, telephonyManager, userId, 74 * Like {@link #disableCarrierAppsUntilPrivileged(String, IPackageManager, TelephonyManager, 92 null /* telephonyManager */, userId, systemCarrierAppsDisabledUntilUsed); 98 IPackageManager packageManager, @Nullable TelephonyManager telephonyManager, int userId, 111 boolean hasPrivileges = telephonyManager != null && 112 telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(packageName) = [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/ |
CountryDetector.java | 12 import android.telephony.TelephonyManager; 51 private final TelephonyManager mTelephonyManager; 79 this (context, (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE), 84 private CountryDetector(Context context, TelephonyManager telephonyManager, 86 mTelephonyManager = telephonyManager; 119 public CountryDetector getInstanceForTest(Context context, TelephonyManager telephonyManager, 121 return new CountryDetector(context, telephonyManager, locationManager, localeProvider); 195 // On CDMA TelephonyManager.getNetworkCountryIso() just returns the SIM's country code [all...] |
/packages/apps/Settings/src/com/android/settings/sim/ |
SimSelectNotification.java | 29 import android.telephony.TelephonyManager; 45 final TelephonyManager telephonyManager = (TelephonyManager) 48 final int numSlots = telephonyManager.getSimCount(); 70 state = telephonyManager.getSimState(i); 71 if (!(state == TelephonyManager.SIM_STATE_ABSENT 72 || state == TelephonyManager.SIM_STATE_READY 73 || state == TelephonyManager.SIM_STATE_UNKNOWN)) {
|
/packages/services/Telephony/src/com/android/phone/settings/ |
AccessibilitySettingsFragment.java | 30 import android.telephony.TelephonyManager; 64 (state == TelephonyManager.CALL_STATE_IDLE)); 108 TelephonyManager tm = 109 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); 116 TelephonyManager tm = 117 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
|
VoicemailNotificationSettingsUtil.java | 24 import android.telephony.TelephonyManager; 88 TelephonyManager telephonyManager = TelephonyManager.from(phone.getContext()); 91 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { 127 TelephonyManager telephonyManager = TelephonyManager.from(phone.getContext()); 130 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) {
|
/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(): "
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
CreateConnectionTimeout.java | 24 import android.telephony.TelephonyManager; 123 TelephonyManager telephonyManager = 124 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); 125 if (telephonyManager.isRadioOn()) {
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
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;
|
CellInfoTest.java | 26 import android.telephony.TelephonyManager; 33 * Test TelephonyManager.getAllCellInfo() 40 private TelephonyManager mTelephonyManager; 52 (TelephonyManager)getContext().getSystemService(Context.TELEPHONY_SERVICE); 72 assertNotNull("TelephonyManager.getAllCellInfo() returned NULL!", allCellInfo); 73 assertTrue("TelephonyManager.getAllCellInfo() returned zero-length list!",
|
/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();
|
/packages/services/Telephony/src/com/android/services/telephony/activation/ |
SimActivationActivity.java | 24 import android.telephony.TelephonyManager; 71 setResult(TelephonyManager.SIM_ACTIVATION_RESULT_IN_PROGRESS);
|
/frameworks/base/services/core/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;
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/ |
OmtpVvmCarrierConfigHelper.java | 24 import android.telephony.TelephonyManager; 70 return (TelephonyManager.VVM_TYPE_OMTP.equals(mVvmType) || 71 TelephonyManager.VVM_TYPE_CVVM.equals(mVvmType)); 158 case TelephonyManager.VVM_TYPE_OMTP: 162 case TelephonyManager.VVM_TYPE_CVVM:
|
/cts/tests/tests/permission/src/android/permission/cts/ |
TelephonyManagerPermissionTest.java | 23 import android.telephony.TelephonyManager; 28 * Test the non-location-related functionality of TelephonyManager. 33 TelephonyManager mTelephonyManager = null; 41 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); 48 * Verify that TelephonyManager.getDeviceId requires Permission. 74 * Verify that TelephonyManager.getLine1Number requires Permission. 94 * Verify that TelephonyManager.getSimSerialNumber requires Permission. 114 * Verify that TelephonyManager.getSubscriberId requires Permission. 134 * Verify that TelephonyManager.getVoiceMailNumber requires Permission.
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
DataIdleTest.java | 28 import android.telephony.TelephonyManager; 38 private TelephonyManager mTelephonyManager; 49 mTelephonyManager = (TelephonyManager) c.getSystemService(Context.TELEPHONY_SERVICE);
|