Home
last modified time | relevance | path

Searched refs:sourceUri (Results 1 – 16 of 16) 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/Contacts/src/com/android/contacts/vcard/
DImportVCardActivity.java245 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 …]
DImportVCardDialogFragment.java40 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/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/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/Dialer/java/com/android/voicemail/impl/sync/
DVoicemailsQueryHelper.java55 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()
DVoicemailStatusQueryHelper.java44 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/unit/com/android/documentsui/archives/
DArchivesProviderTest.java92 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testOpen_Success() local
94 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testOpen_Success()
144 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testOpen_Failure() local
146 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testOpen_Failure()
197 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testOpen_ClosesOnRelease() local
199 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testOpen_ClosesOnRelease()
240 final Uri sourceUri = DocumentsContract.buildDocumentUri( in testNoNotificationAfterAllReleased() local
242 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in testNoNotificationAfterAllReleased()
277 final Uri sourceUri = DocumentsContract.buildDocumentUri( in getDocumentMetadata_byDocumentId_shouldMatchSize() local
279 final Uri archiveUri = ArchivesProvider.buildUriForArchive(sourceUri, in getDocumentMetadata_byDocumentId_shouldMatchSize()
/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/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportInfoActivity.java72 Uri sourceUri = BugStorageProvider.buildUriWithBugId(mBugReport.getId()); in doInBackground() local
77 String mimeType = resolver.getType(sourceUri); in doInBackground()
86 try (InputStream input = resolver.openInputStream(sourceUri); in doInBackground()
/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/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java403 void fetchLookupAndId(final Uri sourceUri, final long expectedContactId, in fetchLookupAndId() argument
405 mContactsProvider.expectQuery(sourceUri) in fetchLookupAndId()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DCallLogProvider.java672 final Uri sourceUri = sourceIsShadow ? Calls.SHADOW_CONTENT_URI : Calls.CONTENT_URI; in syncEntriesFrom() local
676 final Uri uri = ContentProvider.maybeAddUserId(sourceUri, sourceUserId); in syncEntriesFrom()