Home
last modified time | relevance | path

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

/system/core/include/utils/
DLruCache.h38 class LruCache {
40 explicit LruCache(uint32_t maxCapacity);
41 virtual ~LruCache();
57 LruCache(const LruCache& that); // disallow copy constructor
107 Iterator(const LruCache<TKey, TValue>& cache): in Iterator()
134 const LruCache<TKey, TValue>& mCache;
142 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity) in LruCache() function
153 LruCache<TKey, TValue>::~LruCache() { in ~LruCache()
159 void LruCache<K, V>::setOnEntryRemovedListener(OnEntryRemoved<K, V>* listener) { in setOnEntryRemovedListener()
164 size_t LruCache<TKey, TValue>::size() const { in size()
[all …]
/system/core/libutils/tests/
DLruCache_test.cpp88 typedef LruCache<ComplexKey, ComplexValue> ComplexCache;
141 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
148 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
160 LruCache<SimpleKey, StringValue> cache(2); in TEST_F()
172 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
185 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
204 LruCache<SimpleKey, StringValue> cache(512); in TEST_F()
288 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
303 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
316 LruCache<KeyWithPointer, StringValue> cache(1); in TEST_F()
[all …]