HomeSort by relevance Sort by last modified time
    Searched refs:ContactInfo (Results 1 - 25 of 31) sorted by null

1 2

  /packages/apps/UnifiedEmail/src/com/android/mail/
ContactInfo.java 23 public class ContactInfo {
28 public ContactInfo(Uri contactUri) {
32 public ContactInfo(Uri contactUri, byte[] photoBytes) {
36 public ContactInfo(Uri contactUri, Bitmap photo) {
40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) {
ContactInfoSource.java 22 * Views that are interested in looking up ContactInfo objects should bind themselves to a
28 ContactInfo getContactInfo(String email);
SenderInfoLoader.java 50 public class SenderInfoLoader extends AsyncTaskLoader<ImmutableMap<String, ContactInfo>> {
90 public ImmutableMap<String, ContactInfo> loadInBackground() {
104 * {@link ContactInfo}. Otherwise, just put the raw bytes of the photo
105 * into the {@link ContactInfo}.
106 * @return A mapping of email to {@link ContactInfo}. How to interpret the map:
110 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null -
112 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null -
116 public static ImmutableMap<String, ContactInfo> loadContactPhotos
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ContactLoaderCallbacks.java 27 import com.android.mail.ContactInfo;
39 LoaderManager.LoaderCallbacks<ImmutableMap<String, ContactInfo>> {
42 private ImmutableMap<String, ContactInfo> mContactInfoMap;
56 public Loader<ImmutableMap<String, ContactInfo>> onCreateLoader(int id, Bundle args) {
61 public void onLoadFinished(Loader<ImmutableMap<String, ContactInfo>> loader,
62 ImmutableMap<String, ContactInfo> data) {
68 public void onLoaderReset(Loader<ImmutableMap<String, ContactInfo>> loader) {
72 public ContactInfo getContactInfo(String email) {
  /packages/apps/Dialer/tests/src/com/android/dialer/calllog/
CallLogNotificationsHelperTest.java 50 ContactInfo contactInfo = getContactInfo(
52 assertEquals(TEST_VALID_NUMBER, contactInfo.number);
53 assertEquals(mContext.getResources().getString(R.string.unknown), contactInfo.name);
54 assertEquals(TEST_E164_NUMBER, contactInfo.normalizedNumber);
58 ContactInfo contactInfo = getContactInfo(TEST_VALID_NUMBER, -1, TEST_COUNTRY_ISO);
59 assertEquals(TEST_VALID_NUMBER, contactInfo.number);
60 assertEquals(TEST_FORMATTED_NUMBER, contactInfo.name);
61 assertEquals(TEST_E164_NUMBER, contactInfo.normalizedNumber)
    [all...]
ContactInfoHelperTest.java 45 private ContactInfo mContactInfo;
55 mContactInfo = new ContactInfo();
69 Assert.assertEquals(ContactInfo.EMPTY, mContactInfoHelper.lookupContactFromUri(
81 ContactInfo contactInfo = mContactInfoHelper.lookupContactFromUri(
83 Assert.assertEquals(TEST_DISPLAY_NAME, contactInfo.name);
84 Assert.assertNull(contactInfo.nameAlternative);
95 ContactInfo contactInfo = mContactInfoHelper.lookupContactFromUri(
97 Assert.assertEquals(TEST_DISPLAY_NAME, contactInfo.name)
    [all...]
CallLogAdapterTest.java 38 import com.android.dialer.contactinfo.ContactInfoCache;
103 public ContactInfo lookupNumber(String number, String countryIso) {
104 ContactInfo info = new ContactInfo();
449 ContactInfo info = createContactInfo();
694 ContactInfo contactInfo =
696 mAdapter.injectContactInfoForTest(number, TEST_COUNTRY_ISO, contactInfo);
763 private ContactInfo createContactInfo() {
769 private ContactInfo createContactInfo(String namePrimary, String nameAlternative)
    [all...]
  /packages/apps/Dialer/tests/src/com/android/dialer/contactinfo/
ContactPhotoLoaderTest.java 16 package com.android.dialer.contactinfo;
34 import com.android.dialer.calllog.ContactInfo;
48 ContactPhotoLoader loader = new ContactPhotoLoader(mContext, new ContactInfo());
53 ContactPhotoLoader loader = new ContactPhotoLoader(null, new ContactInfo());
70 ContactInfo info = getTestContactInfo();
77 ContactInfo info = getTestContactInfo();
85 ContactInfo info = getTestContactInfo();
100 private ContactInfo getTestContactInfo() {
101 ContactInfo info = new ContactInfo();
    [all...]
  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
ContactsTest.java 92 private class ContactInfo { // Not static to access outer world.
100 public ContactInfo(String contactId, String displayName, String photoUri,
164 ContactInfo contactInfo = getContactInfoFromPhoneLookupUri(false /*isEnterprise*/,
166 assertNotNull(contactInfo);
167 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME, contactInfo.displayName);
168 contactInfo.assertNoPhotoUri();
169 assertFalse(contactInfo.hasPhotoId());
170 assertFalse(isEnterpriseContactId(contactInfo.contactId));
172 contactInfo = getContactInfoFromEmailLookupUri(false /*isEnterprise*/
    [all...]
  /development/samples/BusinessCard/src/com/example/android/businesscard/
ContactInfo.java 22 public class ContactInfo {
BusinessCardActivity.java 99 AsyncTask<Uri, Void, ContactInfo> task = new AsyncTask<Uri, Void, ContactInfo>() {
102 protected ContactInfo doInBackground(Uri... uris) {
107 protected void onPostExecute(ContactInfo result) {
118 protected void bindView(ContactInfo contactInfo) {
120 displayNameView.setText(contactInfo.getDisplayName());
123 phoneNumberView.setText(contactInfo.getPhoneNumber());
ContactAccessorSdk3_4.java 55 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) {
56 ContactInfo contactInfo = new ContactInfo();
61 contactInfo.setDisplayName(cursor.getString(0));
73 contactInfo.setPhoneNumber(cursor.getString(0));
79 return contactInfo;
ContactAccessorSdk5.java 58 public ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri) {
59 ContactInfo contactInfo = new ContactInfo();
68 contactInfo.setDisplayName(cursor.getString(1));
80 contactInfo.setPhoneNumber(cursor.getString(0));
86 return contactInfo;
ContactAccessor.java 88 public abstract ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri);
  /packages/apps/Dialer/src/com/android/dialer/contactinfo/
ContactInfoCache.java 17 package com.android.dialer.contactinfo;
23 import com.android.dialer.calllog.ContactInfo;
132 private ExpirableCache<NumberWithCountryIso, ContactInfo> mCache;
147 public ContactInfo getValue(String number, String countryIso, ContactInfo cachedContactInfo) {
149 ExpirableCache.CachedValue<ContactInfo> cachedInfo =
151 ContactInfo info = cachedInfo == null ? null : cachedInfo.getValue();
153 mCache.put(numberCountryIso, ContactInfo.EMPTY);
173 if (info == ContactInfo.EMPTY) {
192 private boolean queryContactInfo(String number, String countryIso, ContactInfo callLogInfo)
    [all...]
ContactInfoRequest.java 17 package com.android.dialer.contactinfo;
21 import com.android.dialer.calllog.ContactInfo;
33 public final ContactInfo callLogInfo;
35 public ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) {
ContactPhotoLoader.java 17 package com.android.dialer.contactinfo;
32 import com.android.dialer.calllog.ContactInfo;
40 * Class to create the appropriate contact icon from a ContactInfo.
49 private final ContactInfo mContactInfo;
51 public ContactPhotoLoader(Context context, ContactInfo contactInfo) {
53 mContactInfo = Preconditions.checkNotNull(contactInfo);
57 * Create a contact photo icon bitmap appropriate for the ContactInfo.
98 * @return a {@link LetterTileDrawable} based on the ContactInfo.
  /packages/apps/Dialer/src/com/android/dialer/service/
CachedNumberLookupService.java 7 import com.android.dialer.calllog.ContactInfo;
20 public ContactInfo getContactInfo();
28 public CachedContactInfo buildCachedContactInfo(ContactInfo info);
37 * number is found in the cache, {@link ContactInfo#EMPTY} if the phone number was
  /packages/apps/Dialer/src/com/android/dialer/calllog/
ContactInfo.java 29 public class ContactInfo {
44 * ContactInfo.normalizedNumber is a column value returned by PhoneLookup query. By definition,
61 public static ContactInfo EMPTY = new ContactInfo();
82 ContactInfo other = (ContactInfo) obj;
ContactInfoHelper.java 78 public ContactInfo lookupNumber(String number, String countryIso) {
83 ContactInfo info;
88 if (info == null || info == ContactInfo.EMPTY) {
100 final ContactInfo updatedInfo;
106 if (info == ContactInfo.EMPTY) {
108 updatedInfo = new ContactInfo();
152 * It returns null if an error occurs, {@link ContactInfo#EMPTY} if no matching contact is
153 * found, or the {@link ContactInfo} for the given contact.
155 * The {@link ContactInfo#formattedNumber} field is always set to {@code null} in the returned
158 ContactInfo lookupContactFromUri(Uri uri, boolean isSip)
    [all...]
CallLogNotificationsHelper.java 113 * {@link ContactInfo}. If the name is empty but we have a special presentation, display that.
117 public ContactInfo getContactInfo(@Nullable String number, int numberPresentation,
124 ContactInfo contactInfo = new ContactInfo();
125 contactInfo.number = number;
126 contactInfo.formattedNumber = PhoneNumberUtils.formatNumber(number, countryIso);
127 // contactInfo.normalizedNumber is not PhoneNumberUtils.normalizeNumber. Read ContactInfo.
128 contactInfo.normalizedNumber = PhoneNumberUtils.formatNumberToE164(number, countryIso)
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/filterednumber/
NumbersAdapter.java 35 import com.android.dialer.calllog.ContactInfo;
69 ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso);
71 info = new ContactInfo();
97 private void loadContactPhoto(ContactInfo info, String displayName, QuickContactBadge badge) {
111 private String getDisplayNumber(ContactInfo info) {
121 private CharSequence getNumberTypeOrLocation(ContactInfo info) {
  /packages/apps/Dialer/src/com/android/dialer/list/
RegularSearchListAdapter.java 28 import com.android.dialer.calllog.ContactInfo;
46 ContactInfo info = new ContactInfo();
66 * cache the resulting @{link ContactInfo} into local db. Set usertype to USER_TYPE_WORK
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
ContactResolver.java 30 import com.android.mail.ContactInfo;
186 final ImmutableMap<String, ContactInfo> contactInfos = loadContactPhotos(emails);
200 final ContactInfo contactInfo = contactInfos.get(email);
201 if (contactInfo == null) {
209 final byte[] photo = contactInfo.photoBytes;
244 protected ImmutableMap<String, ContactInfo> loadContactPhotos(Set<String> emails) {
  /packages/apps/Dialer/InCallUI/src/com/android/incallui/
CallerInfoUtils.java 15 import com.android.dialer.calllog.ContactInfo;
106 ContactInfo info = new ContactInfo();

Completed in 987 milliseconds

1 2