Lines Matching refs:MetricIdManager
27 using bluetooth::common::MetricIdManager;
45 device_map[kthAddress(key)] = key + MetricIdManager::kMinId; in generateAddresses()
51 auto& manager = MetricIdManager::GetInstance(); in TEST()
53 MetricIdManager::Callback callback = []( in TEST()
63 auto& manager = MetricIdManager::GetInstance(); in TEST()
65 MetricIdManager::Callback callback = []( in TEST()
77 auto& manager = MetricIdManager::GetInstance(); in TEST()
79 MetricIdManager::Callback callback = []( in TEST()
85 ASSERT_EQ(manager.AllocateId(kthAddress(0)), MetricIdManager::kMinId); in TEST()
86 ASSERT_EQ(manager.AllocateId(kthAddress(1)), MetricIdManager::kMinId + 1); in TEST()
87 ASSERT_EQ(manager.AllocateId(kthAddress(0)), MetricIdManager::kMinId); in TEST()
88 ASSERT_EQ(manager.AllocateId(kthAddress(2)), MetricIdManager::kMinId + 2); in TEST()
94 auto& manager = MetricIdManager::GetInstance(); in TEST()
96 MetricIdManager::Callback callback = []( in TEST()
100 int id = static_cast<int>(MetricIdManager::kMaxNumPairedDevicesInMemory) + in TEST()
101 MetricIdManager::kMinId; in TEST()
104 generateAddresses(MetricIdManager::kMaxNumPairedDevicesInMemory); in TEST()
115 auto& manager = MetricIdManager::GetInstance(); in TEST()
117 generateAddresses(MetricIdManager::kMaxNumPairedDevicesInMemory); in TEST()
119 MetricIdManager::Callback callback = []( in TEST()
123 int id = MetricIdManager::kMinId; in TEST()
142 auto& manager = MetricIdManager::GetInstance(); in TEST()
146 MetricIdManager::Callback save_callback = [pointer]( in TEST()
152 MetricIdManager::Callback forget_callback = [pointer]( in TEST()
162 MetricIdManager::kMinId); in TEST()
175 MetricIdManager::kMinId + 1); in TEST()
177 MetricIdManager::kMinId + 2); in TEST()
200 auto& manager = MetricIdManager::GetInstance(); in TEST()
203 generateAddresses(MetricIdManager::kMaxNumPairedDevicesInMemory); in TEST()
206 MetricIdManager::Callback save_callback = [pointer]( in TEST()
212 MetricIdManager::Callback forget_callback = [pointer]( in TEST()
226 key < static_cast<int>(MetricIdManager::kMaxNumPairedDevicesInMemory); in TEST()
229 key + MetricIdManager::kMinId); in TEST()
234 int id = static_cast<int>(MetricIdManager::kMaxNumPairedDevicesInMemory + in TEST()
235 MetricIdManager::kMinId); in TEST()
327 for (size_t k = MetricIdManager::kMaxNumPairedDevicesInMemory; in TEST()
328 k <= MetricIdManager::kMaxNumPairedDevicesInMemory + 4; k++) { in TEST()
339 kthAddress(MetricIdManager::kMaxNumPairedDevicesInMemory + 5))); in TEST()
346 auto& manager = MetricIdManager::GetInstance(); in TEST()
350 MetricIdManager::Callback save_callback = [pointer]( in TEST()
355 MetricIdManager::Callback forget_callback = [pointer]( in TEST()
368 static_cast<int>(MetricIdManager::kMaxNumUnpairedDevicesInMemory); in TEST()
371 key + MetricIdManager::kMinId); in TEST()
376 int id = MetricIdManager::kMaxNumUnpairedDevicesInMemory + in TEST()
377 MetricIdManager::kMinId; in TEST()
379 kthAddress(MetricIdManager::kMaxNumUnpairedDevicesInMemory); in TEST()
391 addr = kthAddress(MetricIdManager::kMaxNumUnpairedDevicesInMemory + 1); in TEST()
401 static_cast<int>(MetricIdManager::kMaxNumUnpairedDevicesInMemory); in TEST()
410 auto& manager = MetricIdManager::GetInstance(); in TEST()
413 MetricIdManager::Callback save_callback = [pointer]( in TEST()
418 MetricIdManager::Callback forget_callback = [pointer]( in TEST()
430 static_cast<int>(MetricIdManager::kMaxNumUnpairedDevicesInMemory); in TEST()
433 auto& manager = MetricIdManager::GetInstance(); in TEST()
449 auto& manager = MetricIdManager::GetInstance(); in TEST()
450 MetricIdManager::Callback callback = []( in TEST()
456 int min_id = MetricIdManager::kMinId; in TEST()
462 int max_id = MetricIdManager::kMaxId; in TEST()
480 auto& manager = MetricIdManager::GetInstance(); in TEST()
481 MetricIdManager::Callback callback = []( in TEST()
487 int min_id = MetricIdManager::kMinId; in TEST()
488 int max_id = MetricIdManager::kMaxId; in TEST()