Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec31c5b4 authored by silens's avatar silens Committed by Silen Sun
Browse files

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
parent 2f74b5a0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
    }