Home
last modified time | relevance | path

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

/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerTestApp.java133 long dlRequest = -1; in initiateDownload() local
141 dlRequest = mDownloadManager.enqueue(request); in initiateDownload()
142 waitForDownloadToStart(dlRequest); in initiateDownload()
143 assertTrue("request id is -1 from download manager", dlRequest != -1); in initiateDownload()
147 outputFile.writeLong(dlRequest); in initiateDownload()
164 long dlRequest = -1; in verifyFileDownloadSucceeded() local
174 dlRequest = dataInputFile.readLong(); in verifyFileDownloadSucceeded()
186 assertTrue("request id is -1 from download manager", dlRequest != -1); in verifyFileDownloadSucceeded()
187 Cursor cursor = getCursor(dlRequest); in verifyFileDownloadSucceeded()
196 assertTrue("download not finished", waitForDownload(dlRequest, 15 * 60 * 1000)); in verifyFileDownloadSucceeded()
[all …]
DDownloadManagerBaseTest.java439 protected void waitForDownloadToStart(long dlRequest) throws Exception { in waitForDownloadToStart() argument
440 Cursor cursor = getCursor(dlRequest); in waitForDownloadToStart()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerFunctionalTest.java81 long dlRequest = mDownloadManager.enqueue(request); in doErrorTest() local
83 waitForDownloadOrTimeout(dlRequest); in doErrorTest()
88 Cursor cursor = getCursor(dlRequest); in doErrorTest()
104 long dlRequest = doBasicDownload(blobData); in testBinaryDownload() local
105 verifyDownload(dlRequest, blobData); in testBinaryDownload()
106 mDownloadManager.remove(dlRequest); in testBinaryDownload()
117 long dlRequest = doBasicDownload(blobData); in testTextDownload() local
118 verifyDownload(dlRequest, blobData); in testTextDownload()
119 mDownloadManager.remove(dlRequest); in testTextDownload()
166 long dlRequest = mDownloadManager.enqueue(request); in testDownloadToExternal_fileExists() local
[all …]
DDownloadManagerStressTest.java130 long dlRequest = doStandardEnqueue(largeFile); in testDownloadLargeFile() local
133 waitForDownloadOrTimeout(dlRequest); in testDownloadLargeFile()
135 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in testDownloadLargeFile()
199 long dlRequest = doBasicDownload(blobData); in testDownloadToCacheWithAlmostFullCache() local
200 verifyAndCleanupSingleFileDownload(dlRequest, blobData); in testDownloadToCacheWithAlmostFullCache()
DDownloadManagerBaseTest.java803 protected void waitForDownloadToStart(long dlRequest) throws Exception { in waitForDownloadToStart() argument
804 Cursor cursor = getCursor(dlRequest); in waitForDownloadToStart()
1026 long dlRequest = enqueueDownloadRequest(blobData); in doBasicDownload() local
1029 waitForDownloadOrTimeout(dlRequest); in doBasicDownload()
1032 return dlRequest; in doBasicDownload()