/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
PhoneNumberHelper.java | 25 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 61 * @param phoneNumber the number to be formatted. 63 * phoneNumber doesn't have the country code. 65 * be used if the phoneNumberE164 is null or invalid, or if phoneNumber contains IDD. 69 * TODO: Remove if PhoneNumberUtils.formatNumber(String phoneNumber, String phoneNumberE164, 73 String phoneNumber, String phoneNumberE164, String defaultCountryIso) { 74 int len = phoneNumber.length(); 76 if (!PhoneNumberUtils.isDialable(phoneNumber.charAt(i))) { 77 return phoneNumber; [all...] |
ContactDisplayUtils.java | 33 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 212 public static Spannable getTelephoneTtsSpannable(String phoneNumber) { 213 if (phoneNumber == null) { 216 final Spannable spannable = new SpannableString(phoneNumber); 217 final TtsSpan ttsSpan = getTelephoneTtsSpan(phoneNumber); 218 spannable.setSpan(ttsSpan, 0, phoneNumber.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 226 public static Spannable getTelephoneTtsSpannable(String message, String phoneNumber) { 231 int start = phoneNumber == null ? -1 : message.indexOf(phoneNumber); [all...] |
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactInfo.java | 35 public void setPhoneNumber(String phoneNumber) { 36 this.mPhoneNumber = phoneNumber;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
OnPhoneNumberPickerActionListener.java | 35 void onCallNumberDirectly(String phoneNumber); 40 void onCallNumberDirectly(String phoneNumber, boolean isVideoCall);
|
ContactEntry.java | 30 public String phoneNumber;
|
ContactTilePhoneFrequentView.java | 55 mPhoneNumberString = entry.phoneNumber;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhoneLookupWithStarPrefix.java | 104 static String normalizeNumberWithStar(String phoneNumber) { 105 if (TextUtils.isEmpty(phoneNumber)) { 106 return phoneNumber; 108 if (phoneNumber.startsWith("*")) { 114 phoneNumber.substring(1).replace("+", "")); 116 return PhoneNumberUtils.normalizeNumber(phoneNumber); 126 final String phoneNumber = normalizeNumberWithStar(cursor.getString(numberIndex)); 127 if (phoneNumber.startsWith("*")) {
|
/packages/apps/Dialer/src/com/android/dialer/dialpad/ |
SmartDialNameMatcher.java | 119 * @param phoneNumber - Raw phone number 126 public SmartDialMatchPosition matchesNumber(String phoneNumber, String query, boolean useNanp) { 128 constructEmptyMask(builder, phoneNumber.length()); 132 SmartDialMatchPosition matchPos = matchesNumberWithOffset(phoneNumber, query, 0); 135 SmartDialPrefix.parsePhoneNumber(phoneNumber); 141 matchPos = matchesNumberWithOffset(phoneNumber, query, 145 matchPos = matchesNumberWithOffset(phoneNumber, query, 160 * @param phoneNumber - Raw phone number 164 public SmartDialMatchPosition matchesNumber(String phoneNumber) { 165 return matchesNumber(phoneNumber, mQuery, true) [all...] |
/external/nist-sip/java/javax/sip/address/ |
TelURL.java | 14 void setPhoneNumber(String phoneNumber) throws ParseException;
|
/packages/apps/InCallUI/src/com/android/incallui/service/ |
PhoneNumberService.java | 29 * @param phoneNumber The phone number to lookup. 33 public void getPhoneNumberInfo(String phoneNumber, NumberLookupListener listener,
|
/external/protobuf/examples/ |
ListPeople.java | 19 for (Person.PhoneNumber phoneNumber : person.getPhoneList()) { 20 switch (phoneNumber.getType()) { 31 System.out.println(phoneNumber.getNumber());
|
AddPerson.java | 38 Person.PhoneNumber.Builder phoneNumber = 39 Person.PhoneNumber.newBuilder().setNumber(number); 44 phoneNumber.setType(Person.PhoneType.MOBILE); 46 phoneNumber.setType(Person.PhoneType.HOME); 48 phoneNumber.setType(Person.PhoneType.WORK); 53 person.addPhone(phoneNumber);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
PhoneDataItem.java | 59 final String phoneNumber = getNumber(); 60 if (phoneNumber != null) { 61 final String formattedPhoneNumber = PhoneNumberUtils.formatNumber(phoneNumber,
|
/packages/services/Mms/src/com/android/mms/service/ |
PhoneUtils.java | 24 import com.android.i18n.phonenumbers.Phonenumber; 46 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country); 56 private static Phonenumber.PhoneNumber getParsedNumber(PhoneNumberUtil phoneNumberUtil, 59 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); 60 if (phoneNumberUtil.isValidNumber(phoneNumber)) { 61 return phoneNumber; [all...] |
/external/nist-sip/java/gov/nist/javax/sip/address/ |
TelephoneNumber.java | 51 /** phoneNumber field 53 protected String phoneNumber; 71 /** get the PhoneNumber field 75 return phoneNumber; 177 /** set the PhoneNumber field 181 phoneNumber = num; 191 buffer.append(phoneNumber);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
GeoUtil.java | 27 import com.google.i18n.phonenumbers.Phonenumber; 48 public static String getGeocodedLocationFor(Context context, String phoneNumber) { 52 final Phonenumber.PhoneNumber structuredPhoneNumber = 53 phoneNumberUtil.parse(phoneNumber, getCurrentCountryIso(context));
|
/packages/apps/Dialer/src/com/android/dialer/interactions/ |
PhoneNumberInteraction.java | 82 String phoneNumber; 95 this.phoneNumber = in.readString(); 106 dest.writeString(phoneNumber); 126 return MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE, phoneNumber, 127 Phone.CONTENT_ITEM_TYPE, phoneItem.phoneNumber); 132 return phoneNumber; 243 PhoneNumberInteraction.performAction(activity, phoneItem.phoneNumber, 311 private void performAction(String phoneNumber) { 312 PhoneNumberInteraction.performAction(mContext, phoneNumber, mInteractionType, mCallOrigin); 316 Context context, String phoneNumber, int interactionType [all...] |
/frameworks/base/telephony/java/android/telephony/ |
PhoneNumberUtils.java | 22 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 206 * Returns null if phoneNumber == null 209 extractNetworkPortion(String phoneNumber) { 210 if (phoneNumber == null) { 214 int len = phoneNumber.length(); 218 char c = phoneNumber.charAt(i); 248 public static String extractNetworkPortionAlt(String phoneNumber) { 249 if (phoneNumber == null) { 253 int len = phoneNumber.length() [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
NonPhoneActivity.java | 44 final String phoneNumber = getPhoneNumber(); 45 if (TextUtils.isEmpty(phoneNumber)) { 52 bundle.putString(PHONE_NUMBER_KEY, phoneNumber);
|
/packages/apps/InCallUI/src/com/android/incallui/ |
CallerInfo.java | 37 import com.google.i18n.phonenumbers.Phonenumber.PhoneNumber; 53 * Also, it is implied that phoneNumber is more often populated than 55 * names are not known to the device), so phoneNumber should serve as 70 * phoneNumber field. 72 * What we're really doing here is treating phoneNumber as an essential 77 public String phoneNumber; 190 info.phoneNumber = cursor.getString(columnIndex); 329 phoneNumber = null; 340 * READ_PHONE_STATE permission otherwise the phoneNumber will b [all...] |
CallerInfoAsyncQuery.java | 283 // *or* phoneNumber). So we need to pass in cw.number as 291 mCallerInfo.phoneNumber = PhoneNumberHelper.formatNumber(cw.number, 341 Log.d(LOG_TAG, "- number: " + info.phoneNumber); 347 .appendPath(info.phoneNumber) 349 String.valueOf(PhoneNumberHelper.isUriNumber(info.phoneNumber))) 363 cw.number = info.phoneNumber; 366 if (PhoneNumberUtils.isLocalEmergencyNumber(context, info.phoneNumber)) {
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 40 import com.android.i18n.phonenumbers.Phonenumber.PhoneNumber; 59 * Also, it is implied that phoneNumber is more often populated than 61 * names are not known to the device), so phoneNumber should serve as 76 * phoneNumber field. 78 * What we're really doing here is treating phoneNumber as an essential 83 public String phoneNumber; 195 info.phoneNumber = cursor.getString(columnIndex); 342 if (TextUtils.isEmpty(info.phoneNumber)) { 343 info.phoneNumber = number [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/ |
PhoneNumberInteractionTest.java | 143 phoneItem1.phoneNumber = "123"; 144 phoneItem2.phoneNumber = "123"; 148 phoneItem1.phoneNumber = "123"; 149 phoneItem2.phoneNumber = "456"; 153 phoneItem1.phoneNumber = "123#,123"; 154 phoneItem2.phoneNumber = "123#,456"; 218 assertEquals("123", item.phoneNumber);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaConnection.java | 805 findNextPCharOrNonPOrNonWCharIndex(String phoneNumber, int currIndex) { 806 boolean wMatched = isWait(phoneNumber.charAt(currIndex)); 808 int length = phoneNumber.length(); 810 char cNext = phoneNumber.charAt(index); 826 ((wMatched == false) && isPause(phoneNumber.charAt(currIndex)))) { 833 // It is based on the next non PAUSE/WAIT character in the phoneNumber and the 836 findPOrWCharToAppend(String phoneNumber, int currPwIndex, int nextNonPwCharIndex) { 837 char c = phoneNumber.charAt(currPwIndex); 867 public static String formatDialString(String phoneNumber) { 873 if (phoneNumber == null) [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/ |
RespondViaSmsManager.java | 155 private void showMessageSentToast(final String phoneNumber, final Context context) { 162 final String confirmationMsg = String.format(formatString, phoneNumber); 184 private void rejectCallWithMessage(Context context, String phoneNumber, String textMessage, 192 final Uri uri = Uri.fromParts(Constants.SCHEME_SMSTO, phoneNumber, null); 200 args.arg1 = phoneNumber;
|