/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandlerForPhoneNumber.java | 49 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 …]
|
D | DefaultCallLogInsertionHelper.java | 83 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()
|
D | ContactsDatabaseHelper.java | 3045 String normalizedNumber = PhoneNumberUtils in upgradeToVersion903() local 3048 if (!TextUtils.isEmpty(normalizedNumber)) { in upgradeToVersion903() 3052 normalizedNumber, in upgradeToVersion903() 4228 SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) { in buildPhoneLookupAndContactQuery() argument 4230 String minMatch = PhoneNumberUtils.toCallerIDMinMatch(normalizedNumber); in buildPhoneLookupAndContactQuery() 4236 appendPhoneLookupSelection(sb, normalizedNumber, numberE164); in buildPhoneLookupAndContactQuery()
|
D | ContactsProvider2.java | 6776 String normalizedNumber = PhoneNumberUtils.normalizeNumber(number); in queryLocal() local 6778 qb, normalizedNumber, numberE164); in queryLocal()
|
/packages/services/Telephony/src/com/android/phone/ |
D | CallerInfoCache.java | 195 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/ |
D | PhoneLookupDataSource.java | 217 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/ |
D | ContactInfoHelper.java | 179 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()
|
D | ContactInfo.java | 53 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/ |
D | SmartDialPrefix.java | 238 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/ |
D | PhoneLookupHistoryRecorder.java | 59 Optional<String> normalizedNumber = in recordPhoneLookupInfo() 61 if (!normalizedNumber.isPresent()) { in recordPhoneLookupInfo() 71 PhoneLookupHistory.contentUriForNumber(normalizedNumber.get()), in recordPhoneLookupInfo()
|
D | CallerInfo.java | 86 public String normalizedNumber; field in CallerInfo 224 info.normalizedNumber = cursor.getString(columnIndex); in getCallerInfo() 521 .append("\nnormalizedNumber: " + normalizedNumber) in toString()
|
D | CallerInfoUtils.java | 134 info.normalizedNumber = ci.normalizedNumber; in buildCachedContactInfo()
|
D | CallerInfoAsyncQuery.java | 327 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/ |
D | PhoneLookupHistoryContract.java | 40 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/ |
D | FilteredNumbersUtil.java | 148 final String normalizedNumber = in importSendToVoicemailContacts() 151 if (normalizedNumber != null) { in importSendToVoicemailContacts() 154 null, normalizedNumber, number, null); in importSendToVoicemailContacts()
|
D | FilteredNumberAsyncQueryHandler.java | 283 @Nullable String normalizedNumber, in blockNumber() argument 289 context, number, normalizedNumber, countryIso)); in blockNumber()
|
/packages/apps/Dialer/java/com/android/incallui/spam/ |
D | SpamCallListListener.java | 108 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/ |
D | RealtimeRowProcessor.java | 161 String normalizedNumber = dialerPhoneNumber.getNormalizedNumber(); in writePhoneLookupHistory() 169 PhoneLookupHistory.contentUriForNumber(normalizedNumber)) in writePhoneLookupHistory()
|
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/ |
D | PhoneLookupHistoryContentProvider.java | 251 String normalizedNumber = in update() local 253 values.put(PhoneLookupHistory.NORMALIZED_NUMBER, normalizedNumber); in update()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallLogManager.java | 413 String normalizedNumber = PhoneNumberUtils.normalizeNumber(callNumber); in isUnloggableNumber() local 424 ).anyMatch(unloggableNumber -> Objects.equals(unloggableNumber, normalizedNumber)); in isUnloggableNumber()
|
/packages/apps/Dialer/java/com/android/dialer/dialpadview/ |
D | DialpadFragment.java | 241 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/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogNotificationsQueryHelper.java | 211 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getContactInfo()
|