Home
last modified time | relevance | path

Searched refs:PacketBuilder (Results 1 – 25 of 47) sorted by relevance

12

/packages/modules/Bluetooth/system/packet/tests/fuzzers/
Davrcp_packet_fuzzer.cc27 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/
Davrcp_packet.cc26 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()
Davrcp_packet.h30 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
Davrcp_browse_packet.h30 class BrowsePacketBuilder : public ::bluetooth::PacketBuilder {
35 BrowsePdu pdu, std::unique_ptr<::bluetooth::PacketBuilder> payload);
43 std::unique_ptr<::bluetooth::PacketBuilder> payload_;
Dvendor_packet.h24 class VendorPacketBuilder : public avrcp::PacketBuilder {
30 std::unique_ptr<::bluetooth::PacketBuilder> payload);
49 : PacketBuilder(ctype, 0x09, 0x00, Opcode::VENDOR), in VendorPacketBuilder()
Dpass_through_packet.h24 class PassThroughPacketBuilder : public PacketBuilder {
40 : PacketBuilder(response ? CType::ACCEPTED : CType::CONTROL, 0x09, 0x00, in PassThroughPacketBuilder()
Dvendor_packet.cc28 std::unique_ptr<::bluetooth::PacketBuilder> payload) { in MakeBuilder()
50 PacketBuilder::PushHeader(pkt); in Serialize()
Dcapabilities_packet.cc43 PacketBuilder::PushHeader(pkt); in Serialize()
139 PacketBuilder::PushHeader(pkt); in Serialize()
Davrcp_reject_packet.cc36 PacketBuilder::PushHeader(pkt); in Serialize()
Dlist_player_application_setting_attributes.cc43 PacketBuilder::PushHeader(pkt); in Serialize()
/packages/modules/Bluetooth/system/packet/tests/avrcp/
Davrcp_packet_test.cc26 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()
Davrcp_browse_packet_test.cc26 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;
Dvendor_packet_test.cc28 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/
Dpacket_test_common.h64 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/
Dpacket_builder_unittest.cc25 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 …]
Dpacket_builder.h36 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/
DPacketBuilderTest.java530 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/
Dpacket_builder.cc25 void PacketBuilder::ReserveSpace(const std::shared_ptr<Packet>& pkt, in ReserveSpace()
30 bool PacketBuilder::AddPayloadOctets(const std::shared_ptr<Packet>& pkt, in AddPayloadOctets()
Dpacket_builder.h25 class PacketBuilder {
30 virtual ~PacketBuilder() = default;
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DRateLimitTest.java59 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/
Davrcp_device_fuzz.cc104 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/
Ddevice.h70 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/
Davrcp_test_helper.h35 using AvrcpResponse = std::unique_ptr<::bluetooth::PacketBuilder>;
165 std::unique_ptr<PacketBuilder>&& arg) { in matchPacket()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java71 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/
DPacketBuilder.java81 public class PacketBuilder { class
91 public PacketBuilder(@NonNull ByteBuffer buffer) { in PacketBuilder() method in PacketBuilder

12