Searched refs:attachmentId (Results 1 - 20 of 20) sorted by relevance

/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DIEmailServiceCallback.aidl55 * attachmentId = the attachment being synced
59 void loadAttachmentStatus(long messageId, long attachmentId, int statusCode, int progress);
H A DIEmailService.aidl32 oneway void loadAttachment(long attachmentId, boolean background);
H A DEmailServiceProxy.java41 * new EmailServiceProxy(context, class).loadAttachment(attachmentId, callback)
135 * @param attachmentId the id of the attachment record
140 public void loadAttachment(final long attachmentId, final boolean background) argument
147 mService.loadAttachment(attachmentId, background);
152 mCallback.loadAttachmentStatus(-1, attachmentId,
/packages/apps/Email/src/com/android/email/
H A DMessagingListener.java96 long attachmentId,
103 long attachmentId) {
109 long attachmentId,
93 loadAttachmentStarted( long accountId, long messageId, long attachmentId, boolean requiresDownload) argument
100 loadAttachmentFinished( long accountId, long messageId, long attachmentId) argument
106 loadAttachmentFailed( long accountId, long messageId, long attachmentId, MessagingException me, boolean background) argument
H A DGroupMessagingListener.java168 long attachmentId,
171 l.loadAttachmentStarted(accountId, messageId, attachmentId, requiresDownload);
179 long attachmentId) {
181 l.loadAttachmentFinished(accountId, messageId, attachmentId);
189 long attachmentId,
193 l.loadAttachmentFailed(accountId, messageId, attachmentId, me, background);
165 loadAttachmentStarted( long accountId, long messageId, long attachmentId, boolean requiresDownload) argument
176 loadAttachmentFinished( long accountId, long messageId, long attachmentId) argument
186 loadAttachmentFailed( long accountId, long messageId, long attachmentId, MessagingException me, boolean background) argument
H A DControllerResultUiThreadWrapper.java62 final long messageId, final long attachmentId, final int progress) {
70 mWrappee.loadAttachmentCallback(result, accountId, messageId, attachmentId,
61 loadAttachmentCallback(final MessagingException result, final long accountId, final long messageId, final long attachmentId, final int progress) argument
H A DController.java738 public void deleteAttachment(long attachmentId) { argument
740 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId);
1051 * @param attachmentId the attachment to load
1055 public void loadAttachment(final long attachmentId, final long messageId, argument
1057 Attachment attachInfo = Attachment.restoreAttachmentWithId(mProviderContext, attachmentId);
1067 listener.loadAttachmentCallback(null, accountId, messageId, attachmentId, 0);
1070 listener.loadAttachmentCallback(null, accountId, messageId, attachmentId, 100);
1281 * @param attachmentId the attachment being loaded
1285 long messageId, long attachmentId, int progress) {
1346 public MessageRetrievalListenerBridge(long messageId, long attachmentId) { argument
1284 loadAttachmentCallback(MessagingException result, long accountId, long messageId, long attachmentId, int progress) argument
1487 loadAttachmentStarted(long accountId, long messageId, long attachmentId, boolean requiresDownload) argument
1502 loadAttachmentFinished(long accountId, long messageId, long attachmentId) argument
1516 loadAttachmentFailed(long accountId, long messageId, long attachmentId, MessagingException me, boolean background) argument
1586 loadAttachmentStatus(long messageId, long attachmentId, int statusCode, int progress) argument
[all...]
H A DLegacyConversions.java292 long attachmentId = localAttachment.mId;
301 attachmentId);
310 accountId, attachmentId).toString();
319 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId);
H A DMessagingController.java1910 final long attachmentId, MessagingListener listener, final boolean background) {
1911 mListeners.loadAttachmentStarted(accountId, messageId, attachmentId, true);
1918 Attachment.restoreAttachmentWithId(mContext, attachmentId);
1920 mListeners.loadAttachmentFailed(accountId, messageId, attachmentId,
1926 mListeners.loadAttachmentFinished(accountId, messageId, attachmentId);
1938 mListeners.loadAttachmentFailed(accountId, messageId, attachmentId,
1978 messageId, attachmentId));
1991 mListeners.loadAttachmentFinished(accountId, messageId, attachmentId);
1996 accountId, messageId, attachmentId, me, background);
1909 loadAttachment(final long accountId, final long messageId, final long mailboxId, final long attachmentId, MessagingListener listener, final boolean background) argument
/packages/apps/Email/src/com/android/email/service/
H A DAttachmentDownloadService.java169 final long attachmentId; field in class:AttachmentDownloadService.DownloadRequest
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 getDownloadInProgress(long attachmentId) argument
514 endDownload(long attachmentId, int statusCode) argument
652 loadAttachmentStatus(long messageId, long attachmentId, int statusCode, int progress) argument
733 isQueued(long attachmentId) argument
741 dequeue(long attachmentId) argument
770 isAttachmentQueued(long attachmentId) argument
783 cancelQueuedAttachment(long attachmentId) argument
[all...]
H A DEmailServiceUtils.java107 public void loadAttachment(long attachmentId, boolean background) throws RemoteException { argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java163 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { argument
164 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId));
314 long attachmentId = c.getLong(Attachment.ID_PROJECTION_COLUMN);
315 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId);
380 long attachmentId = attachment.mId;
390 File file = getAttachmentFilename(context, accountId, attachmentId);
393 contentUri = getAttachmentUri(accountId, attachmentId).toString();
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMessageTestUtils.java61 * @param attachmentId attachment id
65 public static Uri contentUri(long attachmentId, Account account) { argument
66 return AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
/packages/apps/Email/src/com/android/email/activity/
H A DMessageViewFragmentBase.java897 * @param attachmentId the attachment that was just downloaded
899 private void doFinishLoadAttachment(long attachmentId) { argument
900 MessageViewAttachmentInfo info = findAttachmentInfo(attachmentId);
1526 private MessageViewAttachmentInfo findAttachmentInfoFromView(long attachmentId) { argument
1530 if (attachmentInfo.mId == attachmentId) {
1735 private View findAttachmentView(long attachmentId) { argument
1739 if (attachment.mId == attachmentId) {
1746 private MessageViewAttachmentInfo findAttachmentInfo(long attachmentId) { argument
1747 View view = findAttachmentView(attachmentId);
1801 long messageId, long attachmentId, in
1800 loadAttachmentCallback(MessagingException result, long accountId, long messageId, long attachmentId, int progress) argument
1842 showAttachmentProgress(long attachmentId, int progress) argument
[all...]
H A DEmailActivity.java389 long messageId, long attachmentId, int progress) {
388 loadAttachmentCallback(MessagingException result, long accountId, long messageId, long attachmentId, int progress) argument
H A DMessageCompose.java1739 final long attachmentId = attachment.mId;
1743 mController.deleteAttachment(attachmentId);
/packages/apps/Email/tests/src/com/android/email/service/
H A DAttachmentDownloadServiceTests.java117 assertEquals(expectedAttachmentIds[i], req.attachmentId);
/packages/apps/Email/tests/src/com/android/email/provider/
H A DAttachmentProviderTests.java462 long attachmentId = addAttachmentToDb(account, newAttachment);
463 Uri attachmentUri = AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
479 // We use attachmentId == 1 but any other id would do
485 // We know that the attachmentId 1 does not exist because there are no attachments
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityUnitTests.java299 long attachmentId = att.mId;
300 Uri uri = AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
/packages/apps/Exchange/exchange2/src/com/android/exchange/
H A DExchangeService.java292 public void loadAttachmentStatus(final long messageId, final long attachmentId,
297 cb.loadAttachmentStatus(messageId, attachmentId, status, progress);
427 public void loadAttachment(long attachmentId, boolean background) throws RemoteException {
428 Attachment att = Attachment.restoreAttachmentWithId(ExchangeService.this, attachmentId);
429 log("loadAttachment " + attachmentId + ": " + att.mFileName);

Completed in 183 milliseconds