/system/bt/packet/tests/ |
D | packet_test_helper.h | 27 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/ |
D | h4_protocol.cc | 57 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()
|
D | h4_packetizer.cc | 41 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 …]
|
D | hci_packetizer.cc | 40 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()
|
D | h4_packetizer.h | 49 hci::PacketType hci_packet_type_{hci::PacketType::UNKNOWN}; 70 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble);
|
D | hci_socket_device.cc | 98 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()
|
D | h4_protocol.h | 44 hci::PacketType hci_packet_type_{hci::PacketType::UNKNOWN};
|
D | hci_packetizer.h | 32 void OnDataReady(int fd, hci::PacketType packet_type); 55 size_t HciGetPacketLengthForType(hci::PacketType type, const uint8_t* preamble);
|
D | remote_loopback_device.cc | 55 Link::PacketType type = packet.GetType(); in IncomingPacket() 57 case Link::PacketType::PAGE: in IncomingPacket()
|
/system/bt/vendor_libs/test_vendor_lib/packets/link_layer/ |
D | link_layer_packet_builder.cc | 28 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 …]
|
D | encrypt_connection_view.h | 33 CHECK(view.GetType() == Link::PacketType::ENCRYPT_CONNECTION || in GetEncryptConnection() 34 view.GetType() == Link::PacketType::ENCRYPT_CONNECTION_RESPONSE); in GetEncryptConnection()
|
D | io_capability_view.h | 33 CHECK(view.GetType() == Link::PacketType::IO_CAPABILITY_RESPONSE || in GetIoCapability() 34 view.GetType() == Link::PacketType::IO_CAPABILITY_REQUEST); in GetIoCapability()
|
D | le_advertisement_view.h | 36 …CHECK(view.GetType() == Link::PacketType::LE_ADVERTISEMENT || view.GetType() == Link::PacketType::… in GetLeAdvertisementView()
|
D | link_layer_packet_builder.h | 90 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_;
|
D | link_layer_packet_view.cc | 32 Link::PacketType LinkLayerPacketView::GetType() const { in GetType() 33 return static_cast<Link::PacketType>(at(Link::kSizeBytes)); in GetType()
|
D | io_capability_negative_response_view.h | 33 CHECK(view.GetType() == Link::PacketType::IO_CAPABILITY_NEGATIVE_RESPONSE); in GetIoCapabilityNegativeResponse()
|
D | disconnect_view.h | 33 CHECK(view.GetType() == Link::PacketType::DISCONNECT); in GetDisconnect()
|
/system/bt/packet/avrcp/ |
D | vendor_packet.h | 29 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;
|
D | vendor_packet.cc | 23 CType ctype, CommandPdu pdu, PacketType packet_type, in MakeBuilder() 91 PacketType VendorPacket::GetPacketType() const { in GetPacketType() 93 return static_cast<PacketType>(value); in GetPacketType()
|
D | capabilities_packet.h | 42 PacketType::SINGLE), in GetCapabilitiesRequestBuilder() 101 PacketType::SINGLE), in GetCapabilitiesResponseBuilder()
|
D | register_notification_packet.h | 95 PacketType::SINGLE), in RegisterNotificationResponseBuilder() 150 PacketType::SINGLE), in RegisterNotificationRequestBuilder()
|
/system/bt/vendor_libs/test_vendor_lib/packets/test/ |
D | link_layer_packet_builder_test.cc | 80 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/ |
D | avrcp_test_helper.h | 111 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/ |
D | link.h | 25 enum class PacketType : uint8_t { enum
|
D | hci.h | 28 enum class PacketType : uint8_t { enum
|