Home
last modified time | relevance | path

Searched refs:PacketType (Results 1 – 25 of 46) sorted by relevance

12

/system/bt/packet/tests/
Dpacket_test_helper.h27 template <class PacketType>
28 class TestPacketType : public PacketType {
30 using PacketType::PacketType;
32 static std::shared_ptr<TestPacketType<PacketType>> Make() { in Make()
33 return std::shared_ptr<TestPacketType<PacketType>>( in Make()
34 new TestPacketType<PacketType>()); in Make()
37 static std::shared_ptr<TestPacketType<PacketType>> Make( in Make()
39 return std::shared_ptr<TestPacketType<PacketType>>( in Make()
40 new TestPacketType<PacketType>(packet)); in Make()
43 static std::shared_ptr<TestPacketType<PacketType>> Make( in Make()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dh4_protocol.cc57 case hci::PacketType::COMMAND: in OnPacketReady()
60 case hci::PacketType::ACL: in OnPacketReady()
63 case hci::PacketType::SCO: in OnPacketReady()
66 case hci::PacketType::EVENT: in OnPacketReady()
73 hci_packet_type_ = hci::PacketType::UNKNOWN; in OnPacketReady()
77 if (hci_packet_type_ == hci::PacketType::UNKNOWN) { in OnDataReady()
95 hci_packet_type_ = static_cast<hci::PacketType>(buffer[0]); in OnDataReady()
96 if (hci_packet_type_ != hci::PacketType::ACL && hci_packet_type_ != hci::PacketType::SCO && in OnDataReady()
97 … hci_packet_type_ != hci::PacketType::COMMAND && hci_packet_type_ != hci::PacketType::EVENT) { in OnDataReady()
Dh4_packetizer.cc41 size_t H4Packetizer::HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType()
42 static const size_t packet_length_offset[static_cast<size_t>(hci::PacketType::EVENT) + 1] = { in HciGetPacketLengthForType()
51 if (type != hci::PacketType::ACL) return preamble[offset]; in HciGetPacketLengthForType()
78 case hci::PacketType::COMMAND: in OnPacketReady()
81 case hci::PacketType::ACL: in OnPacketReady()
84 case hci::PacketType::SCO: in OnPacketReady()
87 case hci::PacketType::EVENT: in OnPacketReady()
94 hci_packet_type_ = hci::PacketType::UNKNOWN; in OnPacketReady()
98 if (hci_packet_type_ == hci::PacketType::UNKNOWN) { in OnDataReady()
116 hci_packet_type_ = static_cast<hci::PacketType>(buffer[0]); in OnDataReady()
[all …]
Dhci_packetizer.cc40 size_t HciPacketizer::HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble) { in HciGetPacketLengthForType()
41 static const size_t packet_length_offset[static_cast<size_t>(hci::PacketType::EVENT) + 1] = { in HciGetPacketLengthForType()
50 if (type != hci::PacketType::ACL) return preamble[offset]; in HciGetPacketLengthForType()
58 void HciPacketizer::OnDataReady(int fd, hci::PacketType packet_type) { in OnDataReady()
59 static const size_t preamble_size[static_cast<size_t>(hci::PacketType::EVENT) + 1] = { in OnDataReady()
Dh4_packetizer.h49 hci::PacketType hci_packet_type_{hci::PacketType::UNKNOWN};
70 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble);
Dhci_socket_device.cc98 SendHci(hci::PacketType::EVENT, packet); in HciSocketDevice()
102 SendHci(hci::PacketType::ACL, packet); in HciSocketDevice()
106 SendHci(hci::PacketType::SCO, packet); in HciSocketDevice()
116 void HciSocketDevice::SendHci(hci::PacketType packet_type, const std::shared_ptr<std::vector<uint8_… in SendHci()
Dh4_protocol.h44 hci::PacketType hci_packet_type_{hci::PacketType::UNKNOWN};
Dhci_packetizer.h32 void OnDataReady(int fd, hci::PacketType packet_type);
55 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble);
Dremote_loopback_device.cc55 Link::PacketType type = packet.GetType(); in IncomingPacket()
57 case Link::PacketType::PAGE: in IncomingPacket()
/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()
31 LinkLayerPacketBuilder::LinkLayerPacketBuilder(Link::PacketType type, std::unique_ptr<PacketBuilder… in LinkLayerPacketBuilder()
35 LinkLayerPacketBuilder::LinkLayerPacketBuilder(Link::PacketType type, std::unique_ptr<PacketBuilder… in LinkLayerPacketBuilder()
42 new LinkLayerPacketBuilder(Link::PacketType::ACL, std::move(acl), source, dest)); in WrapAcl()
49 new LinkLayerPacketBuilder(Link::PacketType::COMMAND, std::move(command), source, dest)); in WrapCommand()
55 … new LinkLayerPacketBuilder(Link::PacketType::DISCONNECT, std::move(disconnect), source, dest)); in WrapDisconnect()
61 …new LinkLayerPacketBuilder(Link::PacketType::ENCRYPT_CONNECTION, std::move(encrypt_connection), so… in WrapEncryptConnection()
67 Link::PacketType::ENCRYPT_CONNECTION_RESPONSE, std::move(encrypt_connection), source, dest)); in WrapEncryptConnectionResponse()
73 new LinkLayerPacketBuilder(Link::PacketType::INQUIRY, std::move(inquiry), source)); in WrapInquiry()
79 …new LinkLayerPacketBuilder(Link::PacketType::INQUIRY_RESPONSE, std::move(inquiry_response), source… in WrapInquiryResponse()
[all …]
Dencrypt_connection_view.h33 CHECK(view.GetType() == Link::PacketType::ENCRYPT_CONNECTION || in GetEncryptConnection()
34 view.GetType() == Link::PacketType::ENCRYPT_CONNECTION_RESPONSE); in GetEncryptConnection()
Dio_capability_view.h33 CHECK(view.GetType() == Link::PacketType::IO_CAPABILITY_RESPONSE || in GetIoCapability()
34 view.GetType() == Link::PacketType::IO_CAPABILITY_REQUEST); in GetIoCapability()
Dle_advertisement_view.h36 …CHECK(view.GetType() == Link::PacketType::LE_ADVERTISEMENT || view.GetType() == Link::PacketType::… in GetLeAdvertisementView()
Dlink_layer_packet_builder.h90 LinkLayerPacketBuilder(Link::PacketType type, const Address& source, const Address& dest);
91 …LinkLayerPacketBuilder(Link::PacketType type, std::unique_ptr<PacketBuilder> builder, const Addres…
93 …LinkLayerPacketBuilder(Link::PacketType type, std::unique_ptr<PacketBuilder> builder, const Addres…
94 Link::PacketType type_;
Dlink_layer_packet_view.cc32 Link::PacketType LinkLayerPacketView::GetType() const { in GetType()
33 return static_cast<Link::PacketType>(at(Link::kSizeBytes)); in GetType()
Dio_capability_negative_response_view.h33 CHECK(view.GetType() == Link::PacketType::IO_CAPABILITY_NEGATIVE_RESPONSE); in GetIoCapabilityNegativeResponse()
Ddisconnect_view.h33 CHECK(view.GetType() == Link::PacketType::DISCONNECT); in GetDisconnect()
/system/bt/packet/avrcp/
Dvendor_packet.h29 CType ctype, CommandPdu pdu, PacketType packet_type,
38 PacketType packet_type_;
48 VendorPacketBuilder(CType ctype, CommandPdu pdu, PacketType packet_type) in VendorPacketBuilder()
77 PacketType GetPacketType() const;
Dvendor_packet.cc23 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder()
91 PacketType VendorPacket::GetPacketType() const { in GetPacketType()
93 return static_cast<PacketType>(value); in GetPacketType()
Dcapabilities_packet.h42 PacketType::SINGLE), in GetCapabilitiesRequestBuilder()
101 PacketType::SINGLE), in GetCapabilitiesResponseBuilder()
Dregister_notification_packet.h95 PacketType::SINGLE), in RegisterNotificationResponseBuilder()
150 PacketType::SINGLE), in RegisterNotificationRequestBuilder()
/system/bt/vendor_libs/test_vendor_lib/packets/test/
Dlink_layer_packet_builder_test.cc80 hand_wrapped_vect.push_back(static_cast<uint8_t>(Link::PacketType::DISCONNECT)); in TEST_F()
102 ASSERT_EQ(view.GetType(), Link::PacketType::DISCONNECT); in TEST_F()
120 ASSERT_EQ(view.GetType(), Link::PacketType::ENCRYPT_CONNECTION); in TEST_F()
142 ASSERT_EQ(view.GetType(), Link::PacketType::ENCRYPT_CONNECTION_RESPONSE); in TEST_F()
163 ASSERT_EQ(view.GetType(), Link::PacketType::INQUIRY); in TEST_F()
183 ASSERT_EQ(view.GetType(), Link::PacketType::INQUIRY_RESPONSE); in TEST_F()
209 ASSERT_EQ(view.GetType(), Link::PacketType::INQUIRY_RESPONSE); in TEST_F()
235 ASSERT_EQ(view.GetType(), Link::PacketType::INQUIRY_RESPONSE); in TEST_F()
265 ASSERT_EQ(view.GetType(), Link::PacketType::IO_CAPABILITY_REQUEST); in TEST_F()
287 ASSERT_EQ(view.GetType(), Link::PacketType::IO_CAPABILITY_RESPONSE); in TEST_F()
[all …]
/system/bt/profile/avrcp/tests/
Davrcp_test_helper.h111 template <class PacketType>
121 auto packet1 = TestPacketType<PacketType>::Make(); in MatchAndExplain()
124 auto packet2 = TestPacketType<PacketType>::Make(); in MatchAndExplain()
/system/bt/vendor_libs/test_vendor_lib/include/
Dlink.h25 enum class PacketType : uint8_t { enum
Dhci.h28 enum class PacketType : uint8_t { enum

12