Home
last modified time | relevance | path

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

12

/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/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java201 public static Uri removeContactType(Uri photoUri) { in removeContactType() argument
202 String encodedFragment = photoUri.getEncodedFragment(); in removeContactType()
204 Builder builder = photoUri.buildUpon(); in removeContactType()
208 return photoUri; in removeContactType()
217 public static boolean isBusinessContactUri(Uri photoUri) { in isBusinessContactUri() argument
218 if (photoUri == null) { in isBusinessContactUri()
222 String encodedFragment = photoUri.getEncodedFragment(); in isBusinessContactUri()
494 public abstract void loadPhoto(ImageView view, Uri photoUri, int requestedExtent, in loadPhoto() argument
506 public final void loadPhoto(ImageView view, Uri photoUri, int requestedExtent, in loadPhoto() argument
508 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/Dialer/src/com/android/dialer/calllog/
DContactInfo.java56 public Uri photoUri; field in ContactInfo
92 if (!UriUtils.areEqual(photoUri, other.photoUri)) return false; in equals()
105 .add("photoUri", photoUri).add("objectId", objectId) in toString()
DContactInfoHelper.java204 info.photoUri = UriUtils.parseUriOrNull(phoneLookupCursor.getString(PhoneQuery.PHOTO_URI)); in createPhoneLookupContactInfo()
348 UriUtils.nullForNonContactsUri(updatedInfo.photoUri); in updateCallLogContactInfo()
350 !UriUtils.areEqual(updatedPhotoUriContactsOnly, callLogInfo.photoUri)) { in updateCallLogContactInfo()
371 UriUtils.nullForNonContactsUri(updatedInfo.photoUri))); in updateCallLogContactInfo()
447 info.photoUri = DialerCompatUtils.isCallsCachedPhotoUriCompatible() ? in getContactInfo()
/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/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()
DCompactPhotoEditorView.java131 final Uri photoUri = ContactsContract.DisplayPhoto.CONTENT_URI.buildUpon() in setPhoto() local
133 setFullSizedPhoto(photoUri); in setPhoto()
212 public void setFullSizedPhoto(Uri photoUri) { in setFullSizedPhoto() argument
214 mPhotoImageView, photoUri); in setFullSizedPhoto() local
DContactEditorFragment.java246 final Uri photoUri = updatedPhotoUriForRawContact(rawContactId); in bindEditors() local
247 if (photoUri != null) editor.setFullSizedPhoto(photoUri); in bindEditors()
469 private void setPhoto(long rawContact, Bitmap photo, Uri photoUri) { in setPhoto() argument
494 mUpdatedPhotos.putParcelable(String.valueOf(rawContact), photoUri); in setPhoto() local
576 public void startPhotoActivity(Intent intent, int requestCode, Uri photoUri) { in startPhotoActivity() argument
580 mCurrentPhotoUri = photoUri; in startPhotoActivity()
/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/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/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
/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/ContactsCommon/src/com/android/contacts/common/list/
DContactTileView.java130 configureViewForImage(entry.photoUri == null);
132 mPhotoManager.loadPhoto(mPhoto, entry.photoUri, getApproximateImageSize(),
140 mPhotoManager.loadPhoto(mQuickContact, entry.photoUri,
DContactTileAdapter.java241 String photoUri = cursor.getString(mPhotoUriIndex); in createContactEntryFromCursor() local
248 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); in createContactEntryFromCursor()
DContactListAdapter.java257 final Uri photoUri = photoUriString == null ? null : Uri.parse(photoUriString); in bindPhoto() local
259 if (photoUri == null) { in bindPhoto()
264 getPhotoLoader().loadDirectoryPhoto(view.getPhotoView(), photoUri, false, in bindPhoto() local
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
DEnterpriseContactsCursorWrapper.java196 final String photoUri = originalCursor.getString(photoUriIndex); in getCorpDisplayPhotoUri() local
197 if (photoUri == null) { in getCorpDisplayPhotoUri()
201 final int uriCode = sUriMatcher.match(Uri.parse(photoUri)); in getCorpDisplayPhotoUri()
/packages/apps/ContactsCommon/src/com/android/contacts/common/dialog/
DCallSubjectDialog.java237 public static void start(Activity activity, long photoId, Uri photoUri, Uri contactUri, in start() argument
242 arguments.putParcelable(ARG_PHOTO_URI, photoUri); in start()
390 private void setPhoto(long photoId, Uri photoUri, Uri contactUri, String displayName, in setPhoto() argument
413 if (photoId == 0 && photoUri != null) { in setPhoto()
414 ContactPhotoManager.getInstance(this).loadPhoto(mContactPhoto, photoUri, in setPhoto()
/packages/apps/Dialer/tests/src/com/android/dialer/contactinfo/
DContactPhotoLoaderTest.java71 info.photoUri = getResourceUri(R.drawable.phone_icon); in testGetIcon_Photo()
78 info.photoUri = Uri.parse("file://invalid/uri"); in testGetIcon_Photo_Invalid()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupEditorFragment.java770 String photoUri = data.getString(GroupEditorQuery.CONTACT_PHOTO_URI);
772 displayName, photoUri));
815 String photoUri = cursor.getString(CONTACT_PHOTO_URI_COLUMN_INDEX);
817 Member member = new Member(mRawContactId, lookupKey, contactId, displayName, photoUri);
839 String photoUri) { in Member() argument
845 mPhotoUri = (photoUri != null) ? Uri.parse(photoUri) : null; in Member()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java398 final String photoUri = json.optString(Contacts.PHOTO_URI, null); in loadEncodedContactEntity() local
408 photoUri, in loadEncodedContactEntity()
545 String photoUri = contactData.getPhotoUri(); in loadPhotoBinaryData() local
546 if (photoUri != null) { in loadPhotoBinaryData()
550 final Uri uri = Uri.parse(photoUri); in loadPhotoBinaryData()
554 inputStream = new URL(photoUri).openStream(); in loadPhotoBinaryData()
652 final String photoUri = cursor.getString(ContactQuery.PHOTO_URI); in loadContactHeaderData() local
670 contactId, nameRawContactId, displayNameSource, photoId, photoUri, displayName, in loadContactHeaderData()
/packages/apps/Dialer/src/com/android/dialer/contactinfo/
DContactPhotoLoader.java80 if (mContactInfo.photoUri == null) { in createPhotoIconDrawable()
85 mContactInfo.photoUri); in createPhotoIconDrawable()
/packages/apps/EmergencyInfo/src/com/android/emergency/
DEmergencyContactManager.java63 Uri photoUri = ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, in getContact() local
66 photoUri, in getContact()
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoritesTileAdapter.java279 final String photoUri = cursor.getString(mPhotoUriIndex); in saveCursorToCache() local
295 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); in saveCursorToCache()

12