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

Commit 00ce3573 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BluetoothMetrics: Log ACL Start from the remote side" into main am:...

Merge "BluetoothMetrics: Log ACL Start from the remote side" into main am: 206f009e am: 303cb21d

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



Change-Id: I4d6b8765b4a49d06af8f9bef967b0fd32b9c3ecc
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a8e5747f 303cb21d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
#include "hci/event_checkers.h"
#include "hci/hci_layer.h"
#include "hci/remote_name_request.h"
#include "metrics/bluetooth_event.h"
#include "os/metrics.h"

namespace bluetooth {
@@ -258,6 +259,8 @@ public:
    client_handler_->CallOn(client_callbacks_, &ConnectionCallbacks::OnConnectRequest, address,
                            cod);

    bluetooth::metrics::LogIncomingAclStartEvent(address);

    acl_scheduler_->RegisterPendingIncomingConnection(address);

    if (is_classic_link_already_connected(address)) {
+5 −0
Original line number Diff line number Diff line
@@ -92,6 +92,11 @@ State MapHCIStatusToState(tHCI_STATUS status) {
  }
}

void LogIncomingAclStartEvent(const hci::Address& address) {
  bluetooth::os::LogMetricBluetoothEvent(address, EventType::ACL_CONNECTION_RESPONDER,
                                         State::START);
}

void LogAclCompletionEvent(const hci::Address& address, ErrorCode reason,
                           bool is_locally_initiated) {
  bluetooth::os::LogMetricBluetoothEvent(address,
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@
namespace bluetooth {
namespace metrics {

void LogIncomingAclStartEvent(const hci::Address& address);

void LogAclCompletionEvent(const hci::Address& address, hci::ErrorCode reason,
                           bool is_locally_initiated);