Home | History | Annotate | Download | only in service

Lines Matching refs:AttachmentService

31  * Tests of the AttachmentService
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);
49 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
55 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
56 final AttachmentService.DownloadRequest dr =
57 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
65 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
78 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
79 final AttachmentService.DownloadRequest dr =
80 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
94 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
95 final AttachmentService.DownloadRequest dr =
96 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
112 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
113 final AttachmentService.DownloadRequest dr =
114 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
130 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
131 final AttachmentService.DownloadRequest dr =
132 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
139 result = dq.removeRequest(new AttachmentService.DownloadRequest(
140 AttachmentService.PRIORITY_FOREGROUND, 2));
149 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
150 final AttachmentService.DownloadRequest dr =
151 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
155 final AttachmentService.DownloadRequest drResult = dq.findRequestById(1);
163 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
164 final AttachmentService.DownloadRequest dr =
165 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
169 final AttachmentService.DownloadRequest drResult = dq.findRequestById(-1);
174 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
175 final AttachmentService.DownloadRequest dr =
176 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
180 final AttachmentService.DownloadRequest drResult = dq.findRequestById(5);
189 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
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();
225 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
226 AttachmentService.DownloadRequest drResult = dq.getNextRequest();
231 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
235 final AttachmentService.DownloadRequest dr =
236 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
250 final AttachmentService.DownloadRequest dr2 =
251 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 2);
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);
304 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
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);
340 int lastPriority = AttachmentService.PRIORITY_HIGHEST;
342 final AttachmentService.DownloadRequest returnRequest = dq.getNextRequest();
356 final AttachmentService.DownloadQueue dq = new AttachmentService.DownloadQueue();
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();
406 final AttachmentService attachmentService = new AttachmentService();
407 AttachmentService.AttachmentWatchdog watchdog = attachmentService.mWatchdog;
413 final AttachmentService.DownloadRequest dr =
414 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
416 attachmentService.mDownloadsInProgress.put(dr.mAttachmentId, dr);
431 final AttachmentService attachmentService = new AttachmentService();
432 final AttachmentService.AttachmentWatchdog watchdog = attachmentService.mWatchdog;
438 final AttachmentService.DownloadRequest dr =
439 new AttachmentService.DownloadRequest(AttachmentService.PRIORITY_FOREGROUND, 1);
441 attachmentService.mDownloadsInProgress.put(dr.mAttachmentId, dr);
452 final AttachmentService attachmentService = new AttachmentService();
459 attachmentService.mServiceCallback.getAttachmentUpdateValues(attachment,
465 final AttachmentService attachmentService = new AttachmentService();
472 attachmentService.mServiceCallback.getAttachmentUpdateValues(attachment,
478 final AttachmentService attachmentService = new AttachmentService();
485 attachmentService.mServiceCallback.getAttachmentUpdateValues(attachment,