Searched refs:LruCache (Results 1 – 2 of 2) sorted by relevance
/system/core/include/utils/ |
D | LruCache.h | 36 class LruCache { 38 explicit LruCache(uint32_t maxCapacity); 55 Iterator(const LruCache<TKey, TValue>& cache): mCache(cache), mIndex(-1) { in Iterator() 75 const LruCache<TKey, TValue>& mCache; 80 LruCache(const LruCache& that); // disallow copy constructor 107 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity) in LruCache() function 117 void LruCache<K, V>::setOnEntryRemovedListener(OnEntryRemoved<K, V>* listener) { in setOnEntryRemovedListener() 122 size_t LruCache<TKey, TValue>::size() const { in size() 127 const TValue& LruCache<TKey, TValue>::get(const TKey& key) { in get() 140 bool LruCache<TKey, TValue>::put(const TKey& key, const TValue& value) { in put() [all …]
|
/system/core/libutils/tests/ |
D | LruCache_test.cpp | 81 typedef LruCache<ComplexKey, ComplexValue> ComplexCache; 122 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() 129 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() 141 LruCache<SimpleKey, StringValue> cache(2); in TEST_F() 153 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() 166 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() 185 LruCache<SimpleKey, StringValue> cache(512); in TEST_F() 269 LruCache<SimpleKey, StringValue> cache(100); in TEST_F() 284 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
|