HomeSort by relevance Sort by last modified time
    Searched refs:Presence (Results 1 - 25 of 29) sorted by null

1 2

  /external/smack/src/org/jivesoftware/smackx/workgroup/agent/
AgentRosterListener.java 22 import org.jivesoftware.smack.packet.Presence;
34 public void presenceChanged(Presence presence);
AgentRoster.java 29 import org.jivesoftware.smack.packet.Presence;
42 * Manges information about the agents in a workgroup and their presence.
57 private Map<String, Map<String, Presence>> presenceMap;
72 presenceMap = new HashMap<String, Map<String, Presence>>();
76 // Listen for any presence packets.
78 new PacketTypeFilter(Presence.class));
116 Map<String,Presence> userPresences = presenceMap.get(jid);
118 Iterator<Presence> presences = userPresences.values().iterator();
120 // Fire the presence changed event
190 * Returns the presence info for a particular agent, or <tt>null</tt> if the agent
202 Presence presence = new Presence(Presence.Type.unavailable); local
211 Presence presence = null; local
283 Presence presence = (Presence)packet; local
317 userPresences.put(StringUtils.parseResource(from), presence); local
    [all...]
AgentSession.java 45 * This class embodies the agent's active presence within a given workgroup. The application
62 private Presence.Mode presenceMode;
112 filter.addFilter(new PacketTypeFilter(Presence.class));
167 * Returns the agent's current presence mode.
169 * @return the agent's current presence mode.
171 public Presence.Mode getPresenceMode() {
195 * new data, the revised meta data will be rebroadcast in an agent's presence broadcast.
215 * the revised meta data will be rebroadcast in an agent's presence broadcast.
255 Presence presence; local
355 Presence presence = new Presence(Presence.Type.available); local
410 Presence presence = new Presence(Presence.Type.available); local
695 Presence presence = (Presence)packet; local
    [all...]
  /external/smack/src/org/jivesoftware/smack/
RosterListener.java 23 import org.jivesoftware.smack.packet.Presence;
28 * A listener that is fired any time a roster is changed or the presence of
58 * Called when the presence of a roster entry is changed. Care should be taken
59 * when using the presence data delivered as part of this event. Specifically,
66 * To get the current "best presence" for a user after the presence update, query the roster:
68 * String user = presence.getFrom();
69 * Presence bestPresence = roster.getPresence(user);
72 * That will return the presence value for the user with the highest priority and
75 * Note that this listener is triggered for presence (mode) changes onl
    [all...]
Roster.java 28 import org.jivesoftware.smack.packet.Presence;
38 * presence updates for. Roster items are categorized into groups for easier management.<p>
64 private Map<String, Map<String, Presence>> presenceMap;
118 presenceMap = new ConcurrentHashMap<String, Map<String, Presence>>();
122 // Listen for any presence packets.
123 PacketFilter presenceFilter = new PacketTypeFilter(Presence.class);
131 // Changes the presence available contacts to unavailable
136 // Changes the presence available contacts to unavailable
164 * listens for Presence packets that have a type of
165 * {@link org.jivesoftware.smack.packet.Presence.Type#subscribe}
611 Presence presence = new Presence(Presence.Type.unavailable); local
618 Presence presence = null; local
671 Presence presence = new Presence(Presence.Type.unavailable); local
676 Presence presence = userPresences.get(resource); local
703 Presence presence = new Presence(Presence.Type.unavailable); local
718 Presence presence = new Presence(Presence.Type.unavailable); local
842 Presence presence = (Presence) packet; local
863 userPresences.put(StringUtils.parseResource(from), presence); local
891 userPresences.put(StringUtils.parseResource(from), presence); local
    [all...]
BOSHConnection.java 38 import org.jivesoftware.smack.packet.Presence;
350 // Set presence to online.
352 sendPacket(new Presence(Presence.Type.available));
399 // Set presence to online.
401 sendPacket(new Presence(Presence.Type.available));
445 public void disconnect(Presence unavailablePresence) {
479 * Closes the connection by setting presence to unavailable and closing the
485 * @param unavailablePresence the presence packet to send during shutdown
    [all...]
XMPPConnection.java 26 import org.jivesoftware.smack.packet.Presence;
267 // Set presence to online.
269 packetWriter.sendPacket(new Presence(Presence.Type.available));
313 // Set presence to online.
314 packetWriter.sendPacket(new Presence(Presence.Type.available));
396 * Closes the connection by setting presence to unavailable then closing the stream to
402 * @param unavailablePresence the presence packet to send during shutdown.
404 protected void shutdown(Presence unavailablePresence)
    [all...]
Connection.java.orig 44 import org.jivesoftware.smack.packet.Presence;
349 * the server, then sets presence to available. If the server supports SASL authentication
357 * It is possible to log in without sending an initial available presence by using
376 * the server, then sets presence to available. If the server supports SASL authentication
384 * It is possible to log in without sending an initial available presence by using
479 * Closes the connection by setting presence to unavailable then closing the connection to
490 disconnect(new Presence(Presence.Type.unavailable));
494 * Closes the connection. A custom unavailable presence is sent to the server, followed
496 * again. A custom unavilable presence is useful for communicating offline presenc
    [all...]
Connection.java 44 import org.jivesoftware.smack.packet.Presence;
349 * the server, then sets presence to available. If the server supports SASL authentication
357 * It is possible to log in without sending an initial available presence by using
376 * the server, then sets presence to available. If the server supports SASL authentication
384 * It is possible to log in without sending an initial available presence by using
479 * Closes the connection by setting presence to unavailable then closing the connection to
490 disconnect(new Presence(Presence.Type.unavailable));
494 * Closes the connection. A custom unavailable presence is sent to the server, followed
496 * again. A custom unavilable presence is useful for communicating offline presenc
    [all...]
  /external/smack/src/org/jivesoftware/smackx/muc/
DeafOccupantInterceptor.java 26 import org.jivesoftware.smack.packet.Presence;
29 * Packet interceptor that will intercept presence packets sent to the MUC service to indicate
48 Presence presence = (Presence) packet; local
50 if (Presence.Type.available == presence.getType() &&
51 presence.getExtension("x", "http://jabber.org/protocol/muc") != null) {
Occupant.java 25 import org.jivesoftware.smack.packet.Presence;
50 Occupant(Presence presence) {
52 MUCUser mucUser = (MUCUser) presence.getExtension("x",
58 // Get the nickname from the FROM attribute of the presence
59 this.nick = StringUtils.parseResource(presence.getFrom());
63 * Returns the full JID of the occupant. If this information was extracted from a presence and
96 * from a presence then the answer will be null.
99 * obtained from a presence.
PacketMultiplexListener.java 30 import org.jivesoftware.smack.packet.Presence;
34 * for all basic processing of presence, and message packets targeted to that chat.
42 private static final PacketFilter PRESENCE_FILTER = new PacketTypeFilter(Presence.class);
66 throw new IllegalArgumentException("Presence listener is null");
MultiUserChat.java 56 import org.jivesoftware.smack.packet.Presence;
91 private Map<String, Presence> occupantsMap = new ConcurrentHashMap<String, Presence>();
333 // We create a room by sending a presence packet to room@service/nick
335 Presence joinPresence = new Presence(Presence.Type.available);
339 // Invoke presence interceptors so that extra information can be dynamically added
344 // Wait for a presence packet back from the server.
348 new PacketTypeFilter(Presence.class))
353 Presence presence = local
488 Presence presence; local
1013 Presence presence = local
1610 Presence presence = occupantsMap.get(user); local
    [all...]
  /external/smack/src/org/jivesoftware/smackx/
Gateway.java 19 import org.jivesoftware.smack.packet.Presence;
231 new PacketTypeFilter(Presence.class));
283 * receives the first presence broadcasted by your server. But it is possible to
284 * manually login and logout by sending a directed presence. This method sends an
285 * empty available presence direct to the gateway.
288 Presence presence = new Presence(Presence.Type.available); local
289 login(presence);
309 Presence presence = new Presence(Presence.Type.unavailable); local
319 Presence presence = (Presence)packet; local
    [all...]
LastActivityManager.java 31 import org.jivesoftware.smack.packet.Presence;
109 Presence presence = (Presence) packet;
110 Presence.Mode mode = presence.getMode();
120 }, new PacketTypeFilter(Presence.class));
  /external/smack/src/org/jivesoftware/smack/packet/
Presence.java 26 * Represents XMPP presence packets. Every presence packet has a type, which is one of
29 * <li>{@link Presence.Type#available available} -- (Default) indicates the user is available to
31 * <li>{@link Presence.Type#unavailable unavailable} -- the user is unavailable to receive messages.
32 * <li>{@link Presence.Type#subscribe subscribe} -- request subscription to recipient's presence.
33 * <li>{@link Presence.Type#subscribed subscribed} -- grant subscription to sender's presence.
34 * <li>{@link Presence.Type#unsubscribe unsubscribe} -- request removal of subscription to
35 * sender's presence
    [all...]
  /external/smack/src/org/jivesoftware/smackx/entitycaps/
EntityCapsManager.java 31 import org.jivesoftware.smack.packet.Presence;
265 PacketFilter packetFilter = new AndFilter(new PacketTypeFilter(Presence.class), new PacketExtensionFilter(
268 // Listen for remote presence stanzas with the caps extension
291 packetFilter = new AndFilter(new PacketTypeFilter(Presence.class), new NotFilter(new PacketExtensionFilter(
303 packetFilter = new PacketTypeFilter(Presence.class);
311 // Intercept presence packages and add caps data when intended.
313 // with every presence notification it sends.
314 PacketFilter capsPacketFilter = new PacketTypeFilter(Presence.class);
425 * If we are connected and there was already a presence send, another
426 * presence is send to inform others about your new Entity Caps node string
492 Presence presence = new Presence(Presence.Type.available); local
    [all...]
  /external/smack/src/org/jivesoftware/smackx/workgroup/user/
Workgroup.java 158 Presence directedPresence = new Presence(Presence.Type.available);
160 PacketFilter typeFilter = new PacketTypeFilter(Presence.class);
167 Presence response = (Presence)collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
178 return Presence.Type.available == response.getType();
    [all...]
  /external/smack/src/org/jivesoftware/smack/util/
PacketParserUtils.java.orig 41 import org.jivesoftware.smack.packet.Presence;
184 * Parses a presence packet.
186 * @param parser the XML parser, positioned at the start of a presence packet.
187 * @return a Presence packet.
190 public static Presence parsePresence(XmlPullParser parser) throws Exception {
191 Presence.Type type = Presence.Type.available;
195 type = Presence.Type.valueOf(typeString);
198 System.err.println("Found invalid presence type " + typeString);
201 Presence presence = new Presence(type)
    [all...]
PacketParserUtils.java 40 import org.jivesoftware.smack.packet.Presence;
183 * Parses a presence packet.
185 * @param parser the XML parser, positioned at the start of a presence packet.
186 * @return a Presence packet.
189 public static Presence parsePresence(XmlPullParser parser) throws Exception {
190 Presence.Type type = Presence.Type.available;
194 type = Presence.Type.valueOf(typeString);
197 System.err.println("Found invalid presence type " + typeString);
200 Presence presence = new Presence(type) local
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
LegacyContactsProviderTest.java 34 import android.provider.Contacts.Presence;
805 values.put(Presence.IM_PROTOCOL, protocol);
806 values.put(Presence.IM_HANDLE, "foo@acme.com");
807 values.put(Presence.IM_ACCOUNT, "foo");
808 values.put(Presence.PRESENCE_STATUS, Presence.OFFLINE);
809 values.put(Presence.PRESENCE_CUSTOM_STATUS, "Coding for Android");
810 mResolver.insert(Presence.CONTENT_URI, values);
    [all...]
  /packages/apps/Mms/src/com/android/mms/data/
Contact.java 28 import android.provider.ContactsContract.Presence;
66 log("presence changed, invalidate cache");
684 Log.d(TAG, "presence changed");
    [all...]
  /frameworks/base/core/java/android/provider/
Contacts.java     [all...]
ContactsContract.java     [all...]
  /prebuilts/sdk/12/
android.jar 

Completed in 300 milliseconds

1 2