Searched refs:MetricIdAllocator (Results 1 – 5 of 5) sorted by relevance
30 using bluetooth::common::MetricIdAllocator;47 device_map[kthAddress(key)] = key + MetricIdAllocator::kMinId; in generateAddresses()53 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()55 MetricIdAllocator::Callback callback = [](const RawAddress&, const int) { in TEST()64 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()66 MetricIdAllocator::Callback callback = [](const RawAddress&, const int) { in TEST()77 auto& allocator = MetricIdAllocator::GetInstance(); in TEST()79 MetricIdAllocator::Callback callback = [](const RawAddress&, const int) { in TEST()84 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()85 EXPECT_EQ(allocator.AllocateId(kthAddress(1)), MetricIdAllocator::kMinId + 1); in TEST()[all …]
33 const std::string MetricIdAllocator::LOGGING_TAG = "BluetoothMetricIdAllocator";34 const size_t MetricIdAllocator::kMaxNumUnpairedDevicesInMemory = 200;35 const size_t MetricIdAllocator::kMaxNumPairedDevicesInMemory = 65000;36 const int MetricIdAllocator::kMinId = 1;37 const int MetricIdAllocator::kMaxId = 65534; // 2^16 - 241 static_assert((MetricIdAllocator::kMaxNumUnpairedDevicesInMemory +42 MetricIdAllocator::kMaxNumPairedDevicesInMemory) <43 (MetricIdAllocator::kMaxId - MetricIdAllocator::kMinId),47 MetricIdAllocator::MetricIdAllocator() in MetricIdAllocator() function in bluetooth::common::MetricIdAllocator51 bool MetricIdAllocator::Init( in Init()[all …]
33 class MetricIdAllocator {43 ~MetricIdAllocator();50 static MetricIdAllocator& GetInstance();116 MetricIdAllocator();134 MetricIdAllocator(MetricIdAllocator const&) = delete;135 MetricIdAllocator& operator=(MetricIdAllocator const&) = delete;
604 metric_id = MetricIdAllocator::GetInstance().AllocateId(*address); in LogLinkLayerConnectionEvent()649 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpAudioUnderrunEvent()675 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpAudioOverrunEvent()701 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpPlaybackEvent()722 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadRssiResult()742 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadFailedContactCounterResult()765 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadTxPowerLevelResult()787 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogSmpPairingEvent()810 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogClassicPairingEvent()835 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogSdpAttribute()[all …]
54 using bluetooth::common::MetricIdAllocator;130 MetricIdAllocator::Callback save_device_callback = in init_metric_id_allocator()135 MetricIdAllocator::Callback forget_device_callback = in init_metric_id_allocator()