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

Commit 8db9eb25 authored by Chen Chen's avatar Chen Chen
Browse files

Gd Metrics: Use le_meta_event_view before move

Test: gd/cert/run
Bug: 181819141
Tag: #stability
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: I77d482dea2f77c8aa7c41b0e33bd398a9eb21adf
parent 304016ff
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,