Searched refs:LruCache (Results 1 – 10 of 10) sorted by relevance
/system/bt/gd/common/ |
D | lru_cache.h | 53 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()
|
D | lru_cache_test.cc | 27 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 …]
|
/system/core/libutils/include/utils/ |
D | LruCache.h | 38 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/ |
D | LruCache_test.cpp | 97 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 …]
|
/system/bt/common/ |
D | lru.h | 36 class LruCache { 45 LruCache(const size_t& capacity, const std::string& log_tag) in LruCache() function 54 LruCache(LruCache const&) = delete; 55 LruCache& operator=(LruCache const&) = delete; 57 ~LruCache() { Clear(); } in ~LruCache()
|
D | lru_unittest.cc | 29 using bluetooth::common::LruCache; 33 LruCache<int, int> cache(3, "testing"); // capacity = 3; in TEST() 79 LruCache<int, int> cache(2, "testing"); // size = 2; in TEST() 130 LruCache<int, int> cache(10, "testing"); in TEST() 147 LruCache<int, int> cache(10, "testing"); in TEST() 161 LruCache<int, int> cache(10, "testing"); in TEST() 180 LruCache<int, int> cache(10, "testing"); in TEST() 203 LruCache<int, int> cache(static_cast<size_t>(max_size), "testing"); in TEST() 243 LruCache<int, int> cache(100, "testing"); in TEST()
|
D | metric_id_allocator.h | 122 LruCache<RawAddress, int> paired_device_cache_; 123 LruCache<RawAddress, int> temporary_device_cache_;
|
/system/bt/btif/include/ |
D | btif_config_cache.h | 58 bluetooth::common::LruCache<std::string, section_t> unpaired_devices_cache_;
|
/system/bt/gd/storage/ |
D | config_cache.h | 136 common::LruCache<std::string, common::ListMap<std::string, std::string>> temporary_devices_;
|
D | storage_module.cc | 39 using common::LruCache;
|