Home
last modified time | relevance | path

Searched refs:CachedValue (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/util/
DExpirableCache.java96 public interface CachedValue<V> { interface in ExpirableCache
112 private static class GenerationalCachedValue<V> implements ExpirableCache.CachedValue<V> {
143 private LruCache<K, CachedValue<V>> mCache;
155 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache()
173 public CachedValue<V> getCachedValue(K key) { in getCachedValue()
190 CachedValue<V> cachedValue = getCachedValue(key); in getPossiblyExpired()
205 CachedValue<V> cachedValue = getCachedValue(key); in get()
237 public CachedValue<V> newCachedValue(V value) { in newCachedValue()
252 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create()
264 return create(new LruCache<K, CachedValue<V>>(maxSize)); in create()
/packages/apps/Dialer/tests/src/com/android/dialer/util/
DExpirableCacheTest.java23 import com.android.dialer.util.ExpirableCache.CachedValue;
36 LruCache<String, CachedValue<Integer>> lruCache = in setUp()
37 new LruCache<String, ExpirableCache.CachedValue<Integer>>(20); in setUp()
105 new LruCache<String, ExpirableCache.CachedValue<Integer>>(10) { in testComputingCache()
107 protected CachedValue<Integer> create(String key) { in testComputingCache()
113 CachedValue<Integer> cachedValue = mCache.getCachedValue("a"); in testComputingCache()
120 CachedValue<Integer> expiredCachedValue = mCache.getCachedValue("a"); in testComputingCache()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAdapter.java721 ExpirableCache.CachedValue<ContactInfo> cachedInfo = in bindView()