Lines Matching refs:mac_address
120 int MetricIdManager::AllocateId(const Address& mac_address) { in AllocateId() argument
122 auto it = paired_device_cache_.find(mac_address); in AllocateId()
127 it = temporary_device_cache_.find(mac_address); in AllocateId()
142 auto evicted = temporary_device_cache_.insert_or_assign(mac_address, id); in AllocateId()
154 bool MetricIdManager::SaveDevice(const Address& mac_address) { in SaveDevice() argument
156 if (paired_device_cache_.contains(mac_address)) { in SaveDevice()
159 if (!temporary_device_cache_.contains(mac_address)) { in SaveDevice()
164 auto opt = temporary_device_cache_.extract(mac_address); in SaveDevice()
170 auto evicted = paired_device_cache_.insert_or_assign(mac_address, id); in SaveDevice()
174 if (!save_id_callback_(mac_address, id)) { in SaveDevice()
182 void MetricIdManager::ForgetDevice(const Address& mac_address) { in ForgetDevice() argument
184 auto opt = paired_device_cache_.extract(mac_address); in ForgetDevice()
189 ForgetDevicePostprocess(mac_address, opt->second); in ForgetDevice()
196 void MetricIdManager::ForgetDevicePostprocess(const Address& mac_address, in ForgetDevicePostprocess() argument
199 forget_device_callback_(mac_address, id); in ForgetDevicePostprocess()