Home
last modified time | relevance | path

Searched refs:AllocateId (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Bluetooth/system/common/
Dmetric_id_allocator_unittest.cc84 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
85 EXPECT_EQ(allocator.AllocateId(kthAddress(1)), MetricIdAllocator::kMinId + 1); in TEST()
86 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
87 EXPECT_EQ(allocator.AllocateId(kthAddress(2)), MetricIdAllocator::kMinId + 2); in TEST()
105 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX)), id); in TEST()
106 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX - 1)), id + 1); in TEST()
107 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX)), id); in TEST()
108 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX - 2)), id + 2); in TEST()
125 EXPECT_EQ(allocator.AllocateId(RawAddress({0, 0, 0, 0, 0, 0})), id); in TEST()
126 EXPECT_EQ(allocator.AllocateId(RawAddress({0, 0, 0, 0, 0, 1})), id + 1); in TEST()
[all …]
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 …]
Dmetric_id_allocator.h87 int AllocateId(const RawAddress& mac_address);
Dmetric_id_allocator.cc117 int MetricIdAllocator::AllocateId(const RawAddress& mac_address) { in AllocateId() function in bluetooth::common::MetricIdAllocator
/packages/modules/Bluetooth/system/gd/common/
Dmetric_id_manager_unittest.cc85 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()
107 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX)), id); in TEST()
108 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX - 1)), id + 1); in TEST()
109 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX)), id); in TEST()
110 ASSERT_EQ(manager.AllocateId(kthAddress(INT_MAX - 2)), id + 2); in TEST()
129 manager.AllocateId(bluetooth::hci::Address({0, 0, 0, 0, 0, 0})), id); in TEST()
131 manager.AllocateId( in TEST()
[all …]
Dmetric_id_manager.h88 int AllocateId(const hci::Address& mac_address);
Dmetric_id_manager.cc126 int MetricIdManager::AllocateId(const Address& mac_address) { in AllocateId() function in bluetooth::common::MetricIdManager
/packages/modules/Bluetooth/system/gd/os/android/
Dmetrics.cc76 metric_id = MetricIdManager::GetInstance().AllocateId(*address); in LogMetricLinkLayerConnectionEvent()
133 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioUnderrunEvent()
156 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioOverrunEvent()
184 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpPlaybackEvent()
227 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadRssiResult()
245 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadFailedContactCounterResult()
269 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadTxPowerLevelResult()
288 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricSmpPairingEvent()
313 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricClassicPairingEvent()
352 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricSdpAttribute()
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dmetric_id_api.cc59 return MetricIdManager::GetInstance().AllocateId(address); in AllocateIdFromMetricIdAllocator()