Home
last modified time | relevance | path

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

/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogNotificationsHelperTest.java50 ContactInfo contactInfo = getContactInfo( in testGetContactInfo_ValidNumberValidPresentationValidIso() local
52 assertEquals(TEST_VALID_NUMBER, contactInfo.number); in testGetContactInfo_ValidNumberValidPresentationValidIso()
53 assertEquals(mContext.getResources().getString(R.string.unknown), contactInfo.name); in testGetContactInfo_ValidNumberValidPresentationValidIso()
54 assertEquals(TEST_E164_NUMBER, contactInfo.normalizedNumber); in testGetContactInfo_ValidNumberValidPresentationValidIso()
58 ContactInfo contactInfo = getContactInfo(TEST_VALID_NUMBER, -1, TEST_COUNTRY_ISO); in testGetContactInfo_ValidNumberInvalidPresentationValidIso() local
59 assertEquals(TEST_VALID_NUMBER, contactInfo.number); in testGetContactInfo_ValidNumberInvalidPresentationValidIso()
60 assertEquals(TEST_FORMATTED_NUMBER, contactInfo.name); in testGetContactInfo_ValidNumberInvalidPresentationValidIso()
61 assertEquals(TEST_E164_NUMBER, contactInfo.normalizedNumber); in testGetContactInfo_ValidNumberInvalidPresentationValidIso()
65 ContactInfo contactInfo = getContactInfo( in testGetContactInfo_ValidNumberValidPresentationNullIso() local
67 assertEquals(TEST_VALID_NUMBER, contactInfo.number); in testGetContactInfo_ValidNumberValidPresentationNullIso()
[all …]
DContactInfoHelperTest.java81 ContactInfo contactInfo = mContactInfoHelper.lookupContactFromUri( in testLookupContactFromUri_NoDisplayNameAlternative() local
83 Assert.assertEquals(TEST_DISPLAY_NAME, contactInfo.name); in testLookupContactFromUri_NoDisplayNameAlternative()
84 Assert.assertNull(contactInfo.nameAlternative); in testLookupContactFromUri_NoDisplayNameAlternative()
95 ContactInfo contactInfo = mContactInfoHelper.lookupContactFromUri( in testLookupContactFromUri_HasDisplayNameAlternative() local
97 Assert.assertEquals(TEST_DISPLAY_NAME, contactInfo.name); in testLookupContactFromUri_HasDisplayNameAlternative()
98 Assert.assertEquals(TEST_DISPLAY_NAME_ALTERNATIVE, contactInfo.nameAlternative); in testLookupContactFromUri_HasDisplayNameAlternative()
DCallLogAdapterTest.java694 ContactInfo contactInfo = in createCallLogEntryWithCachedValues() local
696 mAdapter.injectContactInfoForTest(number, TEST_COUNTRY_ISO, contactInfo); in createCallLogEntryWithCachedValues()
899 public void mockGetValue(ContactInfo contactInfo) { in mockGetValue() argument
900 this.mContactInfo = contactInfo; in mockGetValue()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogNotificationsHelper.java124 ContactInfo contactInfo = new ContactInfo(); in getContactInfo() local
125 contactInfo.number = number; in getContactInfo()
126 contactInfo.formattedNumber = PhoneNumberUtils.formatNumber(number, countryIso); in getContactInfo()
128 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso); in getContactInfo()
131 contactInfo.name = PhoneNumberDisplayUtil.getDisplayName( in getContactInfo()
136 if (!TextUtils.isEmpty(contactInfo.name)) { in getContactInfo()
137 return contactInfo; in getContactInfo()
147 if (!TextUtils.isEmpty(contactInfo.formattedNumber)) { in getContactInfo()
149 contactInfo.name = contactInfo.formattedNumber; in getContactInfo()
152 contactInfo.name = number; in getContactInfo()
[all …]
DMissedCallNotifier.java106 ContactInfo contactInfo = CallLogNotificationsHelper.getInstance(mContext) in updateMissedCallNotification() local
112 titleResId = contactInfo.userType == ContactsUtils.USER_TYPE_WORK in updateMissedCallNotification()
116 expandedText = contactInfo.name; in updateMissedCallNotification()
117 ContactPhotoLoader loader = new ContactPhotoLoader(mContext, contactInfo); in updateMissedCallNotification()
DCallLogAdapter.java610 private String getPreferredDisplayName(ContactInfo contactInfo) { in getPreferredDisplayName() argument
612 TextUtils.isEmpty(contactInfo.nameAlternative)) { in getPreferredDisplayName()
613 return contactInfo.name; in getPreferredDisplayName()
615 return contactInfo.nameAlternative; in getPreferredDisplayName()
823 void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument
825 mContactInfoCache.injectContactInfoForTest(number, countryIso, contactInfo); in injectContactInfoForTest()
DContactInfoHelper.java184 ContactInfo contactInfo = createPhoneLookupContactInfo(phoneLookupCursor, lookupKey); in lookupContactFromUri() local
185 contactInfo.nameAlternative = lookUpDisplayNameAlternative(mContext, lookupKey, in lookupContactFromUri()
186 contactInfo.userType); in lookupContactFromUri()
187 return contactInfo; in lookupContactFromUri()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DStatusBarNotifier.java232 private void buildAndSendNotification(Call originalCall, ContactCacheEntry contactInfo) { in buildAndSendNotification() argument
245 Bitmap largeIcon = getLargeIconToDisplay(contactInfo, call); in buildAndSendNotification()
247 getContentString(call, contactInfo.userType); in buildAndSendNotification()
248 final String contentTitle = getContentTitle(contactInfo, call); in buildAndSendNotification()
258 notificationType, contactInfo.contactRingtoneUri)) { in buildAndSendNotification()
314 addPersonReference(builder, contactInfo, call); in buildAndSendNotification()
321 if (mDialerRingtoneManager.shouldPlayRingtone(callState, contactInfo.contactRingtoneUri)) { in buildAndSendNotification()
323 notification.sound = contactInfo.contactRingtoneUri; in buildAndSendNotification()
427 String getContentTitle(ContactCacheEntry contactInfo, Call call) { in getContentTitle() argument
432 String preferredName = ContactDisplayUtils.getPreferredDisplayName(contactInfo.namePrimary, in getContentTitle()
[all …]
DContactInfoCache.java125 ContactInfo contactInfo = new ContactInfo(); in maybeInsertCnapInformationIntoCache() local
127 contactInfo); in maybeInsertCnapInformationIntoCache()
129 contactInfo.name = info.cnapName; in maybeInsertCnapInformationIntoCache()
130 contactInfo.number = call.getNumber(); in maybeInsertCnapInformationIntoCache()
131 contactInfo.type = ContactsContract.CommonDataKinds.Phone.TYPE_MAIN; in maybeInsertCnapInformationIntoCache()
135 .put(Phone.NUMBER, contactInfo.number) in maybeInsertCnapInformationIntoCache()
138 .put(Contacts.DISPLAY_NAME, contactInfo.name) in maybeInsertCnapInformationIntoCache()
DCallCardPresenter.java966 String getNameForCall(ContactCacheEntry contactInfo) { in getNameForCall() argument
968 contactInfo.namePrimary, in getNameForCall()
969 contactInfo.nameAlternative, in getNameForCall()
972 return contactInfo.number; in getNameForCall()
981 String getNumberForCall(ContactCacheEntry contactInfo) { in getNumberForCall() argument
985 contactInfo.namePrimary, in getNumberForCall()
986 contactInfo.nameAlternative, in getNumberForCall()
989 return contactInfo.location; in getNumberForCall()
991 return contactInfo.number; in getNumberForCall()
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
DCallCardPresenterTest.java85 ContactCacheEntry contactInfo = new ContactCacheEntry(); in testGetNameForCall_EmptyPreferredName() local
86 contactInfo.number = NUMBER; in testGetNameForCall_EmptyPreferredName()
92 assertEquals(NUMBER, presenter.getNameForCall(contactInfo)); in testGetNameForCall_EmptyPreferredName()
112 ContactCacheEntry contactInfo = new ContactCacheEntry(); in testGetNumberForCall_EmptyPreferredName() local
113 contactInfo.location = LOCATION; in testGetNumberForCall_EmptyPreferredName()
119 assertEquals(LOCATION, presenter.getNumberForCall(contactInfo)); in testGetNumberForCall_EmptyPreferredName()
/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/
DContactPhotoLoader.java51 public ContactPhotoLoader(Context context, ContactInfo contactInfo) { in ContactPhotoLoader() argument
53 mContactInfo = Preconditions.checkNotNull(contactInfo); in ContactPhotoLoader()
DContactInfoCache.java329 String number, String countryIso, ContactInfo contactInfo) { in injectContactInfoForTest() argument
331 mCache.put(numberCountryIso, contactInfo); in injectContactInfoForTest()