/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
rtpcat.cc | 40 webrtc::test::RtpPacket packet; local 41 while (input->NextPacket(&packet)) 42 RTC_CHECK(output->WritePacket(&packet));
|
constant_pcm_packet_source.cc | 17 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" 38 Packet* ConstantPcmPacketSource::NextPacket() { 41 // Fill the payload part of the packet memory with the pre-encoded value. 45 // |packet| assumes ownership of |packet_memory|. 46 Packet* packet = local 47 new Packet(packet_memory, packet_len_bytes_, next_arrival_time_ms_); 49 return packet;
|
/external/perfetto/src/tracing/core/ |
packet_stream_validator.cc | 35 protos::TrustedPacket packet; local 36 if (!packet.ParseFromBoundedZeroCopyStream(&stream, static_cast<int>(size))) 40 if (packet.optional_trusted_uid_case() != 46 if (packet.has_trace_config()) 50 if (packet.has_trace_stats())
|
null_trace_writer_unittest.cc | 38 auto packet = writer.NewTracePacket(); local 39 packet->set_for_testing()->set_str("Hello, world!");
|
/system/bt/packet/tests/base/ |
packet_builder_test.cc | 20 #include "packet.h" 30 auto packet = TestPacket::Make(); local 32 builder->Serialize(packet); 35 ASSERT_EQ(test_l2cap_data[i], (*packet)[i]); 46 auto packet = TestPacket::Make(); local 47 ASSERT_EQ(packet->GetData().capacity(), 0u); 50 builder->ReserveSpace(packet, test_l2cap_data.size()); 52 ASSERT_GE(packet->GetData().capacity(), test_l2cap_data.size()); 57 auto packet = TestPacket::Make(); local 59 builder->AddPayloadOctets1(packet, 0x01u) [all...] |
packet_test.cc | 19 #include "packet.h" 25 // Test making a packet from another packet. The new packet should have the 26 // same payload bounds as the old packet. 28 // Create a packet with payload bounds 29 auto packet = TestPacket::Make( local 32 // Create packet from bounded packet 33 auto new_packet = TestPacket::Make(packet); 44 auto packet = TestPacket::Make(test_avctp_data); local 54 auto packet = TestPacket::Make(test_l2cap_data); local 68 auto packet = local 75 auto packet = TestPacket::Make( local 97 auto packet = TestPacket::Make(test_l2cap_data); local 112 auto packet = TestPacket::Make(test_l2cap_data); local [all...] |
/external/deqp/framework/referencerenderer/ |
rrPrimitivePacket.cpp | 21 * \brief Primitive packet 40 VertexPacket* packet; local 48 packet = m_vpalloc.alloc(); 50 packet->position = position; 51 packet->pointSize = pointSize; 52 packet->primitiveID = primitiveID; 55 packet->outputs[ndx] = varyings[ndx]; 57 m_emitted.push_back(packet);
|
/external/oj-libjdwp/src/share/back/ |
inStream.h | 38 jdwpPacket packet; member in struct:PacketInputStream 42 void inStream_init(PacketInputStream *stream, jdwpPacket packet);
|
/libcore/luni/src/main/java/android/system/ |
StructIcmpHdr.java | 29 private byte[] packet; field in class:StructIcmpHdr 32 packet = new byte[8]; 50 hdr.packet[0] = ipv4 ? (byte) ICMP_ECHO : (byte) ICMP6_ECHO_REQUEST; 51 // packet[1]: Code is always zero. 52 // packet[2,3]: Checksum is computed by kernel. 53 // packet[4,5]: ID (= port) inserted by kernel. 54 hdr.packet[6] = (byte) (seq >> 8); 55 hdr.packet[7] = (byte) seq; 60 return packet.clone();
|
/system/core/debuggerd/tombstoned/ |
tombstoned_client.cpp | 45 TombstonedCrashPacket packet = {}; local 46 packet.packet_type = CrashPacketType::kDumpRequest; 47 packet.packet.dump_request.pid = pid; 48 packet.packet.dump_request.dump_type = dump_type; 49 if (TEMP_FAILURE_RETRY(write(sockfd, &packet, sizeof(packet))) != sizeof(packet)) { 50 async_safe_format_log(ANDROID_LOG_ERROR, "libc", "failed to write DumpRequest packet: %s" 84 TombstonedCrashPacket packet = {}; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/test/ |
rtp_to_text.cc | 42 NETEQTEST_RTPpacket* packet; local 53 packet = new NETEQTEST_DummyRTPpacket; 58 packet = new NETEQTEST_RTPpacket; 105 while (packet->readFromFile(inFile) >= 0) 107 // write packet headers to 108 DataLog::InsertCell(table_name, "seq", packet->sequenceNumber()); 109 DataLog::InsertCell(table_name, "ssrc", packet->SSRC()); 110 DataLog::InsertCell(table_name, "payload type", packet->payloadType()); 111 DataLog::InsertCell(table_name, "length", packet->dataLen()); 112 DataLog::InsertCell(table_name, "timestamp", packet->timeStamp()) [all...] |
/external/webrtc/webrtc/modules/remote_bitrate_estimator/tools/ |
rtp_to_text.cc | 36 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/modules/video_coding/ |
decoding_state_unittest.cc | 18 #include "webrtc/modules/video_coding/packet.h" 34 VCMPacket packet; local 35 packet.isFirstPacket = true; 36 packet.timestamp = 1; 37 packet.seqNum = 0xffff; 38 packet.frameType = kVideoFrameDelta; 39 packet.codecSpecificHeader.codec = kRtpVideoVp8; 40 packet.codecSpecificHeader.codecHeader.VP8.pictureId = 0x007F; 44 EXPECT_LE(0, frame.InsertPacket(packet, 0, kNoErrors, frame_data)); 48 packet.frameType = kVideoFrameKey 166 VCMPacket packet; local 212 VCMPacket packet; local 365 VCMPacket packet; local 400 VCMPacket packet; local 419 VCMPacket packet; local 452 VCMPacket packet; local 495 VCMPacket packet; local 550 VCMPacket packet; local [all...] |
/external/webrtc/webrtc/test/ |
rtcp_packet_parser.cc | 25 const uint8_t* packet = static_cast<const uint8_t*>(data); local 26 RTCPUtility::RTCPParserV2 parser(packet, len, true); 32 sender_report_.Set(parser.Packet().SR); 35 receiver_report_.Set(parser.Packet().RR); 38 report_block_.Set(parser.Packet().ReportBlockItem); 39 ++report_blocks_per_ssrc_[parser.Packet().ReportBlockItem.SSRC]; 45 sdes_chunk_.Set(parser.Packet().CName); 48 bye_.Set(parser.Packet().BYE); 51 app_.Set(parser.Packet().APP); 54 app_item_.Set(parser.Packet().APP) [all...] |
/system/core/lmkd/ |
liblmkd_utils.c | 35 LMKD_CTRL_PACKET packet; local 39 size = lmkd_pack_set_procprio(packet, params); 40 ret = TEMP_FAILURE_RETRY(write(sock, packet, size));
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Method/ |
BytecodesTest.java | 61 CommandPacket packet = new CommandPacket( local 64 packet.setNextValueAsClassID(classID); 65 packet.setNextValueAsMethodID(methodsInfo[i].getMethodID()); 66 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
|
/frameworks/base/tests/net/java/android/net/util/ |
IpUtilsTest.java | 58 // out = " ByteBuffer packet = ByteBuffer.wrap(new byte[] {\n " 69 // packet = (scapy.IPv6(src="2001:db8::1", dst="2001:db8::2") / 72 // print JavaPacketDefinition(str(packet)) 76 // packet = (scapy.IPv6(src="2001:db8::1", dst="2001:db8::2", tc=0x80) / 81 ByteBuffer packet = ByteBuffer.wrap(new byte[] { local 102 // Check that a valid packet has checksum 0. 103 int transportLen = packet.limit() - IPV6_HEADER_LENGTH; 104 assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); 108 int sum = getUnsignedByte(packet, sumOffset) * 256 + getUnsignedByte(packet, sumOffset + 1) 127 ByteBuffer packet = ByteBuffer.wrap(new byte[] { local [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ClassObjectReference/ |
AbstractReflectedTypeTestCase.java | 48 CommandPacket packet = new CommandPacket( local 51 packet.setNextValueAsString(array[i].typeSignature); 52 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet); 75 packet = new CommandPacket( 78 packet.setNextValueAsReferenceTypeID(typeInitID); 79 ReplyPacket reply2 = debuggeeWrapper.vmMirror.performCommand(packet); 103 packet = new CommandPacket( 106 packet.setNextValueAsReferenceTypeID(typeInitID); 107 reply = debuggeeWrapper.vmMirror.performCommand(packet); 117 packet = new CommandPacket [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/ |
ThisObjectTest.java | 122 CommandPacket packet = new CommandPacket( local 125 packet.setNextValueAsThreadID(mainThread); 126 packet.setNextValueAsLong(frameIDs[i].getFrameID()); 128 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldDatagramPacketTest.java | 35 DatagramPacket packet = new DatagramPacket(new byte[256], 256); 37 ss.receive(packet); 38 ss.send(packet); 49 DatagramPacket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLocalPort()); local 50 cs.send(packet); 52 cs.receive(packet); 54 assertEquals(packet.getPort(), ss.getLocalPort());
|
/bionic/libc/kernel/uapi/linux/ |
pg.h | 28 char packet[12]; member in struct:pg_write_hdr
|
/device/google/contexthub/util/nanotool/ |
apptohostevent.cpp | 128 const HostHubRawPacket *packet = GetTypedData(); local 129 if (!packet) { 136 + packet->dataLen)) {
|
/external/android-clat/ |
ring.c | 16 * ring.c - packet ring buffer functions 35 logmsg(ANDROID_LOG_FATAL, "packet socket failed: %s", strerror(errno)); 87 * advances to the next position in the packet ring 88 * ring - packet ring buffer 113 * reads a packet from the ring buffer and translates it 114 * read_fd - file descriptor to read original packet from 115 * write_fd - file descriptor to write translated packet to 116 * to_ipv6 - whether the packet is to be translated to ipv6 or ipv4 121 uint8_t *packet = ((uint8_t *) tp) + tp->tp_net; local 122 translate_packet(write_fd, to_ipv6, packet, tp->tp_len) [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/DebuggerOnDemand/ |
OnthrowLaunchDebugger001.java | 48 CommandPacket packet = new CommandPacket( local 52 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/ |
CapabilitiesNewTest.java | 85 * there are no extra data in the reply packet; 90 CommandPacket packet = new CommandPacket( local 94 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet);
|