Searched defs:packet (Results 1 - 25 of 509) sorted by relevance

1234567891011>>

/external/smack/src/org/jivesoftware/smackx/pubsub/packet/
H A DSyncPacketSend.java14 package org.jivesoftware.smackx.pubsub.packet;
22 import org.jivesoftware.smack.packet.Packet;
26 * methods for sending a packet to the server and waiting for the reply.
35 static public Packet getReply(Connection connection, Packet packet, long timeout) argument
38 PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID());
41 connection.sendPacket(packet);
58 static public Packet getReply(Connection connection, Packet packet) argument
61 return getReply(connection, packet, SmackConfiguration.getPacketReplyTimeout());
/external/chromium_org/cloud_print/gcp20/prototype/
H A Ddns_packet_parser.cc10 DnsPacketParser::DnsPacketParser(const char* packet, size_t length) argument
11 : packet_(packet),
13 record_parser_(packet, length, sizeof(header_)) {
14 base::BigEndianReader reader(packet, length);
/external/chromium_org/remoting/codec/
H A Daudio_decoder_verbatim.cc19 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
18 Decode( scoped_ptr<AudioPacket> packet) argument
[all...]
H A Daudio_encoder_verbatim.cc17 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();
16 Encode( scoped_ptr<AudioPacket> packet) argument
H A Dvideo_encoder_vpx_unittest.cc110 scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); local
111 EXPECT_TRUE(packet);
125 scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); local
126 EXPECT_TRUE(packet);
133 packet = encoder->Encode(*frame);
134 EXPECT_TRUE(packet);
146 scoped_ptr<VideoPacket> packet = encoder->Encode(*frame); local
147 EXPECT_EQ(packet->format().x_dpi(), 96);
148 EXPECT_EQ(packet->format().y_dpi(), 97);
/external/chromium_org/third_party/webrtc/modules/video_coding/main/source/
H A Ddecoding_state_unittest.cc18 #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
166 VCMPacket packet; local
212 VCMPacket packet; local
365 VCMPacket packet; local
400 VCMPacket packet; local
419 VCMPacket packet; local
[all...]
/external/chromium_org/third_party/webrtc/test/
H A Dnull_transport.cc15 bool NullTransport::SendRtp(const uint8_t* packet, size_t length) { argument
19 bool NullTransport::SendRtcp(const uint8_t* packet, size_t length) { argument
/external/smack/src/org/jivesoftware/smack/
H A DPacketInterceptor.java22 import org.jivesoftware.smack.packet.Packet;
30 * This allows event-style programming -- every time a new packet is found,
39 * Process the packet that is about to be sent to the server. The intercepted
40 * packet can be modified by the interceptor.<p>
42 * Interceptors are invoked using the same thread that requested the packet
46 * @param packet the packet to is going to be sent to the server.
48 public void interceptPacket(Packet packet); argument
H A DPacketListener.java23 import org.jivesoftware.smack.packet.Packet;
27 * This allows event-style programming -- every time a new packet is found,
38 * Process the next packet sent to this packet listener.<p>
44 * @param packet the packet to process.
46 public void processPacket(Packet packet); argument
/external/smack/src/org/jivesoftware/smack/filter/
H A DPacketFilter.java23 import org.jivesoftware.smack.packet.Packet;
27 * used when constructing packet listeners or collectors -- the filter defines
29 * packet processing.<p>
32 * for more complex packet filtering by using the
39 * // Use an anonymous inner class to define a packet filter that returns
40 * // all packets that have a packet ID of "RS145".
42 * public boolean accept(Packet packet) {
43 * return "RS145".equals(packet.getPacketID());
46 * // Create a new packet collector using the filter we created.
57 * Tests whether or not the specified packet shoul
62 accept(Packet packet) argument
[all...]
H A DFromContainsFilter.java23 import org.jivesoftware.smack.packet.Packet;
37 * @param from the from field value the packet must contain.
46 public boolean accept(Packet packet) { argument
47 if (packet.getFrom() == null) {
51 return packet.getFrom().toLowerCase().indexOf(from) != -1;
H A DFromMatchesFilter.java23 import org.jivesoftware.smack.packet.Packet;
30 * if the sender of the packet matches the specified resource.
45 * specified address is a full JID then the filter will only match if the sender of the packet
48 * @param address the from field value the packet must match. Could be a full or bare JID.
58 public boolean accept(Packet packet) { argument
59 if (packet.getFrom() == null) {
63 // Check if the bare JID of the sender of the packet matches the specified JID
64 return packet.getFrom().toLowerCase().startsWith(address);
67 // Check if the full JID of the sender of the packet matches the specified JID
68 return address.equals(packet
[all...]
H A DIQTypeFilter.java22 import org.jivesoftware.smack.packet.IQ;
23 import org.jivesoftware.smack.packet.Packet;
26 * A filter for IQ packet types. Returns true only if the packet is an IQ packet
43 * @see org.jivesoftware.smack.filter.PacketFilter#accept(org.jivesoftware.smack.packet.Packet)
45 public boolean accept(Packet packet) { argument
46 return (packet instanceof IQ && ((IQ) packet).getType().equals(type));
H A DMessageTypeFilter.java23 import org.jivesoftware.smack.packet.Message;
24 import org.jivesoftware.smack.packet.Packet;
29 * @see org.jivesoftware.smack.packet.Message.Type
45 public boolean accept(Packet packet) { argument
46 if (!(packet instanceof Message)) {
50 return ((Message) packet).getType().equals(this.type);
H A DNotFilter.java23 import org.jivesoftware.smack.packet.Packet;
26 * Implements the logical NOT operation on a packet filter. In other words, packets
47 public boolean accept(Packet packet) { argument
48 return !filter.accept(packet);
H A DPacketExtensionFilter.java23 import org.jivesoftware.smack.packet.Packet;
26 * Filters for packets with a particular type of packet extension.
36 * Creates a new packet extension filter. Packets will pass the filter if
37 * they have a packet extension that matches the specified element name
40 * @param elementName the XML element name of the packet extension.
41 * @param namespace the XML namespace of the packet extension.
49 * Creates a new packet extension filter. Packets will pass the filter if they have a packet
52 * @param namespace the XML namespace of the packet extension.
58 public boolean accept(Packet packet) { argument
[all...]
H A DPacketIDFilter.java23 import org.jivesoftware.smack.packet.Packet;
26 * Filters for packets with a particular packet ID.
35 * Creates a new packet ID filter using the specified packet ID.
37 * @param packetID the packet ID to filter for.
46 public boolean accept(Packet packet) { argument
47 return packetID.equals(packet.getPacketID());
H A DPacketTypeFilter.java23 import org.jivesoftware.smack.packet.Packet;
41 * Creates a new packet type filter that will filter for packets that are the
47 // Ensure the packet type is a sub-class of Packet.
54 public boolean accept(Packet packet) { argument
55 return packetType.isInstance(packet);
H A DThreadFilter.java23 import org.jivesoftware.smack.packet.Packet;
24 import org.jivesoftware.smack.packet.Message;
47 public boolean accept(Packet packet) { argument
48 return packet instanceof Message && thread.equals(((Message) packet).getThread());
/external/smack/src/org/jivesoftware/smack/packet/
H A DSession.java21 package org.jivesoftware.smack.packet;
24 * IQ packet that will be sent to the server to establish a session.<p>
/external/chromium_org/media/filters/
H A Dffmpeg_h264_to_annex_b_bitstream_converter.cc22 bool FFmpegH264ToAnnexBBitstreamConverter::ConvertPacket(AVPacket* packet) { argument
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/chromium_org/native_client_sdk/src/libraries/nacl_io/socket/
H A Dudp_event_emitter.cc17 Packet* packet = in_fifo_.ReadPacket(); local
20 return packet;
23 void UdpEventEmitter::WriteRXPacket_Locked(Packet* packet) { argument
24 in_fifo_.WritePacket(packet);
30 Packet* packet = out_fifo_.ReadPacket(); local
33 return packet;
36 void UdpEventEmitter::WriteTXPacket_Locked(Packet* packet) { argument
37 out_fifo_.WritePacket(packet);
/external/chromium_org/remoting/protocol/
H A Dhost_video_dispatcher.cc28 void HostVideoDispatcher::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, argument
30 writer_.Write(SerializeAndFrameMessage(*packet), done);
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/test/
H A DRTPcat.cc62 NETEQTEST_RTPpacket packet; local
63 int pack_len = packet.readFromFile(in_file);
68 packet.writeToFile(out_file);
69 pack_len = packet.readFromFile(in_file);
/external/chromium_org/third_party/webrtc/video/
H A Dtransport_adapter.cc20 const void* packet,
25 bool success = transport_->SendRtp(static_cast<const uint8_t*>(packet),
31 const void* packet,
36 bool success = transport_->SendRtcp(static_cast<const uint8_t*>(packet),
19 SendPacket(int , const void* packet, int length) argument
30 SendRTCPPacket(int , const void* packet, int length) argument

Completed in 2563 milliseconds

1234567891011>>