diff options
author | 2024-05-22 10:34:09 +0800 | |
---|---|---|
committer | 2024-05-27 08:05:54 +0000 | |
commit | ec31c5b4db4e28ffed131d7cbfd6026b7a59e123 (patch) | |
tree | 818804921bd19089497e69cea43f5c49b034fc8e /system/common/metrics.cc | |
parent | 2f74b5a0e3034437d33dc6cccbddad66ea74d147 (diff) |
LEA metrics use the same mechanim in system/gd/common for allocating metrics ID.
Not use the mechanim in system/common
Bug: 341843517
Flag: EXEMPT, modify metrics related code
Test: atest --host bluetooth_le_audio_client_test:MetricsCollectorTest
Change-Id: I4c612b07f24660a162586bdb04c78271dfe31f9b
Diffstat (limited to 'system/common/metrics.cc')
-rw-r--r-- | system/common/metrics.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/common/metrics.cc b/system/common/metrics.cc index f2335e9f3e..badfcd851f 100644 --- a/system/common/metrics.cc +++ b/system/common/metrics.cc @@ -44,6 +44,7 @@ #include "osi/include/osi.h" #include "time_util.h" #include "types/raw_address.h" +#include "main/shim/metric_id_api.h" namespace fmt { template <> @@ -945,7 +946,7 @@ void LogLeAudioConnectionSessionReported( for (uint64_t i = 0; i < device_address.size(); i++) { if (!device_address[i].IsEmpty()) { device_metric_id[i] = - MetricIdAllocator::GetInstance().AllocateId(device_address[i]); + bluetooth::shim::AllocateIdFromMetricIdAllocator(device_address[i]); } else { device_metric_id[i] = 0; } |