Home
last modified time | relevance | path

Searched refs:MetricIdAllocator (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/system/common/
Dmetric_id_allocator_unittest.cc30 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 …]
Dmetric_id_allocator.cc33 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 - 2
41 static_assert((MetricIdAllocator::kMaxNumUnpairedDevicesInMemory +
42 MetricIdAllocator::kMaxNumPairedDevicesInMemory) <
43 (MetricIdAllocator::kMaxId - MetricIdAllocator::kMinId),
47 MetricIdAllocator::MetricIdAllocator() in MetricIdAllocator() function in bluetooth::common::MetricIdAllocator
51 bool MetricIdAllocator::Init( in Init()
[all …]
Dmetric_id_allocator.h33 class MetricIdAllocator {
43 ~MetricIdAllocator();
50 static MetricIdAllocator& GetInstance();
116 MetricIdAllocator();
134 MetricIdAllocator(MetricIdAllocator const&) = delete;
135 MetricIdAllocator& operator=(MetricIdAllocator const&) = delete;
Dmetrics.cc604 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 …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_config.cc54 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()