Home
last modified time | relevance | path

Searched refs:contactData (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java63 public static CharSequence getDisplayName(Context context, Contact contactData) { in getDisplayName() argument
65 final CharSequence displayName = contactData.getDisplayName(); in getDisplayName()
68 if (contactData.getDisplayNameSource() == DisplayNameSources.PHONE) { in getDisplayName()
75 final CharSequence altDisplayName = contactData.getAltDisplayName(); in getDisplayName()
86 public static String getPhoneticName(Context context, Contact contactData) { in getPhoneticName() argument
87 String phoneticName = contactData.getPhoneticName(); in getPhoneticName()
98 public static String getAttribution(Context context, Contact contactData) { in getAttribution() argument
99 if (contactData.isDirectoryEntry()) { in getAttribution()
100 String directoryDisplayName = contactData.getDirectoryDisplayName(); in getAttribution()
101 String directoryType = contactData.getDirectoryType(); in getAttribution()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DInvisibleContactUtil.java32 public static boolean isInvisibleAndAddable(Contact contactData, Context context) { in isInvisibleAndAddable() argument
34 if (contactData == null || contactData.isDirectoryEntry()) return false; in isInvisibleAndAddable()
37 if (contactData.isUserProfile()) return false; in isInvisibleAndAddable()
40 if (contactData.getRawContacts().size() != 1) return false; in isInvisibleAndAddable()
43 final List<GroupMetaData> groups = contactData.getGroupMetaData(); in isInvisibleAndAddable()
52 final RawContact rawContact = (RawContact) contactData.getRawContacts().get(0); in isInvisibleAndAddable()
72 public static void addToDefaultGroup(Contact contactData, Context context) { in addToDefaultGroup() argument
73 final long defaultGroupId = getDefaultGroupId(contactData.getGroupMetaData()); in addToDefaultGroup()
79 final RawContactDeltaList contactDeltaList = contactData.createRawContactDeltaList(); in addToDefaultGroup()
DDirectoryContactUtil.java40 public static boolean isDirectoryContact(Contact contactData) { in isDirectoryContact() argument
42 if (contactData == null || !contactData.isDirectoryEntry()) return false; in isDirectoryContact()
45 return contactData.getDirectoryExportSupport() != Directory.EXPORT_SUPPORT_NONE; in isDirectoryContact()
DQuickContactActivity.java1705 Context context, Contact contactData, in dataItemToEntry() argument
1769 (contactData.getNameRawContactId() == dataItem.getRawContactId()); in dataItemToEntry()
1773 && contactData.getDisplayNameSource() == DisplayNameSources.NICKNAME; in dataItemToEntry()
1889 contactData.getPhotoId()); in dataItemToEntry()
1891 UriUtils.parseUriOrNull(contactData.getPhotoUri())); in dataItemToEntry()
1893 contactData.getLookupUri()); in dataItemToEntry()
1895 contactData.getDisplayName()); in dataItemToEntry()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java541 private void loadPhotoBinaryData(Contact contactData) { in loadPhotoBinaryData() argument
542 loadThumbnailBinaryData(contactData); in loadPhotoBinaryData()
545 String photoUri = contactData.getPhotoUri(); in loadPhotoBinaryData()
567 contactData.setPhotoBinaryData(baos.toByteArray()); in loadPhotoBinaryData()
581 contactData.setPhotoBinaryData(contactData.getThumbnailPhotoBinaryData()); in loadPhotoBinaryData()
584 private void loadThumbnailBinaryData(Contact contactData) { in loadThumbnailBinaryData() argument
585 final long photoId = contactData.getPhotoId(); in loadThumbnailBinaryData()
591 for (RawContact rawContact : contactData.getRawContacts()) { in loadThumbnailBinaryData()
599 contactData.setThumbnailPhotoBinaryData(photo.getPhoto()); in loadThumbnailBinaryData()
609 private void loadInvitableAccountTypes(Contact contactData) { in loadInvitableAccountTypes() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DImageViewDrawableSetter.java55 public Bitmap setupContactPhoto(Contact contactData, ImageView photoView) { in setupContactPhoto() argument
56 mContact = contactData; in setupContactPhoto()
58 return setCompressedImage(contactData.getPhotoBinaryData()); in setupContactPhoto()