Lines Matching refs:entry
82 final ContactCacheEntry entry = new ContactCacheEntry();
86 ContactInfoCache.populateCacheEntry(context, info, entry,
88 return entry;
133 // If the entry already exists, add callback
216 ContactCacheEntry entry = new ContactCacheEntry();
217 entry.name = info.getDisplayName();
218 entry.number = info.getNumber();
222 entry.label = label;
226 entry.label = typeStr == null ? null : typeStr.toString();
234 entry.location = oldEntry.location;
240 entry.photo = mContext.getResources().getDrawable(R.drawable.business_unknown);
244 mInfoMap.put(mCallId, entry);
245 sendInfoNotifications(mCallId, entry);
272 final ContactCacheEntry entry = mInfoMap.get(callId);
274 if (entry == null) {
275 Log.e(this, "Image Load received for empty search entry.");
279 Log.d(this, "setting photo for entry: ", entry);
284 entry.photo = photo;
287 entry.photo = new BitmapDrawable(mContext.getResources(), photoIcon);
290 entry.photo = null;
293 sendImageNotifications(callId, entry);
342 * Populate a cache entry from a caller identification (which got converted into a caller info).
456 * Sends the updated information to call the callbacks for the entry.
458 private void sendInfoNotifications(int callId, ContactCacheEntry entry) {
462 callBack.onContactInfoComplete(callId, entry);
467 private void sendImageNotifications(int callId, ContactCacheEntry entry) {
469 if (callBacks != null && entry.photo != null) {
471 callBack.onImageLoadComplete(callId, entry);
497 public void onContactInfoComplete(int callId, ContactCacheEntry entry);
498 public void onImageLoadComplete(int callId, ContactCacheEntry entry);