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

Commit 0bfde89d authored by Chris Manton's avatar Chris Manton
Browse files

Plumb through ClearConnectList

Bug: 204433265
Tag: #refactor
Test: gd/cert/run

Change-Id: I64895610bdcacdd1f46b70fee5d6689e8df9f11c
parent fe7fbb04
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -224,6 +224,10 @@ void AclManager::RemoveDeviceFromConnectList(AddressWithType address_with_type)
  CallOn(pimpl_->le_impl_, &le_impl::remove_device_from_connect_list, address_with_type);
}

void AclManager::ClearConnectList() {
  CallOn(pimpl_->le_impl_, &le_impl::clear_connect_list);
}

void AclManager::AddDeviceToResolvingList(
    AddressWithType address_with_type,
    const std::array<uint8_t, 16>& peer_irk,
+2 −0
Original line number Diff line number Diff line
@@ -102,6 +102,8 @@ public:
 virtual void CancelLeConnect(AddressWithType address_with_type);
 virtual void AddDeviceToConnectList(AddressWithType address_with_type);
 virtual void RemoveDeviceFromConnectList(AddressWithType address_with_type);
 virtual void ClearConnectList();

 virtual void AddDeviceToResolvingList(
     AddressWithType address_with_type,
     const std::array<uint8_t, 16>& peer_irk,
+9 −0
Original line number Diff line number Diff line
@@ -397,6 +397,15 @@ struct le_impl : public bluetooth::hci::LeAddressManagerCallback {
    }
  }

  void clear_connect_list() {
    if (!address_manager_registered) {
      le_address_manager_->Register(this);
      address_manager_registered = true;
    }
    pause_connection = true;
    le_address_manager_->ClearConnectList();
  }

  void add_device_to_resolving_list(
      AddressWithType address_with_type,
      const std::array<uint8_t, 16>& peer_irk,