Searched refs:MetricIdManager (Results 1 – 5 of 5) sorted by relevance
34 const size_t MetricIdManager::kMaxNumUnpairedDevicesInMemory = 200;35 const size_t MetricIdManager::kMaxNumPairedDevicesInMemory = 65000;36 const int MetricIdManager::kMinId = 1;37 const int MetricIdManager::kMaxId = 65534; // 2^16 - 241 static_assert((MetricIdManager::kMaxNumUnpairedDevicesInMemory +42 MetricIdManager::kMaxNumPairedDevicesInMemory) <43 (MetricIdManager::kMaxId - MetricIdManager::kMinId),47 MetricIdManager::MetricIdManager() in MetricIdManager() function in bluetooth::common::MetricIdManager51 bool MetricIdManager::Init( in Init()94 MetricIdManager::~MetricIdManager() { Close(); } in ~MetricIdManager()[all …]
27 using bluetooth::common::MetricIdManager;45 device_map[kthAddress(key)] = key + MetricIdManager::kMinId; in generateAddresses()51 auto& manager = MetricIdManager::GetInstance(); in TEST()53 MetricIdManager::Callback callback = []( in TEST()63 auto& manager = MetricIdManager::GetInstance(); in TEST()65 MetricIdManager::Callback callback = []( in TEST()77 auto& manager = MetricIdManager::GetInstance(); in TEST()79 MetricIdManager::Callback callback = []( in TEST()85 ASSERT_EQ(manager.AllocateId(kthAddress(0)), MetricIdManager::kMinId); in TEST()86 ASSERT_EQ(manager.AllocateId(kthAddress(1)), MetricIdManager::kMinId + 1); in TEST()[all …]
32 class MetricIdManager {42 ~MetricIdManager();49 static MetricIdManager& GetInstance();117 MetricIdManager();135 MetricIdManager(MetricIdManager const&) = delete;136 MetricIdManager& operator=(MetricIdManager const&) = delete;
26 using bluetooth::common::MetricIdManager;50 return MetricIdManager::GetInstance().Init( in InitMetricIdAllocator()54 bool CloseMetricIdAllocator() { return MetricIdManager::GetInstance().Close(); } in CloseMetricIdAllocator()57 return MetricIdManager::GetInstance().IsEmpty(); in IsEmptyMetricIdAllocator()62 return MetricIdManager::GetInstance().AllocateId(address); in AllocateIdFromMetricIdAllocator()67 return MetricIdManager::GetInstance().SaveDevice(address); in SaveDeviceOnMetricIdAllocator()72 return MetricIdManager::GetInstance().ForgetDevice(address); in ForgetDeviceFromMetricIdAllocator()76 return MetricIdManager::GetInstance().IsValidId(id); in IsValidIdFromMetricIdAllocator()
32 using bluetooth::common::MetricIdManager;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()[all …]