Home
last modified time | relevance | path

Searched refs:AllocateId (Results 1 – 7 of 7) 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 LogReadRssiResult()
710 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadFailedContactCounterResult()
734 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogReadTxPowerLevelResult()
758 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogSmpPairingEvent()
781 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogClassicPairingEvent()
805 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogSdpAttribute()
831 metric_id = MetricIdAllocator::GetInstance().AllocateId(address); in LogSocketConnectionState()
[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/btif/src/
Dbluetooth.cc476 return bluetooth::common::MetricIdAllocator::GetInstance().AllocateId( in get_metric_id()
Dbtif_config.cc240 MetricIdAllocator::GetInstance().AllocateId(address); in init_metric_id_allocator()
Dbtif_dm.cc301 MetricIdAllocator::GetInstance().AllocateId(address); in btif_dm_send_bond_state_changed()
563 MetricIdAllocator::GetInstance().AllocateId(bd_addr); in bond_state_changed()