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

1 2

  /external/smack/src/org/jivesoftware/smackx/pubsub/
AccessModel.java 30 /** Anyone with a presence subscription of both or from may subscribe and retrieve items */
31 presence, enum constant in enum:AccessModel
  /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/chromium/third_party/libjingle/source/talk/examples/call/
friendinvitesendtask.cc 38 // Need to first add to roster, then subscribe to presence.
49 // Subscribe to presence
50 XmlElement* presence = new XmlElement(QN_PRESENCE); local
51 presence->AddAttr(QN_TO, user.Str());
52 presence->AddAttr(QN_TYPE, STR_SUBSCRIBE);
58 presence->AddElement(invitation);
59 QueueStanza(presence);
presenceouttask.cc 51 XmlElement * presence = TranslateStatus(s);
52 presence->AddAttr(QN_TO, j.Str());
53 QueueStanza(presence);
61 XmlElement * presence = new XmlElement(QN_PRESENCE);
62 presence->AddAttr(QN_TO, jid.Str());
63 presence->AddAttr(QN_TYPE, "probe");
65 QueueStanza(presence);
129 // Put the delay mark on the presence according to JEP-0091
  /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.
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...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/
ContactStatusUtil.java 30 public static String getStatusString(Context context, int presence) {
32 switch (presence) {
  /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...]
  /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/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/src/com/android/providers/contacts/
GlobalSearchSupport.java 67 "(SELECT " + StatusUpdates.PRESENCE +
75 int presence = -1; field in class:GlobalSearchSupport.SearchSuggestion
95 if (presence != -1) {
96 icon2 = String.valueOf(StatusUpdates.getPresenceIconResourceId(presence));
153 presence = -1;
262 suggestion.presence = c.isNull(4) ? -1 : c.getInt(4);
  /packages/experimental/LoaderApp/src/com/android/loaderapp/
ContactHeaderWidget.java 180 mPresenceView = (ImageView) findViewById(R.id.presence);
321 * Manually set the presence.
323 public void setPresence(int presence) {
324 mPresenceView.setImageResource(StatusUpdates.getPresenceIconResourceId(presence));
328 * Manually set the presence. If presence is null, it is hidden.
332 public void setPresence(Integer presence) {
333 if (presence == null) {
337 setPresence(presence.intValue());
342 * Turn on/off showing the presence
646 int presence = c.getInt(ContactQuery.CONTACT_PRESENCE_STATUS); local
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
ContactTileAdapter.java 270 // Set presence icon and status message
272 int presence = 0; local
274 presence = cursor.getInt(mPresenceIndex);
275 icon = ContactPresenceIconUtil.getPresenceIcon(mContext, presence);
283 // If there is no status message from the contact, but there was a presence value,
285 if (statusMessage == null && presence != 0) {
286 statusMessage = ContactStatusUtil.getStatusString(mContext, presence);
  /cts/tests/tests/provider/src/android/provider/cts/
ContactsContract_StatusUpdatesTest.java 101 private Uri insertStatusUpdate(long dataId, int presence, String status, Long timestamp)
106 .withValue(StatusUpdates.PRESENCE, presence)
130 .withValue(StatusUpdates.PRESENCE, status)
  /packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
ContactFragment.java 431 // Apply presence and status details when available
540 public int presence = -1; field in class:ContactFragment.ViewEntry
576 * and {@link #footerLine}. Otherwise only {@link #presence}
580 presence = status.getPresence();
606 // Choose the presence with the highest precedence.
607 if (StatusUpdates.getPresencePrecedence(presence)
608 < StatusUpdates.getPresencePrecedence(entry.presence)) {
609 presence = entry.presence;
758 // Set the presence ico
    [all...]
  /external/v8/test/mjsunit/compiler/
regress-closures-with-eval.js 30 // Verifies that closures in presence of eval work fine.
simple-deopt.js 103 // Test of deopt in presence of spilling.
  /external/v8/test/mjsunit/regress/
regress-1130.js 28 // Test that parser errors can be build up correctly even in the presence
regress-1172.js 29 // function's prototype even in the presence of JS accessors.

Completed in 500 milliseconds

1 2