/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 | 180 int phoneType = TelephonyManager.getPhoneType(networkModes[i]); 181 if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { 186 } else if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 192 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/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 | 88 private int phoneType; 170 phoneType = getContext().getSystemService(TelephonyManager.class).getPhoneType(); 319 ButtonChooserFactory.newButtonChooser(voiceNetworkType, primaryCallState.isWifi, phoneType); 446 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) { [all...] |
CallFeaturesSetting.java | 260 int phoneType = mPhone.getPhoneType(); 264 if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) { 271 } else if (phoneType == PhoneConstants.PHONE_TYPE_GSM) { 279 throw new IllegalStateException("Unexpected 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);
|
/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 | 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);
|
/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);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
TelephonyConnectionService.java | 385 // If the PhoneType of the Phone being used is different than the Default 386 // Phone, then we need create a new Connection using that PhoneType and [all...] |
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
ContactAdder.java | 175 int phoneType = mContactPhoneTypes.get( 201 .withValue(ContactsContract.CommonDataKinds.Phone.TYPE, phoneType)
|