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

Commit 21661eee authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

leaudio: Add logs for connect/disconnect/remove

Bug: 279990836
Test: compile, just logs
Tag: #feature

Change-Id: Ic20de23e4422ff9f439c431af9499971f250238a
parent 74ee0447
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) {