HomeSort by relevance Sort by last modified time
    Searched refs:phoneType (Results 1 - 25 of 60) 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 173 int phoneType = TelephonyManager.getPhoneType(networkModes[i]);
174 if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
179 } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
185 Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " sub = " + i);
SmsNumberUtils.java 568 int phoneType = phone.getPhoneType();
570 if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
572 } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
579 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/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) {
InCallButtonGridFragment.java 93 int phoneType) {
111 ButtonChooserFactory.newButtonChooser(voiceNetworkType, false /* isWiFi */, phoneType);
InCallFragment.java 85 private int phoneType;
167 phoneType = getContext().getSystemService(TelephonyManager.class).getPhoneType();
316 ButtonChooserFactory.newButtonChooser(voiceNetworkType, primaryCallState.isWifi, phoneType);
439 buttonControllers, buttonChooser, voiceNetworkType, 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 118 int phoneType = mPhone.getPhoneType();
119 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
121 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
PhoneUtils.java 343 int phoneType = ringing.getPhone().getPhoneType();
613 int phoneType = phone.getPhoneType();
624 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
740 int phoneType = cm.getFgPhone().getPhoneType();
741 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
    [all...]
CallNotifier.java 329 int phoneType = mCM.getFgPhone().getPhoneType();
339 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
343 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM
344 || phoneType == PhoneConstants.PHONE_TYPE_SIP
345 || phoneType == PhoneConstants.PHONE_TYPE_IMS
346 || phoneType == PhoneConstants.PHONE_TYPE_THIRD_PARTY) {
351 throw new IllegalStateException("Unexpected phone type: " + phoneType);
438 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
CallFeaturesSetting.java 265 int phoneType = mPhone.getPhoneType();
269 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
276 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
284 throw new IllegalStateException("Unexpected phone type: " + phoneType);
MobileNetworkSettings.java 599 final int phoneType = mPhone.getPhoneType();
600 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
606 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
609 throw new IllegalStateException("Unexpected phone type: " + phoneType);
626 final int phoneType = mPhone.getPhoneType();
627 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
673 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) {
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/compat/
TelephonyManagerCompat.java 71 final int phoneType = telephonyManager.getPhoneType();
72 return phoneType == TelephonyManager.PHONE_TYPE_CDMA
73 || phoneType == TelephonyManager.PHONE_TYPE_GSM;
  /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);
  /cts/tests/tests/telephony/src/android/telephony/cts/
TelephonyManagerTest.java 228 int phoneType = mTelephonyManager.getPhoneType();
229 switch (phoneType) {
238 throw new IllegalArgumentException("Did you add a new phone type? " + phoneType);
571 int phoneType = mTelephonyManager.getPhoneType();
572 switch (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/
ImsSMSDispatcherTest.java 193 private void switchImsSmsFormat(int phoneType) {
194 mSimulatedCommands.setImsRegistrationState(new int[]{1, phoneType});
  /packages/apps/Bluetooth/src/com/android/bluetooth/map/
BluetoothMapSmsPdu.java 478 int phoneType;
495 phoneType = (activePhone == PHONE_TYPE_CDMA) ? SMS_TYPE_CDMA : SMS_TYPE_GSM;
506 newPdu = new SmsPdu(data, encoding, phoneType, languageTable);
538 if(phoneType == SMS_TYPE_GSM){
555 newPdu = new SmsPdu(data, encoding, phoneType, languageTable);
  /packages/apps/Contacts/src/com/android/contacts/
ShortcutIntentBuilder.java 300 byte[] bitmapData, String phoneNumber, int phoneType, String phoneLabel,
313 icon = generatePhoneNumberIcon(drawable, phoneType, phoneLabel,
319 icon = generatePhoneNumberIcon(drawable, phoneType, phoneLabel,
375 private Bitmap generatePhoneNumberIcon(Drawable photo, int phoneType, String phoneLabel,
396 CharSequence overlay = Phone.getTypeLabel(r, phoneType, phoneLabel);
  /cts/tests/app/src/android/app/cts/
SystemFeaturesTest.java 438 int phoneType = mTelephonyManager.getPhoneType();
439 switch (phoneType) {
453 throw new IllegalArgumentException("Did you add a new phone type? " + phoneType);
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
ContactOperations.java 175 * @param phoneType the type: cell, home, etc.
178 public ContactOperations addPhone(String phone, int phoneType) {
182 mValues.put(Phone.TYPE, phoneType);

Completed in 915 milliseconds

1 2 3