Home
last modified time | relevance | path

Searched refs:presence (Results 1 – 19 of 19) sorted by relevance

/packages/apps/IM/src/com/android/im/engine/
DContact.java67 public void setPresence(Presence presence) { in setPresence() argument
68 mPresence = presence; in setPresence()
DImConnection.java256 protected abstract void doUpdateUserPresenceAsync(Presence presence); in doUpdateUserPresenceAsync() argument
/packages/apps/IM/src/com/android/im/imps/
DImpsConnection.java627 protected void doUpdateUserPresenceAsync(Presence presence) { in doUpdateUserPresenceAsync() argument
629 mUserPresence, presence, mConfig.getPresenceMapping()); in doUpdateUserPresenceAsync()
633 final Presence newPresence = new Presence(presence); in doUpdateUserPresenceAsync()
666 PrimitiveElement presence = response.getElement(ImpsTags.Presence); in retrieveUserPresenceAsync()
667 PrimitiveElement presenceSubList = presence.getChild(ImpsTags.PresenceSubList); in retrieveUserPresenceAsync()
707 private Primitive buildUpdatePresenceReq(PrimitiveElement presence) { in buildUpdatePresenceReq() argument
710 presences.add(presence); in buildUpdatePresenceReq()
722 for (PrimitiveElement presence : presences) { in buildUpdatePresenceReq()
723 presenceSubList.addChild(presence); in buildUpdatePresenceReq()
DPtsPrimitiveParser.java322 PrimitiveElement presence = new PrimitiveElement(ImpsTags.Presence); in translatePresence() local
326 presence.addChild(ImpsTags.UserID, valueGroup.get(0).mStrValue); in translatePresence()
330 presence.addChild(translatePresenceSubList(valueGroup.get(1))); in translatePresence()
333 return presence; in translatePresence()
DImpsContactListManager.java588 Presence presence = ImpsPresenceUtils.extractPresence(presenceSubList, presenceMapping); in extractAndNotifyPresence() local
593 contact.setPresence(presence); in extractAndNotifyPresence()
/packages/apps/IM/src/com/android/im/app/
DContactView.java114 int presence = cursor.getInt(COLUMN_CONTACT_PRESENCE_STATUS); in bind() local
125 iconId = PresenceUtils.getStatusIconId(presence); in bind()
198 line2 = brandingRes.getString(PresenceUtils.getStatusStringRes(presence)); in bind()
DChatSwitcher.java391 Drawable presence; in bindView() local
393 presence = brandingRes.getDrawable( in bindView()
396 presence = brandingRes.getDrawable( in bindView()
399 ImageView presenceView = (ImageView) view.findViewById(R.id.presence); in bindView()
400 presenceView.setImageDrawable(presence); in bindView()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DGlobalSearchSupport.java131 int presence = -1; field in GlobalSearchSupport.SearchSuggestion
170 if (presence != -1) { in process()
171 icon2 = String.valueOf(StatusUpdates.getPresenceIconResourceId(presence)); in process()
330 suggestion.presence = c.getInt(SearchSuggestionQuery.PRESENCE_STATUS); in buildCursorForSearchSuggestions()
/packages/apps/Contacts/src/com/android/contacts/
DViewContactActivity.java951 public int presence = -1; field in ViewContactActivity.ViewEntry
992 presence = status.getPresence(); in applyStatus()
993 presenceIcon = (presence == -1) ? -1 : in applyStatus()
994 StatusUpdates.getPresenceIconResourceId(this.presence); in applyStatus()
1022 if (StatusUpdates.getPresencePrecedence(presence) in collapseWith()
1023 < StatusUpdates.getPresencePrecedence(entry.presence)) { in collapseWith()
1024 presence = entry.presence; in collapseWith()
1205 } else if (entry.presence != -1) { in bindView()
1207 StatusUpdates.getPresenceIconResourceId(entry.presence)); in bindView()
DContactsListActivity.java2417 cache.presenceView = (ImageView) view.findViewById(R.id.presence); in newView()
/packages/apps/Mms/src/com/android/mms/util/
DContactInfoCache.java455 private int getPresenceIconResourceId(int presence) { in getPresenceIconResourceId() argument
456 if (presence != Presence.OFFLINE) { in getPresenceIconResourceId()
457 return Presence.getPresenceIconResourceId(presence); in getPresenceIconResourceId()
/packages/apps/IM/src/com/android/im/service/
DContactListManagerAdapter.java1037 private int translateClientType(Presence presence) { in translateClientType() argument
1038 int clientType = presence.getClientType(); in translateClientType()
1053 public static int convertPresenceStatus(Presence presence) { in convertPresenceStatus() argument
1054 switch (presence.getStatus()) { in convertPresenceStatus()
1072 Log.e(TAG, "Illegal presence status value " + presence.getStatus()); in convertPresenceStatus()
DChatSessionAdapter.java409 void insertPresenceUpdatesMsg(String contact, Presence presence) { in insertPresenceUpdatesMsg() argument
410 int status = presence.getStatus(); in insertPresenceUpdatesMsg()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java300 int presence, String status) { in insertStatusUpdate() argument
301 return insertStatusUpdate(protocol, customProtocol, handle, presence, status, 0); in insertStatusUpdate()
305 int presence, String status, long timestamp) { in insertStatusUpdate() argument
310 if (presence != 0) { in insertStatusUpdate()
311 values.put(StatusUpdates.PRESENCE, presence); in insertStatusUpdate()
DContactsProvider2Test.java923 private void assertStatusUpdate(Cursor c, int protocol, String customProtocol, int presence, in assertStatusUpdate() argument
928 values.put(StatusUpdates.PRESENCE_STATUS, presence); in assertStatusUpdate()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoActivity.java238 ImageView presence; field in EventInfoActivity.ViewHolder
942 vh.presence = (ImageView) v.findViewById(R.id.presence); in addAttendeesToLayout()
992 ImageView presenceView = vh.presence; in onQueryComplete()
/packages/apps/Mms/src/com/android/mms/ui/
DConversationHeaderView.java95 mPresenceView = (ImageView) findViewById(R.id.presence); in onFinishInflate()
/packages/apps/Contacts/src/com/android/contacts/ui/
DQuickContactWindow.java322 setHeaderImage(R.id.presence, null); in show()
1148 final int presence = cursor.getInt(DataQuery.CONTACT_PRESENCE); in handleData() local
1149 final Drawable statusIcon = getPresenceIcon(presence); in handleData()
1152 setHeaderImage(R.id.presence, statusIcon); in handleData()
/packages/apps/Email/src/com/android/email/activity/
DMessageView.java333 mSenderPresenceView = (ImageView) findViewById(R.id.presence); in onCreate()
682 case R.id.presence: in onClick()