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

Commit 8ed3a23b authored by Silen Sun's avatar Silen Sun Committed by Automerger Merge Worker
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 am: 51f01e12 am: b6489c3b

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/3095027



Change-Id: I56c7f9d3c5f76df4bd37057968d2476478615b01
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a4d1f506 b6489c3b
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;
    }