Searched refs:packet (Results 26 - 50 of 674) sorted by relevance

1234567891011>>

/external/webrtc/webrtc/modules/audio_coding/neteq/
H A Dpacket_buffer.cc12 // an STL list. The list is kept sorted at all times so that the next packet to
26 // Operator() returns true when |packet| goes before |new_packet|.
32 bool operator()(Packet* packet) { argument
33 return (*new_packet_ >= *packet);
57 int PacketBuffer::InsertPacket(Packet* packet) { argument
58 if (!packet || !packet->payload) {
59 if (packet) {
60 delete packet;
62 LOG(LS_WARNING) << "InsertPacket invalid packet";
113 Packet* packet = packet_list->front(); local
190 Packet* packet = buffer_.front(); local
253 Packet* packet = (*it); local
[all...]
/external/webrtc/webrtc/modules/remote_bitrate_estimator/tools/
H A Drtp_to_text.cc36 webrtc::test::RtpPacket packet; local
37 while (rtp_reader->NextPacket(&packet)) {
39 parser->Parse(packet.data, packet.length, &header);
46 ss << static_cast<int64_t>(packet.time_ms) * 1000000;
55 packet.time_ms,
58 packet.length,
59 packet.original_length);
/external/webrtc/webrtc/test/
H A Dnull_transport.h22 bool SendRtp(const uint8_t* packet,
25 bool SendRtcp(const uint8_t* packet, size_t length) override;
H A Drtp_file_reader_unittest.cc33 test::RtpPacket packet; local
35 while (rtp_packet_source_->NextPacket(&packet)) {
37 EXPECT_LT(packet.length, packet.original_length);
39 EXPECT_EQ(packet.length, packet.original_length);
74 test::RtpPacket packet; local
75 while (rtp_packet_source_->NextPacket(&packet)) {
76 EXPECT_EQ(packet.length, packet
84 test::RtpPacket packet; local
[all...]
H A Drtp_rtcp_observer.h42 virtual Action OnSendRtp(const uint8_t* packet, size_t length) { argument
46 virtual Action OnSendRtcp(const uint8_t* packet, size_t length) { argument
50 virtual Action OnReceiveRtp(const uint8_t* packet, size_t length) { argument
54 virtual Action OnReceiveRtcp(const uint8_t* packet, size_t length) { argument
91 bool SendRtp(const uint8_t* packet,
94 EXPECT_FALSE(RtpHeaderParser::IsRtcp(packet, length));
98 action = observer_->OnSendRtp(packet, length);
100 action = observer_->OnReceiveRtp(packet, length);
105 // Drop packet silently.
108 return test::DirectTransport::SendRtp(packet, lengt
[all...]
/external/webrtc/webrtc/
H A Dtransport.h30 virtual bool SendRtp(const uint8_t* packet,
33 virtual bool SendRtcp(const uint8_t* packet, size_t length) = 0;
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/
H A DInvokeMethodTest.java61 CommandPacket packet = new CommandPacket(
64 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
65 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
66 packet.setNextValueAsInt(1);
67 packet.setNextValueAsByte((byte) 5);
68 packet.setNextValueAsString("*.InvokeMethodDebuggee");
71 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
108 CommandPacket packet = new CommandPacket(
111 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
112 packet
[all...]
H A DInvokeMethod002Test.java58 CommandPacket packet = new CommandPacket(
61 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
62 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
63 packet.setNextValueAsInt(1);
64 packet.setNextValueAsByte((byte) 4); // class-only modifier.
65 packet.setNextValueAsReferenceTypeID(debuggeeTypeID);
66 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
97 packet = new CommandPacket(
100 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
101 packet
[all...]
/external/autotest/client/cros/
H A Ddhcp_packet.py8 DhcpPacket is a class that represents a single DHCP packet and contains some
17 packet = dhcp_packet.create_offer_packet(transaction_id,
49 Represents an option in a DHCP packet. Options may or may not be present in any
50 given packet, depending on the configurations of the client and the server.
60 Every DHCP option has a number that goes into the packet to indicate
246 Represents a required field in a DHCP packet. Similar to Option, we'll
255 binary packet string. |offset| is used during parsing, along with
293 # These are required in every DHCP packet. Without these fields, the
294 # packet will not even pass DhcpPacket.is_valid
385 # The op field in an ipv4 packet i
[all...]
/external/libcups/cups/
H A Dsnmp.c34 cups_snmp_t *packet);
36 cups_snmp_t *packet);
65 static void snmp_set_error(cups_snmp_t *packet,
160 _cupsSNMPIsOID(cups_snmp_t *packet, /* I - Response packet */ argument
170 DEBUG_printf(("4_cupsSNMPIsOID(packet=%p, oid=%p)", packet, oid));
172 if (!packet || !oid)
184 i < CUPS_SNMP_MAX_OID && oid[i] >= 0 && packet->object_name[i] >= 0;
186 if (oid[i] != packet
208 _cupsSNMPIsOIDPrefixed( cups_snmp_t *packet, const int *prefix) argument
343 _cupsSNMPRead(int fd, cups_snmp_t *packet, double timeout) argument
559 cups_snmp_t packet; /* Current response packet */ local
648 cups_snmp_t packet; /* SNMP message packet */ local
923 asn1_decode_snmp(unsigned char *buffer, size_t len, cups_snmp_t *packet) argument
1081 asn1_encode_snmp(unsigned char *buffer, size_t bufsize, cups_snmp_t *packet) argument
1664 snmp_set_error(cups_snmp_t *packet, const char *message) argument
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/
H A DSetValuesTest.java66 CommandPacket packet = new CommandPacket(StackFrameCommandSet.CommandSetID,
68 packet.setNextValueAsThreadID(invalidThreadID);
69 packet.setNextValueAsFrameID(0);
70 packet.setNextValueAsInt(0);
71 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.performCommand(packet);
86 CommandPacket packet = new CommandPacket(StackFrameCommandSet.CommandSetID,
88 packet.setNextValueAsThreadID(threadID);
89 packet.setNextValueAsFrameID(0);
90 packet.setNextValueAsInt(0);
91 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.performCommand(packet);
[all...]
H A DGetValuesTest.java65 CommandPacket packet = new CommandPacket(StackFrameCommandSet.CommandSetID,
67 packet.setNextValueAsThreadID(invalidThreadID);
68 packet.setNextValueAsFrameID(0);
69 packet.setNextValueAsInt(0);
70 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.performCommand(packet);
85 CommandPacket packet = new CommandPacket(StackFrameCommandSet.CommandSetID,
87 packet.setNextValueAsThreadID(threadID);
88 packet.setNextValueAsFrameID(0);
89 packet.setNextValueAsInt(0);
90 ReplyPacket replyPacket = debuggeeWrapper.vmMirror.performCommand(packet);
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ArrayReference/
H A DSetValuesTest.java57 CommandPacket packet = new CommandPacket(
60 packet.setNextValueAsReferenceTypeID(classID);
61 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
100 CommandPacket packet = new CommandPacket(
103 packet.setNextValueAsReferenceTypeID(classID);
104 packet.setNextValueAsInt(1);
105 packet.setNextValueAsFieldID(fieldID);
107 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
122 CommandPacket packet = new CommandPacket(
125 packet
[all...]
H A DLengthTest.java57 CommandPacket packet = new CommandPacket(
60 packet.setNextValueAsReferenceTypeID(classID);
61 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
90 CommandPacket packet = new CommandPacket(
93 packet.setNextValueAsReferenceTypeID(classID);
94 packet.setNextValueAsInt(1);
95 packet.setNextValueAsFieldID(fieldID);
96 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
107 packet = new CommandPacket(
110 packet
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ClassType/
H A DInvokeMethod003Test.java58 CommandPacket packet = new CommandPacket(
61 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
62 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
63 packet.setNextValueAsInt(1);
64 packet.setNextValueAsByte((byte) 4); // class-only modifier.
65 packet.setNextValueAsReferenceTypeID(debuggeeTypeID);
66 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
97 packet = new CommandPacket(
100 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
101 packet
[all...]
H A DNewInstance002Test.java59 CommandPacket packet = new CommandPacket(
62 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
63 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
64 packet.setNextValueAsInt(1);
65 packet.setNextValueAsByte((byte) 4); // class-only modifier.
66 packet.setNextValueAsReferenceTypeID(debuggeeTypeID);
67 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
98 packet = new CommandPacket(
101 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
102 packet
[all...]
H A DInvokeMethodTest.java67 CommandPacket packet = new CommandPacket(
71 packet.setNextValueAsString(classSig);
72 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
92 packet = new CommandPacket(
95 packet.setNextValueAsClassID(typeID);
96 reply = debuggeeWrapper.vmMirror.performCommand(packet);
116 packet = new CommandPacket(
119 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
120 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
121 packet
[all...]
H A DInvokeMethod002Test.java59 CommandPacket packet = new CommandPacket(
63 packet.setNextValueAsString(classSig);
65 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
85 packet = new CommandPacket(
88 packet.setNextValueAsClassID(classID);
90 reply = debuggeeWrapper.vmMirror.performCommand(packet);
110 packet = new CommandPacket(
113 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
114 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
115 packet
[all...]
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
H A Dextended_jitter_report_unittest.cc28 void BuildPacket() { packet = ij.Build(); }
32 RtcpParseCommonHeader(packet->Buffer(), packet->Length(), &header));
33 EXPECT_EQ(header.BlockSize(), packet->Length());
35 header, packet->Buffer() + RtcpCommonHeader::kHeaderSizeBytes));
39 rtc::scoped_ptr<RawPacket> packet; member in class:webrtc::__anon24727::RtcpPacketExtendedJitterReportTest
47 // No initialization because packet is empty.
88 RtcpParseCommonHeader(packet->Buffer(), packet->Length(), &header);
94 header, packet
[all...]
H A Dcompound_packet.cc16 bool CompoundPacket::Create(uint8_t* packet, argument
/external/webrtc/webrtc/modules/rtp_rtcp/source/
H A Dfec_test_helper.cc46 // Creates a new RtpPacket with the RED header added to the packet.
47 RtpPacket* FrameGenerator::BuildMediaRedPacket(const RtpPacket* packet) { argument
48 const size_t kHeaderLength = packet->header.header.headerLength;
50 red_packet->header = packet->header;
51 red_packet->length = packet->length + 1; // 1 byte RED header.
54 memcpy(red_packet->data, packet->data, kHeaderLength);
56 memcpy(red_packet->data + kHeaderLength + 1, packet->data + kHeaderLength,
57 packet->length - kHeaderLength);
63 // header. Finally replaces the payload with the content of |packet->data|.
64 RtpPacket* FrameGenerator::BuildFecRedPacket(const Packet* packet) { argument
[all...]
H A Drtp_format_vp8_unittest.cc128 // size fits exactly in the maximum packet size.
276 // Frag start only true for first packet in equal size mode.
302 // EqualSize mode => First packet full; other not.
305 // Frag start only true for first packet in equal size mode.
335 // Expect one single packet of payload_size() + 4 bytes header.
364 // Expect one single packet of payload_size() + 3 bytes header.
394 // Expect one single packet of payload_size() + 3 bytes header.
429 uint8_t packet[4] = {0}; local
430 packet[0] = 0x14; // Binary 0001 0100; S = 1, PartID = 4.
431 packet[
448 uint8_t packet[10] = {0}; local
482 uint8_t packet[13] = {0}; local
500 uint8_t packet[10] = {0}; local
519 uint8_t packet[10] = {0}; local
537 uint8_t packet[10] = {0}; local
556 uint8_t packet[4] = {0}; local
569 uint8_t packet[20] = {0}; local
[all...]
/external/ltp/testcases/kernel/ipc/ipc_stress/
H A Dpipe_test_02.c74 * VALID_PACKET: value sent with each packet, used to verify that the
141 int last; /* Indicates last packet when set */
142 long valid; /* Insure packet was not garbled */
145 unsigned char data; /* Data sent in packet */
179 data_packet packet; local
270 packet.last = 0;
271 packet.valid = VALID_PACKET;
275 packet.seq_number = ++packets_sent;
276 packet.data = data++;
277 packet
394 data_packet packet; /* Packet used to transmiting data */ local
[all...]
/external/dnsmasq/contrib/wrt/
H A Ddhcp_lease_time.c76 return NULL; /* malformed packet */
83 return NULL; /* malformed packet */
86 return NULL; /* malformed packet */
137 struct dhcp_packet packet; local
138 unsigned char *p = packet.options;
157 memset(&packet, 0, sizeof(packet));
159 packet.hlen = 0;
160 packet.htype = 0;
162 packet
[all...]
/external/kernel-headers/original/uapi/linux/
H A Dpg.h5 pg.h defines the user interface to the generic ATAPI packet
49 char packet[12]; /* packet command */ member in struct:pg_write_hdr

Completed in 394 milliseconds

1234567891011>>