Home
last modified time | relevance | path

Searched refs:mediaStoreUri (Results 1 – 5 of 5) sorted by relevance

/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java858 final Uri mediaStoreUri = MediaStore.scanFile(getContext().getContentResolver(), in insert() local
860 if (mediaStoreUri != null) { in insert()
870 convertToMediaStoreDownloadsUri(mediaStoreUri), in insert()
874 mediaStoreUri.toString()); in insert()
876 mediaStoreUri.toString()); in insert()
927 Uri mediaStoreUri = getMediaStoreUri(mediaProvider, filePath); in updateMediaProvider() local
930 if (mediaStoreUri == null) { in updateMediaProvider()
931 mediaStoreUri = mediaProvider.insert( in updateMediaProvider()
934 if (mediaStoreUri == null) { in updateMediaProvider()
937 return mediaStoreUri; in updateMediaProvider()
[all …]
DMediaScanTriggerJob.java105 final Uri mediaStoreUri = Helpers.triggerMediaScan(mediaProviderClient, in onStartJob() local
107 if (mediaStoreUri != null) { in onStartJob()
109 downloadValues.put(COLUMN_MEDIASTORE_URI, mediaStoreUri.toString()); in onStartJob()
DDownloadStorageProvider.java810 final Uri mediaStoreUri = getMediaStoreUriForQuery(docId); in getFileForMediaStoreDownload() local
812 try (Cursor cursor = queryForSingleItem(mediaStoreUri, in getFileForMediaStoreDownload()
816 throw new IllegalStateException("Missing _data for " + mediaStoreUri); in getFileForMediaStoreDownload()
827 final Uri mediaStoreUri = ContentUris.withAppendedId( in getRelativePathAndDisplayNameForDownload() local
830 try (Cursor cursor = queryForSingleItem(mediaStoreUri, in getRelativePathAndDisplayNameForDownload()
837 "relative_path and _display_name should not be null for " + mediaStoreUri); in getRelativePathAndDisplayNameForDownload()
DHelpers.java499 public static Uri convertToMediaStoreDownloadsUri(Uri mediaStoreUri) { in convertToMediaStoreDownloadsUri() argument
500 final String volumeName = MediaStore.getVolumeName(mediaStoreUri); in convertToMediaStoreDownloadsUri()
501 final long id = android.content.ContentUris.parseId(mediaStoreUri); in convertToMediaStoreDownloadsUri()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java5670 final Uri mediaStoreUri = fileUri.getAuthority().equals(MediaStore.AUTHORITY) ?
5672 copyUriPermissionGrants(documentUri, mediaStoreUri, callingPid,
5674 res.putParcelable(MediaStore.EXTRA_URI, mediaStoreUri);
5792 private void copyUriPermissionGrants(Uri documentsUri, Uri mediaStoreUri,
5800 getContext().grantUriPermission(callingPackage, mediaStoreUri, modeFlags);