Home
last modified time | relevance | path

Searched refs:photoId (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogAdapter.java745 final long photoId = info.photoId; in bindView() local
803 if (photoId == 0 && photoUri != null) { in bindView()
806 setPhoto(views, photoId, lookupUri, nameForDefaultImage, lookupKey, contactType); in bindView()
1120 if (updatedInfo.photoId != callLogInfo.photoId) { in updateCallLogContactInfoCache()
1121 values.put(Calls.CACHED_PHOTO_ID, updatedInfo.photoId); in updateCallLogContactInfoCache()
1136 values.put(Calls.CACHED_PHOTO_ID, updatedInfo.photoId); in updateCallLogContactInfoCache()
1164 info.photoId = c.getLong(CallLogQuery.CACHED_PHOTO_ID); in getContactInfoFromCallLog()
1207 private void setPhoto(CallLogListItemViews views, long photoId, Uri contactUri, in setPhoto() argument
1213 mContactPhotoManager.loadThumbnail(views.quickContactView, photoId, false /* darkTheme */, in setPhoto()
DContactInfo.java38 public long photoId; field in ContactInfo
75 if (photoId != other.photoId) return false; in equals()
85 formattedNumber).add("normalizedNumber", normalizedNumber).add("photoId", photoId) in toString()
DContactInfoHelper.java169 info.photoId = phonesCursor.getLong(PhoneQuery.PHOTO_ID); in lookupContactFromUri()
/packages/apps/Dialer/src/com/android/dialer/database/
DDialerDatabaseHelper.java245 public final long photoId; field in DialerDatabaseHelper.ContactNumber
248 String lookupKey, long photoId) { in ContactNumber() argument
254 this.photoId = photoId; in ContactNumber()
259 return Objects.hashCode(id, dataId, displayName, phoneNumber, lookupKey, photoId); in hashCode()
274 && Objects.equal(this.photoId, that.photoId); in equals()
970 final long photoId = cursor.getLong(columnPhotoId); in getLooseMatches() local
992 photoId)); in getLooseMatches()
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DContactHeaderWidget.java268 final long photoId = cursor.getLong(ContactQuery.PHOTO_ID); in onQueryComplete() local
270 setPhotoId(photoId, lookupUri); in onQueryComplete()
379 public void setPhotoId(final long photoId, final Uri lookupUri) { in setPhotoId() argument
380 if (photoId == 0) { in setPhotoId()
385 startPhotoQuery(photoId, lookupUri, in setPhotoId()
604 protected void startPhotoQuery(long photoId, Uri lookupKey, boolean resetQueryHandler) { in startPhotoQuery() argument
610 ContentUris.withAppendedId(Data.CONTENT_URI, photoId), PhotoQuery.COLUMNS, in startPhotoQuery()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java448 public abstract void loadThumbnail(ImageView view, long photoId, boolean darkTheme, in loadThumbnail() argument
456 public final void loadThumbnail(ImageView view, long photoId, boolean darkTheme, in loadThumbnail() argument
458 loadThumbnail(view, photoId, darkTheme, isCircular, defaultImageRequest, DEFAULT_AVATAR); in loadThumbnail()
787 public void loadThumbnail(ImageView view, long photoId, boolean darkTheme, boolean isCircular, in loadThumbnail() argument
789 if (photoId == 0) { in loadThumbnail()
794 if (DEBUG) Log.d(TAG, "loadPhoto request: " + photoId); in loadThumbnail()
795 loadPhotoByIdOrUri(view, Request.createFromThumbnailId(photoId, darkTheme, isCircular, in loadThumbnail()
1364 Long photoId = mPreloadPhotoIds.get(preloadSize); in preloadPhotosInBackground() local
1365 mPhotoIds.add(photoId); in preloadPhotosInBackground()
1366 mPhotoIdsAsStrings.add(photoId.toString()); in preloadPhotosInBackground()
/packages/apps/UnifiedEmail/src/com/android/mail/
DSenderInfoLoader.java161 long photoId = cursor.getLong(DATA_PHOTO_ID_COLUMN); in loadContactPhotos() local
162 photoIdsAsStrings.add(Long.toString(photoId)); in loadContactPhotos()
163 photoIdMap.put(photoId, Pair.create(email, result)); in loadContactPhotos()
212 long photoId = cursor.getLong(PHOTO_PHOTO_ID_COLUMN); in loadContactPhotos() local
213 Pair<String, ContactInfo> prev = photoIdMap.get(photoId); in loadContactPhotos()
/packages/apps/Email/src/com/android/email/activity/
DContactStatusLoader.java112 final long photoId; in getContactInfo() local
118 photoId = c.getLong(COLUMN_PHOTO_ID); in getContactInfo()
129 if (photoId != -1) { in getContactInfo()
131 ContentUris.withAppendedId(Data.CONTENT_URI, photoId), PHOTO_PROJECTION, in getContactInfo()
/packages/apps/Contacts/src/com/android/contacts/list/
DPostalAddressListAdapter.java163 long photoId = 0; in bindPhoto() local
165 photoId = cursor.getLong(PostalQuery.POSTAL_PHOTO_ID); in bindPhoto()
169 if (photoId == 0) { in bindPhoto()
174 getPhotoLoader().loadThumbnail(view.getPhotoView(), photoId, false, getCircularPhotos(), in bindPhoto() local
DEmailAddressListAdapter.java172 long photoId = 0; in bindPhoto() local
174 photoId = cursor.getLong(EmailQuery.EMAIL_PHOTO_ID); in bindPhoto()
177 if (photoId == 0) { in bindPhoto()
181 getPhotoLoader().loadThumbnail(view.getPhotoView(), photoId, false, getCircularPhotos(), in bindPhoto() local
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListAdapter.java228 long photoId = 0; in bindPhoto() local
230 photoId = cursor.getLong(ContactQuery.CONTACT_PHOTO_ID); in bindPhoto()
233 if (photoId != 0) { in bindPhoto()
234 getPhotoLoader().loadThumbnail(view.getPhotoView(), photoId, false, in bindPhoto() local
DPhoneNumberListAdapter.java435 long photoId = 0; in bindPhoto() local
437 photoId = cursor.getLong(PhoneQuery.PHOTO_ID); in bindPhoto()
440 if (photoId != 0) { in bindPhoto()
441 getPhotoLoader().loadThumbnail(view.getPhotoView(), photoId, false, in bindPhoto() local
DContactEntryListAdapter.java717 long photoId = 0; in bindQuickContact() local
719 photoId = cursor.getLong(photoIdColumn); in bindQuickContact()
726 if (photoId != 0 || photoUriColumn == -1) { in bindQuickContact()
727 getPhotoLoader().loadThumbnail(quickContact, photoId, mDarkTheme, mCircularPhotos, in bindQuickContact()
/packages/apps/Contacts/src/com/android/contacts/activities/
DConfirmAddDetailActivity.java324 private void startPhotoQuery(long photoId, Uri lookupKey) { in startPhotoQuery() argument
326 ContentUris.withAppendedId(Data.CONTENT_URI, photoId), in startPhotoQuery()
490 final long photoId = cursor.getLong(ContactQuery.PHOTO_ID); in onQueryComplete() local
495 if (photoId == 0) { in onQueryComplete()
501 startPhotoQuery(photoId, lookupUri); in onQueryComplete()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java550 final long photoId = contactData.getPhotoId(); in loadThumbnailBinaryData() local
551 if (photoId <= 0) { in loadThumbnailBinaryData()
558 if (dataItem.getId() == photoId) { in loadThumbnailBinaryData()
616 final long photoId = cursor.getLong(ContactQuery.PHOTO_ID); in loadContactHeaderData() local
635 contactId, nameRawContactId, displayNameSource, photoId, photoUri, displayName, in loadContactHeaderData()
DContact.java144 long id, long nameRawContactId, int displayNameSource, long photoId, in Contact() argument
160 mPhotoId = photoId; in Contact()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java143 private void addRowWithPhoto(long photoId) { in addRowWithPhoto() argument
146 ContentUris.withAppendedId(Data.CONTENT_URI, photoId), in addRowWithPhoto()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DContactsUtils.java160 public static Bitmap loadContactPhoto(Context context, long photoId, in loadContactPhoto() argument
167 ContentUris.withAppendedId(Data.CONTENT_URI, photoId), in loadContactPhoto()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java427 long photoId = mDataCursor.getLong(DataQuery.PHOTO_ID); in getSuggestions() local
428 if (dataId == photoId && !mDataCursor.isNull(DataQuery.PHOTO)) { in getSuggestions()
/packages/apps/Calendar/src/com/android/calendar/event/
DAttendeesView.java439 final long photoId = cursor.getLong(EMAIL_PROJECTION_PHOTO_ID_INDEX); in onQueryComplete() local
441 if (photoId > 0) { in onQueryComplete()
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DSmartDialPrefixTest.java144 int id, String number, int contactId, String lookupKey, String displayName, int photoId, in constructNewContact() argument
157 photoId, lastTimeUsed, timesUsed, starred, isSuperPrimary, inVisibleGroup, in constructNewContact()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockContactPhotoManager.java32 public void loadThumbnail(ImageView view, long photoId, boolean darkTheme, boolean isCircular, in loadThumbnail() argument
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialCursorLoader.java96 row[PhoneQuery.PHOTO_ID] = contact.photoId; in loadInBackground()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DLegacyContactsProviderTest.java731 long photoId = Long.parseLong(getStoredValue(photoUri, Photos._ID)); in testPhotoUpdate() local
735 Uri contentUri = ContentUris.withAppendedId(Photos.CONTENT_URI, photoId); in testPhotoUpdate()
DBaseContactsProvider2Test.java565 long photoId = c.getInt(c.getColumnIndex(Contacts.PHOTO_ID)); in queryPhotoId() local
567 return photoId; in queryPhotoId()

12