/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
D | ContactPhotoManager.java | 193 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/ |
D | PhotoSelectionHandler.java | 232 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()
|
D | ContactDetailPhotoSetter.java | 81 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/ |
D | CallDetailActivity.java | 420 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()
|
D | PhoneCallDetails.java | 65 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/ |
D | PhotoEditorView.java | 143 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()
|
D | ContactEditorFragment.java | 880 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/ |
D | ContactsProvider2Test.java | 3523 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 …]
|
D | LegacyContactsProviderTest.java | 726 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/ |
D | ContactInfo.java | 40 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()
|
D | CallLogAdapter.java | 761 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/ |
D | GlobalSearchSupport.java | 73 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/ |
D | ContactLoader.java | 380 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/ |
D | AccountImageHelper.java | 69 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/ |
D | PhotoSelectionActivity.java | 269 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/ |
D | GroupEditorFragment.java | 788 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/ |
D | ContactTileAdapter.java | 240 String photoUri = cursor.getString(mPhotoUriIndex); in createContactEntryFromCursor() local 247 contact.photoUri = (photoUri != null ? Uri.parse(photoUri) : null); in createContactEntryFromCursor()
|
D | ContactTileView.java | 129 configureViewForImage(entry.photoUri == null); 131 mPhotoManager.loadPhoto(mPhoto, entry.photoUri, getApproximateImageSize(), 139 mPhotoManager.loadPhoto(mQuickContact, entry.photoUri,
|
D | ContactListAdapter.java | 238 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
|
D | PhoneNumberListAdapter.java | 445 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/ |
D | PhoneFavoritesTileAdapter.java | 261 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/ |
D | ContactPhotoUtils.java | 139 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/ |
D | ContactsAsyncHelper.java | 191 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/ |
D | ConferenceParticipantListAdapter.java | 382 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/ |
D | MockContactPhotoManager.java | 38 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
|