Lines Matching full:contactinfo
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(
122 Map<String, ContactInfo> results = Maps.newHashMap();
125 Map<Long, Pair<String, ContactInfo>> photoIdMap = Maps.newHashMap();
159 ContactInfo result = new ContactInfo(contactUri);
171 // Put empty ContactInfo for all the emails that didn't map to a contact.
176 results.put(email, new ContactInfo(null));
214 Pair<String, ContactInfo> prev = photoIdMap.get(photoId);
216 ContactInfo prevResult = prev.second;
223 results.put(email, new ContactInfo(prevResult.contactUri, photo));
226 results.put(email, new ContactInfo(prevResult.contactUri, photoBytes));