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

Commit b6489c3b 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

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



Change-Id: I46b114c4172dca30908b806727cd975ed038d733
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 0f88c1a6 51f01e12
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;
    }