Searched refs:lruCache (Results 1 – 3 of 3) sorted by relevance
15 LruCache<Integer, String> lruCache = new LruCache<>(2); in shouldLru() local16 lruCache.put(1, "one"); in shouldLru()17 lruCache.put(2, "two"); in shouldLru()18 lruCache.put(3, "three"); in shouldLru()20 assertThat(lruCache.size()).isEqualTo(2); in shouldLru()21 assertThat(lruCache.get(1)).isNull(); in shouldLru()22 assertThat(lruCache.get(2)).isEqualTo("two"); in shouldLru()23 assertThat(lruCache.get(3)).isEqualTo("three"); in shouldLru()
109 private final LruCache<Key, Value> lruCache = in newLruCache()118 lruCache.put(key, value); in newLruCache()123 return lruCache.get(key); in newLruCache()128 lruCache.remove(key); in newLruCache()133 lruCache.evictAll(); in newLruCache()
1261 HBLockedFaceCache(SkLRUCache<SkFontID, HBFace>& lruCache, SkMutex& mutex) in HBLockedFaceCache() argument1262 : fLRUCache(lruCache), fMutex(mutex) in HBLockedFaceCache()