Searched refs:ExpirableCache (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | ExpirableCache.java | 91 public class ExpirableCache<K, V> { class 105 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache() method in ExpirableCache 121 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create() 122 return new ExpirableCache<K, V>(cache); in create() 132 public static <K, V> ExpirableCache<K, V> create(int maxSize) { in create() 239 private static class GenerationalCachedValue<V> implements ExpirableCache.CachedValue<V> {
|
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/ |
D | ExpirableCacheHeadlessFragment.java | 25 import com.android.dialer.util.ExpirableCache; 37 private ExpirableCache<NumberWithCountryIso, ContactInfo> retainedCache; 60 retainedCache = ExpirableCache.create(CONTACT_INFO_CACHE_SIZE); in onCreate() 64 public ExpirableCache<NumberWithCountryIso, ContactInfo> getRetainedCache() { in getRetainedCache()
|
D | ContactInfoCache.java | 29 import com.android.dialer.util.ExpirableCache; 53 private final ExpirableCache<NumberWithCountryIso, ContactInfo> mCache; 88 @NonNull ExpirableCache<NumberWithCountryIso, ContactInfo> internalCache, in ContactInfoCache() 104 ExpirableCache.CachedValue<ContactInfo> cachedInfo = mCache.getCachedValue(numberCountryIso); in getValue()
|