Home
last modified time | relevance | path

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

/system/bt/gd/common/
Dmetric_id_manager.cc49 temporary_device_cache_(kMaxNumUnpairedDevicesInMemory) {} in MetricIdManager()
102 temporary_device_cache_.clear(); in Close()
116 temporary_device_cache_.size() == 0; in IsEmpty()
127 it = temporary_device_cache_.find(mac_address); in AllocateId()
128 if (it != temporary_device_cache_.end()) { in AllocateId()
142 auto evicted = temporary_device_cache_.insert_or_assign(mac_address, id); in AllocateId()
159 if (!temporary_device_cache_.contains(mac_address)) { in SaveDevice()
164 auto opt = temporary_device_cache_.extract(mac_address); in SaveDevice()
Dmetric_id_manager.h123 LruCache<hci::Address, int> temporary_device_cache_; variable
/system/bt/common/
Dmetric_id_allocator.cc46 temporary_device_cache_(kMaxNumUnpairedDevicesInMemory, LOGGING_TAG) {} in MetricIdAllocator()
96 temporary_device_cache_.Clear(); in Close()
110 temporary_device_cache_.Size() == 0; in IsEmpty()
121 if (temporary_device_cache_.Get(mac_address, &id)) { in AllocateId()
135 auto evicted = temporary_device_cache_.Put(mac_address, id); in AllocateId()
153 if (!temporary_device_cache_.Get(mac_address, &id)) { in SaveDevice()
159 if (!temporary_device_cache_.Remove(mac_address)) { in SaveDevice()
Dmetric_id_allocator.h123 LegacyLruCache<RawAddress, int> temporary_device_cache_; variable
/system/bt/test/mock/
Dmock_common_metric_id_allocator.cc51 temporary_device_cache_(paired_device_cache_capacity, in MetricIdAllocator()