Home
last modified time | relevance | path

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

12

/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java200 public static Uri removeContactType(Uri photoUri) { in removeContactType() argument
201 String encodedFragment = photoUri.getEncodedFragment(); in removeContactType()
203 Builder builder = photoUri.buildUpon(); in removeContactType()
207 return photoUri; in removeContactType()
216 public static boolean isBusinessContactUri(Uri photoUri) { in isBusinessContactUri() argument
217 if (photoUri == null) { in isBusinessContactUri()
221 String encodedFragment = photoUri.getEncodedFragment(); in isBusinessContactUri()
492 public abstract void loadPhoto(ImageView view, Uri photoUri, int requestedExtent, in loadPhoto() argument
504 public final void loadPhoto(ImageView view, Uri photoUri, int requestedExtent, in loadPhoto() argument
506 loadPhoto(view, photoUri, requestedExtent, darkTheme, isCircular, in loadPhoto()
[all …]
/packages/apps/Contacts/src/com/android/contacts/detail/
DPhotoSelectionHandler.java237 protected abstract void startPhotoActivity(Intent intent, int requestCode, Uri photoUri); in startPhotoActivity() argument
269 private void startTakePhotoActivity(Uri photoUri) { in startTakePhotoActivity() argument
270 final Intent intent = getTakePhotoIntent(photoUri); in startTakePhotoActivity()
271 startPhotoActivity(intent, REQUEST_CODE_CAMERA_WITH_DATA, photoUri); in startTakePhotoActivity()
280 private void startPickFromGalleryActivity(Uri photoUri) { in startPickFromGalleryActivity() argument
281 final Intent intent = getPhotoPickIntent(photoUri); in startPickFromGalleryActivity()
282 startPhotoActivity(intent, REQUEST_CODE_PHOTO_PICKED_WITH_DATA, photoUri); in startPickFromGalleryActivity()
/packages/apps/Messaging/src/com/android/messaging/ui/photoviewer/
DBuglePhotoViewController.java105 final String photoUri = adapter.getPhotoUri(cursor); in updateShareActionProvider() local
115 shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(photoUri)); in updateShareActionProvider()
126 final Uri photoUri = Uri.parse(getAdapter().getPhotoUri(cursor)); in isTempFile() local
127 return MediaScratchFileProvider.isMediaScratchSpaceUri(photoUri); in isTempFile()
161 final String photoUri = adapter.getPhotoUri(cursor); in onOptionsItemSelected() local
163 Uri.parse(photoUri), adapter.getContentType(cursor)).executeOnThreadPool(); in onOptionsItemSelected()
DBuglePhotoBitmapLoader.java45 public BuglePhotoBitmapLoader(Context context, String photoUri) { in BuglePhotoBitmapLoader() argument
47 mPhotoUri = photoUri; in BuglePhotoBitmapLoader()
51 public void setPhotoUri(String photoUri) { in setPhotoUri() argument
52 mPhotoUri = photoUri; in setPhotoUri()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPhotoEditorView.java141 final Uri photoUri = DisplayPhoto.CONTENT_URI.buildUpon() in setValues() local
143 setFullSizedPhoto(photoUri); in setValues()
207 public void setFullSizedPhoto(Uri photoUri) { in setFullSizedPhoto() argument
208 if (photoUri != null) { in setFullSizedPhoto()
217 mContactPhotoManager.loadPhoto(mPhotoImageView, photoUri, in setFullSizedPhoto()
DContactEditorFragment.java256 final Uri photoUri = updatedPhotoUriForRawContact(rawContactId); in bindEditors() local
257 if (photoUri != null) editor.setFullSizedPhoto(photoUri); in bindEditors()
543 private void setPhoto(long rawContact, Bitmap photo, Uri photoUri) { in setPhoto() argument
574 mUpdatedPhotos.putParcelable(String.valueOf(rawContact), photoUri); in setPhoto() local
656 public void startPhotoActivity(Intent intent, int requestCode, Uri photoUri) { in startPhotoActivity() argument
660 mCurrentPhotoUri = photoUri; in startPhotoActivity()
DCompactPhotoEditorView.java166 final Uri photoUri = DisplayPhoto.CONTENT_URI.buildUpon() in setPhoto() local
168 setFullSizedPhoto(photoUri); in setPhoto()
290 public void setFullSizedPhoto(Uri photoUri) { in setFullSizedPhoto() argument
291 if (photoUri != null) { in setFullSizedPhoto()
300 mContactPhotoManager.loadPhoto(mPhotoImageView, photoUri, in setFullSizedPhoto()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DContactInfo.java45 public Uri photoUri; field in ContactInfo
79 if (!UriUtils.areEqual(photoUri, other.photoUri)) return false; in equals()
89 .add("photoUri", photoUri).add("objectId", objectId).toString(); in toString()
DContactInfoHelper.java187 info.photoUri = in lookupContactFromUri()
347 UriUtils.nullForNonContactsUri(updatedInfo.photoUri); in updateCallLogContactInfo()
348 if (!UriUtils.areEqual(updatedPhotoUriContactsOnly, callLogInfo.photoUri)) { in updateCallLogContactInfo()
368 UriUtils.nullForNonContactsUri(updatedInfo.photoUri))); in updateCallLogContactInfo()
412 info.photoUri = UriUtils.nullForNonContactsUri( in getContactInfo()
DCallLogListItemViewHolder.java417 public void setPhoto(long photoId, Uri photoUri, Uri contactUri, String displayName, in setPhoto() argument
437 if (photoId == 0 && photoUri != null) { in setPhoto()
438 ContactPhotoManager.getInstance(mContext).loadPhoto(quickContactView, photoUri, in setPhoto()
455 info.photoUri, in onClick()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DAccountImageHelper.java65 String photoUri = null; in getAccountPictureUri() local
75 photoUri = c.getString(4); in getAccountPictureUri()
84 if (contactId != -1 && !TextUtils.isEmpty(lookupKey) && !TextUtils.isEmpty(photoUri)) { in getAccountPictureUri()
90 return photoUri; in getAccountPictureUri()
/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()
261 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/Dialer/src/com/android/dialer/
DCallDetailActivity.java116 final Uri photoUri = firstDetails.photoUri;
183 contactUri, photoUri, nameForDefaultImage, lookupKey, contactType);
308 private void loadContactPhotos(Uri contactUri, Uri photoUri, String displayName, in loadContactPhotos() argument
318 mContactPhotoManager.loadDirectoryPhoto(mQuickContactBadge, photoUri, in loadContactPhotos()
/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java3762 Uri photoUri = insertPhoto(rawContactId); in testPhonesWithStatusUpdate() local
3763 long photoId = ContentUris.parseId(photoUri); in testPhonesWithStatusUpdate()
5360 String photoUri = c.getString(1); in testInsertStreamItemsAndPhotosInBatch() local
5362 expectedPhotoBytes, mResolver.openInputStream(Uri.parse(photoUri))); in testInsertStreamItemsAndPhotosInBatch()
5410 Uri photoUri = in testUpdateStreamItemPhotoById() local
5416 mResolver.update(photoUri, photoValues, null, null); in testUpdateStreamItemPhotoById()
5418 assertStoredValues(photoUri, photoValues); in testUpdateStreamItemPhotoById()
5421 String displayPhotoUri = getStoredValue(photoUri, StreamItemPhotos.PHOTO_URI); in testUpdateStreamItemPhotoById()
5439 Uri photoUri = in testUpdateStreamItemPhotoWithContentValues() local
5443 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/ContactsCommon/src/com/android/contacts/common/dialog/
DCallSubjectDialog.java235 public static void start(Activity activity, long photoId, Uri photoUri, Uri contactUri, in start() argument
240 arguments.putParcelable(ARG_PHOTO_URI, photoUri); in start()
377 private void setPhoto(long photoId, Uri photoUri, Uri contactUri, String displayName, in setPhoto() argument
398 if (photoId == 0 && photoUri != null) { in setPhoto()
399 ContactPhotoManager.getInstance(this).loadPhoto(mContactPhoto, photoUri, in setPhoto()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java241 String photoUri = cursor.getString(mPhotoUriIndex); in createContactEntryFromCursor() local
248 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
/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/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/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.java384 String callerNumberType, String lookupKey, Uri photoUri, boolean thisRowCanSeparate, in setCallerInfoForRow() argument
409 DefaultImageRequest imageRequest = (photoUri != null) ? null : in setCallerInfoForRow()
412 mContactPhotoManager.loadDirectoryPhoto(photoView, photoUri, false, true, imageRequest); in setCallerInfoForRow()

12