Lines Matching refs:cacheEntry
355 final ContactCacheEntry cacheEntry = infoMap.get(callId); in findInfo() local
359 boolean forceQuery = needForceQuery(call, cacheEntry); in findInfo()
365 if (cacheEntry != null && !forceQuery) { in findInfo()
370 callback.onContactInfoComplete(callId, cacheEntry); in findInfo()
412 if (cacheEntry != null) { in findInfo()
417 cacheEntry.queryId = queryToken.queryId; in findInfo()
466 ContactCacheEntry cacheEntry = buildEntry(context, callerInfo, presentationMode); in updateCallerInfoInCacheOnAnyThread() local
467 cacheEntry.queryId = queryToken.queryId; in updateCallerInfoInCacheOnAnyThread()
470 if (cacheEntry.displayPhotoUri != null) { in updateCallerInfoInCacheOnAnyThread()
477 && existingCacheEntry.displayPhotoUri.equals(cacheEntry.displayPhotoUri) in updateCallerInfoInCacheOnAnyThread()
480 cacheEntry.photo = existingCacheEntry.photo; in updateCallerInfoInCacheOnAnyThread()
481 cacheEntry.photoType = existingCacheEntry.photoType; in updateCallerInfoInCacheOnAnyThread()
482 return cacheEntry; in updateCallerInfoInCacheOnAnyThread()
488 cacheEntry.hasPendingQuery = true; in updateCallerInfoInCacheOnAnyThread()
492 cacheEntry.displayPhotoUri, in updateCallerInfoInCacheOnAnyThread()
496 Log.d(TAG, "put entry into map: " + cacheEntry); in updateCallerInfoInCacheOnAnyThread()
497 infoMap.put(callId, cacheEntry); in updateCallerInfoInCacheOnAnyThread()
500 Log.d(TAG, "put entry into map if not exists: " + cacheEntry); in updateCallerInfoInCacheOnAnyThread()
501 infoMap.putIfAbsent(callId, cacheEntry); in updateCallerInfoInCacheOnAnyThread()
504 return cacheEntry; in updateCallerInfoInCacheOnAnyThread()
823 ContactCacheEntry cacheEntry = infoMap.get(callId); in onQueryComplete() local
825 if (cacheEntry == null) { in onQueryComplete()
838 cacheEntry.hasPendingQuery = true; in onQueryComplete()
839 phoneNumberService.getPhoneNumberInfo(cacheEntry.number, listener); in onQueryComplete()
841 sendInfoNotifications(callId, cacheEntry); in onQueryComplete()
842 if (!cacheEntry.hasPendingQuery) { in onQueryComplete()
927 private boolean needForceQuery(DialerCall call, ContactCacheEntry cacheEntry) { in needForceQuery() argument
933 if (cacheEntry == null) { in needForceQuery()
938 String oldPhoneNumber = PhoneNumberUtils.stripSeparators(cacheEntry.originalPhoneNumber); in needForceQuery()