/packages/apps/Email/provider_src/com/android/email/service/ |
D | AttachmentService.java | 525 public void loadAttachmentStatus(final long messageId, final long attachmentId, in loadAttachmentStatus() argument 527 debugTrace(LOG_TAG, "ServiceCallback for attachment #%d", attachmentId); in loadAttachmentStatus() 530 final DownloadRequest req = mDownloadsInProgress.get(attachmentId); in loadAttachmentStatus() 547 Attachment.restoreAttachmentWithId(AttachmentService.this, attachmentId); in loadAttachmentStatus() 561 LogUtils.d(LOG_TAG, "Attachment #%d is done", attachmentId); in loadAttachmentStatus() 562 endDownload(attachmentId, statusCode); in loadAttachmentStatus() 1044 synchronized void endDownload(final long attachmentId, final int statusCode) { in endDownload() argument 1045 LogUtils.d(LOG_TAG, "Finishing download #%d", attachmentId); in endDownload() 1048 mDownloadsInProgress.remove(attachmentId); in endDownload() 1057 downloadCount = mAttachmentFailureMap.remove(attachmentId); in endDownload() [all …]
|
D | EmailServiceStub.java | 124 final long attachmentId, final boolean background) throws RemoteException { in loadAttachment() argument 129 Attachment.restoreAttachmentWithId(mContext, attachmentId); in loadAttachment() 131 cb.loadAttachmentStatus(0, attachmentId, in loadAttachment() 140 cb.loadAttachmentStatus(messageId, attachmentId, in loadAttachment() 148 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.SUCCESS, in loadAttachment() 154 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.IN_PROGRESS, 0); in loadAttachment() 182 cb.loadAttachmentStatus(messageId, attachmentId, in loadAttachment() 220 new MessageRetrievalListenerBridge(messageId, attachmentId, cb)); in loadAttachment() 233 cb.loadAttachmentStatus(messageId, attachmentId, EmailServiceStatus.SUCCESS, 0); in loadAttachment() 240 final Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId); in loadAttachment() [all …]
|
D | Pop3Service.java | 81 final long attachmentId, final boolean background) throws RemoteException { 82 Attachment att = Attachment.restoreAttachmentWithId(mContext, attachmentId);
|
D | EmailServiceUtils.java | 702 final long attachmentId, final boolean background) throws RemoteException { in loadAttachment() argument
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 173 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { in getAttachmentFilename() argument 174 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); in getAttachmentFilename() 306 long attachmentId = c.getLong(Attachment.ID_PROJECTION_COLUMN); in deleteAllAttachmentFiles() local 307 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId); in deleteAllAttachmentFiles() 399 final long attachmentId = attachment.mId; in saveAttachment() local 407 Uri attUri = getAttachmentUri(accountId, attachmentId); in saveAttachment() 415 attachmentId); in saveAttachment()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
D | EmailServiceProxy.java | 118 final long attachmentId, final boolean background) in loadAttachment() argument 124 mService.loadAttachment(cb, accountId, attachmentId, background); in loadAttachment() 129 cb.loadAttachmentStatus(-1, attachmentId, in loadAttachment()
|
D | IEmailServiceCallback.aidl | 43 void loadAttachmentStatus(long messageId, long attachmentId, int statusCode, int progress); in loadAttachmentStatus() argument
|
D | IEmailService.aidl | 30 oneway void loadAttachment(IEmailServiceCallback cb, long accountId, long attachmentId, in loadAttachment() argument
|
/packages/apps/Email/provider_src/com/android/email/ |
D | LegacyConversions.java | 323 final long attachmentId = localAttachment.mId; in saveAttachmentBody() local 331 attachmentId); in saveAttachmentBody() 351 accountId, attachmentId).toString(); in saveAttachmentBody() 361 final Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachmentId); in saveAttachmentBody()
|
/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/tests/src/com/android/email/provider/ |
D | AttachmentProviderTests.java | 448 long attachmentId = addAttachmentToDb(account, newAttachment); in createAttachment() local 449 Uri attachmentUri = AttachmentUtilities.getAttachmentUri(account.mId, attachmentId); in createAttachment()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
D | MockUiProvider.java | 267 private static Map<String, Object> createAttachmentDetailsMap(int attachmentId, String name) { in createAttachmentDetailsMap() argument 269 attachmentMap.put(BaseColumns._ID, Long.valueOf(attachmentId)); in createAttachmentDetailsMap()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailProvider.java | 5147 long attachmentId = Long.parseLong(uri.getLastPathSegment()); in uiUpdateAttachment() local 5150 Attachment.restoreAttachmentWithId(context, attachmentId); in uiUpdateAttachment()
|