Home
last modified time | relevance | path

Searched refs:photoUri (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java193 public static Uri removeContactType(Uri photoUri) { in removeContactType() argument
194 String encodedFragment = photoUri.getEncodedFragment(); in removeContactType()
196 Builder builder = photoUri.buildUpon(); in removeContactType()
200 return photoUri; in removeContactType()
209 public static boolean isBusinessContactUri(Uri photoUri) { in isBusinessContactUri() argument
210 if (photoUri == null) { in isBusinessContactUri()
214 String encodedFragment = photoUri.getEncodedFragment(); in isBusinessContactUri()
479 public abstract void loadPhoto(ImageView view, Uri photoUri, int requestedExtent, in loadPhoto() argument
491 public final void loadPhoto(ImageView view, Uri photoUri, int requestedExtent, in loadPhoto() argument
493 loadPhoto(view, photoUri, requestedExtent, darkTheme, isCircular, in loadPhoto()
[all …]
/packages/apps/Contacts/src/com/android/contacts/detail/
DPhotoSelectionHandler.java232 protected abstract void startPhotoActivity(Intent intent, int requestCode, Uri photoUri); in startPhotoActivity() argument
254 private void startTakePhotoActivity(Uri photoUri) { in startTakePhotoActivity() argument
255 final Intent intent = getTakePhotoIntent(photoUri); in startTakePhotoActivity()
256 startPhotoActivity(intent, REQUEST_CODE_CAMERA_WITH_DATA, photoUri); in startTakePhotoActivity()
265 private void startPickFromGalleryActivity(Uri photoUri) { in startPickFromGalleryActivity() argument
266 final Intent intent = getPhotoPickIntent(photoUri); in startPickFromGalleryActivity()
267 startPhotoActivity(intent, REQUEST_CODE_PHOTO_PICKED_WITH_DATA, photoUri); in startPickFromGalleryActivity()
DContactDetailPhotoSetter.java81 Uri photoUri = null; in onClick() local
83 photoUri = Uri.parse(mContactData.getPhotoUri()); in onClick()
86 photoUri, mPhotoBitmap, mPhotoBytes, rect, delta, mContactData.isUserProfile(), in onClick()
92 photoUri, mPhotoBitmap, mPhotoBytes); in onClick()
/packages/apps/Dialer/src/com/android/dialer/
DCallDetailActivity.java420 final Uri photoUri = firstDetails.photoUri; in updateData() local
500 contactUri, photoUri, nameForDefaultImage, lookupKey, contactType); in updateData()
557 final Uri photoUri; in getPhoneCallDetailsForUri() local
572 photoUri = null; in getPhoneCallDetailsForUri()
580 photoUri = info.photoUri; in getPhoneCallDetailsForUri()
592 nameText, numberType, numberLabel, lookupUri, photoUri, sourceType, in getPhoneCallDetailsForUri()
602 private void loadContactPhotos(Uri contactUri, Uri photoUri, String displayName, in loadContactPhotos() argument
612 mContactPhotoManager.loadDirectoryPhoto(mQuickContactBadge, photoUri, in loadContactPhotos()
DPhoneCallDetails.java65 public final Uri photoUri; field in PhoneCallDetails
114 int numberType, CharSequence numberLabel, Uri contactUri, Uri photoUri, in PhoneCallDetails() argument
129 this.photoUri = photoUri; in PhoneCallDetails()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java143 final Uri photoUri = DisplayPhoto.CONTENT_URI.buildUpon() in setValues() local
145 setFullSizedPhoto(photoUri); in setValues()
209 public void setFullSizedPhoto(Uri photoUri) { in setFullSizedPhoto() argument
210 if (photoUri != null) { in setFullSizedPhoto()
219 mContactPhotoManager.loadPhoto(mPhotoImageView, photoUri, in setFullSizedPhoto()
DContactEditorFragment.java880 final Uri photoUri = updatedPhotoUriForRawContact(rawContactId); in bindEditors() local
881 if (photoUri != null) editor.setFullSizedPhoto(photoUri); in bindEditors()
1904 private void setPhoto(long rawContact, Bitmap photo, Uri photoUri) {
1929 mUpdatedPhotos.putParcelable(String.valueOf(rawContact), photoUri);
2079 public void startPhotoActivity(Intent intent, int requestCode, Uri photoUri) {
2083 mCurrentPhotoUri = photoUri;
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java3523 Uri photoUri = insertPhoto(rawContactId); in testPhonesWithStatusUpdate() local
3524 long photoId = ContentUris.parseId(photoUri); in testPhonesWithStatusUpdate()
5133 String photoUri = c.getString(1); in testInsertStreamItemsAndPhotosInBatch() local
5135 expectedPhotoBytes, mResolver.openInputStream(Uri.parse(photoUri))); in testInsertStreamItemsAndPhotosInBatch()
5183 Uri photoUri = in testUpdateStreamItemPhotoById() local
5189 mResolver.update(photoUri, photoValues, null, null); in testUpdateStreamItemPhotoById()
5191 assertStoredValues(photoUri, photoValues); in testUpdateStreamItemPhotoById()
5194 String displayPhotoUri = getStoredValue(photoUri, StreamItemPhotos.PHOTO_URI); in testUpdateStreamItemPhotoById()
5212 Uri photoUri = in testUpdateStreamItemPhotoWithContentValues() local
5216 mResolver.update(photoUri, photoValues, null, null); in testUpdateStreamItemPhotoWithContentValues()
[all …]
DLegacyContactsProviderTest.java726 Uri photoUri = Uri.withAppendedPath(personUri, Photos.CONTENT_DIRECTORY); in testPhotoUpdate() local
727 mResolver.update(photoUri, values, null, null); in testPhotoUpdate()
729 assertStoredValues(photoUri, values); in testPhotoUpdate()
731 long photoId = Long.parseLong(getStoredValue(photoUri, Photos._ID)); in testPhotoUpdate()
739 assertStoredValues(photoUri, values); in testPhotoUpdate()
779 Uri photoUri = Uri.withAppendedPath(personUri, Photos.CONTENT_DIRECTORY); in assertSearchSuggestion() local
780 mResolver.update(photoUri, values, null, null); in assertSearchSuggestion()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DContactInfo.java40 public Uri photoUri; field in ContactInfo
76 if (!UriUtils.areEqual(photoUri, other.photoUri)) return false; in equals()
86 .add("photoUri", photoUri).add("objectId", objectId).toString(); in toString()
DCallLogAdapter.java761 final Uri photoUri = info.photoUri; in bindView() local
793 geocode, callTypes, date, duration, name, ntype, label, lookupUri, photoUri, in bindView()
818 if (photoId == 0 && photoUri != null) { in bindView()
819 setPhoto(views, photoUri, lookupUri, nameForDefaultImage, lookupKey, contactType); in bindView()
1215 info.photoUri = null; // We do not cache the photo URI. in getContactInfoFromCallLog()
1267 private void setPhoto(CallLogListItemViews views, Uri photoUri, Uri contactUri, in setPhoto() argument
1273 mContactPhotoManager.loadPhoto(views.quickContactView, photoUri, mPhotoSize, in setPhoto()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DGlobalSearchSupport.java73 String photoUri; field in GlobalSearchSupport.SearchSuggestion
88 if (photoUri != null) { in asList()
89 icon1 = photoUri.toString(); in asList()
151 photoUri = null; in reset()
260 suggestion.photoUri = c.getString(2); in addSearchSuggestionsBasedOnFilter()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java380 final String photoUri = json.optString(Contacts.PHOTO_URI, null); in loadEncodedContactEntity() local
390 photoUri, in loadEncodedContactEntity()
527 String photoUri = contactData.getPhotoUri(); in loadPhotoBinaryData() local
528 if (photoUri != null) { in loadPhotoBinaryData()
532 final Uri uri = Uri.parse(photoUri); in loadPhotoBinaryData()
536 inputStream = new URL(photoUri).openStream(); in loadPhotoBinaryData()
634 final String photoUri = cursor.getString(ContactQuery.PHOTO_URI); in loadContactHeaderData() local
652 contactId, nameRawContactId, displayNameSource, photoId, photoUri, displayName, in loadContactHeaderData()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DAccountImageHelper.java69 String photoUri = null; in getAccountPictureUri() local
79 photoUri = c.getString(4); in getAccountPictureUri()
88 if (contactId != -1 && !TextUtils.isEmpty(lookupKey) && !TextUtils.isEmpty(photoUri)) { in getAccountPictureUri()
94 return photoUri; in getAccountPictureUri()
/packages/apps/Contacts/src/com/android/contacts/activities/
DPhotoSelectionActivity.java269 public static Intent buildIntent(Context context, Uri photoUri, Bitmap photoBitmap, in buildIntent() argument
273 if (photoUri != null && photoBitmap != null && photoBytes != null) { in buildIntent()
274 intent.putExtra(PHOTO_URI, photoUri); in buildIntent()
529 public void startPhotoActivity(Intent intent, int requestCode, Uri photoUri) { in startPhotoActivity() argument
531 mCurrentPhotoUri = photoUri; in startPhotoActivity()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupEditorFragment.java788 String photoUri = data.getString(GroupEditorQuery.CONTACT_PHOTO_URI);
790 displayName, photoUri));
833 String photoUri = cursor.getString(CONTACT_PHOTO_URI_COLUMN_INDEX);
835 Member member = new Member(mRawContactId, lookupKey, contactId, displayName, photoUri);
857 String photoUri) { in Member() argument
863 mPhotoUri = (photoUri != null) ? Uri.parse(photoUri) : null; in Member()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java240 String photoUri = cursor.getString(mPhotoUriIndex); in createContactEntryFromCursor() local
247 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); in createContactEntryFromCursor()
DContactTileView.java129 configureViewForImage(entry.photoUri == null);
131 mPhotoManager.loadPhoto(mPhoto, entry.photoUri, getApproximateImageSize(),
139 mPhotoManager.loadPhoto(mQuickContact, entry.photoUri,
DContactListAdapter.java238 final Uri photoUri = photoUriString == null ? null : Uri.parse(photoUriString); in bindPhoto() local
240 if (photoUri == null) { in bindPhoto()
245 getPhotoLoader().loadDirectoryPhoto(view.getPhotoView(), photoUri, false, in bindPhoto() local
DPhoneNumberListAdapter.java445 final Uri photoUri = photoUriString == null ? null : Uri.parse(photoUriString); in bindPhoto() local
448 if (photoUri == null) { in bindPhoto()
453 getPhotoLoader().loadDirectoryPhoto(view.getPhotoView(), photoUri, false, in bindPhoto() local
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoritesTileAdapter.java261 final String photoUri = cursor.getString(mPhotoUriIndex); in saveCursorToCache() local
273 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); in saveCursorToCache()
/packages/apps/Contacts/src/com/android/contacts/util/
DContactPhotoUtils.java139 public static void addPhotoPickerExtras(Intent intent, Uri photoUri) { in addPhotoPickerExtras() argument
140 intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri); in addPhotoPickerExtras()
143 intent.setClipData(ClipData.newRawUri(MediaStore.EXTRA_OUTPUT, photoUri)); in addPhotoPickerExtras()
/packages/apps/Calendar/src/com/android/calendar/
DContactsAsyncHelper.java191 AttendeeItem item, Runnable run, Uri photoUri) { in retrieveContactPhotoAsync() argument
195 if (photoUri == null) { in retrieveContactPhotoAsync()
206 args.uri = photoUri; in retrieveContactPhotoAsync()
/packages/apps/InCallUI/src/com/android/incallui/
DConferenceParticipantListAdapter.java382 String callerNumberType, String lookupKey, Uri photoUri, boolean thisRowCanSeparate, in setCallerInfoForRow() argument
407 DefaultImageRequest imageRequest = (photoUri != null) ? null : in setCallerInfoForRow()
410 mContactPhotoManager.loadDirectoryPhoto(photoView, photoUri, false, true, imageRequest); in setCallerInfoForRow()
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockContactPhotoManager.java38 public void loadPhoto(ImageView view, Uri photoUri, int requestedExtent, boolean darkTheme, in loadPhoto() argument
66 public void cacheBitmap(Uri photoUri, Bitmap bitmap, byte[] photoBytes) { in cacheBitmap() argument

12