Home
last modified time | relevance | path

Searched refs:evicted (Results 1 – 3 of 3) sorted by relevance

/system/bt/gd/common/
Dmetric_id_manager.cc76 auto evicted = paired_device_cache_.insert_or_assign(p.first, p.second); in Init() local
77 if (evicted) { in Init()
78 ForgetDevicePostprocess(evicted->first, evicted->second); in Init()
142 auto evicted = temporary_device_cache_.insert_or_assign(mac_address, id); in AllocateId() local
143 if (evicted) { in AllocateId()
144 this->id_set_.extract(evicted->second); in AllocateId()
170 auto evicted = paired_device_cache_.insert_or_assign(mac_address, id); in SaveDevice() local
171 if (evicted) { in SaveDevice()
172 ForgetDevicePostprocess(evicted->first, evicted->second); in SaveDevice()
Dlru_cache_test.cc196 auto evicted = cache.insert_or_assign(4, 40); in TEST() local
198 EXPECT_TRUE(evicted); in TEST()
199 EXPECT_EQ(*evicted, std::make_pair(1, 10)); in TEST()
211 evicted = cache.insert_or_assign(5, 50); in TEST()
214 EXPECT_TRUE(evicted); in TEST()
215 EXPECT_EQ(*evicted, std::make_pair(4, 40)); in TEST()
234 evicted = cache.insert_or_assign(7, 70); in TEST()
236 EXPECT_TRUE(evicted); in TEST()
237 EXPECT_EQ(*evicted, std::make_pair(2, 20)); in TEST()
246 auto evicted = cache.insert_or_assign(3, 30); in TEST() local
[all …]
/system/bt/common/
Dmetric_id_allocator.cc70 auto evicted = paired_device_cache_.Put(p.first, p.second); in Init() local
71 if (evicted) { in Init()
72 ForgetDevicePostprocess(evicted->first, evicted->second); in Init()
135 auto evicted = temporary_device_cache_.Put(mac_address, id); in AllocateId() local
136 if (evicted) { in AllocateId()
137 this->id_set_.erase(evicted->second); in AllocateId()
164 auto evicted = paired_device_cache_.Put(mac_address, id); in SaveDevice() local
165 if (evicted) { in SaveDevice()
166 ForgetDevicePostprocess(evicted->first, evicted->second); in SaveDevice()