Searched defs:attachments (Results 1 - 9 of 9) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/
H A DLegacyConversionsTests.java80 * Sunny day test of adding attachments from an IMAP/POP message.
83 // Prepare a local message to add the attachments to
107 ArrayList<Part> attachments = new ArrayList<Part>();
108 MimeUtility.collectParts(legacyMessage, viewables, attachments);
109 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments);
111 // Read back all attachments for message and check field values
121 checkAttachment("attachment1Part", attachments.get(0), attachment,
124 checkAttachment("attachment2Part", attachments.get(1), attachment,
136 * Test that only "attachment" or "inline" attachments are captured and added.
141 // Prepare a local message to add the attachments t
263 prepareLegacyMessageWithAttachments(BodyPart[] attachments) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/print/
H A DHtmlPrintTemplates.java81 String recipients, String bodyHtml, String attachments) {
82 append(mMessage, senderName, senderAddress, date, recipients, bodyHtml, attachments);
80 appendMessage(String senderName, String senderAddress, String date, String recipients, String bodyHtml, String attachments) argument
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DRfc822Output.java121 * @param attachments list of attachments to send (or null if retrieved from the message itself)
124 boolean useSmartReply, boolean sendBcc, List<Attachment> attachments)
159 // If a list of attachments hasn't been passed in, build one from the message
160 if (attachments == null) {
161 attachments =
165 final boolean multipart = attachments.size() > 0;
176 if (attachments.size() == 1) {
179 final int flags = attachments.get(0).mFlags;
196 // Write out the attachments unti
123 writeTo(Context context, Message message, OutputStream out, boolean useSmartReply, boolean sendBcc, List<Attachment> attachments) argument
[all...]
/packages/apps/Email/src/com/android/email/
H A DLegacyConversions.java159 * Copy attachments from MimeMessage to provider Message.
162 * @param localMessage the attachments will be built against this message
163 * @param attachments the attachments to add
166 final EmailContent.Message localMessage, final ArrayList<Part> attachments)
169 for (Part attachmentPart : attachments) {
181 // Treat inline parts as attachments
220 // Get partId for unloaded IMAP attachments (if any)
243 * This will skip adding attachments if they are already found in the attachments tabl
165 updateAttachments(final Context context, final EmailContent.Message localMessage, final ArrayList<Part> attachments) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
H A DMimeUtility.java362 * "viewable" and which will be attachments.
367 * @param attachments This arraylist will be populated with all parts that appear to be
368 * attachments (including inlines)
372 ArrayList<Part> attachments) throws MessagingException {
402 collectParts(bp, viewables, attachments);
406 // it, pulling any viewables or attachments into the running list.
408 collectParts(message, viewables, attachments);
414 attachments.add(part);
371 collectParts(Part part, ArrayList<Part> viewables, ArrayList<Part> attachments) argument
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DMessageModification.java158 public static void putAttachments(ContentValues values, List<Attachment> attachments) { argument
159 values.put(MessageColumns.ATTACHMENTS, Attachment.toJSONArray(attachments));
H A DAttachment.java84 * For local attachments generated by the Compose UI prior to send/save,
234 * Constructor for use when creating attachments in eml files.
612 public static String toJSONArray(Collection<? extends Attachment> attachments) { argument
613 if (attachments == null) {
618 for (Attachment attachment : attachments) {
665 * @param previewStates The packed int describing the states of multiple attachments.
669 * @return A packed int describing the updated downloaded states of the multiple attachments.
689 * @param previewStates The packed int describing the states of multiple attachments.
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DMessageFooterView.java131 // we're only updating the attachments.
161 final List<Attachment> attachments;
164 attachments = Lists.newArrayList();
166 attachments.add(mAttachmentsCursor.get());
171 attachments = mMessageHeaderItem.getMessage().getAttachments();
173 renderAttachments(attachments, loaderResult);
176 private void renderAttachments(List<Attachment> attachments, boolean loaderResult) { argument
177 if (attachments == null || attachments.isEmpty()) {
181 // filter the attachments int
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DComposeActivity.java224 public static final String EXTRA_ATTACHMENTS = "attachments";
1092 ArrayList<Attachment> attachments = mAttachmentsView.getAttachments();
1093 message.hasAttachments = attachments != null && attachments.size() > 0;
1097 message.attachmentsJson = Attachment.toJSONArray(attachments);
1299 mAttachmentsView = (AttachmentsView)findViewById(R.id.attachments);
1500 List<Attachment> attachments = message.getAttachments();
1501 for (Attachment a : attachments) {
1556 * attachments on a previous incarnation of the message (as a reply, reply
1557 * all, or forward), the original attachments fro
1751 addAttachments(List<Attachment> attachments) argument
2618 SendOrSaveMessage(Context context, ReplyFromAccount account, ContentValues values, String refMessageId, List<Attachment> attachments, boolean save) argument
2642 initializeAttachmentFds(final Context context, final List<Attachment> attachments) argument
[all...]

Completed in 204 milliseconds