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

Commit 5eebc487 authored by Chienyuan's avatar Chienyuan Committed by android-build-merger
Browse files

GD HCI: register events for gd test on device am: 49a2686a

am: febef907

Change-Id: Icd4a5bb124ef052d5a1a6a9d074b209a9dc2bf63
parents 5e12bab0 febef907
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -104,10 +104,21 @@ struct HciLayer::impl : public hal::HciHalCallbacks {
                         handler);
    RegisterEventHandler(EventCode::COMMAND_STATUS, Bind(&impl::command_status_callback, common::Unretained(this)),
                         handler);
    // TODO find the right place
    RegisterEventHandler(EventCode::CONNECTION_PACKET_TYPE_CHANGE, Bind(&impl::drop, common::Unretained(this)),
                         handler);
    RegisterEventHandler(EventCode::ROLE_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler);
    RegisterEventHandler(EventCode::PAGE_SCAN_REPETITION_MODE_CHANGE, Bind(&impl::drop, common::Unretained(this)),
                         handler);
    RegisterEventHandler(EventCode::MAX_SLOTS_CHANGE, Bind(&impl::drop, common::Unretained(this)), handler);
    RegisterEventHandler(EventCode::VENDOR_SPECIFIC, Bind(&impl::drop, common::Unretained(this)), handler);

    EnqueueCommand(ResetBuilder::Create(), BindOnce(&fail_if_reset_complete_not_success), handler);
    hal_->registerIncomingPacketCallback(this);
  }

  void drop(EventPacketView) {}

  void dequeue_and_send_acl() {
    auto packet = acl_queue_.GetDownEnd()->TryDequeue();
    send_acl(std::move(packet));
+1 −0
Original line number Diff line number Diff line
@@ -382,6 +382,7 @@ enum EventCode : 8 {
  REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION = 0x3D,
  LE_META_EVENT = 0x3e,
  NUMBER_OF_COMPLETED_DATA_BLOCKS = 0x48,
  VENDOR_SPECIFIC = 0xFF,
}

packet EventPacket {