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

Commit fde47320 authored by Chen Chen's avatar Chen Chen Committed by Automerger Merge Worker
Browse files

Gd Metrics: Use le_meta_event_view before move am: 8db9eb25 am: 23189a54 am: 93f3bafd

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1676198

Change-Id: Ib1deb0a5bf493490c833d0793409efd74a46f446
parents 2fecf746 93f3bafd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -376,6 +376,7 @@ void log_link_layer_connection_other_hci_event(EventView packet) {
}

void log_link_layer_connection_event_le_meta(LeMetaEventView le_meta_event_view) {
  SubeventCode leEvt = le_meta_event_view.GetSubeventCode();
  auto le_connection_complete_view = LeConnectionCompleteView::Create(std::move(le_meta_event_view));
  if (!le_connection_complete_view.IsValid()) {
    // function is called for all le meta events. Only need to process le connection complete.
@@ -391,7 +392,6 @@ void log_link_layer_connection_event_le_meta(LeMetaEventView le_meta_event_view)
  ErrorCode status = le_connection_complete_view.GetStatus();
  ErrorCode reason = ErrorCode::UNKNOWN_HCI_COMMAND;
  uint32_t cmd = android::bluetooth::hci::CMD_UNKNOWN;
  SubeventCode leEvt = le_meta_event_view.GetSubeventCode();

  os::LogMetricLinkLayerConnectionEvent(
      &address,