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

Commit 0617f76f authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Re-group and label interfaces main/shim/acl:: am: aba3e5a3 am: 8109d09d

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1536997

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I26a8756746d76a4cb8f1f39d71285b6f8c6f63a5
parents 6bac9d1f 8109d09d
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -37,24 +37,26 @@ class Acl : public hci::acl_manager::ConnectionCallbacks,
  Acl(os::Handler* handler, const acl_interface_t& acl_interface);
  ~Acl();

  void CreateClassicConnection(const bluetooth::hci::Address& address);
  void CreateLeConnection(
      const bluetooth::hci::AddressWithType& address_with_type);
  void CancelLeConnection(
      const bluetooth::hci::AddressWithType& address_with_type);
  void DisconnectClassic(uint16_t handle, tHCI_STATUS reason);
  void DisconnectLe(uint16_t handle, tHCI_STATUS reason);
  // hci::acl_manager::ConnectionCallbacks
  void OnConnectSuccess(
      std::unique_ptr<hci::acl_manager::ClassicAclConnection>) override;
  void OnConnectFail(hci::Address, hci::ErrorCode reason) override;
  void OnClassicLinkDisconnected(uint16_t handle, hci::ErrorCode reason);

  // hci::acl_manager::LeConnectionCallbacks
  void OnLeConnectSuccess(
      hci::AddressWithType,
      std::unique_ptr<hci::acl_manager::LeAclConnection>) override;
  void OnLeConnectFail(hci::AddressWithType, hci::ErrorCode reason) override;
  void OnLeLinkDisconnected(uint16_t handle, hci::ErrorCode reason);

  void OnConnectSuccess(
      std::unique_ptr<hci::acl_manager::ClassicAclConnection>) override;
  void OnConnectFail(hci::Address, hci::ErrorCode reason) override;
  void OnClassicLinkDisconnected(uint16_t handle, hci::ErrorCode reason);
  void CreateClassicConnection(const bluetooth::hci::Address& address);
  void CreateLeConnection(
      const bluetooth::hci::AddressWithType& address_with_type);
  void CancelLeConnection(
      const bluetooth::hci::AddressWithType& address_with_type);
  void DisconnectClassic(uint16_t handle, tHCI_STATUS reason);
  void DisconnectLe(uint16_t handle, tHCI_STATUS reason);

  void WriteData(uint16_t hci_handle,
                 std::unique_ptr<bluetooth::packet::RawBuilder> packet);