/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
D | ContactInfoHelper.java | 250 ContactInfo contactInfo = new ContactInfo(); in createEmptyContactInfoForNumber() local 251 contactInfo.number = number; in createEmptyContactInfoForNumber() 252 contactInfo.formattedNumber = formatPhoneNumber(number, null, countryIso); in createEmptyContactInfoForNumber() 253 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in createEmptyContactInfoForNumber() 254 contactInfo.lookupUri = createTemporaryContactUri(contactInfo.formattedNumber); in createEmptyContactInfoForNumber() 255 return contactInfo; in createEmptyContactInfoForNumber() 266 ContactInfo contactInfo = lookupNumber(number, countryIso, directoryId); in lookupNumberInRemoteDirectory() local 267 if (hasName(contactInfo)) { in lookupNumberInRemoteDirectory() 268 return contactInfo; in lookupNumberInRemoteDirectory() 275 public boolean hasName(ContactInfo contactInfo) { in hasName() argument [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | MissedCallNotifier.java | 168 ContactInfo contactInfo = in updateMissedCallNotification() local 172 contactInfo.userType == ContactsUtils.USER_TYPE_WORK in updateMissedCallNotification() 176 if (TextUtils.equals(contactInfo.name, contactInfo.formattedNumber) in updateMissedCallNotification() 177 || TextUtils.equals(contactInfo.name, contactInfo.number)) { in updateMissedCallNotification() 181 .unicodeWrap(contactInfo.name, TextDirectionHeuristics.LTR)); in updateMissedCallNotification() 183 expandedText = contactInfo.name; in updateMissedCallNotification() 186 ContactPhotoLoader loader = new ContactPhotoLoader(context, contactInfo); in updateMissedCallNotification() 325 ContactInfo contactInfo = in getNotificationForCall() local 332 contactInfo.userType == ContactsUtils.USER_TYPE_WORK in getNotificationForCall() 340 if (TextUtils.equals(contactInfo.name, contactInfo.formattedNumber) in getNotificationForCall() [all …]
|
D | CallLogNotificationsQueryHelper.java | 207 ContactInfo contactInfo = new ContactInfo(); in getContactInfo() local 208 contactInfo.number = number; in getContactInfo() 209 contactInfo.formattedNumber = PhoneNumberHelper.formatNumber(context, number, countryIso); in getContactInfo() 211 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getContactInfo() 214 contactInfo.name = in getContactInfo() 217 if (!TextUtils.isEmpty(contactInfo.name)) { in getContactInfo() 218 return contactInfo; in getContactInfo() 228 if (!TextUtils.isEmpty(contactInfo.formattedNumber)) { in getContactInfo() 230 contactInfo.name = contactInfo.formattedNumber; in getContactInfo() 233 contactInfo.name = number; in getContactInfo() [all …]
|
D | VisualVoicemailUpdateTask.java | 101 ContactInfo contactInfo = in updateNotification() local 104 contactInfos.put(newCall.number, contactInfo); in updateNotification() 108 callers = contactInfo.name; in updateNotification() 112 R.string.notification_voicemail_callers_list, callers, contactInfo.name); in updateNotification()
|
D | CallLogAdapter.java | 1361 void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument 1363 contactInfoCache.injectContactInfoForTest(number, countryIso, contactInfo); in injectContactInfoForTest() 1473 private void logCp2Metrics(PhoneCallDetails details, ContactInfo contactInfo) { in logCp2Metrics() argument 1498 if (contactInfo != null in logCp2Metrics() 1499 && contactInfo.number != null in logCp2Metrics() 1500 && contactInfo.sourceType == Type.SOURCE_TYPE_DIRECTORY) { in logCp2Metrics() 1503 .setMatchedNumberLength(PhoneNumberUtils.normalizeNumber(contactInfo.number).length()) in logCp2Metrics() 1505 !PhoneNumberUtils.extractPostDialPortion(contactInfo.number).isEmpty()); in logCp2Metrics()
|
D | VisualVoicemailNotifier.java | 158 ContactInfo contactInfo = contactInfos.get(voicemail.number); in createNotificationForVoicemail() local 166 contactInfo.name)) in createNotificationForVoicemail() 222 ContactPhotoLoader loader = new ContactPhotoLoader(context, contactInfo); in createNotificationForVoicemail()
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
D | ContactPhotoLoader.java | 47 private final ContactInfo contactInfo; field in ContactPhotoLoader 49 public ContactPhotoLoader(Context context, ContactInfo contactInfo) { in ContactPhotoLoader() argument 51 this.contactInfo = Objects.requireNonNull(contactInfo); in ContactPhotoLoader() 84 if (contactInfo.photoUri == null) { in createPhotoIconDrawable() 88 InputStream input = context.getContentResolver().openInputStream(contactInfo.photoUri); in createPhotoIconDrawable() 121 contactInfo.name, in createLetterTileDrawable() 122 contactInfo.lookupKey, in createLetterTileDrawable() 124 helper.isBusiness(contactInfo.sourceType) in createLetterTileDrawable()
|
D | ContactInfoCache.java | 325 public void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument 327 cache.put(numberCountryIso, contactInfo); in injectContactInfoForTest()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | StatusBarNotifier.java | 266 CallList callList, DialerCall originalCall, ContactCacheEntry contactInfo) { in buildAndSendNotification() argument 284 Bitmap largeIcon = getLargeIconToDisplay(context, contactInfo, call); in buildAndSendNotification() 285 final CharSequence content = getContentString(call, contactInfo.userType); in buildAndSendNotification() 286 final String contentTitle = getContentTitle(contactInfo, call); in buildAndSendNotification() 323 contactInfo.contactRingtoneUri, in buildAndSendNotification() 404 addPersonReference(builder, contactInfo, call); in buildAndSendNotification() 410 if (dialerRingtoneManager.shouldPlayRingtone(callState, contactInfo.contactRingtoneUri)) { in buildAndSendNotification() 412 notification.sound = contactInfo.contactRingtoneUri; in buildAndSendNotification() 558 String getContentTitle(ContactCacheEntry contactInfo, DialerCall call) { in getContentTitle() argument 567 .getDisplayName(contactInfo.namePrimary, contactInfo.nameAlternative); in getContentTitle() [all …]
|
D | ExternalCallNotifier.java | 301 Context context, ContactInfoCache.ContactCacheEntry contactInfo, android.telecom.Call call) { in getLargeIconToDisplay() argument 312 if (contactInfo.photo != null && (contactInfo.photo instanceof BitmapDrawable)) { in getLargeIconToDisplay() 313 largeIcon = ((BitmapDrawable) contactInfo.photo).getBitmap(); in getLargeIconToDisplay() 347 Context context, ContactInfoCache.ContactCacheEntry contactInfo, android.telecom.Call call) { in getContentTitle() argument 358 .getDisplayName(contactInfo.namePrimary, contactInfo.nameAlternative); in getContentTitle() 360 return TextUtils.isEmpty(contactInfo.number) in getContentTitle() 363 .unicodeWrap(contactInfo.number, TextDirectionHeuristics.LTR); in getContentTitle() 376 private String getPersonReference(ContactInfoCache.ContactCacheEntry contactInfo, Call call) { in getPersonReference() argument 382 if (contactInfo.lookupUri != null && contactInfo.userType != ContactsUtils.USER_TYPE_WORK) { in getPersonReference() 383 return contactInfo.lookupUri.toString(); in getPersonReference()
|
D | ContactInfoCache.java | 96 ContactInfo contactInfo = new ContactInfo(); in doInBackground() local 97 CachedContactInfo cacheInfo = input.service.buildCachedContactInfo(contactInfo); in doInBackground() 99 contactInfo.name = input.cnapName; in doInBackground() 100 contactInfo.number = input.number; in doInBackground() 106 new JSONObject().put(Phone.NUMBER, contactInfo.number)); in doInBackground() 109 .put(Contacts.DISPLAY_NAME, contactInfo.name) in doInBackground()
|
D | CallCardPresenter.java | 982 private String getNameForCall(ContactCacheEntry contactInfo) { in getNameForCall() argument 986 .getDisplayName(contactInfo.namePrimary, contactInfo.nameAlternative); in getNameForCall() 988 return TextUtils.isEmpty(contactInfo.number) in getNameForCall() 991 .unicodeWrap(contactInfo.number, TextDirectionHeuristics.LTR); in getNameForCall()
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | PhoneFragment.java | 61 mViewModel.getContactInfo().observe(getViewLifecycleOwner(), (contactInfo) -> { in onCreateView() 62 nameView.setText(contactInfo.getDisplayName()); in onCreateView() 64 avatar, contactInfo.getContact(), contactInfo.getNumber()); in onCreateView()
|