/external/eigen/Eigen/src/Core/ |
GenericPacketMath.h | 94 template<typename Packet> inline Packet 95 padd(const Packet& a, 96 const Packet& b) { return a+b; } 99 template<typename Packet> inline Packet 100 psub(const Packet& a, 101 const Packet& b) { return a-b; } 104 template<typename Packet> inline Packet [all...] |
Functors.h | 27 template<typename Packet> 28 EIGEN_STRONG_INLINE const Packet packetOp(const Packet& a, const Packet& b) const 30 template<typename Packet> 31 EIGEN_STRONG_INLINE const Scalar predux(const Packet& a) const 55 template<typename Packet> 56 EIGEN_STRONG_INLINE const Packet packetOp(const Packet& a, const Packet& b) cons [all...] |
/external/smack/src/org/jivesoftware/smack/ |
PacketInterceptor.java | 22 import org.jivesoftware.smack.packet.Packet;
30 * This allows event-style programming -- every time a new packet is found,
31 * the {@link #interceptPacket(Packet)} method will be called.
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); [all...] |
PacketListener.java | 23 import org.jivesoftware.smack.packet.Packet; 27 * This allows event-style programming -- every time a new packet is found, 28 * the {@link #processPacket(Packet)} method will be called. This is the 38 * Process the next packet sent to this packet listener.<p> 44 * @param packet the packet to process. 46 public void processPacket(Packet packet); [all...] |
PacketCollector.java | 27 import org.jivesoftware.smack.packet.Packet; 36 * Each packet collector will queue up a configured number of packets for processing before 46 private ArrayBlockingQueue<Packet> resultQueue; 51 * Creates a new packet collector. If the packet filter is <tt>null</tt>, then 62 * Creates a new packet collector. If the packet filter is <tt>null</tt>, then 72 this.resultQueue = new ArrayBlockingQueue<Packet>(maxSize); 76 * Explicitly cancels the packet collector so that no more results ar [all...] |
PacketWriter.java | 23 import org.jivesoftware.smack.packet.Packet; 31 * Writes packets to a XMPP server. Packets are sent using a dedicated thread. Packet 33 * sent. Packet listeners can be registered to listen for all outgoing packets. 46 private final BlockingQueue<Packet> queue; 50 * Creates a new packet writer with the specified connection. 55 this.queue = new ArrayBlockingQueue<Packet>(500, true); 73 writerThread.setName("Smack Packet Writer (" + connection.connectionCounterValue + ")"); 78 * Sends the specified packet to the server. 80 * @param packet the packet to send 146 Packet packet = null; local 167 Packet packet = nextPacket(); local 180 Packet packet = queue.remove(); local [all...] |
/external/smack/src/org/jivesoftware/smack/filter/ |
PacketFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 26 * Defines a way to filter packets for particular attributes. Packet filters are 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) { [all...] |
PacketTypeFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 38 Class<? extends Packet> packetType; 41 * Creates a new packet type filter that will filter for packets that are the 46 public PacketTypeFilter(Class<? extends Packet> packetType) { 47 // Ensure the packet type is a sub-class of Packet. 48 if (!Packet.class.isAssignableFrom(packetType)) { 49 throw new IllegalArgumentException("Packet type must be a sub-class of Packet.") [all...] |
NotFilter.java | 23 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) { 48 return !filter.accept(packet);
|
PacketIDFilter.java | 23 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. 41 throw new IllegalArgumentException("Packet ID cannot be null."); 46 public boolean accept(Packet packet) { 47 return packetID.equals(packet.getPacketID()) [all...] |
FromContainsFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 37 * @param from the from field value the packet must contain. 46 public boolean accept(Packet packet) { 47 if (packet.getFrom() == null) { 51 return packet.getFrom().toLowerCase().indexOf(from) != -1;
|
IQTypeFilter.java | 22 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) {
[all...] |
MessageTypeFilter.java | 23 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) { 46 if (!(packet instanceof Message)) { 50 return ((Message) packet).getType().equals(this.type);
|
PacketExtensionFilter.java | 23 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 [all...] |
ThreadFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 24 import org.jivesoftware.smack.packet.Message; 47 public boolean accept(Packet packet) { 48 return packet instanceof Message && thread.equals(((Message) packet).getThread());
|
ToContainsFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 38 * @param to the to field value the packet must contain. 47 public boolean accept(Packet packet) { 48 if (packet.getTo() == null) { 52 return packet.getTo().toLowerCase().indexOf(to) != -1;
|
FromMatchesFilter.java | 23 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) { 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) [all...] |
/external/smack/src/org/jivesoftware/smackx/muc/ |
ConnectionDetachedPacketCollector.java | 27 import org.jivesoftware.smack.packet.Packet; 45 private ArrayBlockingQueue<Packet> resultQueue; 48 * Creates a new packet collector. If the packet filter is <tt>null</tt>, then 56 * Creates a new packet collector. If the packet filter is <tt>null</tt>, then 60 this.resultQueue = new ArrayBlockingQueue<Packet>(maxSize); 64 * Polls to see if a packet is currently available and returns it, or 68 * @return the next packet result, or <tt>null</tt> if there are no mor [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
testclient.cc | 34 // DESIGN: Each packet received is put it into a list of packets. 40 packets_ = new std::vector<Packet*>(); 69 TestClient::Packet* TestClient::NextPacket() { 71 // at most 1 second. If, during the loop, a packet arrives, then we can stop 74 // Note that the case where no packet arrives is important. We often want to 75 // test that a packet does not arrive. 85 // Return the first packet placed in the queue. 86 Packet* packet = NULL; local 89 packet = packets_->front() 99 Packet* packet = NextPacket(); local 111 Packet* packet = NextPacket(); local [all...] |
testclient.h | 41 // Records the contents of a packet that was received. 42 struct Packet { 43 Packet(const SocketAddress& a, const char* b, size_t s); 44 Packet(const Packet& p); 45 virtual ~Packet(); 74 // Returns the next packet received by the client or 0 if none is received 75 // within a reasonable amount of time. The caller must delete the packet 77 Packet* NextPacket(); 79 // Checks that the next packet has the given contents. Returns the remot [all...] |
/external/smack/src/org/jivesoftware/smackx/workgroup/packet/ |
Transcript.java | 20 package org.jivesoftware.smackx.workgroup.packet;
22 import org.jivesoftware.smack.packet.IQ;
23 import org.jivesoftware.smack.packet.Packet;
39 private List<Packet> packets;
48 this.packets = new ArrayList<Packet>();
58 public Transcript(String sessionID, List<Packet> packets) {
78 public List<Packet> getPackets() {
89 for (Iterator<Packet> it=packets.iterator(); it.hasNext();) {
90 Packet packet = it.next(); local [all...] |
/external/smack/src/org/jivesoftware/smack/util/ |
SyncPacketSend.java | 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)
38 PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID());
41 connection.sendPacket(packet);
44 Packet result = response.nextResult(timeout);
58 static public Packet getReply(Connection connection, Packet packet) [all...] |
/external/smack/src/org/jivesoftware/smackx/pubsub/packet/ |
SyncPacketSend.java | 14 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)
38 PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID());
41 connection.sendPacket(packet);
44 Packet result = response.nextResult(timeout); [all...] |
/external/smack/src/org/jivesoftware/smackx/pubsub/util/ |
NodeUtils.java | 16 import org.jivesoftware.smack.packet.Packet;
30 * Get a {@link ConfigureForm} from a packet.
32 * @param packet
36 public static ConfigureForm getFormFromPacket(Packet packet, PubSubElementType elem)
38 FormNode config = (FormNode)packet.getExtension(elem.getElementName(), elem.getNamespace().getXmlns());
|
/external/smack/src/org/jivesoftware/smackx/pubsub/ |
EmbeddedPacketExtension.java | 18 import org.jivesoftware.smack.packet.Packet;
19 import org.jivesoftware.smack.packet.PacketExtension;
25 * top level {@link Packet} types to consider any embedded element to be an extension
|