Home
last modified time | relevance | path

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

/packages/apps/Dialer/src/com/android/dialer/util/
DExpirableCache.java87 public class ExpirableCache<K, V> { class
112 private static class GenerationalCachedValue<V> implements ExpirableCache.CachedValue<V> {
155 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() method in ExpirableCache
252 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create()
253 return new ExpirableCache<K, V>(cache); in create()
263 public static <K, V> ExpirableCache<K, V> create(int maxSize) { in create()
/packages/apps/Dialer/tests/src/com/android/dialer/util/
DExpirableCacheTest.java23 import com.android.dialer.util.ExpirableCache.CachedValue;
31 private ExpirableCache<String, Integer> mCache;
37 new LruCache<String, ExpirableCache.CachedValue<Integer>>(20); in setUp()
38 mCache = ExpirableCache.create(lruCache); in setUp()
104 mCache = ExpirableCache.create( in testComputingCache()
105 new LruCache<String, ExpirableCache.CachedValue<Integer>>(10) { in testComputingCache()
/packages/apps/Dialer/src/com/android/dialer/contactinfo/
DContactInfoCache.java25 import com.android.dialer.util.ExpirableCache;
132 private ExpirableCache<NumberWithCountryIso, ContactInfo> mCache;
144 mCache = ExpirableCache.create(CONTACT_INFO_CACHE_SIZE); in ContactInfoCache()
149 ExpirableCache.CachedValue<ContactInfo> cachedInfo = in getValue()