Home | History | Annotate | Download | only in downloadmanagertests

Lines Matching defs:dlRequest

133             long dlRequest = -1;
141 dlRequest = mDownloadManager.enqueue(request);
142 waitForDownloadToStart(dlRequest);
143 assertTrue("request id is -1 from download manager", dlRequest != -1);
147 outputFile.writeLong(dlRequest);
164 long dlRequest = -1;
174 dlRequest = dataInputFile.readLong();
186 assertTrue("request id is -1 from download manager", dlRequest != -1);
187 Cursor cursor = getCursor(dlRequest);
196 assertTrue("download not finished", waitForDownload(dlRequest, 15 * 60 * 1000));
200 pfd = mDownloadManager.openDownloadedFile(dlRequest);
208 mDownloadManager.remove(dlRequest);
223 long dlRequest = -1;
233 dlRequest = mDownloadManager.enqueue(request);
236 assertTrue("download not finished", waitForDownload(dlRequest, 15 * 60 * 1000));
238 Cursor cursor = getCursor(dlRequest);
243 pfd = mDownloadManager.openDownloadedFile(dlRequest);
249 mDownloadManager.remove(dlRequest);
270 long dlRequest = -1;
287 dlRequest = mDownloadManager.enqueue(request);
288 waitForDownloadToStart(dlRequest);
290 waitToReceiveData(dlRequest, EXPECTED_PROGRESS);
303 waitToReceiveData(dlRequest, EXPECTED_PROGRESS);
309 waitToReceiveData(dlRequest, EXPECTED_PROGRESS);
320 assertTrue("download not finished", waitForDownload(dlRequest, 10 * 60 * 1000));
321 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest);
325 if (dlRequest != -1) {
326 mDownloadManager.remove(dlRequest);
346 long dlRequest = -1;
363 dlRequest = mDownloadManager.enqueue(request);
364 waitForDownloadToStart(dlRequest);
366 waitToReceiveData(dlRequest, EXPECTED_PROGRESS);
376 waitToReceiveData(dlRequest, EXPECTED_PROGRESS);
388 assertTrue("download not finished", waitForDownload(dlRequest, 10 * 60 * 1000));
389 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest);
393 if (dlRequest != -1) {
394 mDownloadManager.remove(dlRequest);
416 long dlRequest = -1;
433 dlRequest = mDownloadManager.enqueue(request);
434 waitForDownloadToStart(dlRequest);
436 waitToReceiveData(dlRequest, EXPECTED_PROGRESS);
447 waitToReceiveData(dlRequest, EXPECTED_PROGRESS);
459 assertTrue("download not finished", waitForDownload(dlRequest, 10 * 60 * 1000)); // wait up to 10 mins
460 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest);
464 if (dlRequest != -1) {
465 mDownloadManager.remove(dlRequest);
485 long dlRequest = -1;
491 dlRequest = mDownloadManager.enqueue(request);
492 assertTrue("request id is -1 from download manager", dlRequest != -1);
493 downloadIds.add(dlRequest);