Searched refs:ExpirableCache (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Dialer/src/com/android/dialer/util/ |
D | ExpirableCache.java | 87 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/ |
D | ExpirableCacheTest.java | 23 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/calllog/ |
D | CallLogAdapter.java | 60 import com.android.dialer.util.ExpirableCache; 166 private ExpirableCache<NumberWithCountryIso, ContactInfo> mContactInfoCache; 370 mContactInfoCache = ExpirableCache.create(CONTACT_INFO_CACHE_SIZE); in CallLogAdapter() 721 ExpirableCache.CachedValue<ContactInfo> cachedInfo = in bindView()
|