/packages/apps/Email/src/com/android/email/service/ |
D | AttachmentDownloadService.java | 169 final long attachmentId; field in AttachmentDownloadService.DownloadRequest 179 attachmentId = attachment.mId; in DownloadRequest() 193 return (int)attachmentId; in hashCode() 203 return req.attachmentId == attachmentId; in equals() 299 if (req.attachmentId == id) { in findDownloadRequest() 328 Log.d(TAG, "== Skip #" + req.attachmentId + "; maxed for acct #" + in processQueue() 423 Log.d(TAG, "== Download of " + req.attachmentId + " timed out"); in onWatchdogAlarm() 452 boolean alreadyInProgress = mDownloadsInProgress.get(req.attachmentId) != null; in tryStartDownload() 457 Log.d(TAG, ">> Starting download for attachment #" + req.attachmentId); in tryStartDownload() 468 private synchronized DownloadRequest getDownloadInProgress(long attachmentId) { in getDownloadInProgress() argument [all …]
|
D | EmailServiceUtils.java | 107 public void loadAttachment(long attachmentId, boolean background) throws RemoteException { in loadAttachment() argument
|
/packages/apps/Email/src/com/android/email/ |
D | GroupMessagingListener.java | 168 long attachmentId, in loadAttachmentStarted() argument 171 l.loadAttachmentStarted(accountId, messageId, attachmentId, requiresDownload); in loadAttachmentStarted() 179 long attachmentId) { in loadAttachmentFinished() argument 181 l.loadAttachmentFinished(accountId, messageId, attachmentId); in loadAttachmentFinished() 189 long attachmentId, in loadAttachmentFailed() argument 193 l.loadAttachmentFailed(accountId, messageId, attachmentId, me, background); in loadAttachmentFailed()
|
D | MessagingListener.java | 96 long attachmentId, in loadAttachmentStarted() argument 103 long attachmentId) { in loadAttachmentFinished() argument 109 long attachmentId, in loadAttachmentFailed() argument
|
D | Controller.java | 738 public void deleteAttachment(long attachmentId) { in deleteAttachment() argument 740 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId); in deleteAttachment() 1055 public void loadAttachment(final long attachmentId, final long messageId, 1057 Attachment attachInfo = Attachment.restoreAttachmentWithId(mProviderContext, attachmentId); 1067 listener.loadAttachmentCallback(null, accountId, messageId, attachmentId, 0); 1070 listener.loadAttachmentCallback(null, accountId, messageId, attachmentId, 100); 1285 long messageId, long attachmentId, int progress) { 1346 public MessageRetrievalListenerBridge(long messageId, long attachmentId) { 1348 mAttachmentId = attachmentId; 1487 public void loadAttachmentStarted(long accountId, long messageId, long attachmentId, [all …]
|
D | ControllerResultUiThreadWrapper.java | 62 final long messageId, final long attachmentId, final int progress) { in loadAttachmentCallback() argument 70 mWrappee.loadAttachmentCallback(result, accountId, messageId, attachmentId, in loadAttachmentCallback()
|
D | LegacyConversions.java | 292 long attachmentId = localAttachment.mId; in saveAttachmentBody() local 301 attachmentId); in saveAttachmentBody() 310 accountId, attachmentId).toString(); in saveAttachmentBody() 319 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId); in saveAttachmentBody()
|
D | MessagingController.java | 1910 final long attachmentId, MessagingListener listener, final boolean background) { in loadAttachment() argument 1911 mListeners.loadAttachmentStarted(accountId, messageId, attachmentId, true); in loadAttachment() 1918 Attachment.restoreAttachmentWithId(mContext, attachmentId); in loadAttachment() 1920 mListeners.loadAttachmentFailed(accountId, messageId, attachmentId, in loadAttachment() 1926 mListeners.loadAttachmentFinished(accountId, messageId, attachmentId); in loadAttachment() 1938 mListeners.loadAttachmentFailed(accountId, messageId, attachmentId, in loadAttachment() 1978 messageId, attachmentId)); in loadAttachment() 1991 mListeners.loadAttachmentFinished(accountId, messageId, attachmentId); in loadAttachment() 1996 accountId, messageId, attachmentId, me, background); in loadAttachment()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 163 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { in getAttachmentFilename() argument 164 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); in getAttachmentFilename() 314 long attachmentId = c.getLong(Attachment.ID_PROJECTION_COLUMN); in deleteAllAttachmentFiles() local 315 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId); in deleteAllAttachmentFiles() 380 long attachmentId = attachment.mId; in saveAttachment() local 390 File file = getAttachmentFilename(context, accountId, attachmentId); in saveAttachment() 393 contentUri = getAttachmentUri(accountId, attachmentId).toString(); in saveAttachment()
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
D | MessageTestUtils.java | 65 public static Uri contentUri(long attachmentId, Account account) { in contentUri() argument 66 return AttachmentUtilities.getAttachmentUri(account.mId, attachmentId); in contentUri()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageViewFragmentBase.java | 899 private void doFinishLoadAttachment(long attachmentId) { in doFinishLoadAttachment() argument 900 MessageViewAttachmentInfo info = findAttachmentInfo(attachmentId); in doFinishLoadAttachment() 1526 private MessageViewAttachmentInfo findAttachmentInfoFromView(long attachmentId) { in findAttachmentInfoFromView() argument 1530 if (attachmentInfo.mId == attachmentId) { in findAttachmentInfoFromView() 1735 private View findAttachmentView(long attachmentId) { in findAttachmentView() argument 1739 if (attachment.mId == attachmentId) { in findAttachmentView() 1746 private MessageViewAttachmentInfo findAttachmentInfo(long attachmentId) { in findAttachmentInfo() argument 1747 View view = findAttachmentView(attachmentId); in findAttachmentInfo() 1801 long messageId, long attachmentId, int progress) { in loadAttachmentCallback() argument 1804 showAttachmentProgress(attachmentId, progress); in loadAttachmentCallback() [all …]
|
D | EmailActivity.java | 388 long messageId, long attachmentId, int progress) { in loadAttachmentCallback() argument
|
D | MessageCompose.java | 1737 final long attachmentId = attachment.mId; in deleteAttachment() local 1741 mController.deleteAttachment(attachmentId); in deleteAttachment()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
D | EmailServiceProxy.java | 140 public void loadAttachment(final long attachmentId, final boolean background) in loadAttachment() argument 147 mService.loadAttachment(attachmentId, background); in loadAttachment() 152 mCallback.loadAttachmentStatus(-1, attachmentId, in loadAttachment()
|
D | IEmailServiceCallback.aidl | 59 void loadAttachmentStatus(long messageId, long attachmentId, int statusCode, int progress); in loadAttachmentStatus() argument
|
D | IEmailService.aidl | 32 oneway void loadAttachment(long attachmentId, boolean background); in loadAttachment() argument
|
/packages/apps/Email/tests/src/com/android/email/service/ |
D | AttachmentDownloadServiceTests.java | 117 assertEquals(expectedAttachmentIds[i], req.attachmentId); in testDownloadSet()
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityUnitTests.java | 299 long attachmentId = att.mId; in testGetContentFileName() local 300 Uri uri = AttachmentUtilities.getAttachmentUri(account.mId, attachmentId); in testGetContentFileName()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | AttachmentProviderTests.java | 462 long attachmentId = addAttachmentToDb(account, newAttachment); in createAttachment() local 463 Uri attachmentUri = AttachmentUtilities.getAttachmentUri(account.mId, attachmentId); in createAttachment()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
D | ExchangeService.java | 292 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);
|