/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | SaveImage.java | 132 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/ |
D | ImageSavingTask.java | 33 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()
|
D | ProcessingService.java | 203 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/Messaging/src/com/android/messaging/util/ |
D | UriUtil.java | 212 public static Uri persistContentToScratchSpace(final Uri sourceUri) { in persistContentToScratchSpace() argument 216 if (UriUtil.isLocalResourceUri(sourceUri)) { in persistContentToScratchSpace() 217 inputStream = context.getContentResolver().openInputStream(sourceUri); in persistContentToScratchSpace() 220 inputStream = getInputStreamFromRemoteUri(sourceUri); in persistContentToScratchSpace() 241 private static InputStream getInputStreamFromRemoteUri(final Uri sourceUri) in getInputStreamFromRemoteUri() argument 243 if (isRemoteUri(sourceUri)) { in getInputStreamFromRemoteUri() 244 final URL url = new URL(sourceUri.toString()); in getInputStreamFromRemoteUri() 252 private static boolean isRemoteUri(final Uri sourceUri) { in isRemoteUri() argument 253 return sourceUri.getScheme().equals(SCHEME_HTTP) in isRemoteUri() 254 || sourceUri.getScheme().equals(SCHEME_HTTPS); in isRemoteUri() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | ImportVCardActivity.java | 245 for (Uri sourceUri : mSourceUris) { in run() 255 request = constructImportRequest(null, sourceUri, sourceDisplayName); in run() 416 private String getDisplayName(Uri sourceUri) { in getDisplayName() argument 417 if (sourceUri == null) { in getDisplayName() 426 cursor = resolver.query(sourceUri, in getDisplayName() 445 displayName = sourceUri.getLastPathSegment(); in getDisplayName() 453 private Uri copyTo(final Uri sourceUri, String filename) throws IOException { in copyTo() argument 455 sourceUri, filename)); in copyTo() 462 inputChannel = Channels.newChannel(resolver.openInputStream(sourceUri)); in copyTo() 498 private String readUriToLocalFile(Uri sourceUri) { in readUriToLocalFile() argument [all …]
|
D | ImportVCardDialogFragment.java | 40 void onImportVCardConfirmed(Uri sourceUri, String sourceDisplayName); in onImportVCardConfirmed() argument 47 public static void show(Activity activity, Uri sourceUri, in show() argument 55 args.putParcelable(ARG_SOURCE_URI, sourceUri); in show() 65 final Uri sourceUri = getArguments().getParcelable(ARG_SOURCE_URI); in onCreateDialog() local 76 listener.onImportVCardConfirmed(sourceUri, sourceDisplayName); in onCreateDialog()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | PendingAttachmentData.java | 58 @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/Dialer/java/com/android/voicemail/impl/sync/ |
D | VoicemailsQueryHelper.java | 55 private Uri sourceUri; field in VoicemailsQueryHelper 60 sourceUri = VoicemailContract.Voicemails.buildSourceUri(this.context.getPackageName()); in VoicemailsQueryHelper() 91 Cursor cursor = contentResolver.query(sourceUri, PROJECTION, selection, null, null); in getLocalVoicemails() 157 Uri uri = ContentUris.withAppendedId(sourceUri, voicemail.getId()); in markReadInDatabase() 182 Uri uri = ContentUris.withAppendedId(sourceUri, voicemail.getId()); in markCleanInDatabase() 189 Uri uri = ContentUris.withAppendedId(sourceUri, voicemail.getId()); in updateWithTranscription() 222 cursor = contentResolver.query(sourceUri, PROJECTION, whereClause, whereArgs, null); in isVoicemailUnique() 250 Uri uri = ContentUris.withAppendedId(sourceUri, voicemail.getId()); in markArchiveInDatabase() 265 contentResolver.query(sourceUri, PROJECTION, ARCHIVED_SELECTION, null, sortAndLimit)) { in oldestVoicemailsOnServer()
|
D | VoicemailStatusQueryHelper.java | 44 private Uri sourceUri; field in VoicemailStatusQueryHelper 49 sourceUri = VoicemailContract.Status.buildSourceUri(this.context.getPackageName()); in VoicemailStatusQueryHelper() 101 cursor = contentResolver.query(sourceUri, PROJECTION, whereClause, whereArgs, null); in isFieldEqualTo()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | ArchivesProviderTest.java | 93 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testOpen_Success() local 95 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testOpen_Success() 145 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testOpen_Failure() local 147 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testOpen_Failure() 198 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testOpen_ClosesOnRelease() local 200 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testOpen_ClosesOnRelease() 241 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testNoNotificationAfterAllReleased() local 243 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testNoNotificationAfterAllReleased() 278 final Uri sourceUri = DocumentsContract.buildDocumentUri( in getDocumentMetadata_byDocumentId_shouldMatchSize() local 280 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in getDocumentMetadata_byDocumentId_shouldMatchSize()
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | BugReportInfoActivity.java | 255 Uri sourceUri = BugStorageProvider.buildUriWithSegment( in copyFilesToUsb() local 258 new File(mBugReport.getFilePath()).getName(), sourceUri, parentDocumentUri); in copyFilesToUsb() 309 private void copyFileToUsb(String filename, Uri sourceUri, Uri parentDocumentUri) in copyFileToUsb() argument 311 String mimeType = mResolver.getType(sourceUri); in copyFileToUsb() 317 try (InputStream input = mResolver.openInputStream(sourceUri); in copyFileToUsb()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | ImageLoader.java | 440 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/modules/Media/apex/framework/java/android/media/ |
D | MediaTranscodingManager.java | 699 private Builder(@TranscodingType int type, @NonNull Uri sourceUri, in Builder() argument 703 if (sourceUri == null || Uri.EMPTY.equals(sourceUri)) { in Builder() 707 mSourceUri = sourceUri; in Builder() 1187 public Builder(@NonNull Uri sourceUri, @NonNull Uri destinationUri, in Builder() argument 1189 super(TRANSCODING_TYPE_VIDEO, sourceUri, destinationUri); in Builder()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropActivity.java | 321 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/ |
D | ExportDialog.java | 159 Uri sourceUri = PrimaryImage.getImage().getUri(); in onClick() local 163 .getImage().getPreset(), dest, activity.getSelectedImageUri(), sourceUri, in onClick()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 876 Uri sourceUri = source.derivedUri; in isRecursiveCopy() local 886 try (ParcelFileDescriptor sourceFd = cr.openFile(sourceUri, "r", null)) { in isRecursiveCopy() 908 "Preventing copy from %s to %s", sourceUri, targetUri)); in isRecursiveCopy() 920 " for source %s and target %s", sourceUri, targetUri), t); in isRecursiveCopy()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | ContactLoaderTest.java | 408 void fetchLookupAndId(final Uri sourceUri, final long expectedContactId, in fetchLookupAndId() argument 410 mContactsProvider.expectQuery(sourceUri) in fetchLookupAndId()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CallLogProvider.java | 1129 final Uri sourceUri = sourceIsShadow ? Calls.SHADOW_CONTENT_URI : Calls.CONTENT_URI; in syncEntriesFrom() local 1133 final Uri uri = ContentProvider.maybeAddUserId(sourceUri, sourceUserId); in syncEntriesFrom()
|