Home
last modified time | relevance | path

Searched refs:phoneNumber (Results 1 – 25 of 61) sorted by relevance

123

/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DPhoneNumberHelper.java73 String phoneNumber, String phoneNumberE164, String defaultCountryIso) { in formatNumber() argument
74 int len = phoneNumber.length(); in formatNumber()
76 if (!PhoneNumberUtils.isDialable(phoneNumber.charAt(i))) { in formatNumber()
77 return phoneNumber; in formatNumber()
91 normalizeNumber(phoneNumber).indexOf(phoneNumberE164.substring(1)) <= 0) { in formatNumber()
99 String result = formatNumber(phoneNumber, defaultCountryIso); in formatNumber()
100 return result == null ? phoneNumber : result; in formatNumber()
117 public static String formatNumber(String phoneNumber, String defaultCountryIso) { in formatNumber() argument
119 if (phoneNumber.startsWith("#") || phoneNumber.startsWith("*")) { in formatNumber()
120 return phoneNumber; in formatNumber()
[all …]
DContactDisplayUtils.java212 public static Spannable getTelephoneTtsSpannable(String phoneNumber) { in getTelephoneTtsSpannable() argument
213 if (phoneNumber == null) { in getTelephoneTtsSpannable()
216 final Spannable spannable = new SpannableString(phoneNumber); in getTelephoneTtsSpannable()
217 final TtsSpan ttsSpan = getTelephoneTtsSpan(phoneNumber); in getTelephoneTtsSpannable()
218 spannable.setSpan(ttsSpan, 0, phoneNumber.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); in getTelephoneTtsSpannable()
226 public static Spannable getTelephoneTtsSpannable(String message, String phoneNumber) { in getTelephoneTtsSpannable() argument
231 int start = phoneNumber == null ? -1 : message.indexOf(phoneNumber); in getTelephoneTtsSpannable()
233 final int end = start + phoneNumber.length(); in getTelephoneTtsSpannable()
234 final TtsSpan ttsSpan = getTelephoneTtsSpan(phoneNumber); in getTelephoneTtsSpannable()
236 start = message.indexOf(phoneNumber, end); in getTelephoneTtsSpannable()
[all …]
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialNameMatcher.java126 public SmartDialMatchPosition matchesNumber(String phoneNumber, String query, boolean useNanp) { in matchesNumber() argument
128 constructEmptyMask(builder, phoneNumber.length()); in matchesNumber()
132 SmartDialMatchPosition matchPos = matchesNumberWithOffset(phoneNumber, query, 0); in matchesNumber()
135 SmartDialPrefix.parsePhoneNumber(phoneNumber); in matchesNumber()
141 matchPos = matchesNumberWithOffset(phoneNumber, query, in matchesNumber()
145 matchPos = matchesNumberWithOffset(phoneNumber, query, in matchesNumber()
164 public SmartDialMatchPosition matchesNumber(String phoneNumber) { in matchesNumber() argument
165 return matchesNumber(phoneNumber, mQuery, true); in matchesNumber()
177 public SmartDialMatchPosition matchesNumber(String phoneNumber, String query) { in matchesNumber() argument
178 return matchesNumber(phoneNumber, query, true); in matchesNumber()
[all …]
/packages/apps/Dialer/src/com/android/dialer/interactions/
DPhoneNumberInteraction.java82 String phoneNumber; field in PhoneNumberInteraction.PhoneItem
95 this.phoneNumber = in.readString(); in PhoneItem()
106 dest.writeString(phoneNumber); in writeToParcel()
126 return MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE, phoneNumber, in shouldCollapseWith()
127 Phone.CONTENT_ITEM_TYPE, phoneItem.phoneNumber); in shouldCollapseWith()
132 return phoneNumber; in toString()
243 PhoneNumberInteraction.performAction(activity, phoneItem.phoneNumber, in onClick()
311 private void performAction(String phoneNumber) { in performAction() argument
312 PhoneNumberInteraction.performAction(mContext, phoneNumber, mInteractionType, mCallOrigin); in performAction()
316 Context context, String phoneNumber, int interactionType, in performAction() argument
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhoneLookupWithStarPrefix.java104 static String normalizeNumberWithStar(String phoneNumber) { in normalizeNumberWithStar() argument
105 if (TextUtils.isEmpty(phoneNumber)) { in normalizeNumberWithStar()
106 return phoneNumber; in normalizeNumberWithStar()
108 if (phoneNumber.startsWith("*")) { in normalizeNumberWithStar()
114 phoneNumber.substring(1).replace("+", "")); in normalizeNumberWithStar()
116 return PhoneNumberUtils.normalizeNumber(phoneNumber); in normalizeNumberWithStar()
126 final String phoneNumber = normalizeNumberWithStar(cursor.getString(numberIndex)); in matchingNumberStartsWithStar() local
127 if (phoneNumber.startsWith("*")) { in matchingNumberStartsWithStar()
/packages/apps/InCallUI/src/com/android/incallui/
DCallerInfo.java77 public String phoneNumber; field in CallerInfo
190 info.phoneNumber = cursor.getString(columnIndex); in getCallerInfo()
329 phoneNumber = null; in markAsEmergency()
352 phoneNumber = null; in markAsVoiceMail()
465 String number = TextUtils.isEmpty(phoneNumber) ? fallbackNumber : phoneNumber; in updateGeoDescription()
518 .append("\nphoneNumber: " + phoneNumber) in toString()
546 .append(", phoneNumber " + ((phoneNumber == null) ? "null" : "non-null")) in toString()
DCallerInfoAsyncQuery.java291 mCallerInfo.phoneNumber = PhoneNumberHelper.formatNumber(cw.number, in onQueryComplete()
341 Log.d(LOG_TAG, "- number: " + info.phoneNumber); in startQuery()
347 .appendPath(info.phoneNumber) in startQuery()
349 String.valueOf(PhoneNumberHelper.isUriNumber(info.phoneNumber))) in startQuery()
363 cw.number = info.phoneNumber; in startQuery()
366 if (PhoneNumberUtils.isLocalEmergencyNumber(context, info.phoneNumber)) { in startQuery()
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/
DPhoneNumberInteractionTest.java143 phoneItem1.phoneNumber = "123"; in testShouldCollapseWith()
144 phoneItem2.phoneNumber = "123"; in testShouldCollapseWith()
148 phoneItem1.phoneNumber = "123"; in testShouldCollapseWith()
149 phoneItem2.phoneNumber = "456"; in testShouldCollapseWith()
153 phoneItem1.phoneNumber = "123#,123"; in testShouldCollapseWith()
154 phoneItem2.phoneNumber = "123#,456"; in testShouldCollapseWith()
218 assertEquals("123", item.phoneNumber); in testShowDisambigDialogForCalling()
/packages/apps/Dialer/src/com/android/dialer/database/
DDialerDatabaseHelper.java243 public final String phoneNumber; field in DialerDatabaseHelper.ContactNumber
247 public ContactNumber(long id, long dataID, String displayName, String phoneNumber, in ContactNumber() argument
252 this.phoneNumber = phoneNumber; in ContactNumber()
259 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId); in hashCode()
272 && Objects.equal(this.phoneNumber, that.phoneNumber) in equals()
968 final String phoneNumber = cursor.getString(columnNumber); in getLooseMatches() local
987 (nameMatcher.matchesNumber(phoneNumber, query) != null); in getLooseMatches()
991 result.add(new ContactNumber(id, dataID, displayName, phoneNumber, lookupKey, in getLooseMatches()
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java141 final String phoneNumber = cursor.getString(NUMBER_COLUMN); in actuallyImportOneSimContact() local
173 builder.withValue(Phone.NUMBER, phoneNumber); in actuallyImportOneSimContact()
351 String phoneNumber = mCursor.getString(NUMBER_COLUMN); in onKeyDown() local
352 if (phoneNumber == null || !TextUtils.isGraphic(phoneNumber)) { in onKeyDown()
358 Uri.fromParts(PhoneAccount.SCHEME_TEL, phoneNumber, null)); in onKeyDown()
/packages/services/Telecomm/src/com/android/server/telecom/
DRespondViaSmsManager.java155 private void showMessageSentToast(final String phoneNumber, final Context context) { in showMessageSentToast() argument
162 final String confirmationMsg = String.format(formatString, phoneNumber); in showMessageSentToast()
184 private void rejectCallWithMessage(Context context, String phoneNumber, String textMessage, in rejectCallWithMessage() argument
192 final Uri uri = Uri.fromParts(Constants.SCHEME_SMSTO, phoneNumber, null); in rejectCallWithMessage()
200 args.arg1 = phoneNumber; in rejectCallWithMessage()
/packages/apps/Exchange/src/com/android/exchange/eas/
DEasOperation.java608 final String phoneNumber; in expandedAddDeviceInformationToSerializer() local
614 phoneNumber = tm.getLine1Number(); in expandedAddDeviceInformationToSerializer()
629 phoneNumber = null; in expandedAddDeviceInformationToSerializer()
652 if (phoneNumber != null) { in expandedAddDeviceInformationToSerializer()
653 s.data(Tags.SETTINGS_PHONE_NUMBER, phoneNumber); in expandedAddDeviceInformationToSerializer()
/packages/apps/Dialer/src/com/android/dialer/
DDialtactsActivity.java1057 public static Intent getAddToContactIntent(CharSequence name, CharSequence phoneNumber, in getAddToContactIntent() argument
1060 intent.putExtra(Intents.Insert.PHONE, phoneNumber); in getAddToContactIntent()
1137 public void onCallNumberDirectly(String phoneNumber) { in onCallNumberDirectly() argument
1138 onCallNumberDirectly(phoneNumber, false /* isVideoCall */); in onCallNumberDirectly()
1142 public void onCallNumberDirectly(String phoneNumber, boolean isVideoCall) { in onCallNumberDirectly() argument
1144 CallUtil.getVideoCallIntent(phoneNumber, getCallOrigin()) : in onCallNumberDirectly()
1145 CallUtil.getCallIntent(phoneNumber, getCallOrigin()); in onCallNumberDirectly()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java258 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber) { in insertPhoneNumber() argument
259 return insertPhoneNumber(rawContactId, phoneNumber, false); in insertPhoneNumber()
262 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary) { in insertPhoneNumber() argument
263 return insertPhoneNumber(rawContactId, phoneNumber, primary, false, Phone.TYPE_HOME); in insertPhoneNumber()
266 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, in insertPhoneNumber() argument
268 return insertPhoneNumber(rawContactId, phoneNumber, primary, superPrimary, Phone.TYPE_HOME); in insertPhoneNumber()
271 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, in insertPhoneNumber() argument
273 return insertPhoneNumber(rawContactId, phoneNumber, primary, false, type); in insertPhoneNumber()
276 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, in insertPhoneNumber() argument
281 values.put(Phone.NUMBER, phoneNumber); in insertPhoneNumber()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DPhoneDataItem.java59 final String phoneNumber = getNumber(); in computeFormattedPhoneNumber() local
60 if (phoneNumber != null) { in computeFormattedPhoneNumber()
61 final String formattedPhoneNumber = PhoneNumberUtils.formatNumber(phoneNumber, in computeFormattedPhoneNumber()
/packages/services/Mms/src/com/android/mms/service/
DPhoneUtils.java59 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); in getParsedNumber() local
60 if (phoneNumberUtil.isValidNumber(phoneNumber)) { in getParsedNumber()
61 return phoneNumber; in getParsedNumber()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DContactsUtils.java361 public static void initiateCall(Context context, CharSequence phoneNumber) { in initiateCall() argument
363 Uri.fromParts("tel", phoneNumber.toString(), null)); in initiateCall()
373 public static void initiateSms(Context context, CharSequence phoneNumber) { in initiateSms() argument
375 Uri.fromParts("sms", phoneNumber.toString(), null)); in initiateSms()
/packages/apps/Contacts/src/com/android/contacts/
DNonPhoneActivity.java44 final String phoneNumber = getPhoneNumber(); in onCreate() local
45 if (TextUtils.isEmpty(phoneNumber)) { in onCreate()
52 bundle.putString(PHONE_NUMBER_KEY, phoneNumber); in onCreate()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java75 public String phoneNumber; field in AggregationSuggestionEngine.Suggestion
84 + " phone: " + phoneNumber + " email: " + emailAddress + " nickname: " in toString()
410 && (superprimary != 0 || suggestion.phoneNumber == null)) { in getSuggestions()
411 suggestion.phoneNumber = data; in getSuggestions()
DRawContactReadOnlyEditorView.java180 final String phoneNumber = phone.getPhoneNumber(); in setState() local
181 if (TextUtils.isEmpty(phoneNumber)) { in setState()
185 phoneNumber, phone.getPhoneNormalizedNumber(), in setState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapVcardManager.java295 public final ArrayList<String> getContactNamesByNumber(final String phoneNumber) { in getContactNamesByNumber() argument
302 if (phoneNumber != null && phoneNumber.length() == 0) { in getContactNamesByNumber()
306 Uri.encode(phoneNumber)); in getContactNamesByNumber()
321 if (V) Log.v(TAG, "got name " + name + " by number " + phoneNumber + " @" + id); in getContactNamesByNumber()
DBluetoothPbapCallLogComposer.java173 String phoneNumber, boolean vcardVer21) { in composeVCardForPhoneOwnNumber() argument
186 if (!TextUtils.isEmpty(phoneNumber)) { in composeVCardForPhoneOwnNumber()
188 builder.appendTelLine(phonetype, label, phoneNumber, false); in composeVCardForPhoneOwnNumber()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DSmsInteraction.java165 final String phoneNumber = getViewBody(context); in getContentDescription() local
168 getViewHeader(context), phoneNumber, getViewFooter(context)); in getContentDescription()
169 return ContactDisplayUtils.getTelephoneTtsSpannable(contentDescription, phoneNumber); in getContentDescription()
DCallLogInteraction.java185 final String phoneNumber = getViewHeader(context); in getContentDescription() local
188 getCallTypeString(context), phoneNumber, getViewFooter(context)); in getContentDescription()
189 return ContactDisplayUtils.getTelephoneTtsSpannable(contentDescription, phoneNumber); in getContentDescription()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactTileListFragment.java57 void onCallNumberDirectly(String phoneNumber); in onCallNumberDirectly() argument
235 public void onCallNumberDirectly(String phoneNumber) {
237 mListener.onCallNumberDirectly(phoneNumber);

123