Home
last modified time | relevance | path

Searched refs:LruCache (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/hashlink/
DCHANGELOG.md4 - Add a `Debug` impl to `LruCache` (thanks @thomcc!)
11 - Adjust trait bounds for `LruCache::with_hasher`, `LruCache::capacity`,
12 `LruCache::len`, `LruCache::is_empty`, `LruCache::clear`, `LruCache::iter`,
13 `LruCache::iter_mut`, and `LruCache::drain` to be less strict
18 - Add `LinkedHashMap::remove_entry` and `LruCache::remove_entry`
19 - Add `LruCache::new_unbounded` constructor that sets capacity to usize::MAX
20 - Add `LruCache::get` method to go with `LruCache::get_mut`
21 - Add `LruCache::peek` and `LruCache::peek_mut` to access the cache without
45 - Add `LruCache` type ported from `lru-cache` crate into its own module
46 - Add `LruCache` entry and raw-entry API
DREADME.md10 to date versions of `LinkedHashMap` `LinkedHashSet`, and `LruCache`.
/external/rust/crates/hashlink/tests/
Dlru_cache.rs1 use hashlink::LruCache;
5 let mut cache = LruCache::new(2); in test_put_and_get()
15 let mut cache = LruCache::new(1); in test_put_update()
24 let mut cache = LruCache::new(1); in test_contains_key()
31 let mut cache = LruCache::new(2); in test_expire_lru()
43 let mut cache = LruCache::new(2); in test_pop()
56 let mut cache = LruCache::new(2); in test_change_capacity()
67 let mut cache = LruCache::new(3); in test_remove()
88 let mut cache = LruCache::new(2); in test_clear()
99 let mut cache = LruCache::new(3); in test_iter()
[all …]
/external/rust/crates/lru-cache/src/
Dlib.rs56 pub struct LruCache<K: Eq + Hash, V, S: BuildHasher = RandomState> { struct
61 impl<K: Eq + Hash, V> LruCache<K, V> { implementation
71 LruCache { in new()
78 impl<K: Eq + Hash, V, S: BuildHasher> LruCache<K, V, S> { impl
81 LruCache { map: LinkedHashMap::with_hasher(hash_builder), max_size: capacity } in with_hasher()
307 impl<K: Eq + Hash, V, S: BuildHasher> Extend<(K, V)> for LruCache<K, V, S> { implementation
315 impl<K: fmt::Debug + Eq + Hash, V: fmt::Debug, S: BuildHasher> fmt::Debug for LruCache<K, V, S> { implementation
321 impl<K: Eq + Hash, V, S: BuildHasher> IntoIterator for LruCache<K, V, S> { implementation
330 impl<'a, K: Eq + Hash, V, S: BuildHasher> IntoIterator for &'a LruCache<K, V, S> { implementation
336 impl<'a, K: Eq + Hash, V, S: BuildHasher> IntoIterator for &'a mut LruCache<K, V, S> { implementation
[all …]
Dheapsize.rs6 use LruCache;
8 impl<K: Eq + Hash + HeapSizeOf, V: HeapSizeOf, S: BuildHasher> HeapSizeOf for LruCache<K, V, S> { implementation
/external/rust/crates/hashlink/src/
Dlru_cache.rs17 pub struct LruCache<K, V, S = hash_map::DefaultHashBuilder> { struct
22 impl<K: Eq + Hash, V> LruCache<K, V> { argument
25 LruCache { in new()
36 LruCache::new(usize::MAX) in new_unbounded()
40 impl<K, V, S> LruCache<K, V, S> { impl
43 LruCache { in with_hasher()
85 impl<K: Eq + Hash, V, S> LruCache<K, V, S> implementation
235 impl<K: Hash + Eq + Clone, V: Clone, S: BuildHasher + Clone> Clone for LruCache<K, V, S> { implementation
238 LruCache { in clone()
245 impl<K: Eq + Hash, V, S: BuildHasher> Extend<(K, V)> for LruCache<K, V, S> { implementation
[all …]
Dlib.rs9 pub use lru_cache::LruCache;
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLruTest.java5 import android.util.LruCache;
15 LruCache<Integer, String> lruCache = new LruCache<>(2); in shouldLru()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/
DLottieCompositionCache.java6 import androidx.collection.LruCache;
19 private final LruCache<String, LottieComposition> cache = new LruCache<>(20);
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DSafeKeyGenerator.java4 import com.bumptech.glide.util.LruCache;
15 private final LruCache<Key, String> loadIdToSafeHash = new LruCache<Key, String>(1000);
DLruResourceCache.java7 import com.bumptech.glide.util.LruCache;
12 public class LruResourceCache extends LruCache<Key, Resource<?>> implements MemoryCache {
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
DModelCache.java3 import com.bumptech.glide.util.LruCache;
19 private final LruCache<ModelKey<A>, B> cache;
26 cache = new LruCache<ModelKey<A>, B>(size) { in ModelCache()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DLruCache.java13 public class LruCache<T, Y> { class
24 public LruCache(int size) { in LruCache() method in LruCache
/external/grpc-grpc-java/examples/android/clientcache/app/src/main/java/io/grpc/clientcacheexample/
DSafeMethodCachingInterceptor.java4 import android.util.LruCache;
109 private final LruCache<Key, Value> lruCache = in newLruCache()
110 new LruCache<Key, Value>(cacheSizeInBytes) { in newLruCache()
/external/rust/crates/rusqlite/src/
Dcache.rs5 use hashlink::LruCache;
58 pub struct StatementCache(RefCell<LruCache<Arc<str>, RawStatement>>);
110 StatementCache(RefCell::new(LruCache::new(capacity))) in with_capacity()
/external/libtextclassifier/java/src/com/android/textclassifier/
DDefaultTextClassifierService.java32 import androidx.collection.LruCache;
64 private LruCache<TextClassificationSessionId, TextClassificationContext> sessionIdToContext;
86 sessionIdToContext = new LruCache<>(settings.getSessionIdToContextCacheSize()); in onCreate()
/external/libtextclassifier/notification/src/com/android/textclassifier/notification/
DSmartSuggestionsHelper.java34 import android.util.LruCache;
88 private final LruCache<String, SmartSuggestionsLogSession> sessionCache =
89 new LruCache<String, SmartSuggestionsLogSession>(MAX_RESULT_ID_TO_CACHE) {
/external/grpc-grpc/test/core/tsi/
Dssl_session_cache_test.cc98 TEST(SslSessionCacheTest, LruCache) { in TEST() argument