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

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

Plumb in main/shim/acl::connection interface am: 8b3615b4 am: 072373cf

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I92542b701aabc3f118ec75327dfdad7162b3dd16
parents 5b85af5d 072373cf
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include "gd/os/handler.h"
#include "gd/packet/raw_builder.h"
#include "main/shim/acl_legacy_interface.h"
#include "main/shim/link_connection_interface.h"
#include "main/shim/link_policy_interface.h"
#include "stack/include/bt_types.h"

@@ -34,6 +35,7 @@ namespace legacy {

class Acl : public hci::acl_manager::ConnectionCallbacks,
            public hci::acl_manager::LeConnectionCallbacks,
            public LinkConnectionInterface,
            public LinkPolicyInterface {
 public:
  Acl(os::Handler* handler, const acl_interface_t& acl_interface);
@@ -52,13 +54,14 @@ class Acl : public hci::acl_manager::ConnectionCallbacks,
  void OnLeConnectFail(hci::AddressWithType, hci::ErrorCode reason) override;
  void OnLeLinkDisconnected(uint16_t handle, hci::ErrorCode reason);

  void CreateClassicConnection(const bluetooth::hci::Address& address);
  // LinkConnectionInterface
  void CreateClassicConnection(const bluetooth::hci::Address& address) override;
  void CreateLeConnection(
      const bluetooth::hci::AddressWithType& address_with_type);
      const bluetooth::hci::AddressWithType& address_with_type) override;
  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);
      const bluetooth::hci::AddressWithType& address_with_type) override;
  void DisconnectClassic(uint16_t handle, tHCI_STATUS reason) override;
  void DisconnectLe(uint16_t handle, tHCI_STATUS reason) override;

  // LinkPolicyInterface
  bool HoldMode(uint16_t hci_handle, uint16_t max_interval,