/system/bt/gd/packet/ |
D | packet_view.cc | 27 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<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() 67 size_t PacketView<little_endian>::size() const { in size() 72 std::forward_list<View> PacketView<little_endian>::GetSubviewList(size_t begin, size_t end) const { in GetSubviewList() 93 PacketView<true> PacketView<little_endian>::GetLittleEndianSubview(size_t begin, size_t end) const { in GetLittleEndianSubview() 94 return PacketView<true>(GetSubviewList(begin, end)); in GetLittleEndianSubview() [all …]
|
D | packet_view.h | 34 class PacketView { 36 explicit PacketView(std::forward_list<View> fragments); 37 PacketView(const PacketView& PacketView) = default; 38 explicit PacketView(std::shared_ptr<std::vector<uint8_t>> packet); 39 PacketView<little_endian>() = delete; 40 virtual ~PacketView() = default; 52 PacketView<true> GetLittleEndianSubview(size_t begin, size_t end) const; 54 PacketView<false> GetBigEndianSubview(size_t begin, size_t end) const; 57 void Append(PacketView to_add);
|
D | packet_view_unittest.cc | 26 using bluetooth::packet::PacketView; 71 using PacketViewTypes = ::testing::Types<PacketView<true>, PacketView<false>>; 87 using PacketViewTypes = ::testing::Types<PacketView<true>, PacketView<false>>; 95 const PacketView<true> single_view = 96 … PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size())}); 97 const PacketView<true> multi_view = PacketView<true>({ 109 class AppendedPacketView : public PacketView<true> { 111 AppendedPacketView(PacketView<true> first, std::forward_list<PacketView<true>> to_append) in AppendedPacketView() 112 : PacketView<true>(first) { in AppendedPacketView() 118 const PacketView<true> single_view = [all …]
|
D | python3_module.cc | 60 using ::bluetooth::packet::PacketView; 89 py::class_<PacketView<kLittleEndian>>(m, "PacketViewLittleEndian") in PYBIND11_MODULE() 93 return std::make_unique<PacketView<kLittleEndian>>(bytes_shared); in PYBIND11_MODULE() 95 .def("GetBytes", [](const PacketView<kLittleEndian> view) { in PYBIND11_MODULE() 102 …py::class_<PacketView<!kLittleEndian>>(m, "PacketViewBigEndian").def(py::init([](std::vector<uint8… in PYBIND11_MODULE() 105 return std::make_unique<PacketView<!kLittleEndian>>(bytes_shared); in PYBIND11_MODULE()
|
/system/bt/gd/l2cap/internal/ |
D | enhanced_retransmission_mode_channel_data_controller.h | 43 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);
|
D | le_credit_based_channel_data_controller.h | 42 using UpperEnqueue = packet::PacketView<packet::kLittleEndian>; 49 void OnPdu(packet::PacketView<true> pdu) override; 74 class PacketViewForReassembly : public packet::PacketView<kLittleEndian> { 76 PacketViewForReassembly(const PacketView& packetView) : PacketView(packetView) {} in PacketViewForReassembly() 77 void AppendPacketView(packet::PacketView<kLittleEndian> to_append) { in AppendPacketView() 81 …PacketViewForReassembly reassembly_stage_{PacketView<kLittleEndian>(std::make_shared<std::vector<u…
|
D | channel_impl.h | 38 …virtual common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* 44 …virtual common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>*
|
D | channel_impl_mock.h | 31 …MOCK_METHOD((common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEnd… 33 …MOCK_METHOD((common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBui…
|
D | dynamic_channel_impl.h | 49 …common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* GetQue… in GetQueueUpEnd() 53 …common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>* GetQue… in GetQueueDownEnd() 91 …common::BidiQueue<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder> channel_qu…
|
D | basic_mode_channel_data_controller.cc | 40 void BasicModeDataController::OnPdu(packet::PacketView<true> pdu) { in OnPdu() 46 …enqueue_buffer_.Enqueue(std::make_unique<PacketView<kLittleEndian>>(basic_frame_view.GetPayload())… in OnPdu()
|
D | basic_mode_channel_data_controller.h | 41 using UpperEnqueue = packet::PacketView<packet::kLittleEndian>; 51 void OnPdu(packet::PacketView<true> pdu) override;
|
/system/bt/gd/hci/acl_manager/ |
D | assembler.h | 24 class PacketViewForRecombination : public packet::PacketView<kLittleEndian> { 26 PacketViewForRecombination(const PacketView& packetView) : PacketView(packetView) {} in PacketViewForRecombination() 27 void AppendPacketView(packet::PacketView<kLittleEndian> to_append) { in AppendPacketView() 54 …PacketViewForRecombination recombination_stage_{PacketView<kLittleEndian>(std::make_shared<std::ve… 57 std::queue<packet::PacketView<kLittleEndian>> incoming_queue_; 66 std::unique_ptr<packet::PacketView<kLittleEndian>> on_le_incoming_data_ready() { in on_le_incoming_data_ready() 72 return std::make_unique<PacketView<kLittleEndian>>(packet); in on_le_incoming_data_ready() 76 PacketView<kLittleEndian> payload = packet.GetPayload(); in on_incoming_packet() 92 … PacketViewForRecombination(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())); in on_incoming_packet() 103 … PacketViewForRecombination(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())); in on_incoming_packet()
|
D | acl_connection.h | 39 using Queue = common::BidiQueue<PacketView<kLittleEndian>, BasePacketBuilder>; 40 using QueueUpEnd = common::BidiQueueEnd<BasePacketBuilder, PacketView<kLittleEndian>>; 41 using QueueDownEnd = common::BidiQueueEnd<PacketView<kLittleEndian>, BasePacketBuilder>;
|
/system/bt/gd/btaa/ |
D | hci_processor.h | 63 packet::PacketView<packet::kLittleEndian>& packet_view, 67 packet::PacketView<packet::kLittleEndian>& packet_view, 71 packet::PacketView<packet::kLittleEndian>& packet_view, 75 packet::PacketView<packet::kLittleEndian>& packet_view, 79 packet::PacketView<packet::kLittleEndian>& packet_view,
|
/system/bt/gd/hci/ |
D | hci_packets_test.cc | 72 PacketView<kLittleEndian> packet_bytes_view(view_bytes); in TEST() 107 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_scan_par… in TEST() 122 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_scan_ena… in TEST() 136 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_get_vendor_c… in TEST() 146 PacketView<kLittleEndian> packet_bytes_view( in TEST() 167 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_extended… in TEST() 185 PacketView<kLittleEndian> packet_bytes_view( in TEST() 204 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_extended… in TEST() 220 PacketView<kLittleEndian> packet_bytes_view( in TEST() 240 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() [all …]
|
D | acl_builder_test.cc | 76 PacketView<true> count_packet_bytes_view(count_packet_bytes); in TEST() 83 PacketView<true> count_view = count_packet_view.GetPayload(); in TEST() 108 PacketView<true> counting_down_bytes_packet_bytes_view(counting_down_bytes_packet_bytes); in TEST() 115 PacketView<true> counting_down_bytes_view = counting_down_bytes_packet_view.GetPayload(); in TEST() 141 PacketView<true> packet_bytes_view(packet_bytes); in TEST() 153 PacketView<true> payload_view = packet_view.GetPayload(); in TEST()
|
/system/bt/gd/security/test/ |
D | fake_l2cap_test.cc | 55 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()
|
/system/bt/gd/l2cap/ |
D | l2cap_packet_test.cc | 80 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()
|
/system/bt/gd/packet/parser/test/ |
D | generated_packet_test.cc | 82 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() 114 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() 134 …ParentWithSixBytesView invalid_parent = ParentWithSixBytesView::Create(PacketView<kLittleEndian>(t… in TEST() 137 …ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too_small))… in TEST() 145 …ParentWithSixBytesView valid_parent = ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too… in TEST() 148 …ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too_small))… in TEST() 158 …ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(just_right)… in TEST() 168 … ChildWithSixBytesView::Create(ParentWithSixBytesView::Create(PacketView<kLittleEndian>(too_big))); in TEST() 186 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() 207 PacketView<kLittleEndian> packet_bytes_view(packet_bytes); in TEST() [all …]
|
/system/bt/gd/l2cap/classic/internal/ |
D | fixed_channel_impl.h | 62 …common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* GetQue… in GetQueueUpEnd() 66 …common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>* GetQue… in GetQueueDownEnd() 97 …common::BidiQueue<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder> channel_qu…
|
/system/bt/gd/l2cap/fuzz/ |
D | channel_fuzz_controller.h | 30 typedef os::IQueueEnqueue<packet::PacketView<packet::kLittleEndian>> EnqueueType; 31 typedef os::fuzz::FuzzInjectQueue<packet::PacketView<packet::kLittleEndian>> ChannelFuzzQueueType;
|
/system/bt/gd/l2cap/le/internal/ |
D | fixed_channel_impl.h | 70 …common::BidiQueueEnd<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>>* GetQue… in GetQueueUpEnd() 74 …common::BidiQueueEnd<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder>* GetQue… in GetQueueDownEnd() 99 …common::BidiQueue<packet::PacketView<packet::kLittleEndian>, packet::BasePacketBuilder> channel_qu…
|
/system/bt/gd/common/testing/ |
D | wired_pair_of_bidi_queues.h | 82 std::unique_ptr<packet::PacketView<packet::kLittleEndian>> BuilderToView( in BuilderToView() 88 return std::make_unique<packet::PacketView<packet::kLittleEndian>>(bytes); in BuilderToView() 93 …WiredPairOfBiDiQueues<packet::BasePacketBuilder, packet::PacketView<packet::kLittleEndian>, Builde…
|
/system/bt/gd/btaa/linux_generic/ |
D | hci_processor.cc | 117 packet::PacketView<packet::kLittleEndian>& packet_view, in process_command() 145 packet::PacketView<packet::kLittleEndian>& packet_view, in process_event() 206 packet::PacketView<packet::kLittleEndian>& packet_view, in process_acl() 219 packet::PacketView<packet::kLittleEndian>& packet_view, in process_sco() 232 packet::PacketView<packet::kLittleEndian>& packet_view, in process_iso() 246 …auto packet_view = packet::PacketView<packet::kLittleEndian>(std::make_shared<std::vector<uint8_t>… in OnHciPacket()
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | link_layer_socket_device.cc | 43 bluetooth::packet::PacketView<bluetooth::packet::kLittleEndian> size( in TimerTick() 60 bluetooth::packet::PacketView<bluetooth::packet::kLittleEndian>( in TimerTick()
|