Home
last modified time | relevance | path

Searched refs:sourceUri (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java132 public SaveImage(Context context, Uri sourceUri, Uri selectedImageUri, in SaveImage() argument
135 mSourceUri = sourceUri; in SaveImage()
147 public static File getFinalSaveDirectory(Context context, Uri sourceUri) { in getFinalSaveDirectory() argument
148 File saveDirectory = SaveImage.getSaveDirectory(context, sourceUri); in getFinalSaveDirectory()
159 public static File getNewFile(Context context, Uri sourceUri) { in getNewFile() argument
160 File saveDirectory = getFinalSaveDirectory(context, sourceUri); in getNewFile()
163 if (hasPanoPrefix(context, sourceUri)) { in getNewFile()
527 public static Uri makeAndInsertUri(Context context, Uri sourceUri) { in makeAndInsertUri() argument
530 File saveDirectory = getFinalSaveDirectory(context, sourceUri); in makeAndInsertUri()
532 return linkNewFileToUri(context, sourceUri, file, time, false); in makeAndInsertUri()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImageSavingTask.java33 Uri sourceUri; field in ImageSavingTask.SaveRequest
67 public void saveImage(Uri sourceUri, Uri selectedUri, in saveImage() argument
72 request.sourceUri = sourceUri; in saveImage()
86 Uri sourceUri = request.sourceUri; in doInBackground() local
96 updateBitmap.bitmap = createNotificationBitmap(previewImage, sourceUri, preset); in doInBackground()
98 SaveImage saveImage = new SaveImage(mProcessingService, sourceUri, in doInBackground()
148 private Bitmap createNotificationBitmap(Bitmap preview, Uri sourceUri, ImagePreset preset) { in createNotificationBitmap() argument
155 Bitmap bitmap = ImageLoader.loadConstrainedBitmap(sourceUri, getContext(), in createNotificationBitmap()
DProcessingService.java203 Uri sourceUri = Uri.parse(source); in onStartCommand() local
216 handleSaveRequest(sourceUri, selectedUri, destinationFile, preset, in onStartCommand()
235 public void handleSaveRequest(Uri sourceUri, Uri selectedUri, in handleSaveRequest() argument
253 mImageSavingTask.saveImage(sourceUri, selectedUri, destinationFile, in handleSaveRequest()
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DImportVCardActivity.java243 for (Uri sourceUri : mSourceUris) { in run()
253 request = constructImportRequest(null, sourceUri, sourceDisplayName); in run()
405 private String getDisplayName(Uri sourceUri) { in getDisplayName() argument
406 if (sourceUri == null) { in getDisplayName()
415 cursor = resolver.query(sourceUri, in getDisplayName()
434 displayName = sourceUri.getLastPathSegment(); in getDisplayName()
442 private Uri copyTo(final Uri sourceUri, String filename) throws IOException { in copyTo() argument
444 sourceUri, filename)); in copyTo()
451 inputChannel = Channels.newChannel(resolver.openInputStream(sourceUri)); in copyTo()
487 private String readUriToLocalFile(Uri sourceUri) { in readUriToLocalFile() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPendingAttachmentData.java58 @NonNull final Uri sourceUri, final int width, final int height, in PendingAttachmentData() argument
60 super(caption, contentType, sourceUri, width, height, onlySingleAttachment); in PendingAttachmentData()
69 final Uri sourceUri) { in createPendingAttachmentData() argument
70 return createPendingAttachmentData(null, contentType, sourceUri, UNSPECIFIED_SIZE, in createPendingAttachmentData()
75 final String contentType, final Uri sourceUri, final int width, final int height) { in createPendingAttachmentData() argument
77 return new PendingAttachmentData(caption, contentType, sourceUri, width, height, in createPendingAttachmentData()
82 final String contentType, final Uri sourceUri, final int width, final int height, in createPendingAttachmentData() argument
85 return new PendingAttachmentData(caption, contentType, sourceUri, width, height, in createPendingAttachmentData()
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java194 public static Uri persistContentToScratchSpace(final Uri sourceUri) { in persistContentToScratchSpace() argument
198 if (UriUtil.isLocalResourceUri(sourceUri)) { in persistContentToScratchSpace()
199 inputStream = context.getContentResolver().openInputStream(sourceUri); in persistContentToScratchSpace()
202 final URL url = new URL(sourceUri.toString()); in persistContentToScratchSpace()
251 final Uri sourceUri, final File outputDir, final String contentType) { in persistContent() argument
255 if (UriUtil.isLocalResourceUri(sourceUri)) { in persistContent()
256 inputStream = context.getContentResolver().openInputStream(sourceUri); in persistContent()
259 final URL url = new URL(sourceUri.toString()); in persistContent()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java440 public static Bitmap loadBitmapWithBackouts(Context context, Uri sourceUri, int sampleSize) { in loadBitmapWithBackouts() argument
450 bmap = loadDownsampledBitmap(context, sourceUri, sampleSize); in loadBitmapWithBackouts()
469 public static Bitmap loadOrientedBitmapWithBackouts(Context context, Uri sourceUri, in loadOrientedBitmapWithBackouts() argument
471 Bitmap bitmap = loadBitmapWithBackouts(context, sourceUri, sampleSize); in loadOrientedBitmapWithBackouts()
475 int orientation = getMetadataOrientation(context, sourceUri); in loadOrientedBitmapWithBackouts()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java321 private void startBitmapIO(int flags, Bitmap currentBitmap, Uri sourceUri, Uri destUri, in startBitmapIO() argument
339 BitmapIOTask ioTask = new BitmapIOTask(sourceUri, destUri, format, flags, cropBounds, in startBitmapIO()
384 public BitmapIOTask(Uri sourceUri, Uri destUri, String outputFormat, int flags, in BitmapIOTask() argument
390 mInUri = sourceUri; in BitmapIOTask()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DExportDialog.java159 Uri sourceUri = MasterImage.getImage().getUri(); in onClick() local
163 .getImage().getPreset(), dest, activity.getSelectedImageUri(), sourceUri, in onClick()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
DContactLoaderTest.java415 void fetchLookupAndId(final Uri sourceUri, final long expectedContactId, in fetchLookupAndId() argument
417 mContactsProvider.expectQuery(sourceUri) in fetchLookupAndId()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogProvider.java533 final Uri sourceUri = sourceIsShadow ? Calls.SHADOW_CONTENT_URI : Calls.CONTENT_URI; in syncEntriesFrom() local
537 final Uri uri = ContentProvider.maybeAddUserId(sourceUri, sourceUserId); in syncEntriesFrom()