Home
last modified time | relevance | path

Searched refs:Packet (Results 1 – 25 of 60) sorted by relevance

123

/system/bt/packet/avrcp/
Davrcp_packet.cc40 return payload_->size() + Packet::kMinSize(); in size()
43 bool PacketBuilder::Serialize(const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
54 const std::shared_ptr<::bluetooth::Packet>& pkt) { in PushHeader()
61 const std::shared_ptr<::bluetooth::Packet>& pkt, uint32_t company_id) { in PushCompanyId()
71 std::shared_ptr<Packet> Packet::Parse( in Parse()
72 std::shared_ptr<::bluetooth::Packet> pkt) { in Parse()
73 return std::shared_ptr<Packet>(new Packet(pkt)); in Parse()
76 CType Packet::GetCType() const { in GetCType()
81 uint8_t Packet::GetSubunitType() const { in GetSubunitType()
85 uint8_t Packet::GetSubunitId() const { in GetSubunitId()
[all …]
Davrcp_packet.h42 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
51 void PushHeader(const std::shared_ptr<::bluetooth::Packet>& pkt);
52 bool PushCompanyId(const std::shared_ptr<::bluetooth::Packet>& pkt,
63 class Packet : public ::bluetooth::Packet {
65 virtual ~Packet() = default;
70 static std::shared_ptr<Packet> Parse(
71 std::shared_ptr<::bluetooth::Packet> pkt);
94 using ::bluetooth::Packet::Packet;
107 DISALLOW_COPY_AND_ASSIGN(Packet);
Dvendor_packet.h34 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
41 void PushHeader(const std::shared_ptr<::bluetooth::Packet>& pkt,
45 bool PushAttributeValue(const std::shared_ptr<::bluetooth::Packet>& pkt,
54 class VendorPacket : public avrcp::Packet {
72 static constexpr size_t kMinSize() { return Packet::kMinSize() + 7; }; in kMinSize()
85 using Packet::Packet;
Davrcp_browse_packet.h41 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
47 void PushHeader(const std::shared_ptr<::bluetooth::Packet>& pkt,
53 class BrowsePacket : public ::bluetooth::Packet {
58 std::shared_ptr<::bluetooth::Packet> pkt);
75 using ::bluetooth::Packet::Packet;
Dpass_through_packet.h33 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
46 class PassThroughPacket : public Packet {
62 static constexpr size_t kMinSize() { return Packet::kMinSize() + 2; } in kMinSize()
73 using Packet::Packet;
Dvendor_packet.cc42 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
58 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushHeader()
67 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushAttributeValue()
83 return PullCompanyId(begin() + Packet::kMinSize()); in GetCompanyId()
87 auto value = *(begin() + Packet::kMinSize() + static_cast<size_t>(3)); in GetCommandPdu()
92 auto value = *(begin() + Packet::kMinSize() + static_cast<size_t>(4)); in GetPacketType()
97 auto it = begin() + Packet::kMinSize() + static_cast<size_t>(5); in GetParameterLength()
Dget_folder_items.h36 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
59 void PushMediaListItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
61 void PushMediaPlayerItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
63 void PushMediaElementItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
65 void PushFolderItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
110 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
Dpass_through_packet.cc35 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
50 auto it = begin() + Packet::kMinSize(); in GetKeyState()
55 return *(begin() + Packet::kMinSize()) & 0b01111111; in GetOperationId()
Davrcp_browse_packet.cc39 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
48 const std::shared_ptr<::bluetooth::Packet>& pkt, uint16_t length) { in PushHeader()
54 std::shared_ptr<::bluetooth::Packet> pkt) { in Parse()
Dget_play_status_packet.h44 static constexpr size_t kMinSize() { return Packet::kMinSize() + 7; } in kMinSize()
63 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
Dchange_path.h33 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
81 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
Dcapabilities_packet.h35 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
93 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
Dget_folder_items.cc72 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
124 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushMediaListItem()
140 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushMediaPlayerItem()
184 const std::shared_ptr<::bluetooth::Packet>& pkt, const FolderItem& item) { in PushFolderItem()
201 const std::shared_ptr<::bluetooth::Packet>& pkt, in PushMediaElementItem()
322 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
Dchange_path.cc41 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
100 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
/system/bt/packet/base/
Dpacket_builder.h23 class Packet; variable
28 virtual bool Serialize(const std::shared_ptr<Packet>& pkt) = 0;
34 void ReserveSpace(const std::shared_ptr<Packet>& pkt, size_t size);
35 bool AddPayloadOctets1(const std::shared_ptr<Packet>& pkt, uint8_t value) { in AddPayloadOctets1()
38 bool AddPayloadOctets2(const std::shared_ptr<Packet>& pkt, uint16_t value) { in AddPayloadOctets2()
41 bool AddPayloadOctets3(const std::shared_ptr<Packet>& pkt, uint32_t value) { in AddPayloadOctets3()
44 bool AddPayloadOctets4(const std::shared_ptr<Packet>& pkt, uint32_t value) { in AddPayloadOctets4()
47 bool AddPayloadOctets6(const std::shared_ptr<Packet>& pkt, uint64_t value) { in AddPayloadOctets6()
50 bool AddPayloadOctets8(const std::shared_ptr<Packet>& pkt, uint64_t value) { in AddPayloadOctets8()
58 bool AddPayloadOctets(const std::shared_ptr<Packet>& pkt, size_t octets,
Dpacket.h29 class Packet : public std::enable_shared_from_this<Packet> {
34 virtual ~Packet() = default;
37 Packet() in Packet() function
41 Packet(std::shared_ptr<const Packet> pkt, size_t start, size_t end) in Packet() function
43 Packet(std::shared_ptr<const Packet> pkt) : data_(pkt->data_) { in Packet() function
72 static_assert(std::is_convertible<U*, Packet*>::value, in Specialize()
74 static_assert(std::is_convertible<T*, Packet*>::value, in Specialize()
Dpacket.cc26 size_t Packet::size() const { return packet_end_index_ - packet_start_index_; } in size()
28 Iterator Packet::begin() const { in begin()
32 Iterator Packet::end() const { in end()
37 uint8_t Packet::operator[](size_t i) { in operator []()
41 size_t Packet::get_length() const { return data_->size(); } in get_length()
44 uint8_t Packet::get_at_index(size_t index) const { in get_at_index()
Dpacket_builder.cc25 void PacketBuilder::ReserveSpace(const std::shared_ptr<Packet>& pkt, in ReserveSpace()
30 bool PacketBuilder::AddPayloadOctets(const std::shared_ptr<Packet>& pkt, in AddPayloadOctets()
Diterator.h25 class Packet; variable
31 Iterator(std::shared_ptr<const Packet> packet, size_t i);
96 std::shared_ptr<const Packet> packet_;
/system/bt/vendor_libs/test_vendor_lib/scripts/
Dhci_socket.py75 class HCI_Cmd_Create_Connection(Packet):
94 class HCI_Cmd_Inquiry(Packet):
107 class HCI_Event_Inquiry_Result(Packet):
123 class HCI_Event_Connection_Complete(Packet):
134 class HCI_Event_Remote_Name_Request_Complete(Packet):
142 class HCI_Event_Read_Remote_Supported_Features_Complete(Packet):
151 class HCI_Event_Read_Remote_Version_Information_Complete(Packet):
162 class HCI_Event_Read_Clock_Offset_Complete(Packet):
171 class HCI_Event_Read_Remote_Extended_Features_Complete(Packet):
182 class HCI_Event_Extended_Inquiry_Result(Packet):
/system/bt/packet/tests/base/
Dpacket_test_common.h35 class PacketImpl : public Packet {
37 using Packet::Packet; // Inherit constructors
81 bool Serialize(const std::shared_ptr<Packet>& pkt) override { in Serialize()
/system/bt/profile/avrcp/
Davrcp_message_converter.h26 class VectorPacket : public ::bluetooth::Packet {
28 using Packet::Packet; // Inherit constructors
67 static std::shared_ptr<::bluetooth::Packet> Parse(tAVRC_MSG* m) { in Parse()
/system/bt/packet/tests/avrcp/
Dget_play_status_packet_test.cc26 using TestGetPlayStatusRspPacket = TestPacketType<Packet>;
Davrcp_packet_test.cc45 bool Serialize(const std::shared_ptr<Packet>& pkt) override { in Serialize()
62 using TestAvrcpPacket = TestPacketType<Packet>;
Davrcp_reject_packet_test.cc26 using TestAvrcpPacket = TestPacketType<Packet>;

123