Searched defs:attachments (Results 1 - 8 of 8) sorted by relevance
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
H A D | Rfc822Output.java | 121 * @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 boolean multipart = attachments.size() > 0; 177 if (attachments.size() == 1) { 180 int flags = attachments.get(0).mFlags; 197 // 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 D | LegacyConversions.java | 158 * Copy attachments from MimeMessage to provider Message. 161 * @param localMessage the attachments will be built against this message 162 * @param attachments the attachments to add 166 ArrayList<Part> attachments) throws MessagingException, IOException { 168 for (Part attachmentPart : attachments) { 176 * This will skip adding attachments if they are already found in the attachments table. 177 * The heuristic for this will fail (false-positive) if two identical attachments are 179 * TODO: Fix that, by (elsewhere) simulating an mLocation value based on the attachments 165 updateAttachments(Context context, EmailContent.Message localMessage, ArrayList<Part> attachments) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
H A D | MimeUtility.java | 398 * "viewable" and which will be attachments. 403 * @param attachments This arraylist will be populated with all parts that appear to be 404 * attachments (including inlines) 408 ArrayList<Part> attachments) throws MessagingException { 438 collectParts(bp, viewables, attachments); 442 // it, pulling any viewables or attachments into the running list. 444 collectParts(message, viewables, attachments); 450 attachments.add(part); 407 collectParts(Part part, ArrayList<Part> viewables, ArrayList<Part> attachments) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | MessageModification.java | 158 public static void putAttachments(ContentValues values, List<Attachment> attachments) { argument 159 values.put(MessageColumns.ATTACHMENTS, Attachment.toJSONArray(attachments));
|
H A D | Attachment.java | 85 * For local attachments generated by the Compose UI prior to send/save, 235 * Constructor for use when creating attachments in eml files. 600 public static String toJSONArray(Collection<? extends Attachment> attachments) { argument 601 if (attachments == null) { 606 for (Attachment attachment : attachments) { 653 * @param previewStates The packed int describing the states of multiple attachments. 657 * @return A packed int describing the updated downloaded states of the multiple attachments. 677 * @param previewStates The packed int describing the states of multiple attachments.
|
/packages/apps/Email/tests/src/com/android/email/ |
H A D | LegacyConversionsTests.java | 195 * Sunny day test of adding attachments from an IMAP/POP message. 198 // Prepare a local message to add the attachments to 222 ArrayList<Part> attachments = new ArrayList<Part>(); 223 MimeUtility.collectParts(legacyMessage, viewables, attachments); 224 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); 226 // Read back all attachments for message and check field values 235 checkAttachment("attachment1Part", attachments.get(0), attachment, 238 checkAttachment("attachment2Part", attachments.get(1), attachment, 250 * Test that only "attachment" or "inline" attachments are captured and added. 255 // Prepare a local message to add the attachments t 377 prepareLegacyMessageWithAttachments(BodyPart[] attachments) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | MessageFooterView.java | 97 // we're only updating the attachments. 140 final List<Attachment> attachments; 143 attachments = Lists.newArrayList(); 145 attachments.add(mAttachmentsCursor.get()); 150 attachments = mMessageHeaderItem.getMessage().getAttachments(); 152 renderAttachments(attachments, loaderResult); 155 private void renderAttachments(List<Attachment> attachments, boolean loaderResult) { argument 156 if (attachments == null || attachments.isEmpty()) { 160 // filter the attachments int [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | ComposeActivity.java | 197 public static final String EXTRA_ATTACHMENTS = "attachments"; 931 ArrayList<Attachment> attachments = mAttachmentsView.getAttachments(); 932 message.hasAttachments = attachments != null && attachments.size() > 0; 936 message.attachmentsJson = Attachment.toJSONArray(attachments); 1125 mAttachmentsView = (AttachmentsView)findViewById(R.id.attachments); 1294 List<Attachment> attachments = message.getAttachments(); 1295 for (Attachment a : attachments) { 1340 * attachments on a previous incarnation of the message (as a reply, reply 1341 * all, or forward), the original attachments fro 1522 addAttachments(List<Attachment> attachments) argument 2291 SendOrSaveMessage(Context context, ReplyFromAccount account, ContentValues values, String refMessageId, List<Attachment> attachments, boolean save) argument 2315 initializeAttachmentFds(final Context context, final List<Attachment> attachments) argument [all...] |
Completed in 203 milliseconds