/external/rust/crates/hashlink/ |
D | CHANGELOG.md | 4 - 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
|
D | README.md | 10 to date versions of `LinkedHashMap` `LinkedHashSet`, and `LruCache`.
|
/external/rust/crates/hashlink/tests/ |
D | lru_cache.rs | 1 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/ |
D | lib.rs | 56 pub struct LruCache<K: Eq + Hash, V, S: BuildHasher = RandomState> { struct 61 impl<K: Eq + Hash, V> LruCache<K, V> { impl 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 …]
|
D | heapsize.rs | 6 use LruCache; 8 impl<K: Eq + Hash + HeapSizeOf, V: HeapSizeOf, S: BuildHasher> HeapSizeOf for LruCache<K, V, S> { implementation
|
/external/rust/crates/hashlink/src/ |
D | lru_cache.rs | 17 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> { implementation 43 LruCache { in with_hasher() 85 impl<K: Eq + Hash, V, S> LruCache<K, V, S> impl 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 …]
|
D | lib.rs | 9 pub use lru_cache::LruCache;
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLruTest.java | 5 import android.util.LruCache; 15 LruCache<Integer, String> lruCache = new LruCache<>(2); in shouldLru()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/ |
D | LottieCompositionCache.java | 6 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/ |
D | SafeKeyGenerator.java | 4 import com.bumptech.glide.util.LruCache; 15 private final LruCache<Key, String> loadIdToSafeHash = new LruCache<Key, String>(1000);
|
D | LruResourceCache.java | 7 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/ |
D | ModelCache.java | 3 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/ |
D | LruCache.java | 13 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/ |
D | SafeMethodCachingInterceptor.java | 4 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/ |
D | cache.rs | 5 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/ |
D | DefaultTextClassifierService.java | 32 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/ |
D | SmartSuggestionsHelper.java | 34 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/ |
D | ssl_session_cache_test.cc | 98 TEST(SslSessionCacheTest, LruCache) { in TEST() argument
|
/external/guice/extensions/struts2/lib/ |
D | jsp-2.1.jar | META-INF/
META-INF/MANIFEST.MF
org/
org/apache/
org/ ... |