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

1 2 3

  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTelephonyManager.java 18 private int phoneType = TelephonyManager.PHONE_TYPE_GSM;
104 return phoneType;
107 public void setPhoneType(int phoneType) {
108 this.phoneType = phoneType;
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
TelephonyCapabilities.java 181 public static boolean supportsAdn(int phoneType) {
182 return phoneType == PhoneConstants.PHONE_TYPE_GSM;
192 public static boolean canDistinguishDialingAndConnected(int phoneType) {
193 return phoneType == PhoneConstants.PHONE_TYPE_GSM;
PhoneFactory.java 189 int phoneType = TelephonyManager.getPhoneType(networkModes[i]);
190 if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
195 } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
201 Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " sub = " + i);
SmsNumberUtils.java 569 int phoneType = phone.getPhoneType();
571 if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
573 } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
580 if (DBG) Rlog.w(TAG, "warning! unknown mPhoneType value=" + phoneType);
  /tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/
RadioHelper.java 71 String phoneType = null;
73 for (int i = 0; i < RETRY_ATTEMPTS && (phoneType == null || simState == null); i++) {
74 phoneType = getPhoneType();
76 CLog.d("phonetype: %s", phoneType);
81 if (phoneType == null || simState == null) {
82 CLog.d("Error: phoneType or simState is null.");
86 if ((phoneType.compareToIgnoreCase("2") == 0) &&
88 // GSM device as phoneType "1"
  /packages/apps/Contacts/src/com/android/contacts/compat/
TelephonyManagerCompat.java 51 final int phoneType = telephonyManager.getPhoneType();
52 return phoneType == TelephonyManager.PHONE_TYPE_CDMA ||
53 phoneType == TelephonyManager.PHONE_TYPE_GSM;
  /packages/apps/EmergencyInfo/src/com/android/emergency/
EmergencyContactManager.java 43 String phoneType = null;
61 phoneType = ContactsContract.CommonDataKinds.Phone.getTypeLabel(
92 return new Contact(contactLookupUri, phoneUri, name, phoneNumber, phoneType, photo);
144 String phoneType,
150 mPhoneType = phoneType;
  /packages/services/Telephony/src/com/android/phone/
SimContacts.java 77 final int phoneType;
84 phoneType = Phone.TYPE_WORK;
86 phoneType = Phone.TYPE_MOBILE;
88 phoneType = Phone.TYPE_HOME;
90 phoneType = Phone.TYPE_OTHER;
94 phoneType = Phone.TYPE_OTHER;
143 final int phoneType = namePhoneTypePair.phoneType;
175 builder.withValue(Phone.TYPE, phoneType);
MMIDialogActivity.java 122 int phoneType = mPhone.getPhoneType();
123 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
125 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
PhoneUtils.java 336 int phoneType = ringing.getPhone().getPhoneType();
606 int phoneType = phone.getPhoneType();
617 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
733 int phoneType = cm.getFgPhone().getPhoneType();
734 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
    [all...]
CallNotifier.java 339 int phoneType = mCM.getFgPhone().getPhoneType();
349 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
353 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM
354 || phoneType == PhoneConstants.PHONE_TYPE_SIP
355 || phoneType == PhoneConstants.PHONE_TYPE_IMS
356 || phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY) {
361 throw new IllegalStateException("Unexpected phone type: " + phoneType);
448 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
    [all...]
CallFeaturesSetting.java 272 int phoneType = mPhone.getPhoneType();
276 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
283 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
291 throw new IllegalStateException("Unexpected phone type: " + phoneType);
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowTelephonyManager.java 41 private int phoneType = TelephonyManager.PHONE_TYPE_GSM;
199 return phoneType;
202 public void setPhoneType(int phoneType) {
203 this.phoneType = phoneType;
  /packages/apps/Dialer/java/com/android/dialer/speeddial/
FavoritesViewHolder.java 45 private final TextView phoneType;
57 phoneType = view.findViewById(R.id.phone_type);
85 phoneType.setText(getLabel(context.getResources(), cursor));
DisambigDialog.java 139 private void insertOption(String number, String phoneType, boolean isVideoReachable) {
144 ((TextView) view.findViewById(R.id.phone_type)).setText(phoneType);
  /packages/apps/Dialer/java/com/android/incallui/incall/impl/
ButtonChooserFactory.java 35 * @param phoneType the result of a call to {@link TelephonyManager#getPhoneType()}.
39 int voiceNetworkType, boolean isWiFi, int phoneType) {
44 if (phoneType == TelephonyManager.PHONE_TYPE_CDMA) {
48 if (phoneType == TelephonyManager.PHONE_TYPE_GSM) {
77 // For multi-sim devices, the first sim's phoneType is used so hold button might be not
InCallButtonGridFragment.java 94 int phoneType) {
112 ButtonChooserFactory.newButtonChooser(voiceNetworkType, false /* isWiFi */, phoneType);
  /packages/apps/Settings/src/com/android/settings/deviceinfo/imei/
ImeiInfoPreferenceController.java 97 final int phoneType = mTelephonyManager.getPhoneType();
98 if (phoneType == PHONE_TYPE_CDMA) {
  /packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
Cp2Contact.java 30 public abstract int phoneType();
116 row[Projections.PHONE_TYPE] = phoneType();
  /packages/services/Telephony/sip/src/com/android/services/telephony/sip/
SipConnection.java 330 int phoneType = PhoneConstants.PHONE_TYPE_SIP;
333 b.putInt(TelecomManager.EXTRA_CALL_TECHNOLOGY_TYPE, phoneType);
336 getExtras().putInt(TelecomManager.EXTRA_CALL_TECHNOLOGY_TYPE, phoneType);
  /frameworks/base/services/core/java/com/android/server/location/
ComprehensiveCountryDetector.java 213 final int phoneType = mTelephonyManager.getPhoneType();
214 if (DEBUG) Slog.v(TAG, " phonetype=" + phoneType);
215 return phoneType == TelephonyManager.PHONE_TYPE_GSM;
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
SmsDispatchersControllerTest.java 182 private void switchImsSmsFormat(int phoneType) {
183 mSimulatedCommands.setImsRegistrationState(new int[]{1, phoneType});
  /cts/tests/tests/telephony/src/android/telephony/cts/
TelephonyManagerTest.java 254 int phoneType = mTelephonyManager.getPhoneType();
255 switch (phoneType) {
264 throw new IllegalArgumentException("Did you add a new phone type? " + phoneType);
601 int phoneType = mTelephonyManager.getPhoneType();
602 switch (phoneType) {
  /packages/apps/Bluetooth/src/com/android/bluetooth/map/
BluetoothMapSmsPdu.java 513 int phoneType;
532 phoneType = (activePhone == PHONE_TYPE_CDMA) ? SMS_TYPE_CDMA : SMS_TYPE_GSM;
545 newPdu = new SmsPdu(data, encoding, phoneType, languageTable);
575 if (phoneType == SMS_TYPE_GSM) {
593 newPdu = new SmsPdu(data, encoding, phoneType, languageTable);
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/
ShortcutIntentBuilder.java 314 byte[] bitmapData, String phoneNumber, int phoneType, String phoneLabel,
327 icon = generatePhoneNumberIcon(drawable, phoneType, phoneLabel,
333 icon = generatePhoneNumberIcon(drawable, phoneType, phoneLabel,
402 private Bitmap generatePhoneNumberIcon(Drawable photo, int phoneType, String phoneLabel,
423 CharSequence overlay = Phone.getTypeLabel(r, phoneType, phoneLabel);

Completed in 936 milliseconds

1 2 3