Home
last modified time | relevance | path

Searched refs:RawBuilder (Results 1 – 25 of 53) sorted by relevance

123

/system/bt/gd/packet/
Draw_builder.cc30 RawBuilder::RawBuilder(size_t max_bytes) : max_bytes_(max_bytes) {} in RawBuilder() function in bluetooth::packet::RawBuilder
31 RawBuilder::RawBuilder(std::vector<uint8_t> vec) : payload_(std::move(vec)) {} in RawBuilder() function in bluetooth::packet::RawBuilder
33 bool RawBuilder::AddOctets(size_t octets, const vector<uint8_t>& bytes) { in AddOctets()
43 bool RawBuilder::AddOctets(const vector<uint8_t>& bytes) { in AddOctets()
47 bool RawBuilder::AddOctets(size_t octets, uint64_t value) { in AddOctets()
64 bool RawBuilder::AddAddress(const Address& address) { in AddAddress()
73 bool RawBuilder::AddOctets1(uint8_t value) { in AddOctets1()
77 bool RawBuilder::AddOctets2(uint16_t value) { in AddOctets2()
81 bool RawBuilder::AddOctets3(uint32_t value) { in AddOctets3()
85 bool RawBuilder::AddOctets4(uint32_t value) { in AddOctets4()
[all …]
Draw_builder.h29 class RawBuilder : public PacketBuilder<true> {
31 RawBuilder() = default;
32 explicit RawBuilder(size_t max_bytes);
33 explicit RawBuilder(std::vector<uint8_t> vec);
34 virtual ~RawBuilder() = default;
Draw_builder_unittest.cc47 std::unique_ptr<RawBuilder> count_builder = std::make_unique<RawBuilder>(); in TEST()
70 std::unique_ptr<RawBuilder> count_builder = std::make_unique<RawBuilder>(count_first); in TEST()
91 std::unique_ptr<RawBuilder> count_builder = std::make_unique<RawBuilder>(kMaxBytes); in TEST()
Dfragmenting_inserter.h32 …FragmentingInserter(size_t mtu, std::back_insert_iterator<std::vector<std::unique_ptr<RawBuilder>>…
41 std::unique_ptr<RawBuilder> curr_packet_;
42 std::back_insert_iterator<std::vector<std::unique_ptr<RawBuilder>>> iterator_;
Dfragmenting_inserter_unittest.cc33 std::vector<std::unique_ptr<RawBuilder>> fragments; in TEST()
59 std::vector<std::unique_ptr<RawBuilder>> fragments; in TEST()
96 auto counts = RawBuilder(); in TEST()
101 std::vector<std::unique_ptr<RawBuilder>> fragments_mtu_is_kPacketSize; in TEST()
108 std::vector<std::unique_ptr<RawBuilder>> fragments_mtu_is_less; in TEST()
116 std::vector<std::unique_ptr<RawBuilder>> fragments_mtu_is_more; in TEST()
141 std::vector<std::unique_ptr<RawBuilder>> fragments; in TEST_P()
144 RawBuilder original_packet(counts_); in TEST_P()
Dfragmenting_inserter.cc25 … std::back_insert_iterator<std::vector<std::unique_ptr<RawBuilder>>> iterator) in FragmentingInserter()
26 …: BitInserter(to_construct_bit_inserter_), mtu_(mtu), curr_packet_(std::make_unique<RawBuilder>(mt… in FragmentingInserter()
39 curr_packet_ = std::make_unique<RawBuilder>(mtu_); in insert_bits()
Dpython3_module.cc61 using ::bluetooth::packet::RawBuilder;
66 py::class_<RawBuilder, BasePacketBuilder, std::shared_ptr<RawBuilder>>(m, "RawBuilder") in PYBIND11_MODULE()
67 .def(py::init([](std::vector<uint8_t> bytes) { return std::make_unique<RawBuilder>(bytes); })) in PYBIND11_MODULE()
68 .def("Serialize", [](RawBuilder& builder) { in PYBIND11_MODULE()
/system/bt/gd/hci/
Dacl_builder_test.cc27 using bluetooth::packet::RawBuilder;
63 std::unique_ptr<RawBuilder> count_payload = std::make_unique<RawBuilder>(); in TEST()
96 std::unique_ptr<RawBuilder> counting_down_bytes_payload = std::make_unique<RawBuilder>(); in TEST()
129 std::unique_ptr<RawBuilder> payload = std::make_unique<RawBuilder>(); in TEST()
Dhci_packets_fuzz_test.cc27 using bluetooth::packet::RawBuilder;
/system/bt/gd/hci/acl_manager/
Dacl_fragmenter.cc29 std::vector<std::unique_ptr<packet::RawBuilder>> AclFragmenter::GetFragments() { in GetFragments()
30 std::vector<std::unique_ptr<packet::RawBuilder>> to_return; in GetFragments()
Dacl_fragmenter.h37 std::vector<std::unique_ptr<packet::RawBuilder>> GetFragments();
/system/bt/gd/l2cap/classic/cert/
Dl2cap_performance_test.py18 from bluetooth_packets_python3 import RawBuilder
82 data_packet = RawBuilder([x for x in data])
138 data_packet = RawBuilder([x for x in data])
173 data_packet = RawBuilder([x for x in data])
/system/bt/gd/l2cap/internal/
Denhanced_retransmission_mode_channel_data_controller.h85 …CopyablePacketBuilder(std::shared_ptr<packet::RawBuilder> builder) : builder_(std::move(builder)) … in CopyablePacketBuilder()
92 std::shared_ptr<packet::RawBuilder> builder_;
Denhanced_retransmission_mode_channel_data_controller.cc83 …td::tuple<SegmentationAndReassembly, uint16_t, std::shared_ptr<packet::RawBuilder>>> unacked_list_;
85 …std::queue<std::tuple<SegmentationAndReassembly, uint16_t, std::unique_ptr<packet::RawBuilder>>> p…
100 …void data_request(SegmentationAndReassembly sar, std::unique_ptr<packet::RawBuilder> pdu, uint16_t… in data_request()
600 …data(SegmentationAndReassembly sar, uint16_t sdu_size, std::unique_ptr<packet::RawBuilder> segment, in send_data()
602 std::shared_ptr<packet::RawBuilder> shared_segment(segment.release()); in send_data()
616 …_data(SegmentationAndReassembly sar, uint16_t sdu_size, std::unique_ptr<packet::RawBuilder> data) { in pend_data()
815 std::vector<std::unique_ptr<packet::RawBuilder>> segments; in OnSdu()
Dscheduler_fifo_test.cc40 auto raw_builder = std::make_unique<packet::RawBuilder>(); in CreateSdu()
Dbasic_mode_channel_data_controller_test.cc30 auto raw_builder = std::make_unique<packet::RawBuilder>(); in CreateSdu()
/system/bt/gd/l2cap/
Dl2cap_packet_fuzz_test.cc27 using bluetooth::packet::RawBuilder;
Dl2cap_packet_test.cc29 using bluetooth::packet::RawBuilder;
/system/bt/main/shim/
Dhci_layer.cc92 std::unique_ptr<bluetooth::packet::RawBuilder> MakeUniquePacket( in MakeUniquePacket()
94 bluetooth::packet::RawBuilder builder; in MakeUniquePacket()
97 auto payload = std::make_unique<bluetooth::packet::RawBuilder>(); in MakeUniquePacket()
Dl2c_api.cc389 static std::unique_ptr<bluetooth::packet::RawBuilder> MakeUniquePacket( in MakeUniquePacket()
391 bluetooth::packet::RawBuilder builder; in MakeUniquePacket()
393 auto payload = std::make_unique<bluetooth::packet::RawBuilder>(); in MakeUniquePacket()
/system/bt/gd/shim/
Dl2cap.cc68 std::unique_ptr<packet::RawBuilder> MakeUniquePacket(const uint8_t* data, size_t len) { in MakeUniquePacket()
69 packet::RawBuilder builder; in MakeUniquePacket()
71 auto payload = std::make_unique<packet::RawBuilder>(); in MakeUniquePacket()
129 void Write(std::unique_ptr<packet::RawBuilder> packet) { in Write()
201 bool Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::RawBuilder> packet);
319 …faceManager::Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::RawBuilder> packet) { in Write()
413 void Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::RawBuilder> packet);
602 void L2cap::impl::Write(ConnectionInterfaceDescriptor cid, std::unique_ptr<packet::RawBuilder> pack… in Write()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dlink_layer_socket_device.cc66 auto size_packet = bluetooth::packet::RawBuilder(); in IncomingPacket()
/system/bt/gd/hci/facade/
Dle_acl_manager_facade.cc35 using ::bluetooth::packet::RawBuilder;
182 std::unique_ptr<RawBuilder> packet = in enqueue_packet()
183 …std::make_unique<RawBuilder>(std::vector<uint8_t>(request->payload().begin(), request->payload().e… in enqueue_packet()
/system/bt/gd/security/test/
Dfake_l2cap_test.cc113 auto packet_one = std::make_unique<packet::RawBuilder>(); in TEST_F()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.cc139 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in SendAclToRemote()
140 std::make_unique<bluetooth::packet::RawBuilder>(); in SendAclToRemote()
344 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in IncomingAclPacket()
345 std::make_unique<bluetooth::packet::RawBuilder>(fragment); in IncomingAclPacket()
659 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in IncomingInquiryResponsePacket()
660 std::make_unique<bluetooth::packet::RawBuilder>(); in IncomingInquiryResponsePacket()
778 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in IncomingLeAdvertisementPacket()
779 std::make_unique<bluetooth::packet::RawBuilder>(); in IncomingLeAdvertisementPacket()
797 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in IncomingLeAdvertisementPacket()
798 std::make_unique<bluetooth::packet::RawBuilder>(); in IncomingLeAdvertisementPacket()
[all …]

123