Home | History | Annotate | Download | only in service

Lines Matching refs:DownloadRequest

40         final AttachmentService.DownloadRequest dr =
41 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
42 final AttachmentService.DownloadRequest dr2 =
43 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 2);
56 final AttachmentService.DownloadRequest dr =
57 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
79 final AttachmentService.DownloadRequest dr =
80 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
95 final AttachmentService.DownloadRequest dr =
96 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
113 final AttachmentService.DownloadRequest dr =
114 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
131 final AttachmentService.DownloadRequest dr =
132 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
139 result = dq.removeRequest(new AttachmentService.DownloadRequest(
150 final AttachmentService.DownloadRequest dr =
151 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
155 final AttachmentService.DownloadRequest drResult = dq.findRequestById(1);
164 final AttachmentService.DownloadRequest dr =
165 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
169 final AttachmentService.DownloadRequest drResult = dq.findRequestById(-1);
175 final AttachmentService.DownloadRequest dr =
176 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
180 final AttachmentService.DownloadRequest drResult = dq.findRequestById(5);
190 final AttachmentService.DownloadRequest dr =
191 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
195 final AttachmentService.DownloadRequest dr2 =
196 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_SEND_MAIL, 2);
200 final AttachmentService.DownloadRequest dr3 =
201 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_BACKGROUND, 3);
208 AttachmentService.DownloadRequest drResult = dq.getNextRequest();
226 AttachmentService.DownloadRequest drResult = dq.getNextRequest();
235 final AttachmentService.DownloadRequest dr =
236 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
238 // Add the first DownloadRequest to the queue
250 final AttachmentService.DownloadRequest dr2 =
251 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 2);
253 // Add another DownloadRequest
259 final AttachmentService.DownloadRequest dr3 =
260 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 3);
268 AttachmentService.DownloadRequest returnRequest = dq.getNextRequest();
273 final AttachmentService.DownloadRequest dr4 =
274 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 4);
276 // Adding the last DownloadRequest
300 * Insert DownloadRequest obje cts in a random priority sequence and make sure that
308 final AttachmentService.DownloadRequest dr =
309 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
313 final AttachmentService.DownloadRequest dr2 =
314 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_BACKGROUND, 2);
318 final AttachmentService.DownloadRequest dr3 =
319 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_SEND_MAIL, 3);
323 final AttachmentService.DownloadRequest dr4 =
324 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_SEND_MAIL, 4);
328 final AttachmentService.DownloadRequest dr5 =
329 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 5);
333 final AttachmentService.DownloadRequest dr6 =
334 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_BACKGROUND, 6);
342 final AttachmentService.DownloadRequest returnRequest = dq.getNextRequest();
352 * Insert DownloadRequest objects in a random time based sequence and make sure that
359 final AttachmentService.DownloadRequest dr =
360 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
364 final AttachmentService.DownloadRequest dr2 =
365 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 2);
369 final AttachmentService.DownloadRequest dr3 =
370 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 3);
374 final AttachmentService.DownloadRequest dr4 =
375 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 4);
379 final AttachmentService.DownloadRequest dr5 =
380 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 5);
384 final AttachmentService.DownloadRequest dr6 =
385 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 6);
392 final AttachmentService.DownloadRequest returnRequest = dq.getNextRequest();
413 final AttachmentService.DownloadRequest dr =
414 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
418 // Only request the DownloadRequest to cancelled if it is older than 60 seconds,
422 // Now check the results. We should not be asked to cancel this DownloadRequest
438 final AttachmentService.DownloadRequest dr =
439 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
447 // Now check the results. We should not be asked to cancel this DownloadRequest