Searched refs:AllocateId (Results 1 – 7 of 7) sorted by relevance
/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 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 …]
|
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/btif/src/ |
D | bluetooth.cc | 476 return bluetooth::common::MetricIdAllocator::GetInstance().AllocateId( in get_metric_id()
|
D | btif_config.cc | 240 MetricIdAllocator::GetInstance().AllocateId(address); in init_metric_id_allocator()
|
D | btif_dm.cc | 301 MetricIdAllocator::GetInstance().AllocateId(address); in btif_dm_send_bond_state_changed() 563 MetricIdAllocator::GetInstance().AllocateId(bd_addr); in bond_state_changed()
|