/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
H A D | ContactStatusUtil.java | 30 public static String getStatusString(Context context, int presence) { argument 32 switch (presence) {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | GlobalSearchSupport.java | 75 int presence = -1; field in class:GlobalSearchSupport.SearchSuggestion 95 if (presence != -1) { 96 icon2 = String.valueOf(StatusUpdates.getPresenceIconResourceId(presence)); 153 presence = -1; 263 suggestion.presence = c.isNull(4) ? -1 : c.getInt(4);
|
H A D | ContactsProvider2.java | 3373 // Lookup the data row to attach this presence update to 3447 final String presence = inputValues.getAsString(StatusUpdates.PRESENCE); 3448 if (presence != null) { 3466 values.put(StatusUpdates.PRESENCE, presence); 3470 // Insert the presence update. 3928 // delete from both tables: presence and status_updates
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/ |
H A D | ContactHeaderWidget.java | 180 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/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ContactTileAdapter.java | 254 // Set presence icon and status message 256 int presence = 0; 258 presence = cursor.getInt(mPresenceIndex); 259 icon = ContactPresenceIconUtil.getPresenceIcon(mContext, presence); 267 // If there is no status message from the contact, but there was a presence value, 269 if (statusMessage == null && presence != 0) { 270 statusMessage = ContactStatusUtil.getStatusString(mContext, presence);
|
H A D | ContactListItemView.java | 73 * icons for presence and call. 78 * to the left of the photo, the text lines are aligned to the left and the presence icon (if 527 // Status view height is the biggest of the text view and the presence icon 739 // Layout all text view and presence icon 1336 * Adds or updates the presence icon view. 1458 * Sets the proper icon (star or presence or nothing) and/or status message. 1463 int presence = 0; 1465 presence = cursor.getInt(presenceColumnIndex); 1466 icon = ContactPresenceIconUtil.getPresenceIcon(getContext(), presence); 1474 // 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 D | 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...] |
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
H A D | DataAction.java | 249 public void setPresence(int presence) { argument 250 mPresence = presence;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | Contact.java | 146 boolean starred, Integer presence, boolean sendToVoicemail, String customRingtone, 166 mPresence = presence; 143 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 D | ContactLoader.java | 413 null /* presence */, 654 final Integer presence = cursor.isNull(ContactQuery.CONTACT_PRESENCE) 671 altDisplayName, phoneticName, starred, presence, sendToVoicemail,
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | BaseContactsProvider2Test.java | 415 int presence, String status, int chatMode) { 416 return insertStatusUpdate(protocol, customProtocol, handle, presence, status, chatMode, 421 int presence, String status, int chatMode, boolean isUserProfile) { 422 return insertStatusUpdate(protocol, customProtocol, handle, presence, status, 0, chatMode, 427 int presence, String status, long timestamp, int chatMode, boolean isUserProfile) { 432 return insertStatusUpdate(values, presence, status, timestamp, chatMode, isUserProfile); 436 long dataId, int presence, String status, long timestamp, int chatMode) { 437 return insertStatusUpdate(dataId, presence, status, timestamp, chatMode, false); 441 long dataId, int presence, String status, long timestamp, int chatMode, 445 return insertStatusUpdate(values, presence, statu 414 insertStatusUpdate(int protocol, String customProtocol, String handle, int presence, String status, int chatMode) argument 420 insertStatusUpdate(int protocol, String customProtocol, String handle, int presence, String status, int chatMode, boolean isUserProfile) argument 426 insertStatusUpdate(int protocol, String customProtocol, String handle, int presence, String status, long timestamp, int chatMode, boolean isUserProfile) argument 435 insertStatusUpdate( long dataId, int presence, String status, long timestamp, int chatMode) argument 440 insertStatusUpdate( long dataId, int presence, String status, long timestamp, int chatMode, boolean isUserProfile) argument 448 insertStatusUpdate( ContentValues values, int presence, String status, long timestamp, int chatMode, boolean isUserProfile) argument [all...] |
H A D | ContactsProvider2Test.java | 1758 // with "001". Verify that this fallback matching still occurs in the presence of 5456 // presence 5469 // i.e., no rows in presence table are to be updated. 5478 // make sure the presence column value is still the old value 5482 // update status_updates table to set new values for columns in presence table ONLY 5496 // presence set to null 5552 private void assertStatusUpdate(Cursor c, int protocol, String customProtocol, int presence, argument 5557 values.put(StatusUpdates.PRESENCE, presence);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapAppParams.java | 1113 public void setFilterPresence(int presence) { argument 1114 if (presence < 0 || presence > 0xFFFF) 1116 this.mFilterPresence = presence;
|