Searched refs:inputUri (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | ContactPhotoUtils.java | 149 public static boolean savePhotoFromUriToUri(Context context, Uri inputUri, Uri outputUri, in savePhotoFromUriToUri() argument 151 if (inputUri == null || outputUri == null) { in savePhotoFromUriToUri() 156 InputStream inputStream = context.getContentResolver().openInputStream(inputUri)) { in savePhotoFromUriToUri() 165 Log.v(TAG, "Wrote " + totalLength + " bytes for photo " + inputUri.toString()); in savePhotoFromUriToUri() 167 Log.e(TAG, "Failed to write photo: " + inputUri.toString() + " because: " + e); in savePhotoFromUriToUri() 171 context.getContentResolver().delete(inputUri, null, null); in savePhotoFromUriToUri()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | PhotoSelectionHandler.java | 242 private void doCropPhoto(Uri inputUri, Uri outputUri) { in doCropPhoto() argument 243 final Intent intent = getCropImageIntent(inputUri, outputUri); in doCropPhoto() 246 getListener().onPhotoSelected(inputUri); in doCropPhoto() 256 startPhotoActivity(intent, REQUEST_CROP_PHOTO, inputUri); in doCropPhoto() 333 private Intent getCropImageIntent(Uri inputUri, Uri outputUri) { in getCropImageIntent() argument 335 intent.setDataAndType(inputUri, "image/*"); in getCropImageIntent()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | AttachPhotoActivity.java | 172 final Uri inputUri = myIntent.getData(); in onActivityResult() local 179 if (!ContactPhotoUtils.savePhotoFromUriToUri(this, inputUri, mTempPhotoUri, false)) { in onActivityResult()
|