Home
last modified time | relevance | path

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

/system/bt/common/
Dmetric_id_allocator_unittest.cc82 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
83 EXPECT_EQ(allocator.AllocateId(kthAddress(1)), MetricIdAllocator::kMinId + 1); in TEST()
84 EXPECT_EQ(allocator.AllocateId(kthAddress(0)), MetricIdAllocator::kMinId); in TEST()
85 EXPECT_EQ(allocator.AllocateId(kthAddress(2)), MetricIdAllocator::kMinId + 2); in TEST()
103 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX)), id); in TEST()
104 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX - 1)), id + 1); in TEST()
105 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX)), id); in TEST()
106 EXPECT_EQ(allocator.AllocateId(kthAddress(INT_MAX - 2)), id + 2); in TEST()
123 EXPECT_EQ(allocator.AllocateId(RawAddress({0, 0, 0, 0, 0, 0})), id); in TEST()
124 EXPECT_EQ(allocator.AllocateId(RawAddress({0, 0, 0, 0, 0, 1})), id + 1); in TEST()
[all …]
Dmetrics.cc583 metric_id = MetricIdAllocator::GetInstance().AllocateId(*address); in LogLinkLayerConnectionEvent()
633 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpAudioUnderrunEvent()
660 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpAudioOverrunEvent()
687 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogA2dpPlaybackEvent()
710 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadRssiResult()
733 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadFailedContactCounterResult()
757 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadTxPowerLevelResult()
781 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogSmpPairingEvent()
804 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogClassicPairingEvent()
828 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogSdpAttribute()
[all …]
Dmetric_id_allocator.h87 int AllocateId(const RawAddress& mac_address);
Dmetric_id_allocator.cc114 int MetricIdAllocator::AllocateId(const RawAddress& mac_address) { in AllocateId() function in bluetooth::common::MetricIdAllocator
/system/bt/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.cc120 int MetricIdManager::AllocateId(const Address& mac_address) { in AllocateId() function in bluetooth::common::MetricIdManager
/system/bt/gd/os/android/
Dmetrics.cc52 metric_id = MetricIdManager::GetInstance().AllocateId(*address); in LogMetricLinkLayerConnectionEvent()
109 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioUnderrunEvent()
136 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpAudioOverrunEvent()
164 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricA2dpPlaybackEvent()
182 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadRssiResult()
201 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadFailedContactCounterResult()
225 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricReadTxPowerLevelResult()
249 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricSmpPairingEvent()
274 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricClassicPairingEvent()
309 metric_id = MetricIdManager::GetInstance().AllocateId(address); in LogMetricSdpAttribute()
[all …]
/system/bt/test/mock/
Dmock_common_metric_id_allocator.cc91 int MetricIdAllocator::AllocateId(const RawAddress& mac_address) { in AllocateId() function in bluetooth::common::MetricIdAllocator
/system/bt/main/shim/
Dmetric_id_api.cc62 return MetricIdManager::GetInstance().AllocateId(address); in AllocateIdFromMetricIdAllocator()
Dbtm_api.cc468 MetricIdAllocator::GetInstance().AllocateId( in OnDeviceBonded()
/system/bt/btif/src/
Dbtif_metrics_logging.cc141 return bluetooth::common::MetricIdAllocator::GetInstance().AllocateId( in allocate_metric_id_from_metric_id_allocator()