Searched refs:downloadId (Results 1 – 7 of 7) sorted by relevance
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 176 final long downloadId = mDownloadManager.enqueue(request); in testDownloadManager_mediaStoreEntry() local 177 receiver.waitForDownloadComplete(SHORT_TIMEOUT, downloadId); in testDownloadManager_mediaStoreEntry() 178 assertSuccessfulDownload(downloadId, new File(downloadLocation.getPath())); in testDownloadManager_mediaStoreEntry() 179 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testDownloadManager_mediaStoreEntry() 187 assertRemoveDownload(downloadId, 0); in testDownloadManager_mediaStoreEntry() 219 final long downloadId = mDownloadManager.addCompletedDownload(file.getName(), in testAddCompletedDownload_mediaStoreEntry() local 222 assertTrue(downloadId >= 0); in testAddCompletedDownload_mediaStoreEntry() 223 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testAddCompletedDownload_mediaStoreEntry() 229 assertRemoveDownload(downloadId, 0); in testAddCompletedDownload_mediaStoreEntry()
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskDownload.cpp | 51 int downloadId; in run() local 52 if (!getTestCase()->getRemoteAudio()->downloadData(id, buffer, downloadId)) { in run() 55 LOGI("Downloaded buffer %s to DUT with id %d", id.string(), downloadId); in run()
|
D | TaskSound.cpp | 108 int downloadId; in run() local 109 if (!getTestCase()->getRemoteAudio()->downloadData(id, buffer, downloadId)) { in run() 112 LOGI("Downloaded buffer %s to DUT with id %d", id.string(), downloadId); in run()
|
/cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/ |
D | DownloadManagerLegacyTest.java | 106 final long downloadId = mDownloadManager.addCompletedDownload( in testAddCompletedDownload_mediaStoreEntry() local 109 assertTrue(downloadId >= 0); in testAddCompletedDownload_mediaStoreEntry() 110 final Uri downloadUri = mDownloadManager.getUriForDownloadedFile(downloadId); in testAddCompletedDownload_mediaStoreEntry() 122 assertRemoveDownload(downloadId, 0); in testAddCompletedDownload_mediaStoreEntry()
|
/cts/tests/tests/netsecpolicy/src/android/security/ |
D | NetworkSecurityPolicyTestBase.java | 232 long downloadId = downloadManager.enqueue(new DownloadManager.Request(uri)); in downloadUsingDownloadManager() local 235 assertEquals(downloadId, in downloadUsingDownloadManager() 238 new DownloadManager.Query().setFilterById(downloadId)); in downloadUsingDownloadManager()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 444 public String getTestDownloadUrl(String downloadId, int numBytes) { in getTestDownloadUrl() argument 448 .appendQueryParameter(DOWNLOAD_ID_PARAMETER, downloadId) in getTestDownloadUrl() 816 String downloadId = uri.getQueryParameter(DOWNLOAD_ID_PARAMETER); in createTestDownloadResponse() local 822 response.setEntity(createFileEntity(context, downloadId, numBytes)); in createTestDownloadResponse() 826 private static FileEntity createFileEntity(Context context, String downloadId, int numBytes) in createFileEntity() argument 831 File file = new File(storageDir, downloadId + ".bin"); in createFileEntity()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTestBase.java | 353 protected void assertDownloadQueryableById(long downloadId) { in assertDownloadQueryableById() argument 356 DownloadManager.Query query = new DownloadManager.Query().setFilterById(downloadId); in assertDownloadQueryableById()
|