Searched refs:mediaStoreUri (Results 1 – 7 of 7) sorted by relevance
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | MediaScanTriggerJob.java | 105 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()
|
D | DownloadProvider.java | 876 final Uri mediaStoreUri = MediaStore.scanFile(getContext().getContentResolver(), in insert() local 878 if (mediaStoreUri != null) { in insert() 888 convertToMediaStoreDownloadsUri(mediaStoreUri), in insert() 892 mediaStoreUri.toString()); in insert() 894 mediaStoreUri.toString()); in insert() 945 Uri mediaStoreUri = getMediaStoreUri(mediaProvider, filePath); in updateMediaProvider() local 948 if (mediaStoreUri == null) { in updateMediaProvider() 949 mediaStoreUri = mediaProvider.insert( in updateMediaProvider() 952 if (mediaStoreUri == null) { in updateMediaProvider() 955 return mediaStoreUri; in updateMediaProvider() [all …]
|
D | DownloadStorageProvider.java | 796 final Uri mediaStoreUri = getMediaStoreUriForQuery(docId); in getFileForMediaStoreDownload() local 798 try (Cursor cursor = queryForSingleItem(mediaStoreUri, in getFileForMediaStoreDownload() 802 throw new IllegalStateException("Missing _data for " + mediaStoreUri); in getFileForMediaStoreDownload() 813 final Uri mediaStoreUri = ContentUris.withAppendedId( in getRelativePathAndDisplayNameForDownload() local 816 try (Cursor cursor = queryForSingleItem(mediaStoreUri, in getRelativePathAndDisplayNameForDownload() 823 "relative_path and _display_name should not be null for " + mediaStoreUri); in getRelativePathAndDisplayNameForDownload()
|
D | Helpers.java | 519 public static Uri convertToMediaStoreDownloadsUri(Uri mediaStoreUri) { in convertToMediaStoreDownloadsUri() argument 520 final String volumeName = MediaStore.getVolumeName(mediaStoreUri); in convertToMediaStoreDownloadsUri() 521 final long id = android.content.ContentUris.parseId(mediaStoreUri); in convertToMediaStoreDownloadsUri()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/util/ |
D | PickerDbTestUtils.java | 140 String mediaStoreUri, long sizeBytes, String mimeType, int standardMimeTypeExtension, in getMediaCursor() argument 159 mediaStoreUri, in getMediaCursor() 206 String mediaStoreUri, in getAlbumMediaCursor() argument 225 mediaStoreUri, in getAlbumMediaCursor()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/ |
D | PhotoPickerUserSelectActivityTest.java | 250 final Uri mediaStoreUri = MediaStore.scanFile(getIsolatedContext().getContentResolver(), in testPreview_showsOnlyAlreadyLoadedGrantItems() local 253 final Uri uri = getItemsUri(String.valueOf(ContentUris.parseId(mediaStoreUri)), in testPreview_showsOnlyAlreadyLoadedGrantItems()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 7110 final Uri mediaStoreUri = fileUri.getAuthority().equals(MediaStore.AUTHORITY) 7112 copyUriPermissionGrants(documentUri, mediaStoreUri, callingPid, 7114 res.putParcelable(MediaStore.EXTRA_URI, mediaStoreUri); 7548 private void copyUriPermissionGrants(Uri documentsUri, Uri mediaStoreUri, 7556 getContext().grantUriPermission(callingPackage, mediaStoreUri, modeFlags);
|