Searched refs:ContactInfo (Results 1 - 15 of 15) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/
H A DContactInfo.java23 public class ContactInfo { class
28 public ContactInfo(Uri contactUri) { method in class:ContactInfo
32 public ContactInfo(Uri contactUri, byte[] photoBytes) { method in class:ContactInfo
36 public ContactInfo(Uri contactUri, Bitmap photo) { method in class:ContactInfo
40 private ContactInfo(Uri contactUri, byte[] photoBytes, Bitmap photo) { method in class:ContactInfo
H A DContactInfoSource.java22 * Views that are interested in looking up ContactInfo objects should bind themselves to a
28 ContactInfo getContactInfo(String email);
H A DSenderInfoLoader.java49 public class SenderInfoLoader extends AsyncTaskLoader<ImmutableMap<String, ContactInfo>> {
89 public ImmutableMap<String, ContactInfo> loadInBackground() {
103 * {@link ContactInfo}. Otherwise, just put the raw bytes of the photo
104 * into the {@link ContactInfo}.
105 * @return A mapping of email to {@link ContactInfo}. How to interpret the map:
109 * <li>Either {@link ContactInfo#photoBytes} or {@link ContactInfo#photo} is non-null -
111 * <li>Both {@link ContactInfo#photoBytes} and {@link ContactInfo#photo} are null -
115 public static ImmutableMap<String, ContactInfo> loadContactPhoto
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DContactLoaderCallbacks.java27 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/
H A DCachedNumberLookupService.java6 import com.android.dialer.calllog.ContactInfo;
11 public ContactInfo getContactInfo();
18 public CachedContactInfo buildCachedContactInfo(ContactInfo info);
27 * number is found in the cache, {@link ContactInfo#EMPTY} if the phone number was
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DContactInfoHelper.java66 public ContactInfo lookupNumber(String number, String countryIso) {
67 final ContactInfo info;
72 ContactInfo sipInfo = queryContactInfoForSipAddress(number);
73 if (sipInfo == null || sipInfo == ContactInfo.EMPTY) {
84 ContactInfo phoneInfo = queryContactInfoForPhoneNumber(number, countryIso);
86 if (phoneInfo == null || phoneInfo == ContactInfo.EMPTY) {
93 final ContactInfo updatedInfo;
99 if (info == ContactInfo.EMPTY) {
101 updatedInfo = new ContactInfo();
145 * It returns null if an error occurs, {@link ContactInfo#EMPT
[all...]
H A DContactInfo.java28 public class ContactInfo { class
44 public static ContactInfo EMPTY = new ContactInfo();
67 ContactInfo other = (ContactInfo) obj;
H A DCallLogAdapter.java157 private ExpirableCache<NumberWithCountryIso, ContactInfo> mContactInfoCache;
193 public final ContactInfo callLogInfo;
195 public ContactInfoRequest(String number, String countryIso, ContactInfo callLogInfo) {
457 protected void enqueueRequest(String number, String countryIso, ContactInfo callLogInfo,
480 private boolean queryContactInfo(String number, String countryIso, ContactInfo callLogInfo) {
481 final ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso);
491 ContactInfo existingInfo = mContactInfoCache.getPossiblyExpired(numberCountryIso);
495 // Don't force redraw if existing info in the cache is equal to {@link ContactInfo#EMPTY}
501 boolean updated = (existingInfo != ContactInfo.EMPTY || isRemoteSource) &&
677 final ContactInfo cachedContactInf
[all...]
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
H A DCallLogAdapterTest.java58 public ContactInfo lookupNumber(String number, String countryIso) {
59 ContactInfo info = new ContactInfo();
148 ContactInfo info = createContactInfo();
164 private ContactInfo createContactInfo() {
165 ContactInfo info = new ContactInfo();
199 public final ContactInfo callLogInfo;
202 public Request(String number, String countryIso, ContactInfo callLogInfo,
219 protected void enqueueRequest(String number, String countryIso, ContactInfo callLogInf
[all...]
H A DCallLogFragmentTest.java219 // {@value com.android.dialer.calllog.ContactInfo#GEOCODE_AS_LABEL}
247 // {@value com.android.dialer.calllog.ContactInfo#GEOCODE_AS_LABEL}
262 // {@link com.android.dialer.calllog.ContactInfo#GEOCODE_AS_LABEL}
479 ContactInfo contactInfo = new ContactInfo();
/packages/apps/Dialer/src/com/android/dialer/list/
H A DRegularSearchListAdapter.java27 import com.android.dialer.calllog.ContactInfo;
42 ContactInfo info = new ContactInfo();
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
H A DContactResolver.java30 import com.android.mail.ContactInfo;
182 final ImmutableMap<String, ContactInfo> contactInfos = loadContactPhotos(emails);
196 final ContactInfo contactInfo = contactInfos.get(email);
238 protected ImmutableMap<String, ContactInfo> loadContactPhotos(Set<String> emails) {
/packages/apps/Dialer/src/com/android/dialer/
H A DPhoneCallDetailsHelper.java32 import com.android.dialer.calllog.ContactInfo;
174 if (details.numberLabel == ContactInfo.GEOCODE_AS_LABEL) {
H A DCallDetailActivity.java56 import com.android.dialer.calllog.ContactInfo;
557 ContactInfo info =
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMessageHeaderView.java52 import com.android.mail.ContactInfo;
832 final ContactInfo info = mContactInfoSource.getContactInfo(email);

Completed in 265 milliseconds