Home
last modified time | relevance | path

Searched refs:paired_device_cache_ (Results 1 – 5 of 5) sorted by relevance

/system/bt/gd/common/
Dmetric_id_manager.cc48 : paired_device_cache_(kMaxNumPairedDevicesInMemory), in MetricIdManager()
76 auto evicted = paired_device_cache_.insert_or_assign(p.first, p.second); in Init()
101 paired_device_cache_.clear(); in Close()
115 return paired_device_cache_.size() == 0 && in IsEmpty()
122 auto it = paired_device_cache_.find(mac_address); in AllocateId()
124 if (it != paired_device_cache_.end()) { in AllocateId()
156 if (paired_device_cache_.contains(mac_address)) { in SaveDevice()
170 auto evicted = paired_device_cache_.insert_or_assign(mac_address, id); in SaveDevice()
184 auto opt = paired_device_cache_.extract(mac_address); in ForgetDevice()
Dmetric_id_manager.h122 LruCache<hci::Address, int> paired_device_cache_; variable
/system/bt/common/
Dmetric_id_allocator.cc45 : paired_device_cache_(kMaxNumPairedDevicesInMemory, LOGGING_TAG), in MetricIdAllocator()
70 auto evicted = paired_device_cache_.Put(p.first, p.second); in Init()
95 paired_device_cache_.Clear(); in Close()
109 return paired_device_cache_.Size() == 0 && in IsEmpty()
118 if (paired_device_cache_.Get(mac_address, &id)) { in AllocateId()
150 if (paired_device_cache_.Get(mac_address, &id)) { in SaveDevice()
164 auto evicted = paired_device_cache_.Put(mac_address, id); in SaveDevice()
180 if (!paired_device_cache_.Get(mac_address, &id)) { in ForgetDevice()
186 if (!paired_device_cache_.Remove(mac_address)) { in ForgetDevice()
Dmetric_id_allocator.h122 LegacyLruCache<RawAddress, int> paired_device_cache_; variable
/system/bt/test/mock/
Dmock_common_metric_id_allocator.cc49 : paired_device_cache_(paired_device_cache_capacity, in MetricIdAllocator()