/system/bt/gd/packet/ |
D | raw_builder.cc | 30 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 …]
|
D | raw_builder.h | 29 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;
|
D | raw_builder_unittest.cc | 47 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()
|
D | fragmenting_inserter.h | 32 …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_;
|
D | fragmenting_inserter_unittest.cc | 33 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()
|
D | fragmenting_inserter.cc | 25 … 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()
|
D | python3_module.cc | 61 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/ |
D | acl_builder_test.cc | 27 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()
|
D | hci_packets_fuzz_test.cc | 27 using bluetooth::packet::RawBuilder;
|
/system/bt/gd/hci/acl_manager/ |
D | acl_fragmenter.cc | 29 std::vector<std::unique_ptr<packet::RawBuilder>> AclFragmenter::GetFragments() { in GetFragments() 30 std::vector<std::unique_ptr<packet::RawBuilder>> to_return; in GetFragments()
|
D | acl_fragmenter.h | 37 std::vector<std::unique_ptr<packet::RawBuilder>> GetFragments();
|
/system/bt/gd/l2cap/classic/cert/ |
D | l2cap_performance_test.py | 18 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/ |
D | enhanced_retransmission_mode_channel_data_controller.h | 85 …CopyablePacketBuilder(std::shared_ptr<packet::RawBuilder> builder) : builder_(std::move(builder)) … in CopyablePacketBuilder() 92 std::shared_ptr<packet::RawBuilder> builder_;
|
D | enhanced_retransmission_mode_channel_data_controller.cc | 83 …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()
|
D | scheduler_fifo_test.cc | 40 auto raw_builder = std::make_unique<packet::RawBuilder>(); in CreateSdu()
|
D | basic_mode_channel_data_controller_test.cc | 30 auto raw_builder = std::make_unique<packet::RawBuilder>(); in CreateSdu()
|
/system/bt/gd/l2cap/ |
D | l2cap_packet_fuzz_test.cc | 27 using bluetooth::packet::RawBuilder;
|
D | l2cap_packet_test.cc | 29 using bluetooth::packet::RawBuilder;
|
/system/bt/main/shim/ |
D | hci_layer.cc | 92 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()
|
D | l2c_api.cc | 389 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/ |
D | l2cap.cc | 68 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/ |
D | link_layer_socket_device.cc | 66 auto size_packet = bluetooth::packet::RawBuilder(); in IncomingPacket()
|
/system/bt/gd/hci/facade/ |
D | le_acl_manager_facade.cc | 35 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/ |
D | fake_l2cap_test.cc | 113 auto packet_one = std::make_unique<packet::RawBuilder>(); in TEST_F()
|
/system/bt/vendor_libs/test_vendor_lib/model/controller/ |
D | link_layer_controller.cc | 139 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 …]
|