Searched refs:downloadId (Results 1 – 4 of 4) sorted by relevance
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 204 final long downloadId = mDownloadManager.enqueue(request); in testDownloadManager_mediaStoreEntry() local 205 receiver.waitForDownloadComplete(SHORT_TIMEOUT, downloadId); in testDownloadManager_mediaStoreEntry() 206 assertSuccessfulDownload(downloadId, new File(downloadLocation.getPath())); in testDownloadManager_mediaStoreEntry() 207 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testDownloadManager_mediaStoreEntry() 215 assertRemoveDownload(downloadId, 0); in testDownloadManager_mediaStoreEntry() 252 final long downloadId = mDownloadManager.addCompletedDownload(file.getName(), in testAddCompletedDownload_mediaStoreEntry() local 255 assertTrue(downloadId >= 0); in testAddCompletedDownload_mediaStoreEntry() 256 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testAddCompletedDownload_mediaStoreEntry() 262 assertRemoveDownload(downloadId, 0); in testAddCompletedDownload_mediaStoreEntry()
|
/cts/tests/tests/netsecpolicy/src/android/security/ |
D | NetworkSecurityPolicyTestBase.java | 233 long downloadId = downloadManager.enqueue(new DownloadManager.Request(uri)); in downloadUsingDownloadManager() local 236 assertEquals(downloadId, in downloadUsingDownloadManager() 239 new DownloadManager.Query().setFilterById(downloadId)); in downloadUsingDownloadManager()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 544 public String getTestDownloadUrl(String downloadId, int numBytes) { in getTestDownloadUrl() argument 548 .appendQueryParameter(DOWNLOAD_ID_PARAMETER, downloadId) in getTestDownloadUrl() 559 public String getCacheableTestDownloadUrl(String downloadId, int numBytes) { in getCacheableTestDownloadUrl() argument 563 .appendQueryParameter(DOWNLOAD_ID_PARAMETER, downloadId) in getCacheableTestDownloadUrl() 995 String downloadId = uri.getQueryParameter(DOWNLOAD_ID_PARAMETER); in createTestDownloadResponse() local 1001 response.setEntity(createFileEntity(context, downloadId, numBytes)); in createTestDownloadResponse() 1012 private static FileEntity createFileEntity(Context context, String downloadId, int numBytes) in createFileEntity() argument 1017 File file = new File(storageDir, downloadId + ".bin"); in createFileEntity()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTestBase.java | 391 protected void assertDownloadQueryableById(long downloadId) { in assertDownloadQueryableById() argument 394 DownloadManager.Query query = new DownloadManager.Query().setFilterById(downloadId); in assertDownloadQueryableById()
|