/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | SmtpSenderUnitTests.java | 145 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId); in testSendMessageWithEmptyAttachment() local 146 attachment.save(mProviderContext); in testSendMessageWithEmptyAttachment() 152 expectSimpleAttachment(mockTransport, attachment); in testSendMessageWithEmptyAttachment() 193 Attachment attachment = new Attachment(); in setupSimpleAttachment() local 194 attachment.mFileName = "the file.jpg"; in setupSimpleAttachment() 195 attachment.mMimeType = "image/jpg"; in setupSimpleAttachment() 196 attachment.mSize = 0; in setupSimpleAttachment() 197 attachment.mContentId = null; in setupSimpleAttachment() 198 attachment.mContentUri = "content://com.android.email/1/1"; in setupSimpleAttachment() 199 attachment.mMessageKey = messageId; in setupSimpleAttachment() [all …]
|
/packages/apps/Email/src/com/android/email/service/ |
D | AttachmentDownloadService.java | 178 private DownloadRequest(Context context, Attachment attachment) { in DownloadRequest() argument 179 attachmentId = attachment.mId; in DownloadRequest() 180 Message msg = Message.restoreMessageWithId(context, attachment.mMessageKey); in DownloadRequest() 187 priority = getPriority(attachment); in DownloadRequest() 563 Attachment attachment = Attachment.restoreAttachmentWithId(mContext, attachmentId); in endDownload() local 564 if (attachment != null) { in endDownload() 565 long accountId = attachment.mAccountKey; in endDownload() 571 mAttachmentStorageMap.put(accountId, currentStorage + attachment.mSize); in endDownload() 573 if ((attachment.mFlags & Attachment.FLAG_DOWNLOAD_FORWARD) != 0) { in endDownload() 578 EmailContent.delete(mContext, Attachment.CONTENT_URI, attachment.mId); in endDownload() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
D | Rfc822Output.java | 261 Attachment attachment = in writeTo() local 263 writeOneAttachment(context, writer, stream, attachment); in writeTo() 282 Attachment attachment) throws IOException, MessagingException { in writeOneAttachment() argument 284 attachment.mMimeType + ";\n name=\"" + attachment.mFileName + "\""); in writeOneAttachment() 288 if ((attachment.mFlags & Attachment.FLAG_ICS_ALTERNATIVE_PART) == 0) { in writeOneAttachment() 291 + "\n filename=\"" + attachment.mFileName + "\";" in writeOneAttachment() 292 + "\n size=" + Long.toString(attachment.mSize)); in writeOneAttachment() 294 if (attachment.mContentId != null) { in writeOneAttachment() 295 writeHeader(writer, "Content-ID", attachment.mContentId); in writeOneAttachment() 303 if (attachment.mContentBytes != null) { in writeOneAttachment() [all …]
|
D | MimeUtility.java | 428 boolean attachment = attachmentDisposition in collectParts() 435 boolean attachmentOrInline = attachment || inline; in collectParts()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageCompose.java | 863 for (Attachment attachment: attachments) { in resumeDraft() 864 addAttachment(attachment); in resumeDraft() 939 for (Attachment attachment : attachments) { in loadSourceMessage() 941 attachment.mFlags |= Attachment.FLAG_SMART_FORWARD; in loadSourceMessage() 943 mSourceAttachments.add(attachment); in loadSourceMessage() 1114 void onAttachmentLoaded(Attachment[] attachment); in onAttachmentLoaded() argument 1351 for (Attachment attachment : mAttachments) { in doInBackground() 1352 if (attachment.mContentUri == null && in doInBackground() 1353 ((attachment.mFlags & Attachment.FLAG_SMART_FORWARD) == 0)) { in doInBackground() 1354 attachment.mFlags |= Attachment.FLAG_DOWNLOAD_FORWARD; in doInBackground() [all …]
|
D | MessageViewFragmentBase.java | 774 Attachment attachment = Attachment.restoreAttachmentWithId(mContext, info.mId); in performAttachmentSave() local 775 Uri attachmentUri = AttachmentUtilities.getAttachmentUri(mAccountId, attachment.mId); in performAttachmentSave() 781 File file = Utility.createUniqueFile(downloads, attachment.mFileName); in performAttachmentSave() 847 private void onInfoAttachment(final MessageViewAttachmentInfo attachment) { in onInfoAttachment() argument 849 AttachmentInfoDialog.newInstance(getActivity(), attachment.mDenyFlags); in onInfoAttachment() 853 private void onLoadAttachment(final MessageViewAttachmentInfo attachment) { in onLoadAttachment() argument 854 attachment.loadButton.setVisibility(View.GONE); in onLoadAttachment() 860 attachment.cancelButton.setVisibility(View.GONE); in onLoadAttachment() 873 if (!attachment.loaded) { in onLoadAttachment() 874 attachment.cancelButton.setVisibility(View.VISIBLE); in onLoadAttachment() [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | AttachmentInfo.java | 84 public AttachmentInfo(Context context, Attachment attachment) { in AttachmentInfo() argument 85 this(context, attachment.mId, attachment.mSize, attachment.mFileName, attachment.mMimeType, in AttachmentInfo() 86 attachment.mAccountKey, attachment.mFlags); in AttachmentInfo()
|
D | MessagingController.java | 1917 Attachment attachment = in loadAttachment() 1919 if (attachment == null) { in loadAttachment() 1925 if (Utility.attachmentExists(mContext, attachment)) { in loadAttachment() 1955 storePart.setSize((int)attachment.mSize); in loadAttachment() 1957 attachment.mLocation); in loadAttachment() 1960 attachment.mMimeType, in loadAttachment() 1961 attachment.mFileName)); in loadAttachment() 1987 LegacyConversions.saveAttachmentBody(mContext, storePart, attachment, in loadAttachment()
|
D | NotificationController.java | 691 public void showDownloadForwardFailedNotification(Attachment attachment) { in showDownloadForwardFailedNotification() argument 692 final Account account = Account.restoreAccountWithId(mContext, attachment.mAccountKey); in showDownloadForwardFailedNotification() 697 attachment.mFileName, in showDownloadForwardFailedNotification()
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityMediumTests.java | 104 Attachment attachment = ProviderTestUtils.setupAttachment(message.mId, "filename.ext", in testAttachmentExists() local 106 attachment.mContentBytes = null; in testAttachmentExists() 108 assertFalse(Utility.attachmentExists(mMockContext, attachment)); in testAttachmentExists() 110 attachment.mContentBytes = new byte[0]; in testAttachmentExists() 112 assertTrue(Utility.attachmentExists(mMockContext, attachment)); in testAttachmentExists() 114 attachment.mContentBytes = null; in testAttachmentExists() 122 assertFalse(Utility.attachmentExists(mMockContext, attachment)); in testAttachmentExists() 130 attachment.mContentUri = "file://" + file.getAbsolutePath(); in testAttachmentExists() 132 assertTrue(Utility.attachmentExists(mMockContext, attachment)); in testAttachmentExists()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 377 public static void saveAttachment(Context context, InputStream in, Attachment attachment) { in saveAttachment() argument 378 Uri uri = ContentUris.withAppendedId(Attachment.CONTENT_URI, attachment.mId); in saveAttachment() 380 long attachmentId = attachment.mId; in saveAttachment() 381 long accountId = attachment.mAccountKey; in saveAttachment() 385 if (attachment.mUiDestination == UIProvider.AttachmentDestination.CACHE) { in saveAttachment() 398 File file = Utility.createUniqueFile(downloads, attachment.mFileName); in saveAttachment() 411 long id = dm.addCompletedDownload(attachment.mFileName, attachment.mFileName, in saveAttachment() 413 attachment.mMimeType, absolutePath, size, in saveAttachment()
|
D | Utility.java | 743 public static boolean attachmentExists(Context context, Attachment attachment) { 744 if (attachment == null) { 746 } else if (attachment.mContentBytes != null) { 748 } else if (TextUtils.isEmpty(attachment.mContentUri)) { 752 Uri fileUri = Uri.parse(attachment.mContentUri);
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 230 Attachment attachment = Attachment.getContent(c, Attachment.class); in convertAndCheckcheckAddedAttachments() local 231 if ("100".equals(attachment.mLocation)) { in convertAndCheckcheckAddedAttachments() 232 checkAttachment("attachment1Part", attachments.get(0), attachment, in convertAndCheckcheckAddedAttachments() 234 } else if ("101".equals(attachment.mLocation)) { in convertAndCheckcheckAddedAttachments() 235 checkAttachment("attachment2Part", attachments.get(1), attachment, in convertAndCheckcheckAddedAttachments() 238 fail("Unexpected attachment with location " + attachment.mLocation); in convertAndCheckcheckAddedAttachments()
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | GLStub.java | 1313 int attachment, in glFramebufferRenderbufferOES() argument 1320 int attachment, in glFramebufferTexture2DOES() argument 1354 int attachment, in glGetFramebufferAttachmentParameterivOES() argument 1362 int attachment, in glGetFramebufferAttachmentParameterivOES() argument
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ConversationListItem.java | 89 mAttachmentView = findViewById(R.id.attachment); in onFinishInflate() 217 subjectLayout.addRule(RelativeLayout.LEFT_OF, hasAttachment ? R.id.attachment : in bind()
|
/packages/apps/Mms/src/com/android/mms/widget/ |
D | MmsWidgetService.java | 257 remoteViews.setViewVisibility(R.id.attachment, hasAttachment ? View.VISIBLE :
|