/external/chromium_org/remoting/codec/ |
audio_encoder_verbatim.cc | 17 scoped_ptr<AudioPacket> packet) { 18 DCHECK_EQ(AudioPacket::ENCODING_RAW, packet->encoding()); 19 DCHECK_EQ(1, packet->data_size()); 20 DCHECK_NE(AudioPacket::SAMPLING_RATE_INVALID, packet->sampling_rate()); 21 DCHECK_NE(AudioPacket::BYTES_PER_SAMPLE_INVALID, packet->bytes_per_sample()); 22 DCHECK_NE(AudioPacket::CHANNELS_INVALID, packet->channels()); 23 return packet.Pass();
|
video_encoder_helper_unittest.cc | 30 scoped_ptr<VideoPacket> packet(helper.CreateVideoPacket(frame)); 32 ASSERT_TRUE(packet->has_format()); 33 EXPECT_FALSE(packet->format().has_encoding()); 34 EXPECT_TRUE(packet->format().has_screen_width()); 35 EXPECT_TRUE(packet->format().has_screen_height()); 36 EXPECT_TRUE(packet->format().has_x_dpi()); 37 EXPECT_TRUE(packet->format().has_y_dpi()); 39 EXPECT_TRUE(packet->has_capture_time_ms()); 40 EXPECT_EQ(1, packet->dirty_rects().size()); 42 ASSERT_TRUE(packet->has_use_desktop_shape()) [all...] |
audio_decoder_verbatim.cc | 19 scoped_ptr<AudioPacket> packet) { 20 // Return a null scoped_ptr if we get a corrupted packet. 21 if ((packet->encoding() != AudioPacket::ENCODING_RAW) || 22 (packet->data_size() != 1) || 23 (packet->sampling_rate() == AudioPacket::SAMPLING_RATE_INVALID) || 24 (packet->bytes_per_sample() != AudioPacket::BYTES_PER_SAMPLE_2) || 25 (packet->channels() != AudioPacket::CHANNELS_STEREO) || 26 (packet->data(0).size() % 28 LOG(WARNING) << "Verbatim decoder received an invalid packet."; 31 return packet.Pass() [all...] |
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/ |
decoding_state_unittest.cc | 18 #include "webrtc/modules/video_coding/main/source/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 [all...] |
/external/lldb/source/Plugins/Process/gdb-remote/ |
GDBRemoteCommunicationServer.h | 78 SendUnimplementedResponse (const char *packet); 87 Handle_A (StringExtractorGDBRemote &packet); 90 Handle_qLaunchSuccess (StringExtractorGDBRemote &packet); 93 Handle_qHostInfo (StringExtractorGDBRemote &packet); 96 Handle_qLaunchGDBServer (StringExtractorGDBRemote &packet); 99 Handle_qProcessInfoPID (StringExtractorGDBRemote &packet); 102 Handle_qfProcessInfo (StringExtractorGDBRemote &packet); 105 Handle_qsProcessInfo (StringExtractorGDBRemote &packet); 108 Handle_qC (StringExtractorGDBRemote &packet); 111 Handle_qUserName (StringExtractorGDBRemote &packet); [all...] |
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/socket/ |
udp_event_emitter.cc | 16 Packet* UdpEventEmitter::ReadRXPacket_Locked() { 17 Packet* packet = in_fifo_.ReadPacket(); local 20 return packet; 23 void UdpEventEmitter::WriteRXPacket_Locked(Packet* packet) { 24 in_fifo_.WritePacket(packet); 29 Packet* UdpEventEmitter::ReadTXPacket_Locked() { 30 Packet* packet = out_fifo_.ReadPacket() local [all...] |
/external/chromium_org/third_party/webrtc/test/ |
null_transport.cc | 15 bool NullTransport::SendRtp(const uint8_t* packet, size_t length) { 19 bool NullTransport::SendRtcp(const uint8_t* packet, size_t length) {
|
null_transport.h | 22 virtual bool SendRtp(const uint8_t* packet, size_t length) OVERRIDE; 23 virtual bool SendRtcp(const uint8_t* packet, size_t length) OVERRIDE;
|
/external/chromium_org/media/filters/ |
ffmpeg_h264_to_annex_b_bitstream_converter.cc | 22 bool FFmpegH264ToAnnexBBitstreamConverter::ConvertPacket(AVPacket* packet) { 25 if (packet == NULL || !packet->data) 44 packet->data, packet->size, avc_config.get()); 47 return false; // Invalid input packet. 49 // Allocate new packet for the output. 55 // the pointer of the old packet with a new one, we will initially copy the 56 // metadata from old packet to new bigger packet [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/ |
ParsedEvent.java | 44 protected ParsedEvent(byte suspendPolicy, Packet packet, byte eventKind) { 46 this.requestID = packet.getNextValueAsInt(); 86 * @param packet 88 protected EventThread(byte suspendPolicy, Packet packet, byte eventKind) { 89 super(suspendPolicy, packet, eventKind); 90 this.threadID = packet.getNextValueAsThreadID(); 112 * @param packet 114 protected EventThreadLocation(byte suspendPolicy, Packet packet [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/test/ |
RTPtimeshift.cc | 58 NETEQTEST_RTPpacket packet; local 59 int packLen = packet.readFromFile(inFile); 66 uint32_t TSdiff = atoi(argv[3]) - packet.timeStamp(); 73 SNdiff = startSN - packet.sequenceNumber(); 78 ATdiff = startTS - packet.time(); 85 packet.setTimeStamp(packet.timeStamp() + TSdiff); 86 packet.setSequenceNumber(packet.sequenceNumber() + SNdiff); 87 packet.setTime(packet.time() + ATdiff) [all...] |
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/test/ |
stream_generator.cc | 18 #include "webrtc/modules/video_coding/main/source/packet.h" 69 VCMPacket packet; local 70 packet.seqNum = sequence_number; 71 packet.timestamp = timestamp; 72 packet.frameType = type; 73 packet.isFirstPacket = first_packet; 74 packet.markerBit = marker_bit; 75 packet.sizeBytes = size; 76 packet.dataPtr = packet_buffer; 77 if (packet.isFirstPacket [all...] |
/external/chromium_org/third_party/webrtc/ |
transport.h | 23 virtual bool SendRtp(const uint8_t* packet, size_t length) = 0; 24 virtual bool SendRtcp(const uint8_t* packet, size_t length) = 0;
|
/external/chromium_org/media/cast/net/ |
udp_transport_unittest.cc | 28 void ReceivedPacket(scoped_ptr<Packet> packet) { 29 packet_ = std::string(packet->size(), '\0'); 30 std::copy(packet->begin(), packet->end(), packet_.begin()); 34 std::string packet() const { return packet_; } function in class:media::cast::MockPacketReceiver 47 void SendPacket(UdpTransport* transport, Packet packet) { 49 transport->SendPacket(new base::RefCountedData<Packet>(packet), cb) 75 Packet packet; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/ |
lp_scene_queue.c | 92 struct scene_packet packet; local 95 packet.scene = NULL; 98 &packet.header, 99 sizeof packet / 4, 104 return packet.scene; 112 struct scene_packet packet; local 114 packet.header.dwords = sizeof packet / 4; 115 packet.header.data24 = 0; 116 packet.scene = scene [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_scene_queue.c | 92 struct scene_packet packet; local 95 packet.scene = NULL; 98 &packet.header, 99 sizeof packet / 4, 104 return packet.scene; 112 struct scene_packet packet; local 114 packet.header.dwords = sizeof packet / 4; 115 packet.header.data24 = 0; 116 packet.scene = scene [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/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/VirtualMachine/ |
DisposeObjectsTest.java | 62 CommandPacket packet = new CommandPacket( local 65 packet.setNextValueAsString(CHECKED_STRING); 67 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet); 74 packet = new CommandPacket( 77 packet.setNextValueAsInt(1); 78 packet.setNextValueAsObjectID(stringID); 79 packet.setNextValueAsInt(0); 80 reply = debuggeeWrapper.vmMirror.performCommand(packet); 86 packet = new CommandPacket( 89 packet.setNextValueAsObjectID(stringID) [all...] |
/external/chromium_org/ui/events/gesture_detection/ |
gesture_event_data_packet_unittest.cc | 65 GestureEventDataPacket packet; local 66 EXPECT_EQ(0U, packet.gesture_count()); 67 EXPECT_EQ(GestureEventDataPacket::UNDEFINED, packet.gesture_source()); 69 packet = GestureEventDataPacket::FromTouch( 71 EXPECT_TRUE(touch_time == packet.timestamp()); 72 EXPECT_EQ(0U, packet.gesture_count()); 73 EXPECT_EQ(gfx::PointF(kTouchX, kTouchY), packet.touch_location()); 78 packet.Push(gesture); 80 ASSERT_EQ(index + 1U, packet.gesture_count()); 81 EXPECT_TRUE(GestureEquals(gesture, packet.gesture(index))) 99 GestureEventDataPacket packet = GestureEventDataPacket::FromTouch( local [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
payload_splitter.cc | 19 // The method loops through a list of packets {A, B, C, ...}. Each packet is 22 // When the first packet in |packet_list| has been processed, the orignal packet 31 Packet* red_packet = (*it); 51 Packet* new_packet = new Packet; 88 // The block lengths in the RED headers do not match the overall packet 90 // payloads from this packet. 111 // Delete old packet payload. 114 // Remove |it| from the packet list. This operation effectively moves th 127 Packet* packet = (*it); \/\/ Just to make the notation more intuitive. local 217 Packet* packet = (*it); \/\/ Just to make the notation more intuitive. local [all...] |
payload_splitter_unittest.cc | 21 #include "webrtc/modules/audio_coding/neteq/packet.h" 49 // Creates a RED packet, with |num_payloads| payloads, with payload types given 53 Packet* CreateRedPayload(int num_payloads, 56 Packet* packet = new Packet; local 57 packet->header.payloadType = kRedPayloadType; 58 packet->header.timestamp = kBaseTimestamp; 59 packet->header.sequenceNumber = kSequenceNumber; 60 packet->payload_length = (kPayloadLength + 1) 109 Packet* packet = new Packet; local 125 Packet* packet = new Packet; local 166 Packet* packet = CreateRedPayload(2, payload_types, kTimestampOffset); local 193 Packet* packet = CreateRedPayload(1, payload_types, kTimestampOffset); local 233 Packet* packet = CreateRedPayload(3, payload_types, kTimestampOffset); local 300 Packet* packet = CreatePacket(i, 10, 0); local 320 Packet* packet = packet_list.front(); local 334 Packet* packet = CreateRedPayload(3, payload_types, kTimestampOffset); local 595 Packet* packet = CreatePacket(kPayloadType, payload_length_bytes, 0); local 619 Packet* packet = (*it); local 665 Packet* packet = CreatePacket(kPayloadType, kPayloadLengthBytes, 0); local 696 Packet* packet = CreatePacket(kPayloadType, kPayloadLengthBytes, 0); local 729 Packet* packet = CreateOpusFecPacket(0, 10, 0xFF); local [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/tools/ |
rtp_analyze.cc | 16 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" 93 webrtc::scoped_ptr<webrtc::test::Packet> packet; local 95 packet.reset(file_source->NextPacket()); 96 if (!packet.get()) { 97 // This is probably an RTCP packet. Move on to the next one. 100 assert(packet.get()); 101 // Write packet data to file. 104 packet->header().sequenceNumber, 105 packet->header().timestamp [all...] |
packet_unittest.cc | 11 // Unit tests for test Packet class. 13 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" 53 // Hand over ownership of |packet_memory| to |packet|. 54 Packet packet(packet_memory, kPacketLengthBytes, kPacketTime); 55 ASSERT_TRUE(packet.valid_header()); 56 EXPECT_EQ(kPayloadType, packet.header().payloadType); 57 EXPECT_EQ(kSequenceNumber, packet.header().sequenceNumber); 58 EXPECT_EQ(kTimestamp, packet.header().timestamp); 59 EXPECT_EQ(kSsrc, packet.header().ssrc) [all...] |
/external/chromium_org/net/data/websocket/ |
close-with-split-packet_wsh.py | 22 packet = stream.create_close_frame(code + 'split test'.encode('utf-8')) 23 request.connection.write(packet[:1]) 24 request.connection.write(packet[1:])
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ClassType/ |
NewInstanceTest.java | 64 CommandPacket packet = new CommandPacket( local 68 packet.setNextValueAsString(classSig); 69 ReplyPacket reply = debuggeeWrapper.vmMirror.performCommand(packet); 87 packet = new CommandPacket( 90 packet.setNextValueAsClassID(typeID); 91 reply = debuggeeWrapper.vmMirror.performCommand(packet); 111 packet = new CommandPacket( 114 packet.setNextValueAsByte(JDWPConstants.EventKind.METHOD_ENTRY); 115 packet.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL); 116 packet.setNextValueAsInt(1) 273 CommandPacket packet = new CommandPacket( local [all...] |