HomeSort by relevance Sort by last modified time
    Searched full:contactinfo (Results 1 - 25 of 36) sorted by null

1 2

  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
ContactsTest.java 72 private class ContactInfo { // Not static to access outer world.
80 public ContactInfo(String contactId, String displayName, String photoUri,
119 ContactInfo contactInfo = getContactInfo(PRIMARY_CONTACT_PHONE);
120 assertNotNull(contactInfo);
121 assertEquals(PRIMARY_CONTACT_DISPLAY_NAME, contactInfo.displayName);
122 contactInfo.assertNoPhotoUri();
123 assertFalse(contactInfo.hasPhotoId());
124 assertFalse(isEnterpriseContactId(contactInfo.contactId));
126 contactInfo = getContactInfoFromEmail(PRIMARY_CONTACT_EMAIL)
    [all...]
  /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) {
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...]
ContactInfoSource.java 22 * Views that are interested in looking up ContactInfo objects should bind themselves to a
28 ContactInfo getContactInfo(String email);
  /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/src/com/android/dialer/service/
CachedNumberLookupService.java 5 import com.android.dialer.calllog.ContactInfo;
16 public ContactInfo getContactInfo();
24 public CachedContactInfo buildCachedContactInfo(ContactInfo info);
33 * number is found in the cache, {@link ContactInfo#EMPTY} if the phone number was
  /development/samples/BusinessCard/src/com/example/android/businesscard/
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;
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());
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;
ContactInfo.java 22 public class ContactInfo {
ContactAccessor.java 88 public abstract ContactInfo loadContact(ContentResolver contentResolver, Uri contactUri);
  /packages/apps/Dialer/src/com/android/dialer/calllog/
ContactInfoHelper.java 74 public ContactInfo lookupNumber(String number, String countryIso) {
78 final ContactInfo info;
83 ContactInfo sipInfo = queryContactInfoForSipAddress(number);
84 if (sipInfo == null || sipInfo == ContactInfo.EMPTY) {
95 ContactInfo phoneInfo = queryContactInfoForPhoneNumber(number, countryIso);
97 if (phoneInfo == null || phoneInfo == ContactInfo.EMPTY) {
104 final ContactInfo updatedInfo;
110 if (info == ContactInfo.EMPTY) {
112 updatedInfo = new ContactInfo();
156 * It returns null if an error occurs, {@link ContactInfo#EMPTY} if no matching contact i
    [all...]
ContactInfo.java 28 public class ContactInfo {
49 public static ContactInfo EMPTY = new ContactInfo();
70 ContactInfo other = (ContactInfo) obj;
PhoneQuery.java 22 * The query to look up the {@link ContactInfo} for a given number in the Call Log.
CallLogAdapter.java 54 import com.android.dialer.contactinfo.ContactInfoCache;
55 import com.android.dialer.contactinfo.ContactInfoCache.OnContactInfoChangedListener;
481 final ContactInfo cachedContactInfo = mContactInfoHelper.getContactInfo(c);
488 ContactInfo info = ContactInfo.EMPTY;
691 void injectContactInfoForTest(String number, String countryIso, ContactInfo contactInfo) {
693 mContactInfoCache.injectContactInfoForTest(number, countryIso, contactInfo);
  /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) {
NumberWithCountryIso.java 17 package com.android.dialer.contactinfo;
  /packages/apps/Dialer/tests/src/com/android/dialer/calllog/
CallLogAdapterTest.java 27 import com.android.dialer.contactinfo.ContactInfoCache;
28 import com.android.dialer.contactinfo.ContactInfoCache.OnContactInfoChangedListener;
63 public ContactInfo lookupNumber(String number, String countryIso) {
64 ContactInfo info = new ContactInfo();
158 ContactInfo info = createContactInfo();
175 private ContactInfo createContactInfo() {
176 ContactInfo info = new ContactInfo();
221 public final ContactInfo callLogInfo
    [all...]
CallLogFragmentTest.java 497 ContactInfo contactInfo = new ContactInfo();
498 contactInfo.lookupUri = TEST_LOOKUP_URI;
499 contactInfo.name = cachedName;
500 contactInfo.type = cachedNumberType;
501 contactInfo.label = cachedNumberLabel;
506 contactInfo.formattedNumber = formattedNumber;
507 contactInfo.normalizedNumber = number;
508 contactInfo.photoId = 0
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/list/
RegularSearchListAdapter.java 26 import com.android.dialer.calllog.ContactInfo;
44 ContactInfo info = new ContactInfo();
  /packages/apps/InCallUI/src/com/android/incallui/
StatusBarNotifier.java 194 private void buildAndSendNotification(Call originalCall, ContactCacheEntry contactInfo) {
208 Bitmap largeIcon = getLargeIconToDisplay(contactInfo, call);
210 final String contentTitle = getContentTitle(contactInfo, call);
263 addPersonReference(builder, contactInfo, call);
349 private String getContentTitle(ContactCacheEntry contactInfo, Call call) {
353 if (TextUtils.isEmpty(contactInfo.name)) {
354 return TextUtils.isEmpty(contactInfo.number) ? null
356 contactInfo.number.toString(), TextDirectionHeuristics.LTR);
359 return contactInfo.name;
362 private void addPersonReference(Notification.Builder builder, ContactCacheEntry contactInfo,
    [all...]
ContactInfoCache.java 34 import com.android.dialer.calllog.ContactInfo;
114 ContactInfo contactInfo = new ContactInfo();
116 contactInfo);
118 contactInfo.name = info.cnapName;
119 contactInfo.number = call.getNumber();
120 contactInfo.type = ContactsContract.CommonDataKinds.Phone.TYPE_MAIN;
124 .put(Phone.NUMBER, contactInfo.number)
127 .put(Contacts.DISPLAY_NAME, contactInfo.name
    [all...]
CallCardPresenter.java 736 private static String getNameForCall(ContactCacheEntry contactInfo) {
737 if (TextUtils.isEmpty(contactInfo.name)) {
738 return contactInfo.number;
740 return contactInfo.name;
746 private static String getNumberForCall(ContactCacheEntry contactInfo) {
749 if (TextUtils.isEmpty(contactInfo.name)) {
750 return contactInfo.location;
752 return contactInfo.number;
    [all...]
  /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) {

Completed in 390 milliseconds

1 2