Searched refs:presence (Results 1 - 14 of 14) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/
H A DContactStatusUtil.java30 public static String getStatusString(Context context, int presence) { argument
32 switch (presence) {
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DGlobalSearchSupport.java74 int presence = -1; field in class:GlobalSearchSupport.SearchSuggestion
94 if (presence != -1) {
95 icon2 = String.valueOf(StatusUpdates.getPresenceIconResourceId(presence));
152 presence = -1;
259 suggestion.presence = c.isNull(4) ? -1 : c.getInt(4);
/packages/experimental/LoaderApp/src/com/android/loaderapp/
H A DContactHeaderWidget.java180 mPresenceView = (ImageView) findViewById(R.id.presence);
321 * Manually set the presence.
323 public void setPresence(int presence) { argument
324 mPresenceView.setImageResource(StatusUpdates.getPresenceIconResourceId(presence));
328 * Manually set the presence. If presence is null, it is hidden.
332 public void setPresence(Integer presence) { argument
333 if (presence == null) {
337 setPresence(presence.intValue());
342 * Turn on/off showing the presence
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactTileAdapter.java274 // Set presence icon and status message
276 int presence = 0;
278 presence = cursor.getInt(mPresenceIndex);
279 icon = ContactPresenceIconUtil.getPresenceIcon(mContext, presence);
287 // If there is no status message from the contact, but there was a presence value,
289 if (statusMessage == null && presence != 0) {
290 statusMessage = ContactStatusUtil.getStatusString(mContext, presence);
H A DContactListItemView.java55 * icons for presence and call.
60 * to the left of the photo, the text lines are aligned to the left and the presence icon (if
375 // Status view height is the biggest of the text view and the presence icon
516 // Layout all text view and presence icon
1030 * Adds or updates the presence icon view.
1095 * Sets the proper icon (star or presence or nothing) and/or status message.
1100 int presence = 0;
1102 presence = cursor.getInt(presenceColumnIndex);
1103 icon = ContactPresenceIconUtil.getPresenceIcon(getContext(), presence);
1111 // If there is no status message from the contact, but there was a presence valu
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactFragment.java431 // 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...]
/packages/apps/Contacts/src/com/android/contacts/model/
H A DContact.java143 boolean starred, Integer presence, boolean sendToVoicemail, String customRingtone,
164 mPresence = presence;
140 Contact(Uri requestedUri, Uri uri, Uri lookupUri, long directoryId, String lookupKey, long id, long nameRawContactId, int displayNameSource, long photoId, String photoUri, String displayName, String altDisplayName, String phoneticName, boolean starred, Integer presence, boolean sendToVoicemail, String customRingtone, boolean isUserProfile) argument
H A DContactLoader.java511 final Integer presence = cursor.isNull(ContactQuery.CONTACT_PRESENCE)
528 altDisplayName, phoneticName, starred, presence, sendToVoicemail,
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DDataAction.java231 public void setPresence(int presence) { argument
232 mPresence = presence;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DBaseContactsProvider2Test.java440 int presence, String status, int chatMode) {
441 return insertStatusUpdate(protocol, customProtocol, handle, presence, status, chatMode,
446 int presence, String status, int chatMode, boolean isUserProfile) {
447 return insertStatusUpdate(protocol, customProtocol, handle, presence, status, 0, chatMode,
452 int presence, String status, long timestamp, int chatMode, boolean isUserProfile) {
457 return insertStatusUpdate(values, presence, status, timestamp, chatMode, isUserProfile);
461 long dataId, int presence, String status, long timestamp, int chatMode) {
462 return insertStatusUpdate(dataId, presence, status, timestamp, chatMode, false);
466 long dataId, int presence, String status, long timestamp, int chatMode,
470 return insertStatusUpdate(values, presence, statu
439 insertStatusUpdate(int protocol, String customProtocol, String handle, int presence, String status, int chatMode) argument
445 insertStatusUpdate(int protocol, String customProtocol, String handle, int presence, String status, int chatMode, boolean isUserProfile) argument
451 insertStatusUpdate(int protocol, String customProtocol, String handle, int presence, String status, long timestamp, int chatMode, boolean isUserProfile) argument
460 insertStatusUpdate( long dataId, int presence, String status, long timestamp, int chatMode) argument
465 insertStatusUpdate( long dataId, int presence, String status, long timestamp, int chatMode, boolean isUserProfile) argument
473 insertStatusUpdate( ContentValues values, int presence, String status, long timestamp, int chatMode, boolean isUserProfile) argument
[all...]
H A DContactsProvider2Test.java3801 // presence
3814 // i.e., no rows in presence table are to be updated.
3823 // make sure the presence column value is still the old value
3827 // update status_updates table to set new values for columns in presence table ONLY
3841 // presence set to null
3897 private void assertStatusUpdate(Cursor c, int protocol, String customProtocol, int presence, argument
3902 values.put(StatusUpdates.PRESENCE, presence);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailFragment.java428 // The presence of a static photo container is not sufficient to determine whether or
642 // Apply presence when available
1201 public int presence = -1; field in class:ContactDetailFragment.DetailViewEntry
1232 sb.append(" presence: " + presence + "\n");
1285 public void setPresence(int presence) { argument
1286 this.presence = presence;
1315 // Choose the presence with the highest precedence.
1316 if (StatusUpdates.getPresencePrecedence(presence)
[all...]
/packages/apps/Mms/src/com/android/mms/data/
H A DContact.java66 log("presence changed, invalidate cache");
684 Log.d(TAG, "presence changed");
916 + contact.mNumber + ", presence=" + contact.mPresenceResId
990 private int getPresenceIconResourceId(int presence) { argument
992 if (presence != Presence.OFFLINE) {
993 return Presence.getPresenceIconResourceId(presence);
1033 ", email=" + email + ", presence=" +
1127 // info, particularly their presence.
/packages/apps/Email/src/com/android/email/activity/
H A DMessageViewFragmentBase.java296 mSenderPresenceView = (ImageView) UiUtilities.getView(view, R.id.presence);
1006 * Start loading contact photo and presence.
1012 // Find the sender email address, and start presence check.
1253 * a viewer app) and saving (based upon the presence of external storage)

Completed in 1103 milliseconds