Lines Matching refs:MetricIdManager
34 const size_t MetricIdManager::kMaxNumUnpairedDevicesInMemory = 200;
35 const size_t MetricIdManager::kMaxNumPairedDevicesInMemory = 65000;
36 const int MetricIdManager::kMinId = 1;
37 const int MetricIdManager::kMaxId = 65534; // 2^16 - 2
41 static_assert((MetricIdManager::kMaxNumUnpairedDevicesInMemory +
42 MetricIdManager::kMaxNumPairedDevicesInMemory) <
43 (MetricIdManager::kMaxId - MetricIdManager::kMinId),
47 MetricIdManager::MetricIdManager() in MetricIdManager() function in bluetooth::common::MetricIdManager
51 bool MetricIdManager::Init( in Init()
94 MetricIdManager::~MetricIdManager() { Close(); } in ~MetricIdManager()
96 bool MetricIdManager::Close() { in Close()
108 MetricIdManager& MetricIdManager::GetInstance() { in GetInstance()
109 static MetricIdManager metric_id_allocator; in GetInstance()
113 bool MetricIdManager::IsEmpty() const { in IsEmpty()
120 int MetricIdManager::AllocateId(const Address& mac_address) { in AllocateId()
154 bool MetricIdManager::SaveDevice(const Address& mac_address) { in SaveDevice()
182 void MetricIdManager::ForgetDevice(const Address& mac_address) { in ForgetDevice()
192 bool MetricIdManager::IsValidId(const int id) { in IsValidId()
196 void MetricIdManager::ForgetDevicePostprocess(const Address& mac_address, in ForgetDevicePostprocess()