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

Commit 51f01e12 authored by Silen Sun's avatar Silen Sun Committed by Gerrit Code Review
Browse files

Merge "LEA metrics use the same mechanim in system/gd/common for allocating...

Merge "LEA metrics use the same mechanim in system/gd/common for allocating metrics ID. Not use the mechanim in system/common" into main
parents 0b19263d ec31c5b4
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;
    }