Home | History | Annotate | Download | only in service

Lines Matching defs:attachmentId

169         final long attachmentId;
179 attachmentId = attachment.mId;
193 return (int)attachmentId;
203 return req.attachmentId == attachmentId;
299 if (req.attachmentId == id) {
328 Log.d(TAG, "== Skip #" + req.attachmentId + "; maxed for acct #" +
423 Log.d(TAG, "== Download of " + req.attachmentId + " timed out");
452 boolean alreadyInProgress = mDownloadsInProgress.get(req.attachmentId) != null;
457 Log.d(TAG, ">> Starting download for attachment #" + req.attachmentId);
468 private synchronized DownloadRequest getDownloadInProgress(long attachmentId) {
469 return mDownloadsInProgress.get(attachmentId);
497 mDownloadsInProgress.put(req.attachmentId, req);
500 proxy.loadAttachment(req.attachmentId, req.priority != PRIORITY_FOREGROUND);
505 mDownloadsInProgress.remove(req.attachmentId);
511 * @param attachmentId the id of the attachment whose download is finished
514 /*package*/ synchronized void endDownload(long attachmentId, int statusCode) {
516 mDownloadsInProgress.remove(attachmentId);
525 downloadCount = mAttachmentFailureMap.remove(attachmentId);
531 mAttachmentFailureMap.put(attachmentId, downloadCount);
534 DownloadRequest req = mDownloadSet.findDownloadRequest(attachmentId);
538 Log.d(TAG, "== The download for attachment #" + attachmentId +
559 Log.d(TAG, "<< Download finished for attachment #" + attachmentId + "; " + secs +
563 Attachment attachment = Attachment.restoreAttachmentWithId(mContext, attachmentId);
652 public void loadAttachmentStatus(long messageId, long attachmentId, int statusCode,
655 DownloadRequest req = mDownloadSet.getDownloadInProgress(attachmentId);
665 Log.d(TAG, ">> Attachment " + attachmentId + ": " + code);
667 Log.d(TAG, ">> Attachment " + attachmentId + ": " + progress + "%");
678 mDownloadSet.endDownload(attachmentId, statusCode);
733 /*package*/ boolean isQueued(long attachmentId
734 return mDownloadSet.findDownloadRequest(attachmentId) != null;
741 /*package*/ boolean dequeue(long attachmentId) {
742 DownloadRequest req = mDownloadSet.findDownloadRequest(attachmentId);
745 Log.d(TAG, "Dequeued attachmentId: " + attachmentId);
767 * @param attachmentId the id of the Attachment (as stored by EmailProvider)
770 public static boolean isAttachmentQueued(long attachmentId) {
773 return service.isQueued(attachmentId);
780 * @param attachmentId the id of the Attachment (as stored by EmailProvider)
783 public static boolean cancelQueuedAttachment(long attachmentId) {
786 return service.dequeue(attachmentId);
973 pw.println(" Account: " + req.accountId + ", Attachment: " + req.attachmentId);
976 Attachment att = Attachment.restoreAttachmentWithId(this, req.attachmentId);