/system/bt/common/ |
D | metric_id_allocator_unittest.cc | 82 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 …]
|
D | metrics.cc | 583 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 …]
|
D | metric_id_allocator.h | 87 int AllocateId(const RawAddress& mac_address);
|
D | metric_id_allocator.cc | 114 int MetricIdAllocator::AllocateId(const RawAddress& mac_address) { in AllocateId() function in bluetooth::common::MetricIdAllocator
|
/system/bt/gd/common/ |
D | metric_id_manager_unittest.cc | 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() 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 …]
|
D | metric_id_manager.h | 88 int AllocateId(const hci::Address& mac_address);
|
D | metric_id_manager.cc | 120 int MetricIdManager::AllocateId(const Address& mac_address) { in AllocateId() function in bluetooth::common::MetricIdManager
|
/system/bt/gd/os/android/ |
D | metrics.cc | 52 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/ |
D | mock_common_metric_id_allocator.cc | 91 int MetricIdAllocator::AllocateId(const RawAddress& mac_address) { in AllocateId() function in bluetooth::common::MetricIdAllocator
|
/system/bt/main/shim/ |
D | metric_id_api.cc | 62 return MetricIdManager::GetInstance().AllocateId(address); in AllocateIdFromMetricIdAllocator()
|
D | btm_api.cc | 468 MetricIdAllocator::GetInstance().AllocateId( in OnDeviceBonded()
|
/system/bt/btif/src/ |
D | btif_metrics_logging.cc | 141 return bluetooth::common::MetricIdAllocator::GetInstance().AllocateId( in allocate_metric_id_from_metric_id_allocator()
|