Home
last modified time | relevance | path

Searched refs:RawBuilder (Results 1 – 25 of 61) 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()
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()
69 return std::make_unique<RawBuilder>(std::vector<uint8_t>(bytes.begin(), bytes.end())); in PYBIND11_MODULE()
71 .def("Serialize", [](RawBuilder& builder) { in PYBIND11_MODULE()
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()
/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;
Dhci_layer_test.cc33 using bluetooth::packet::RawBuilder;
749 auto acl_payload = std::make_unique<RawBuilder>(); in TEST_F()
769 auto acl_payload2 = std::make_unique<RawBuilder>(); in TEST_F()
796 auto acl_payload = std::make_unique<RawBuilder>(); in TEST_F()
834 auto acl_payload = std::make_unique<RawBuilder>(); in TEST_F()
857 auto iso_payload = std::make_unique<RawBuilder>(); in TEST_F()
893 auto iso_payload = std::make_unique<RawBuilder>(); in TEST_F()
/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()
/system/bt/gd/l2cap/
Dl2cap_packet_fuzz_test.cc27 using bluetooth::packet::RawBuilder;
/system/bt/main/shim/
Dacl.h91 std::unique_ptr<packet::RawBuilder> packet);
106 std::unique_ptr<packet::RawBuilder> packet);
Dhelpers.h106 inline std::unique_ptr<bluetooth::packet::RawBuilder> MakeUniquePacket( in MakeUniquePacket()
108 bluetooth::packet::RawBuilder builder; in MakeUniquePacket()
110 auto payload = std::make_unique<bluetooth::packet::RawBuilder>(); in MakeUniquePacket()
Dacl_api.cc58 std::unique_ptr<bluetooth::packet::RawBuilder> packet = MakeUniquePacket( in ACL_WriteData()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dlink_layer_socket_device.cc68 auto size_packet = bluetooth::packet::RawBuilder(); in IncomingPacket()
/system/bt/gd/cert/
Dpy_hal.py28 from bluetooth_packets_python3 import RawBuilder
63 acl = AclBuilder(self.handle, pb_flag, b_flag, RawBuilder(data))
144 acl = AclBuilder(handle, pb_flag, b_flag, RawBuilder(data))
Dpy_hci.py49 from bluetooth_packets_python3 import RawBuilder
61 acl = AclBuilder(self.handle, pb_flag, b_flag, RawBuilder(data))
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.cc166 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in SendAclToRemote()
167 std::make_unique<bluetooth::packet::RawBuilder>(); in SendAclToRemote()
407 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in IncomingAclPacket()
408 std::make_unique<bluetooth::packet::RawBuilder>(fragment); in IncomingAclPacket()
723 std::unique_ptr<bluetooth::packet::RawBuilder> raw_builder_ptr = in IncomingInquiryResponsePacket()
724 std::make_unique<bluetooth::packet::RawBuilder>(); in IncomingInquiryResponsePacket()
885 std::make_unique<bluetooth::packet::RawBuilder>( in IncomingIsoPacket()
892 std::make_unique<bluetooth::packet::RawBuilder>( in IncomingIsoPacket()
904 std::make_unique<bluetooth::packet::RawBuilder>( in IncomingIsoPacket()
912 std::make_unique<bluetooth::packet::RawBuilder>( in IncomingIsoPacket()
[all …]
/system/bt/gd/security/test/
Dfake_l2cap_test.cc113 auto packet_one = std::make_unique<packet::RawBuilder>(); in TEST_F()
/system/bt/gd/hci/facade/
Dle_acl_manager_facade.cc35 using ::bluetooth::packet::RawBuilder;
183 std::unique_ptr<RawBuilder> packet = in enqueue_packet()
184 …std::make_unique<RawBuilder>(std::vector<uint8_t>(request->payload().begin(), request->payload().e… in enqueue_packet()

123