Home
last modified time | relevance | path

Searched refs:normalizedNumber (Results 1 – 22 of 22) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForPhoneNumber.java49 final String normalizedNumber = values.getAsString(Phone.NORMALIZED_NUMBER); in insert() local
50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber); in insert()
119 String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in updatePhoneLookup() local
120 if (!TextUtils.isEmpty(normalizedNumber)) { in updatePhoneLookup()
124 phoneValues.put(PhoneLookupColumns.NORMALIZED_NUMBER, normalizedNumber); in updatePhoneLookup()
126 PhoneNumberUtils.toCallerIDMinMatch(normalizedNumber)); in updatePhoneLookup()
129 if (numberE164 != null && !numberE164.equals(normalizedNumber)) { in updatePhoneLookup()
166 String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in appendSearchableData() local
167 if (TextUtils.isEmpty(normalizedNumber)) { in appendSearchableData()
171 builder.appendToken(normalizedNumber); in appendSearchableData()
[all …]
DDefaultCallLogInsertionHelper.java83 String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in addComputedValues() local
84 if (!TextUtils.isEmpty(normalizedNumber)) { in addComputedValues()
85 values.put(Calls.CACHED_NORMALIZED_NUMBER, normalizedNumber); in addComputedValues()
DContactsDatabaseHelper.java3102 String normalizedNumber = PhoneNumberUtils in upgradeToVersion903() local
3105 if (!TextUtils.isEmpty(normalizedNumber)) { in upgradeToVersion903()
3109 normalizedNumber, in upgradeToVersion903()
4201 SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) { in buildPhoneLookupAndContactQuery() argument
4203 String minMatch = PhoneNumberUtils.toCallerIDMinMatch(normalizedNumber); in buildPhoneLookupAndContactQuery()
4209 appendPhoneLookupSelection(sb, normalizedNumber, numberE164); in buildPhoneLookupAndContactQuery()
DContactsProvider2.java6737 String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in queryLocal() local
6739 qb, normalizedNumber, numberE164); in queryLocal()
/packages/services/Telephony/src/com/android/phone/
DCallerInfoCache.java195 String normalizedNumber = cursor.getString(INDEX_NORMALIZED_NUMBER); in refreshCacheEntry() local
196 if (normalizedNumber == null) { in refreshCacheEntry()
199 normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in refreshCacheEntry()
217 final int length = normalizedNumber.length(); in refreshCacheEntry()
219 ? normalizedNumber.substring(length - 7, length) in refreshCacheEntry()
220 : normalizedNumber; in refreshCacheEntry()
293 final String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in getCacheEntry() local
294 final int length = normalizedNumber.length(); in getCacheEntry()
296 (length > 7 ? normalizedNumber.substring(length - 7, length) in getCacheEntry()
297 : normalizedNumber); in getCacheEntry()
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/
DPhoneLookupDataSource.java217 String normalizedNumber = dialerPhoneNumber.getNormalizedNumber(); in fill()
218 phoneLookupHistoryRowsToUpdate.put(normalizedNumber, upToDateInfo); in fill()
267 String normalizedNumber = entry.getKey(); in writePhoneLookupHistory() local
274 PhoneLookupHistory.contentUriForNumber(normalizedNumber)) in writePhoneLookupHistory()
278 for (String normalizedNumber : phoneLookupHistoryRowsToDelete) { in writePhoneLookupHistory()
281 PhoneLookupHistory.contentUriForNumber(normalizedNumber)) in writePhoneLookupHistory()
462 String normalizedNumber = cursor.getString(normalizedNumberColumn); in queryPhoneLookupHistoryForNumbers() local
469 normalizedNumberToInfoMap.put(normalizedNumber, phoneLookupInfo); in queryPhoneLookupHistoryForNumbers()
480 String normalizedNumber = dialerPhoneNumberToNormalizedNumbers.get(dialerPhoneNumber); in queryPhoneLookupHistoryForNumbers()
481 PhoneLookupInfo phoneLookupInfo = normalizedNumberToInfoMap.get(normalizedNumber); in queryPhoneLookupHistoryForNumbers()
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfoHelper.java179 info.normalizedNumber = c.getString(CallLogQuery.CACHED_NORMALIZED_NUMBER); in getContactInfo()
253 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in createEmptyContactInfoForNumber()
365 info.normalizedNumber = phoneLookupCursor.getString(PhoneQuery.NORMALIZED_NUMBER); in createPhoneLookupContactInfo()
448 private String formatPhoneNumber(String number, String normalizedNumber, String countryIso) { in formatPhoneNumber() argument
459 return PhoneNumberHelper.formatNumber(context, number, normalizedNumber, countryIso); in formatPhoneNumber()
501 if (!TextUtils.isEmpty(updatedInfo.normalizedNumber) in updateCallLogContactInfo()
502 && !TextUtils.equals(updatedInfo.normalizedNumber, callLogInfo.normalizedNumber)) { in updateCallLogContactInfo()
503 values.put(Calls.CACHED_NORMALIZED_NUMBER, updatedInfo.normalizedNumber); in updateCallLogContactInfo()
539 values.put(Calls.CACHED_NORMALIZED_NUMBER, updatedInfo.normalizedNumber); in updateCallLogContactInfo()
DContactInfo.java53 public String normalizedNumber; field in ContactInfo
117 if (!TextUtils.equals(normalizedNumber, other.normalizedNumber)) { in equals()
164 + normalizedNumber in toString()
/packages/apps/Dialer/java/com/android/dialer/smartdial/util/
DSmartDialPrefix.java238 String normalizedNumber = SmartDialNameMatcher.normalizeNumber(context, number); in parsePhoneNumber() local
256 if ((normalizedNumber.length() == 11) in parsePhoneNumber()
257 && (normalizedNumber.charAt(0) == '1') in parsePhoneNumber()
260 countryCodeOffset = number.indexOf(normalizedNumber.charAt(1)); in parsePhoneNumber()
270 if (countryCode.equals("") && normalizedNumber.length() == 10) { in parsePhoneNumber()
275 areaCode = normalizedNumber.substring(0, 3); in parsePhoneNumber()
276 } else if (countryCode.equals("1") && normalizedNumber.length() == 11) { in parsePhoneNumber()
280 areaCode = normalizedNumber.substring(1, 4); in parsePhoneNumber()
/packages/apps/Dialer/java/com/android/incallui/
DPhoneLookupHistoryRecorder.java59 Optional<String> normalizedNumber = in recordPhoneLookupInfo()
61 if (!normalizedNumber.isPresent()) { in recordPhoneLookupInfo()
71 PhoneLookupHistory.contentUriForNumber(normalizedNumber.get()), in recordPhoneLookupInfo()
DCallerInfo.java86 public String normalizedNumber; field in CallerInfo
224 info.normalizedNumber = cursor.getString(columnIndex); in getCallerInfo()
521 .append("\nnormalizedNumber: " + normalizedNumber) in toString()
DCallerInfoUtils.java134 info.normalizedNumber = ci.normalizedNumber; in buildCachedContactInfo()
DCallerInfoAsyncQuery.java327 if (ci.contactDisplayPhotoUri != null && ci.normalizedNumber != null) { in addCallerInfoIntoCache()
331 cachedNumberLookupService.addPhoto(context, ci.normalizedNumber, in); in addCallerInfoIntoCache()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/contract/
DPhoneLookupHistoryContract.java40 public static Uri contentUriForNumber(String normalizedNumber) { in contentUriForNumber() argument
43 .appendQueryParameter(NUMBER_QUERY_PARAM, Uri.encode(normalizedNumber)) in contentUriForNumber()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumbersUtil.java148 final String normalizedNumber = in importSendToVoicemailContacts()
151 if (normalizedNumber != null) { in importSendToVoicemailContacts()
154 null, normalizedNumber, number, null); in importSendToVoicemailContacts()
DFilteredNumberAsyncQueryHandler.java283 @Nullable String normalizedNumber, in blockNumber() argument
289 context, number, normalizedNumber, countryIso)); in blockNumber()
/packages/apps/Dialer/java/com/android/incallui/spam/
DSpamCallListListener.java108 String normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in doInBackground() local
112 if (!TextUtils.isEmpty(normalizedNumber)) { in doInBackground()
113 numberToQuery = normalizedNumber; in doInBackground()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DRealtimeRowProcessor.java161 String normalizedNumber = dialerPhoneNumber.getNormalizedNumber(); in writePhoneLookupHistory()
169 PhoneLookupHistory.contentUriForNumber(normalizedNumber)) in writePhoneLookupHistory()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
DPhoneLookupHistoryContentProvider.java251 String normalizedNumber = in update() local
253 values.put(PhoneLookupHistory.NORMALIZED_NUMBER, normalizedNumber); in update()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadFragment.java241 String getFormattedDigits(String dialString, String normalizedNumber, String countryIso) { in getFormattedDigits() argument
251 number = PhoneNumberHelper.formatNumber(getContext(), number, normalizedNumber, countryIso); in getFormattedDigits()
691 private void setFormattedDigits(String data, String normalizedNumber) { in setFormattedDigits() argument
692 final String formatted = getFormattedDigits(data, normalizedNumber, getCurrentCountryIso()); in setFormattedDigits()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallLogManager.java426 String normalizedNumber = PhoneNumberUtils.normalizeNumber(callNumber); in isUnloggableNumber() local
437 ).anyMatch(unloggableNumber -> Objects.equals(unloggableNumber, normalizedNumber)); in isUnloggableNumber()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogNotificationsQueryHelper.java211 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getContactInfo()