Home
last modified time | relevance | path

Searched refs:LinkLayerPacketBuilder (Results 1 – 18 of 18) sorted by relevance

/system/bt/vendor_libs/test_vendor_lib/packets/link_layer/
Dlink_layer_packet_builder.cc28 LinkLayerPacketBuilder::LinkLayerPacketBuilder(Link::PacketType type, const Address& source, const … in LinkLayerPacketBuilder() function in test_vendor_lib::packets::LinkLayerPacketBuilder
31 LinkLayerPacketBuilder::LinkLayerPacketBuilder(Link::PacketType type, std::unique_ptr<PacketBuilder… in LinkLayerPacketBuilder() function in test_vendor_lib::packets::LinkLayerPacketBuilder
35 LinkLayerPacketBuilder::LinkLayerPacketBuilder(Link::PacketType type, std::unique_ptr<PacketBuilder… in LinkLayerPacketBuilder() function in test_vendor_lib::packets::LinkLayerPacketBuilder
39 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapAcl(std::unique_ptr<ViewForward… in WrapAcl()
41 return std::shared_ptr<LinkLayerPacketBuilder>( in WrapAcl()
42 new LinkLayerPacketBuilder(Link::PacketType::ACL, std::move(acl), source, dest)); in WrapAcl()
45 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapCommand(std::unique_ptr<Command… in WrapCommand()
48 return std::shared_ptr<LinkLayerPacketBuilder>( in WrapCommand()
49 new LinkLayerPacketBuilder(Link::PacketType::COMMAND, std::move(command), source, dest)); in WrapCommand()
52 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapDisconnect( in WrapDisconnect()
[all …]
Dlink_layer_packet_builder.h43 class LinkLayerPacketBuilder : PacketBuilder<true> {
45 virtual ~LinkLayerPacketBuilder() = default;
47 static std::shared_ptr<LinkLayerPacketBuilder> WrapAcl(std::unique_ptr<ViewForwarderBuilder> acl,
49 …static std::shared_ptr<LinkLayerPacketBuilder> WrapCommand(std::unique_ptr<CommandBuilder> command,
51 …static std::shared_ptr<LinkLayerPacketBuilder> WrapDisconnect(std::unique_ptr<DisconnectBuilder> d…
53 static std::shared_ptr<LinkLayerPacketBuilder> WrapEncryptConnection(
55 static std::shared_ptr<LinkLayerPacketBuilder> WrapEncryptConnectionResponse(
57 …static std::shared_ptr<LinkLayerPacketBuilder> WrapInquiry(std::unique_ptr<InquiryBuilder> inquiry,
59 static std::shared_ptr<LinkLayerPacketBuilder> WrapInquiryResponse(
61 static std::shared_ptr<LinkLayerPacketBuilder> WrapIoCapabilityRequest(
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dremote_loopback_device.cc31 using packets::LinkLayerPacketBuilder;
58 SendLinkLayerPacket(LinkLayerPacketBuilder::WrapPageResponse( in IncomingPacket()
70 SendLinkLayerPacket(LinkLayerPacketBuilder::ReWrap(extracted_packet), phy_type); in IncomingPacket()
Dbeacon.cc71 std::shared_ptr<packets::LinkLayerPacketBuilder> to_send = in TimerTick()
72 … packets::LinkLayerPacketBuilder::WrapLeAdvertisement(std::move(ad), properties_.GetLeAddress()); in TimerTick()
85 …std::shared_ptr<packets::LinkLayerPacketBuilder> to_send = packets::LinkLayerPacketBuilder::WrapLe… in IncomingPacket()
Dloopback.cc90 …std::shared_ptr<packets::LinkLayerPacketBuilder> to_send = packets::LinkLayerPacketBuilder::WrapLe… in IncomingPacket()
Dlink_layer_socket_device.cc56 SendLinkLayerPacket(packets::LinkLayerPacketBuilder::ReWrap(received_), phy_type_); in TimerTick()
Ddevice.h78 …virtual void SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> packet, Phy::Typ…
Ddevice.cc61 void Device::SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Typ… in SendLinkLayerPacket()
Dcar_kit.cc41 [this](std::shared_ptr<packets::LinkLayerPacketBuilder> packet, Phy::Type phy_type) { in CarKit()
/system/bt/vendor_libs/test_vendor_lib/test/
Dlink_layer_socket_device_test.cc45 using test_vendor_lib::packets::LinkLayerPacketBuilder;
61 MockPhyLayer(const std::function<void(std::shared_ptr<LinkLayerPacketBuilder>)>& on_receive) in MockPhyLayer()
63 virtual void Send(const std::shared_ptr<LinkLayerPacketBuilder> packet) override { in Send()
70 std::function<void(std::shared_ptr<LinkLayerPacketBuilder>)> on_receive_;
94 …void ValidatePacket(size_t index, bool at_server, std::shared_ptr<LinkLayerPacketBuilder> received… in ValidatePacket()
135 …[this, index](std::shared_ptr<LinkLayerPacketBuilder> received) { ValidatePacket(index, true, rece… in SetUp()
177 …[this, index](std::shared_ptr<LinkLayerPacketBuilder> received) { ValidatePacket(index, false, rec… in CreateConnection()
191 auto wrapped_command = LinkLayerPacketBuilder::WrapCommand(std::move(builder), source_, dest_); in NextPacket()
/system/bt/vendor_libs/test_vendor_lib/packets/test/
Dlink_layer_packet_builder_test.cc64 …auto wrapped_disconnect = LinkLayerPacketBuilder::WrapDisconnect(std::move(disconnect), source_, d… in TEST_F()
95 …auto wrapped_disconnect = LinkLayerPacketBuilder::WrapDisconnect(std::move(disconnect_builder), so… in TEST_F()
113LinkLayerPacketBuilder::WrapEncryptConnection(std::move(encrypt_connection_builder), source_, dest… in TEST_F()
135LinkLayerPacketBuilder::WrapEncryptConnectionResponse(std::move(encrypt_connection_builder), sourc… in TEST_F()
156 auto wrapped_inquiry = LinkLayerPacketBuilder::WrapInquiry(std::move(inquiry_builder), source_); in TEST_F()
175LinkLayerPacketBuilder::WrapInquiryResponse(std::move(inquiry_response_builder), source_, dest_); in TEST_F()
202LinkLayerPacketBuilder::WrapInquiryResponse(std::move(inquiry_response_builder), source_, dest_); in TEST_F()
228LinkLayerPacketBuilder::WrapInquiryResponse(std::move(inquiry_response_builder), source_, dest_); in TEST_F()
258LinkLayerPacketBuilder::WrapIoCapabilityRequest(std::move(io_capability_builder), source_, dest_); in TEST_F()
280LinkLayerPacketBuilder::WrapIoCapabilityResponse(std::move(io_capability_builder), source_, dest_); in TEST_F()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dphy_layer_factory.h48 virtual void Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet, uint32_t id);
62 virtual void Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet) override;
Dphy_layer_factory.cc51 void PhyLayerFactory::Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet, uint32_t … in Send()
96 void PhyLayerImpl::Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet) { in Send()
Dphy_layer.h30 virtual void Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet) = 0;
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.cc57 void LinkLayerController::SendLELinkLayerPacket(std::shared_ptr<LinkLayerPacketBuilder> packet) { in SendLELinkLayerPacket()
65 void LinkLayerController::SendLinkLayerPacket(std::shared_ptr<LinkLayerPacketBuilder> packet) { in SendLinkLayerPacket()
75 std::shared_ptr<LinkLayerPacketBuilder> command; in SendCommandToRemoteByAddress()
82 …command = LinkLayerPacketBuilder::WrapCommand(CommandBuilder::Create(static_cast<uint16_t>(opcode)… in SendCommandToRemoteByAddress()
107 std::shared_ptr<LinkLayerPacketBuilder> acl = LinkLayerPacketBuilder::WrapAcl( in SendAclToRemote()
272LinkLayerPacketBuilder::WrapResponse(ResponseBuilder::Create(static_cast<uint16_t>(opcode), respon… in IncomingCommandPacket()
301 SendLinkLayerPacket(LinkLayerPacketBuilder::WrapEncryptConnectionResponse( in IncomingEncryptConnection()
340 …SendLinkLayerPacket(LinkLayerPacketBuilder::WrapInquiryResponse(std::move(inquiry_response), prope… in IncomingInquiryPacket()
520 std::shared_ptr<LinkLayerPacketBuilder> to_send = in IncomingLeAdvertisementPacket()
521 LinkLayerPacketBuilder::WrapLeScan(properties_.GetLeAddress(), incoming.GetSourceAddress()); in IncomingLeAdvertisementPacket()
[all …]
Dlink_layer_controller.h90 …const std::function<void(std::shared_ptr<packets::LinkLayerPacketBuilder>, Phy::Type)>& send_to_re…
183 void SendLELinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> packet);
184 void SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> packet);
208 std::vector<std::shared_ptr<packets::LinkLayerPacketBuilder>> commands_awaiting_responses_;
227 …std::function<void(std::shared_ptr<packets::LinkLayerPacketBuilder>, Phy::Type phy_type)> send_to_…
Ddual_mode_controller.h68 …void SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Type phy_t…
Ddual_mode_controller.cc78 void DualModeController::SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_se… in SendLinkLayerPacket()
136 [this](std::shared_ptr<packets::LinkLayerPacketBuilder> packet, Phy::Type phy_type) { in DualModeController()