Home
last modified time | relevance | path

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

/system/bt/gd/common/
Dlru_cache.h53 class LruCache {
62 explicit LruCache(size_t capacity) : capacity_(capacity) { in LruCache() function
67 LruCache(LruCache&& other) noexcept = default;
68 LruCache& operator=(LruCache&& other) noexcept = default;
72 LruCache(const LruCache& other) : capacity_(other.capacity_), list_map_(other.list_map_) {} in LruCache() function
76 LruCache& operator=(const LruCache& other) {
86 bool operator==(const LruCache& rhs) const {
89 bool operator!=(const LruCache& rhs) const {
93 ~LruCache() { in ~LruCache()
108 return const_cast<LruCache*>(this)->find(key); in find()
Dlru_cache_test.cc27 using bluetooth::common::LruCache;
30 LruCache<int, int> cache(3); // capacity = 3; in TEST()
40 LruCache<int, int> cache_1(2); in TEST()
43 LruCache<int, int> cache_2(2); in TEST()
56 LruCache<int, int> cache_3(3); in TEST()
61 LruCache<int, int> cache_4(2); in TEST()
64 LruCache<int, int> cache_5(2); in TEST()
67 LruCache<int, int> cache_6(3); in TEST()
72 LruCache<int, int> cache(2); in TEST()
85 LruCache<int, std::shared_ptr<int>> cache(2); in TEST()
[all …]
Dmetric_id_manager.h122 LruCache<hci::Address, int> paired_device_cache_;
123 LruCache<hci::Address, int> temporary_device_cache_;
/system/core/libutils/include/utils/
DLruCache.h38 class LruCache {
40 explicit LruCache(uint32_t maxCapacity);
41 virtual ~LruCache();
57 LruCache(const LruCache& that); // disallow copy constructor
126 Iterator(const LruCache<TKey, TValue>& cache): in Iterator()
155 const LruCache<TKey, TValue>& mCache;
163 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity) in LruCache() function
174 LruCache<TKey, TValue>::~LruCache() { in ~LruCache()
180 void LruCache<K, V>::setOnEntryRemovedListener(OnEntryRemoved<K, V>* listener) { in setOnEntryRemovedListener()
185 size_t LruCache<TKey, TValue>::size() const { in size()
[all …]
/system/core/libutils/
DLruCache_test.cpp97 typedef LruCache<ComplexKey, ComplexValue> ComplexCache;
154 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
161 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
173 LruCache<SimpleKey, StringValue> cache(2); in TEST_F()
185 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
198 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
217 LruCache<SimpleKey, StringValue> cache(512); in TEST_F()
301 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
316 LruCache<SimpleKey, StringValue> cache(100); in TEST_F()
329 LruCache<KeyWithPointer, StringValue> cache(1); in TEST_F()
[all …]
DLruCache_fuzz.cpp23 typedef android::LruCache<size_t, size_t> FuzzCache;
42 android::LruCache<size_t, size_t>::Iterator iter(*cache); in __anon8490bc0f0502()
/system/bt/gd/storage/
Dconfig_cache.h136 common::LruCache<std::string, common::ListMap<std::string, std::string>> temporary_devices_;
Dstorage_module.cc39 using common::LruCache;