Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLruTest.java15 LruCache<Integer, String> lruCache = new LruCache<>(2); in shouldLru() local
16 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()
/external/grpc-grpc-java/examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/
DSafeMethodCachingInterceptor.java109 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()
/external/skia/modules/skshaper/src/
DSkShaper_harfbuzz.cpp1261 HBLockedFaceCache(SkLRUCache<SkFontID, HBFace>& lruCache, SkMutex& mutex) in HBLockedFaceCache() argument
1262 : fLRUCache(lruCache), fMutex(mutex) in HBLockedFaceCache()