Searched refs:downloadUri (Results 1 – 6 of 6) sorted by relevance
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 176 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(id); in testAddCompletedDownload_publicDirs() local 177 mContext.grantUriPermission("com.android.shell", downloadUri, in testAddCompletedDownload_publicDirs() 179 final String rawFilePath = getRawFilePath(downloadUri); in testAddCompletedDownload_publicDirs() 207 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testDownloadManager_mediaStoreEntry() local 208 final Uri mediaStoreUri = getMediaStoreUri(downloadUri); in testDownloadManager_mediaStoreEntry() 210 assertArrayEquals(hash(contentResolver.openInputStream(downloadUri)), in testDownloadManager_mediaStoreEntry() 256 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testAddCompletedDownload_mediaStoreEntry() local 257 final Uri mediaStoreUri = getMediaStoreUri(downloadUri); in testAddCompletedDownload_mediaStoreEntry()
|
/cts/tests/mediaprovider/src/android/provider/cts/media/ |
D | MediaStore_DownloadsTest.java | 184 final Uri downloadUri = Uri.parse("https://developer.android.com/overview.html"); in testInsertDownload() local 189 params.setDownloadUri(downloadUri); in testInsertDownload() 213 assertEquals(downloadUri.toString(), in testInsertDownload() 235 final Uri downloadUri = Uri.parse("https://www.android.com/download?file=testvideo.3gp"); in testUpdateDownload() local 236 params.setDownloadUri(downloadUri); in testUpdateDownload() 261 assertEquals(downloadUri.toString(), in testUpdateDownload() 271 final Uri downloadUri = Uri.parse("https://www.android.com/download?file=testvideo.3gp"); in testDeleteDownload() local 272 params.setDownloadUri(downloadUri); in testDeleteDownload() 312 final Uri downloadUri = Uri.parse("https://www.android.com/download?file=testvideo.3gp"); in testNotifyChange() local 313 params.setDownloadUri(downloadUri); in testNotifyChange()
|
D | MediaStoreUtils.java | 134 public void setDownloadUri(@Nullable Uri downloadUri) { in setDownloadUri() argument 135 if (downloadUri == null) { in setDownloadUri() 138 this.insertValues.put(DownloadColumns.DOWNLOAD_URI, downloadUri.toString()); in setDownloadUri()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStoreUtils.java | 118 public void setDownloadUri(@Nullable Uri downloadUri) { in setDownloadUri() argument 119 if (downloadUri == null) { in setDownloadUri() 122 this.insertValues.put(DownloadColumns.DOWNLOAD_URI, downloadUri.toString()); in setDownloadUri()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 562 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(id); in testAddCompletedDownload() local 563 mContext.grantUriPermission("com.android.shell", downloadUri, in testAddCompletedDownload() 565 final String rawFilePath = getRawFilePath(downloadUri); in testAddCompletedDownload() 586 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(id); in testAddCompletedDownload_downloadDir() local 587 mContext.grantUriPermission("com.android.shell", downloadUri, in testAddCompletedDownload_downloadDir() 589 final String rawFilePath = getRawFilePath(downloadUri); in testAddCompletedDownload_downloadDir() 706 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(id); in testDownload_mediaScanned() local 707 mContext.grantUriPermission("com.android.shell", downloadUri, in testDownload_mediaScanned() 709 final Uri mediaStoreUri = getMediaStoreUri(downloadUri); in testDownload_mediaScanned() 713 mContext.getContentResolver().openInputStream(downloadUri)); in testDownload_mediaScanned()
|
D | DownloadManagerTestBase.java | 146 protected static Uri getMediaStoreUri(Uri downloadUri) throws Exception { in getMediaStoreUri() argument 148 Cursor cursor = context.getContentResolver().query(downloadUri, null, null, null); in getMediaStoreUri() 156 throw new FileNotFoundException("Failed to find entry for " + downloadUri); in getMediaStoreUri()
|