Searched refs:packet (Results 51 - 75 of 674) sorted by relevance

1234567891011>>

/external/toybox/toys/pending/
H A Dtftp.c92 * Makes a request packet in BUFFER with OPCODE and file PATH of MODE
93 * and returns length of packet.
105 * Makes an acknowledgement packet in BUFFER of BLOCNO
106 * and returns packet length.
118 * Makes an error packet in BUFFER with ERRORCODE and ERRORMSG.
119 * and returns packet length.
180 // checks packet for data and updates block no
181 static inline int check_data( uint8_t *packet, uint16_t *opcode, argument
184 *opcode = (uint16_t) packet[0] << 8 | (uint16_t) packet[
193 mkpkt_data(int fd, off_t offset, uint8_t *packet, uint16_t blockno) argument
213 read_ack(int sd, uint8_t *packet, struct sockaddr_storage *server, uint16_t *port, uint16_t *blockno) argument
270 uint8_t *packet; local
377 uint8_t *packet; local
[all...]
/external/jmdns/src/javax/jmdns/impl/
H A DSocketListener.java38 DatagramPacket packet = new DatagramPacket(buf, buf.length);
40 packet.setLength(buf.length);
41 this._jmDNSImpl.getSocket().receive(packet);
46 if (this._jmDNSImpl.getLocalHost().shouldIgnorePacket(packet)) {
50 DNSIncoming msg = new DNSIncoming(packet);
55 if (packet.getPort() != DNSConstants.MDNS_PORT) {
56 this._jmDNSImpl.handleQuery(msg, packet.getAddress(), packet.getPort());
/external/valgrind/gdbserver_tests/
H A Dmchelp.stderrB.exp5 error reading packet
/external/webrtc/webrtc/call/
H A Dtransport_adapter.h24 bool SendRtp(const uint8_t* packet,
27 bool SendRtcp(const uint8_t* packet, size_t length) override;
H A Drtc_event_log2rtp_dump.cc117 // TODO(ivoc): This can be refactored once the packet interpretation
143 webrtc::test::RtpPacket packet; local
144 packet.length = rtp_packet.header().size();
145 if (packet.length > packet.kMaxPacketBufferSize) {
146 std::cout << "Skipping packet with size " << packet.length
148 << packet.kMaxPacketBufferSize << std::endl;
151 packet.original_length = rtp_packet.packet_length();
152 if (packet
183 webrtc::test::RtpPacket packet; local
[all...]
/external/webrtc/webrtc/modules/rtp_rtcp/include/
H A Drtp_header_parser.h25 // Returns true if the packet is an RTCP packet, false otherwise.
26 static bool IsRtcp(const uint8_t* packet, size_t length);
28 // Parses the packet and stores the parsed packet in |header|. Returns true on
32 virtual bool Parse(const uint8_t* packet,
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/
H A DInvokeMethod003Test.java60 CommandPacket packet = new CommandPacket(
63 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
64 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
65 packet.setNextValueAsInt(1);
66 packet.setNextValueAsByte((byte) 4); // class-only modifier.
67 packet.setNextValueAsReferenceTypeID(debuggeeTypeID);
68 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
99 packet = new CommandPacket(
102 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
103 packet
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/
H A DCreateStringTest.java57 CommandPacket packet = new CommandPacket(
60 packet.setNextValueAsString(CHECKED_STRING);
63 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
68 packet = new CommandPacket(
71 packet.setNextValueAsObjectID(stringID);
74 reply = debuggeeWrapper.vmMirror.performCommand(packet);
H A DTopLevelThreadGroupsTest.java51 * <BR>&nbsp;&nbsp; - there are no extra data in the reply packet;
59 CommandPacket packet = new CommandPacket(
62 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
83 CommandPacket packet = new CommandPacket(
86 packet.setNextValueAsThreadGroupID(rootID);
87 ReplyPacket replyParent = debuggeeWrapper.vmMirror.performCommand(packet);
94 packet = new CommandPacket(
97 packet.setNextValueAsThreadGroupID(rootID);
98 ReplyPacket replyChilds = debuggeeWrapper.vmMirror.performCommand(packet);
108 packet
[all...]
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
H A Dapp.cc22 // Application-Defined packet (APP) (RFC 3550).
59 bool App::Create(uint8_t* packet, argument
64 if (!OnBufferFull(packet, index, callback))
68 CreateHeader(sub_type_, kPacketType, HeaderLength(), packet, index);
70 ByteWriter<uint32_t>::WriteBigEndian(&packet[*index + 0], ssrc_);
71 ByteWriter<uint32_t>::WriteBigEndian(&packet[*index + 4], name_);
72 memcpy(&packet[*index + 8], data_.data(), data_.size());
H A Dapp_unittest.cc32 void BuildPacket() { packet = app.Build(); }
36 RtcpParseCommonHeader(packet->Buffer(), packet->Length(), &header));
37 // Check there is exactly one RTCP packet in the buffer.
38 EXPECT_EQ(header.BlockSize(), packet->Length());
40 header, packet->Buffer() + RtcpCommonHeader::kHeaderSizeBytes));
44 rtc::scoped_ptr<RawPacket> packet; member in class:webrtc::__anon24724::RtcpPacketAppTest
H A Dbye_unittest.cc33 void BuildPacket() { packet = bye.Build(); }
37 RtcpParseCommonHeader(packet->Buffer(), packet->Length(), &header));
38 // Check that there is exactly one RTCP packet in the buffer.
39 EXPECT_EQ(header.BlockSize(), packet->Length());
41 header, packet->Buffer() + RtcpCommonHeader::kHeaderSizeBytes));
45 rtc::scoped_ptr<RawPacket> packet; member in class:webrtc::__anon24725::RtcpPacketByeTest
67 EXPECT_EQ(16u, packet->Length()); // Header: 4, 3xSRCs: 12, Reason: 0.
85 EXPECT_EQ(28u, packet->Length()); // Header: 4, 3xSRCs: 12, Reason: 12.
118 // Test that packet creatio
[all...]
/external/webrtc/webrtc/modules/audio_coding/neteq/
H A Dpacket_buffer_unittest.cc18 #include "webrtc/modules/audio_coding/neteq/packet.h"
53 Packet* packet = new Packet; local
54 packet->header.sequenceNumber = seq_no_;
55 packet->header.timestamp = ts_;
56 packet->header.payloadType = pt_;
57 packet->header.markerBit = false;
58 packet->header.ssrc = 0x12345678;
59 packet->header.numCSRCs = 0;
60 packet->header.paddingLength = 0;
61 packet
93 Packet* packet = gen.NextPacket(payload_len); local
116 Packet* packet = gen.NextPacket(payload_len); local
137 Packet* packet = gen.NextPacket(payload_len); local
146 Packet* packet = gen.NextPacket(payload_len); local
166 Packet* packet = gen.NextPacket(payload_len); local
202 Packet* packet = gen.NextPacket(payload_len); local
206 Packet* packet = gen.NextPacket(payload_len); local
270 Packet* packet = gen.NextPacket(kPayloadLength); local
282 Packet* packet = buffer.GetNextPacket(&drop_count); local
302 Packet* packet = gen.NextPacket(payload_len); local
333 Packet* packet = gen.NextPacket(payload_len); local
358 Packet* packet = buffer.GetNextPacket(NULL); local
378 Packet* packet = NULL; local
506 Packet* packet = gen.NextPacket(payload_len); local
[all...]
H A Dcomfort_noise.cc29 int ComfortNoise::UpdateParameters(Packet* packet) { argument
30 assert(packet); // Existence is verified by caller.
33 packet->header.payloadType);
35 delete [] packet->payload;
36 delete packet;
39 decoder_database_->SetActiveCngDecoder(packet->header.payloadType);
42 packet->payload,
43 packet->payload_length);
44 delete [] packet->payload;
45 delete packet;
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/
H A DSuspendCountTest.java139 CommandPacket packet = new CommandPacket(
142 packet.setNextValueAsThreadID(threadID);
143 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
161 packet = new CommandPacket(
164 packet.setNextValueAsThreadID(threadID);
165 reply = debuggeeWrapper.vmMirror.performCommand(packet);
176 packet = new CommandPacket(
179 packet.setNextValueAsThreadID(threadID);
180 reply = debuggeeWrapper.vmMirror.performCommand(packet);
194 packet
[all...]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
H A Drtp_format_h264.cc80 LOG(LS_ERROR) << "StapA packet with incorrect NALU packet lengths.";
216 // Aggregate fragments into one packet (STAP-A).
241 // If we are going to try to aggregate more fragments into this packet
243 // NALU of this packet.
262 Packet packet = packets_.front(); local
264 if (packet.first_fragment && packet.last_fragment) {
265 // Single NAL unit packet.
266 *bytes_to_send = packet
283 Packet packet = packets_.front(); local
308 Packet packet = packets_.front(); local
[all...]
H A Drtp_format_vp9_unittest.cc75 void ParseAndCheckPacket(const uint8_t* packet, argument
81 ASSERT_TRUE(depacketizer->Parse(&parsed, packet, expected_length));
85 VerifyPayload(parsed, packet + expected_hdr_length, kExpectedPayloadLength);
149 void CheckPayload(const uint8_t* packet, argument
154 EXPECT_EQ(packet[i], payload_[payload_pos_++]);
187 // One packet:
289 // One packet:
356 // One packet:
377 // One packet:
414 // One packet
477 uint8_t packet[4] = {0}; local
486 uint8_t packet[10] = {0}; local
497 uint8_t packet[10] = {0}; local
514 uint8_t packet[13] = {0}; local
535 uint8_t packet[13] = {0}; local
556 uint8_t packet[13] = {0}; local
586 uint8_t packet[13] = {0}; local
596 uint8_t packet[13] = {0}; local
613 uint8_t packet[23] = {0}; local
637 uint8_t packet[2] = {0}; local
647 uint8_t packet[2] = {0}; local
659 uint8_t packet[20] = {0}; local
678 uint8_t packet[1] = {0}; local
685 uint8_t packet[kHeaderLength] = {0}; local
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/InterfaceType/
H A DInvokeMethodTest.java53 CommandPacket packet = new CommandPacket(
56 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY);
57 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
58 packet.setNextValueAsInt(1); // number of modifiers.
59 packet.setNextValueAsByte(EventMod.ModKind.ClassOnly); // class-only modifier.
60 packet.setNextValueAsReferenceTypeID(debuggeeTypeID);
61 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
105 packet = new CommandPacket(
108 packet.setNextValueAsInterfaceID(debuggeeInterfaceTypeID);
109 packet
[all...]
/external/autotest/server/cros/chaos_lib/
H A Dchaos_capture_analyzer.py11 """ Class to manage the packet capture file access from a chaos test. """
18 Gets the packets from a trace file as Pyshark packet objects for
24 of packet or not.
26 @returns List of pyshark packet objects.
39 Gets the packet that appears index |index| in the capture file.
43 of the packet or not.
45 @returns pyshark packet object or None.
57 def get_packet_after(self, packet):
59 Gets the packet that appears next in the capture file.
61 @param packet
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/
H A DJDWPStackFrameTestCase.java92 CommandPacket packet = new CommandPacket(
95 packet.setNextValueAsThreadID(threadID);
97 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
105 CommandPacket packet = new CommandPacket(
108 packet.setNextValueAsThreadID(threadID);
109 packet.setNextValueAsInt(startFrame);
110 packet.setNextValueAsInt(length);
112 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
126 CommandPacket packet = new CommandPacket(
129 packet
[all...]
/external/deqp/framework/referencerenderer/
H A DrrShadingContext.hpp47 float* fragmentDepths; //!< Fragment packet depths. Pointer will be NULL if there is no depth buffer. Each sample has per-sample depth values
65 tcu::Vector<T, 4> readPointVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) argument
68 DE_UNREF(packet);
74 tcu::Vector<T, 4> readLineVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) argument
76 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>()
77 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>();
81 tcu::Vector<T, 4> readTriangleVarying (const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) argument
83 return packet.barycentric[0][fragNdx] * context.varyings[0][varyingLoc].get<T>()
84 + packet.barycentric[1][fragNdx] * context.varyings[1][varyingLoc].get<T>()
85 + packet
89 readVarying(const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc, int fragNdx) argument
129 dFdxVarying(tcu::Vector<T, 4> outFragmentdFdx[4], const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc) argument
143 dFdyVarying(tcu::Vector<T, 4> outFragmentdFdy[4], const FragmentPacket& packet, const FragmentShadingContext& context, int varyingLoc) argument
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ArrayType/
H A DNewInstanceTest.java72 CommandPacket packet = new CommandPacket(
75 packet.setNextValueAsString(testedArrayRefs[i]);
76 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
99 packet = new CommandPacket(
102 packet.setNextValueAsReferenceTypeID(typeArrayID);
103 packet.setNextValueAsInt(10);
104 reply = debuggeeWrapper.vmMirror.performCommand(packet);
121 packet = new CommandPacket(
124 packet.setNextValueAsObjectID(newArray.objectID);
125 reply = debuggeeWrapper.vmMirror.performCommand(packet);
[all...]
/external/libopus/tests/
H A Dtest_opus_api.c89 unsigned char packet[1276]; local
188 VG_UNDEF(packet,sizeof(packet));
189 packet[0]=63<<2;packet[1]=packet[2]=0;
190 if(opus_decode(dec, packet, 3, sbuf, 960, 0)!=960)test_failed();
196 packet[0]=1;
197 if(opus_decode(dec, packet, 1, sbuf, 960, 0)!=960)test_failed();
247 VG_UNDEF(packet,sizeo
348 unsigned char packet[1276]; local
712 unsigned char packet[1276]; local
1072 unsigned char packet[1276]; local
1441 unsigned char *packet; local
[all...]
/external/v8/benchmarks/
H A Drichards.js83 * These two constants specify how many times a packet is queued and
236 * Add the specified packet to the end of the worklist used by the task
237 * associated with the packet and make the task runnable if it is currently
239 * @param {Packet} packet the packet to add
241 Scheduler.prototype.queue = function (packet) {
242 var t = this.blocks[packet.id];
245 packet.link = null;
246 packet.id = this.currentId;
247 return t.checkPriorityAdd(this.currentTcb, packet);
[all...]
/external/webrtc/webrtc/test/
H A Drtp_file_writer.cc41 bool WritePacket(const RtpPacket* packet) override {
42 uint16_t len = static_cast<uint16_t>(packet->length + kPacketHeaderSize);
43 uint16_t plen = static_cast<uint16_t>(packet->original_length);
44 uint32_t offset = packet->time_ms;
48 return fwrite(packet->data, sizeof(uint8_t), packet->length, file_) ==
49 packet->length;

Completed in 597 milliseconds

1234567891011>>