Lines Matching refs:lookupResult
82 private LruCache<String, LookupResult> mPeopleCache;
92 mPeopleCache = new LruCache<String, LookupResult>(PEOPLE_CACHE_SIZE);
230 LookupResult lookupResult = mPeopleCache.get(cacheKey);
231 if (lookupResult == null || lookupResult.isExpired()) {
234 if (DEBUG) Slog.d(TAG, "using cached lookupResult");
236 if (lookupResult != null) {
237 affinity = Math.max(affinity, lookupResult.getAffinity());
321 private LookupResult resolvePhoneContact(Context context, final String number) {
327 private LookupResult resolveEmailContact(Context context, final String email) {
334 private LookupResult searchContacts(Context context, Uri lookupUri) {
335 LookupResult lookupResult = new LookupResult();
341 return lookupResult;
344 lookupResult.mergeContact(c);
353 return lookupResult;
356 private static class LookupResult {
362 public LookupResult() {
426 LookupResult lookupResult = null;
430 lookupResult = resolvePhoneContact(mContext, uri.getSchemeSpecificPart());
433 lookupResult = resolveEmailContact(mContext, uri.getSchemeSpecificPart());
436 lookupResult = searchContacts(mContext, uri);
438 lookupResult = new LookupResult(); // invalid person for the cache
441 if (lookupResult != null) {
444 mPeopleCache.put(cacheKey, lookupResult);
446 mContactAffinity = Math.max(mContactAffinity, lookupResult.getAffinity());