Home
last modified time | relevance | path

Searched refs:contactInfo (Results 1 – 7 of 7) sorted by relevance

/packages/apps/InCallUI/src/com/android/incallui/
DStatusBarNotifier.java201 private void buildAndSendNotification(Call originalCall, ContactCacheEntry contactInfo) { in buildAndSendNotification() argument
215 Bitmap largeIcon = getLargeIconToDisplay(contactInfo, call); in buildAndSendNotification()
217 final String contentTitle = getContentTitle(contactInfo, call); in buildAndSendNotification()
270 addPersonReference(builder, contactInfo, call); in buildAndSendNotification()
356 private String getContentTitle(ContactCacheEntry contactInfo, Call call) { in getContentTitle() argument
360 if (TextUtils.isEmpty(contactInfo.name)) { in getContentTitle()
361 return TextUtils.isEmpty(contactInfo.number) ? null in getContentTitle()
363 contactInfo.number.toString(), TextDirectionHeuristics.LTR); in getContentTitle()
366 return contactInfo.name; in getContentTitle()
369 private void addPersonReference(Notification.Builder builder, ContactCacheEntry contactInfo, in addPersonReference() argument
[all …]
DContactInfoCache.java114 ContactInfo contactInfo = new ContactInfo(); in maybeInsertCnapInformationIntoCache() local
116 contactInfo); in maybeInsertCnapInformationIntoCache()
118 contactInfo.name = info.cnapName; in maybeInsertCnapInformationIntoCache()
119 contactInfo.number = call.getNumber(); in maybeInsertCnapInformationIntoCache()
120 contactInfo.type = ContactsContract.CommonDataKinds.Phone.TYPE_MAIN; in maybeInsertCnapInformationIntoCache()
124 .put(Phone.NUMBER, contactInfo.number) in maybeInsertCnapInformationIntoCache()
127 .put(Contacts.DISPLAY_NAME, contactInfo.name) in maybeInsertCnapInformationIntoCache()
DCallCardPresenter.java814 private static String getNameForCall(ContactCacheEntry contactInfo) { in getNameForCall() argument
815 if (TextUtils.isEmpty(contactInfo.name)) { in getNameForCall()
816 return contactInfo.number; in getNameForCall()
818 return contactInfo.name; in getNameForCall()
824 private static String getNumberForCall(ContactCacheEntry contactInfo) { in getNumberForCall() argument
827 if (TextUtils.isEmpty(contactInfo.name)) { in getNumberForCall()
828 return contactInfo.location; in getNumberForCall()
830 return contactInfo.number; in getNumberForCall()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogFragmentTest.java497 ContactInfo contactInfo = new ContactInfo(); in insertWithCachedValues() local
498 contactInfo.lookupUri = TEST_LOOKUP_URI; in insertWithCachedValues()
499 contactInfo.name = cachedName; in insertWithCachedValues()
500 contactInfo.type = cachedNumberType; in insertWithCachedValues()
501 contactInfo.label = cachedNumberLabel; in insertWithCachedValues()
506 contactInfo.formattedNumber = formattedNumber; in insertWithCachedValues()
507 contactInfo.normalizedNumber = number; in insertWithCachedValues()
508 contactInfo.photoId = 0; in insertWithCachedValues()
509 mAdapter.injectContactInfoForTest(number, TEST_COUNTRY_ISO, contactInfo); in insertWithCachedValues()
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DContactResolver.java200 final ContactInfo contactInfo = contactInfos.get(email); in doInBackground() local
201 if (contactInfo == null) { in doInBackground()
209 final byte[] photo = contactInfo.photoBytes; in doInBackground()
/packages/apps/Dialer/src/com/android/dialer/contactinfo/
DContactInfoCache.java330 String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument
332 mCache.put(numberCountryIso, contactInfo); in injectContactInfoForTest()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAdapter.java696 void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument
698 mContactInfoCache.injectContactInfoForTest(number, countryIso, contactInfo); in injectContactInfoForTest()