Home
last modified time | relevance | path

Searched refs:PacketView (Results 1 – 25 of 74) sorted by relevance

123

/packages/modules/Bluetooth/system/gd/packet/
Dpacket_view.cc27 PacketView<little_endian>::PacketView(const std::forward_list<class View> fragments) in PacketView() function in bluetooth::packet::PacketView
35 PacketView<little_endian>::PacketView(std::shared_ptr<const std::vector<uint8_t>> packet) in PacketView() function in bluetooth::packet::PacketView
39 Iterator<little_endian> PacketView<little_endian>::begin() const { in begin()
44 Iterator<little_endian> PacketView<little_endian>::end() const { in end()
49 uint8_t PacketView<little_endian>::operator[](size_t index) const { in operator []()
54 uint8_t PacketView<little_endian>::at(size_t index) const { in at()
68 size_t PacketView<little_endian>::size() const { in size()
73 std::forward_list<View> PacketView<little_endian>::GetSubviewList(size_t begin, size_t end) const { in GetSubviewList()
94 PacketView<true> PacketView<little_endian>::GetLittleEndianSubview(size_t begin, size_t end) const { in GetLittleEndianSubview()
95 return PacketView<true>(GetSubviewList(begin, end)); in GetLittleEndianSubview()
[all …]
Dpacket_view.h35 class PacketView {
37 explicit PacketView(std::forward_list<View> fragments);
38 explicit PacketView(std::shared_ptr<const std::vector<uint8_t>> packet);
39 PacketView(const PacketView& PacketView) = default;
40 PacketView<little_endian>() = delete;
41 virtual ~PacketView() = default;
51 PacketView<true> GetLittleEndianSubview(size_t begin, size_t end) const;
52 PacketView<false> GetBigEndianSubview(size_t begin, size_t end) const;
55 void Append(PacketView to_add);
Dpacket_view_unittest.cc28 using bluetooth::packet::PacketView;
73 using PacketViewTypes = ::testing::Types<PacketView<true>, PacketView<false>>;
89 using PacketViewTypes = ::testing::Types<PacketView<true>, PacketView<false>>;
97 const PacketView<true> single_view =
98PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size())});
99 const PacketView<true> multi_view = PacketView<true>({
111 class AppendedPacketView : public PacketView<true> {
113 AppendedPacketView(PacketView<true> first, std::forward_list<PacketView<true>> to_append) in AppendedPacketView()
114 : PacketView<true>(first) { in AppendedPacketView()
120 const PacketView<true> single_view =
[all …]
/packages/modules/Bluetooth/system/gd/hci/acl_manager/
Dassembler.h41 class PacketViewForRecombination : public packet::PacketView<packet::kLittleEndian> {
43 PacketViewForRecombination(const PacketView& packetView) in PacketViewForRecombination()
44 : PacketView(packetView), received_first_(true) {} in PacketViewForRecombination()
47 : PacketView(PacketView<packet::kLittleEndian>(std::make_shared<std::vector<uint8_t>>())) {} in PacketViewForRecombination()
49 void AppendPacketView(packet::PacketView<packet::kLittleEndian> to_append) { in AppendPacketView()
64 size_t GetL2capPduSize(packet::PacketView<packet::kLittleEndian> pdu) { in GetL2capPduSize()
81 std::queue<packet::PacketView<packet::kLittleEndian>> incoming_queue_;
90 std::unique_ptr<packet::PacketView<packet::kLittleEndian>> on_data_ready() { in on_data_ready()
96 return std::make_unique<PacketView<packet::kLittleEndian>>(packet); in on_data_ready()
100 PacketView<packet::kLittleEndian> payload = packet.GetPayload(); in on_incoming_packet()
Dclassic_impl_test.cc72 return T::Create(hci::CommandView::Create(hci::PacketView<hci::kLittleEndian>(bytes))); in CreateCommandView()
92 return T::Create(hci::EventView::Create(hci::PacketView<hci::kLittleEndian>(bytes))); in CreateEventView()
102 hci::EventView::Create(hci::PacketView<hci::kLittleEndian>(bytes))); in ReturnCommandComplete()
112 hci::EventView::Create(hci::PacketView<hci::kLittleEndian>(bytes))); in ReturnCommandStatus()
144 PacketView<kLittleEndian> GetPacketView(std::unique_ptr<packet::BasePacketBuilder> packet) { in GetPacketView()
149 return packet::PacketView<packet::kLittleEndian>(bytes); in GetPacketView()
218 auto packet_view = bluetooth::packet::PacketView<bluetooth::packet::kLittleEndian>(bytes); in HciDownEndDequeue()
221 PacketView<true> count_view = acl_packet_view.GetPayload(); in HciDownEndDequeue()
Dacl_connection.h40 using Queue = common::BidiQueue<PacketView<kLittleEndian>, BasePacketBuilder>;
41 using QueueUpEnd = common::BidiQueueEnd<BasePacketBuilder, PacketView<kLittleEndian>>;
42 using QueueDownEnd = common::BidiQueueEnd<PacketView<kLittleEndian>, BasePacketBuilder>;
/packages/modules/Bluetooth/system/gd/l2cap/internal/
Denhanced_retransmission_mode_channel_data_controller.h43 using UpperEnqueue = packet::PacketView<packet::kLittleEndian>;
51 void OnPdu(packet::PacketView<true> pdu) override;
75 class PacketViewForReassembly : public packet::PacketView<kLittleEndian> {
77 PacketViewForReassembly(const PacketView& packetView) : PacketView(packetView) {} in PacketViewForReassembly()
78 void AppendPacketView(packet::PacketView<kLittleEndian> to_append) { in AppendPacketView()
95 …PacketViewForReassembly reassembly_stage_{PacketView<kLittleEndian>(std::make_shared<std::vector<u…
100 const packet::PacketView<kLittleEndian>& payload);
105 void on_pdu_no_fcs(const packet::PacketView<true>& pdu);
106 void on_pdu_fcs(const packet::PacketView<true>& pdu);
Dle_credit_based_channel_data_controller.h42 using UpperEnqueue = packet::PacketView<packet::kLittleEndian>;
49 void OnPdu(packet::PacketView<true> pdu) override;
75 class PacketViewForReassembly : public packet::PacketView<kLittleEndian> {
77 PacketViewForReassembly(const PacketView& packetView) : PacketView(packetView) {} in PacketViewForReassembly()
78 void AppendPacketView(packet::PacketView<kLittleEndian> to_append) { in AppendPacketView()
82 …PacketViewForReassembly reassembly_stage_{PacketView<kLittleEndian>(std::make_shared<std::vector<u…
Ddynamic_channel_impl.h51 …common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* GetQue… in GetQueueUpEnd()
55 …common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>* GetQue… in GetQueueDownEnd()
93 …common::BidiQueue<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder> channel_qu…
Dchannel_impl.h38 …virtual common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>*
44 …virtual common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>*
Dchannel_impl_mock.h31 …MOCK_METHOD((common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEnd…
33 …MOCK_METHOD((common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBui…
Dle_credit_based_channel_data_controller.cc69 void LeCreditBasedDataController::OnPdu(packet::PacketView<true> pdu) { in OnPdu()
98 … enqueue_buffer_.Enqueue(std::make_unique<PacketView<kLittleEndian>>(reassembly_stage_), handler_); in OnPdu()
101 …reassembly_stage_ = PacketViewForReassembly(PacketView<kLittleEndian>(std::make_shared<std::vector… in OnPdu()
Dbasic_mode_channel_data_controller.h41 using UpperEnqueue = packet::PacketView<packet::kLittleEndian>;
51 void OnPdu(packet::PacketView<true> pdu) override;
Dbasic_mode_channel_data_controller.cc42 void BasicModeDataController::OnPdu(packet::PacketView<true> pdu) { in OnPdu()
48 …enqueue_buffer_.Enqueue(std::make_unique<PacketView<kLittleEndian>>(basic_frame_view.GetPayload())… in OnPdu()
/packages/modules/Bluetooth/system/gd/hci/
Dhci_packets_test.cc71 PacketView<kLittleEndian> packet_bytes_view(view_bytes); in TEST()
106PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_scan_par… in TEST()
121PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_scan_ena… in TEST()
135PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_get_vendor_c… in TEST()
145 PacketView<kLittleEndian> packet_bytes_view( in TEST()
166PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_extended… in TEST()
184 PacketView<kLittleEndian> packet_bytes_view( in TEST()
203PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_extended… in TEST()
219 PacketView<kLittleEndian> packet_bytes_view( in TEST()
239 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
[all …]
Dacl_builder_test.cc75 PacketView<true> count_packet_bytes_view(count_packet_bytes); in TEST()
82 PacketView<true> count_view = count_packet_view.GetPayload(); in TEST()
107 PacketView<true> counting_down_bytes_packet_bytes_view(counting_down_bytes_packet_bytes); in TEST()
114 PacketView<true> counting_down_bytes_view = counting_down_bytes_packet_view.GetPayload(); in TEST()
140 PacketView<true> packet_bytes_view(packet_bytes); in TEST()
152 PacketView<true> payload_view = packet_view.GetPayload(); in TEST()
Dhci_layer_fake.h29 packet::PacketView<packet::kLittleEndian> GetPacketView(
79 packet::PacketView<packet::kLittleEndian> OutgoingAclData();
122 PacketView<packet::kLittleEndian>(std::make_shared<std::vector<uint8_t>>()));
/packages/modules/Bluetooth/system/gd/packet/parser/test/
Dgenerated_packet_test.cc81 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
113 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
133 …ParentWithSixBytesView invalid_parent = ParentWithSixBytesView::Create(PacketView<kLittleEndian>(t… in TEST()
136 …ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too_small))… in TEST()
144 …ParentWithSixBytesView valid_parent = ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too… in TEST()
147 …ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too_small))… in TEST()
157 …ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(just_right)… in TEST()
167 … ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too_big))); in TEST()
185 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
206 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/
Dl2cap_packet_test.cc80 PacketView<kLittleEndian> packet_bytes_view(view_bytes); in TEST()
90 PacketView<kLittleEndian> packet_bytes_view(view_bytes); in TEST()
100 PacketView<kLittleEndian> packet_bytes_view(view_bytes); in TEST()
110 PacketView<kLittleEndian> packet_bytes_view(view_bytes); in TEST()
120 PacketView<kLittleEndian> packet_bytes_view(view_bytes); in TEST()
158 PacketView<kLittleEndian> packet_bytes_view(shared_bytes); in TEST()
/packages/modules/Bluetooth/system/gd/security/test/
Dfake_l2cap_test.cc55 PacketView<kLittleEndian> GetPacketView(std::unique_ptr<T> packet) { in GetPacketView()
60 return packet::PacketView<packet::kLittleEndian>(bytes); in GetPacketView()
91 …common::BidiQueue<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>> bidi_queue… in TEST_F()
110 …os::EnqueueBuffer<packet::PacketView<packet::kLittleEndian>> up_end_enqueue_buffer{bidi_queue.GetU… in TEST_F()
116 …up_end_enqueue_buffer.Enqueue(std::make_unique<PacketView<kLittleEndian>>(GetPacketView(std::move(… in TEST_F()
Dfake_hci_layer.h35 using hci::PacketView;
39 PacketView<kLittleEndian> GetPacketView(std::unique_ptr<packet::BasePacketBuilder> packet) { in GetPacketView()
44 return packet::PacketView<packet::kLittleEndian>(bytes); in GetPacketView()
/packages/modules/Bluetooth/system/gd/l2cap/classic/internal/
Dfixed_channel_impl.h73 …common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* GetQue… in GetQueueUpEnd()
77 …common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>* GetQue… in GetQueueDownEnd()
108 …common::BidiQueue<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder> channel_qu…
/packages/modules/Bluetooth/system/gd/common/testing/
Dwired_pair_of_bidi_queues.h85 std::unique_ptr<packet::PacketView<packet::kLittleEndian>> BuilderToView( in BuilderToView()
91 return std::make_unique<packet::PacketView<packet::kLittleEndian>>(bytes); in BuilderToView()
96 …WiredPairOfBiDiQueues<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>, Builde…
/packages/modules/Bluetooth/system/gd/l2cap/le/internal/
Dfixed_channel_impl.h86 …common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* GetQue… in GetQueueUpEnd()
90 …common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>* GetQue… in GetQueueDownEnd()
115 …common::BidiQueue<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder> channel_qu…
/packages/modules/Bluetooth/system/gd/l2cap/fuzz/
Dchannel_fuzz_controller.h33 typedef os::IQueueEnqueue<packet::PacketView<packet::kLittleEndian>> EnqueueType;
34 typedef os::fuzz::FuzzInjectQueue<packet::PacketView<packet::kLittleEndian>> ChannelFuzzQueueType;

123