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

Commit 9026195e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "leaudio: Add logs for connect/disconnect/remove" am: d165cac2 am:...

Merge "leaudio: Add logs for connect/disconnect/remove" am: d165cac2 am: bda37197 am: c02f19b7

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



Change-Id: I9b08fc514a6dd2b14baf5302cc8bbe720fe3f046
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents aff32b32 c02f19b7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1201,6 +1201,7 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void RemoveDevice(const RawAddress& address) override {
    LOG_INFO(": %s ", ADDRESS_TO_LOGGABLE_CSTR(address));
    LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address);
    if (!leAudioDevice) {
      return;
@@ -1253,6 +1254,8 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void Connect(const RawAddress& address) override {
    LOG_INFO(": %s ", ADDRESS_TO_LOGGABLE_CSTR(address));

    LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address);
    if (!leAudioDevice) {
      leAudioDevices_.Add(address, DeviceConnectState::CONNECTING_BY_USER);
@@ -1425,6 +1428,7 @@ class LeAudioClientImpl : public LeAudioClient {
  }

  void Disconnect(const RawAddress& address) override {
    LOG_INFO(": %s ", ADDRESS_TO_LOGGABLE_CSTR(address));
    LeAudioDevice* leAudioDevice = leAudioDevices_.FindByAddress(address);

    if (!leAudioDevice) {