/packages/modules/Bluetooth/system/packet/tests/fuzzers/ |
D | avrcp_packet_fuzzer.cc | 27 class TestPacketBuilder : public PacketBuilder { 36 using PacketBuilder::AddPayloadOctets1; 37 using PacketBuilder::AddPayloadOctets2; 38 using PacketBuilder::AddPayloadOctets3; 39 using PacketBuilder::AddPayloadOctets4; 40 using PacketBuilder::AddPayloadOctets6; 41 using PacketBuilder::AddPayloadOctets8; 42 using PacketBuilder::ReserveSpace; 77 auto builder = PacketBuilder::MakeBuilder( in LLVMFuzzerTestOneInput()
|
/packages/modules/Bluetooth/system/packet/avrcp/ |
D | avrcp_packet.cc | 26 std::unique_ptr<PacketBuilder> PacketBuilder::MakeBuilder( in MakeBuilder() 28 std::unique_ptr<::bluetooth::PacketBuilder> payload) { in MakeBuilder() 29 std::unique_ptr<PacketBuilder> builder = std::unique_ptr<PacketBuilder>( in MakeBuilder() 30 new PacketBuilder(type, subunit_type, subunit_id, opcode)); in MakeBuilder() 37 size_t PacketBuilder::size() const { in size() 42 bool PacketBuilder::Serialize(const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize() 52 void PacketBuilder::PushHeader( in PushHeader() 59 bool PacketBuilder::PushCompanyId( in PushCompanyId()
|
D | avrcp_packet.h | 30 class PacketBuilder : public ::bluetooth::PacketBuilder { 32 virtual ~PacketBuilder() = default; 34 static std::unique_ptr<PacketBuilder> MakeBuilder( 36 std::unique_ptr<::bluetooth::PacketBuilder> packet); 47 std::unique_ptr<::bluetooth::PacketBuilder> payload_; 53 PacketBuilder(CType type, uint8_t subunit_type, uint8_t subunit_id, in PacketBuilder() function
|
D | avrcp_browse_packet.h | 30 class BrowsePacketBuilder : public ::bluetooth::PacketBuilder { 35 BrowsePdu pdu, std::unique_ptr<::bluetooth::PacketBuilder> payload); 43 std::unique_ptr<::bluetooth::PacketBuilder> payload_;
|
D | vendor_packet.h | 24 class VendorPacketBuilder : public avrcp::PacketBuilder { 30 std::unique_ptr<::bluetooth::PacketBuilder> payload); 49 : PacketBuilder(ctype, 0x09, 0x00, Opcode::VENDOR), in VendorPacketBuilder()
|
D | pass_through_packet.h | 24 class PassThroughPacketBuilder : public PacketBuilder { 40 : PacketBuilder(response ? CType::ACCEPTED : CType::CONTROL, 0x09, 0x00, in PassThroughPacketBuilder()
|
D | vendor_packet.cc | 28 std::unique_ptr<::bluetooth::PacketBuilder> payload) { in MakeBuilder() 50 PacketBuilder::PushHeader(pkt); in Serialize()
|
D | capabilities_packet.cc | 43 PacketBuilder::PushHeader(pkt); in Serialize() 139 PacketBuilder::PushHeader(pkt); in Serialize()
|
D | avrcp_reject_packet.cc | 36 PacketBuilder::PushHeader(pkt); in Serialize()
|
D | list_player_application_setting_attributes.cc | 43 PacketBuilder::PushHeader(pkt); in Serialize()
|
/packages/modules/Bluetooth/system/packet/tests/avrcp/ |
D | avrcp_packet_test.cc | 26 class TestPacketBuilder : public PacketBuilder { 35 using PacketBuilder::ReserveSpace; 36 using PacketBuilder::AddPayloadOctets1; 37 using PacketBuilder::AddPayloadOctets2; 38 using PacketBuilder::AddPayloadOctets3; 39 using PacketBuilder::AddPayloadOctets4; 40 using PacketBuilder::AddPayloadOctets6; 41 using PacketBuilder::AddPayloadOctets8; 70 auto builder = PacketBuilder::MakeBuilder( in TEST()
|
D | avrcp_browse_packet_test.cc | 26 class TestPacketBuilder : public PacketBuilder { 35 using PacketBuilder::ReserveSpace; 36 using PacketBuilder::AddPayloadOctets1; 37 using PacketBuilder::AddPayloadOctets2; 38 using PacketBuilder::AddPayloadOctets3; 39 using PacketBuilder::AddPayloadOctets4; 40 using PacketBuilder::AddPayloadOctets6; 41 using PacketBuilder::AddPayloadOctets8;
|
D | vendor_packet_test.cc | 28 class TestPacketBuilder : public PacketBuilder { 37 using PacketBuilder::ReserveSpace; 38 using PacketBuilder::AddPayloadOctets1; 39 using PacketBuilder::AddPayloadOctets2; 40 using PacketBuilder::AddPayloadOctets3; 41 using PacketBuilder::AddPayloadOctets4; 42 using PacketBuilder::AddPayloadOctets6; 43 using PacketBuilder::AddPayloadOctets8;
|
/packages/modules/Bluetooth/system/packet/tests/base/ |
D | packet_test_common.h | 64 class TestPacketBuilder : public PacketBuilder { 73 using PacketBuilder::ReserveSpace; 74 using PacketBuilder::AddPayloadOctets1; 75 using PacketBuilder::AddPayloadOctets2; 76 using PacketBuilder::AddPayloadOctets3; 77 using PacketBuilder::AddPayloadOctets4; 78 using PacketBuilder::AddPayloadOctets6; 79 using PacketBuilder::AddPayloadOctets8;
|
/packages/modules/Bluetooth/system/gd/packet/ |
D | packet_builder_unittest.cc | 25 using bluetooth::packet::PacketBuilder; 53 class EndianBuilder : public PacketBuilder<little_endian> { 72 PacketBuilder<little_endian>::insert(signature_, it); in Serialize() 73 PacketBuilder<little_endian>::insert(byte_, it); in Serialize() 74 PacketBuilder<little_endian>::insert(two_bytes_, it); in Serialize() 75 PacketBuilder<little_endian>::insert(four_bytes_, it); in Serialize() 76 PacketBuilder<little_endian>::insert(eight_bytes_, it); in Serialize() 100 class VectorBuilder : public PacketBuilder<true> { 122 PacketBuilder<true>::insert_vector(vect_, it); in Serialize() 130 class InsertElementsBuilder : public PacketBuilder<true> { [all …]
|
D | packet_builder.h | 36 class PacketBuilder : public BasePacketBuilder, protected EndianInserter<little_endian> { 38 PacketBuilder() = default; 39 virtual ~PacketBuilder() = default;
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketBuilderTest.java | 530 final ByteBuffer buffer = PacketBuilder.allocate(hasEther, l3proto, l4proto, in buildPacket() 532 final PacketBuilder packetBuilder = new PacketBuilder(buffer); in buildPacket() 879 final ByteBuffer buffer = PacketBuilder.allocate(false /* hasEther */, IPPROTO_IP, in testFinalizePacketWithoutIpv4Header() 881 final PacketBuilder packetBuilder = new PacketBuilder(buffer); in testFinalizePacketWithoutIpv4Header() 890 final ByteBuffer buffer = PacketBuilder.allocate(false /* hasEther */, IPPROTO_IP, in testFinalizePacketWithoutL4Header() 892 final PacketBuilder packetBuilder = new PacketBuilder(buffer); in testFinalizePacketWithoutL4Header() 901 final PacketBuilder packetBuilder = new PacketBuilder(ByteBuffer.allocate(1)); in testWriteL2HeaderToInsufficientBuffer() 908 final PacketBuilder packetBuilder = new PacketBuilder(ByteBuffer.allocate(1)); in testWriteIpv4HeaderToInsufficientBuffer() 916 final PacketBuilder packetBuilder = new PacketBuilder(ByteBuffer.allocate(1)); in testWriteTcpHeaderToInsufficientBuffer() 924 final PacketBuilder packetBuilder = new PacketBuilder(ByteBuffer.allocate(1)); in testWriteUdpHeaderToInsufficientBuffer()
|
/packages/modules/Bluetooth/system/packet/base/ |
D | packet_builder.cc | 25 void PacketBuilder::ReserveSpace(const std::shared_ptr<Packet>& pkt, in ReserveSpace() 30 bool PacketBuilder::AddPayloadOctets(const std::shared_ptr<Packet>& pkt, in AddPayloadOctets()
|
D | packet_builder.h | 25 class PacketBuilder { 30 virtual ~PacketBuilder() = default;
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | RateLimitTest.java | 59 import com.android.net.module.util.PacketBuilder; 208 final ByteBuffer buffer = PacketBuilder.allocate(false, IPPROTO_IP, IPPROTO_UDP, in sendPacketsToTunInterfaceForDuration() 210 final PacketBuilder builder = new PacketBuilder(buffer); in sendPacketsToTunInterfaceForDuration()
|
/packages/modules/Bluetooth/system/profile/avrcp/tests/avrcp_device_fuzz/ |
D | avrcp_device_fuzz.cc | 104 void Callback(uint8_t, bool, std::unique_ptr<::bluetooth::PacketBuilder>) {} in Callback() argument 116 [](uint8_t, bool, std::unique_ptr<::bluetooth::PacketBuilder>) {}), in LLVMFuzzerTestOneInput() argument
|
/packages/modules/Bluetooth/system/profile/avrcp/ |
D | device.h | 70 std::unique_ptr<::bluetooth::PacketBuilder> message)> 326 std::unique_ptr<::bluetooth::PacketBuilder> message) { in send_message() 351 std::unique_ptr<::bluetooth::PacketBuilder> message)>
|
/packages/modules/Bluetooth/system/profile/avrcp/tests/ |
D | avrcp_test_helper.h | 35 using AvrcpResponse = std::unique_ptr<::bluetooth::PacketBuilder>; 165 std::unique_ptr<PacketBuilder>&& arg) { in matchPacket()
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 71 import com.android.net.module.util.PacketBuilder; 694 final ByteBuffer buffer = PacketBuilder.allocate(hasEther, ipProto, IPPROTO_UDP, 696 final PacketBuilder packetBuilder = new PacketBuilder(buffer); 742 final ByteBuffer buffer = PacketBuilder.allocate(hasEther, ipProto, IPPROTO_TCP, 744 final PacketBuilder packetBuilder = new PacketBuilder(buffer);
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | PacketBuilder.java | 81 public class PacketBuilder { class 91 public PacketBuilder(@NonNull ByteBuffer buffer) { in PacketBuilder() method in PacketBuilder
|