Searched refs:attachments (Results 1 – 23 of 23) sorted by relevance
107 ArrayList<Part> attachments = new ArrayList<Part>(); in convertAndCheckcheckAddedAttachments() local108 MimeUtility.collectParts(legacyMessage, viewables, attachments); in convertAndCheckcheckAddedAttachments()109 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in convertAndCheckcheckAddedAttachments()121 checkAttachment("attachment1Part", attachments.get(0), attachment, in convertAndCheckcheckAddedAttachments()124 checkAttachment("attachment2Part", attachments.get(1), attachment, in convertAndCheckcheckAddedAttachments()202 ArrayList<Part> attachments = new ArrayList<Part>(); in brokentestAddDuplicateAttachments() local203 MimeUtility.collectParts(legacyMessage, viewables, attachments); in brokentestAddDuplicateAttachments()204 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in brokentestAddDuplicateAttachments()211 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in brokentestAddDuplicateAttachments()217 attachments = new ArrayList<Part>(); in brokentestAddDuplicateAttachments()[all …]
161 final List<Attachment> attachments; in renderAttachments() local164 attachments = Lists.newArrayList(); in renderAttachments()166 attachments.add(mAttachmentsCursor.get()); in renderAttachments()171 attachments = mMessageHeaderItem.getMessage().getAttachments(); in renderAttachments()173 renderAttachments(attachments, loaderResult); in renderAttachments()176 private void renderAttachments(List<Attachment> attachments, boolean loaderResult) { in renderAttachments() argument177 if (attachments == null || attachments.isEmpty()) { in renderAttachments()182 final int maxSize = attachments.size(); in renderAttachments()186 for (Attachment attachment : attachments) { in renderAttachments()199 mMessageHeaderItem.getMessage().attachmentsJson = Attachment.toJSONArray(attachments); in renderAttachments()
124 boolean useSmartReply, boolean sendBcc, List<Attachment> attachments) in writeTo() argument160 if (attachments == null) { in writeTo()161 attachments = in writeTo()165 final boolean multipart = attachments.size() > 0; in writeTo()176 if (attachments.size() == 1) { in writeTo()179 final int flags = attachments.get(0).mFlags; in writeTo()197 for (final Attachment att: attachments) { in writeTo()
166 final EmailContent.Message localMessage, final ArrayList<Part> attachments) in updateAttachments() argument169 for (Part attachmentPart : attachments) { in updateAttachments()417 final Cursor attachments = in makeMessage() local422 while (attachments != null && attachments.moveToNext()) { in makeMessage()424 att.restore(attachments); in makeMessage()458 if (attachments != null) { in makeMessage()459 attachments.close(); in makeMessage()
1152 ArrayList<Attachment> attachments = mAttachmentsView.getAttachments(); in createMessage() local1153 message.hasAttachments = attachments != null && attachments.size() > 0; in createMessage()1157 message.attachmentsJson = Attachment.toJSONArray(attachments); in createMessage()1354 mAttachmentsView = (AttachmentsView)findViewById(R.id.attachments); in findViews()1577 List<Attachment> attachments = message.getAttachments(); in initFromDraftMessage() local1578 for (Attachment a : attachments) { in initFromDraftMessage()1836 public long addAttachments(List<Attachment> attachments) { in addAttachments() argument1839 for (Attachment a : attachments) { in addAttachments()1848 if (attachments.size() > 1) { in addAttachments()1919 ArrayList<Attachment> attachments = Lists.newArrayList(); in handleAttachmentUrisFromIntent() local[all …]
461 ArrayList<Part> attachments = new ArrayList<Part>(); in Message() local462 MimeUtility.collectParts(mimeMessage, viewables, attachments); in Message()478 for (final Part attachmentPart : attachments) { in Message()666 final List<Attachment> attachments = getAttachments(); in getAttachmentCount() local667 for (int i = 0, size = attachments.size(); i < size; i++) { in getAttachmentCount()668 if (attachments.get(i).isInlineAttachment()) { in getAttachmentCount()
158 public static void putAttachments(ContentValues values, List<Attachment> attachments) { in putAttachments() argument159 values.put(MessageColumns.ATTACHMENTS, Attachment.toJSONArray(attachments)); in putAttachments()
612 public static String toJSONArray(Collection<? extends Attachment> attachments) { in toJSONArray() argument613 if (attachments == null) { in toJSONArray()618 for (Attachment attachment : attachments) { in toJSONArray()
372 ArrayList<Part> attachments) throws MessagingException { in collectParts() argument402 collectParts(bp, viewables, attachments); in collectParts()408 collectParts(message, viewables, attachments); in collectParts()414 attachments.add(part); in collectParts()
191 List<Attachment> attachments = getAllAttachments(); in updateActionItems() local192 if (attachments != null) { in updateActionItems()194 for (final Attachment a : attachments) { in updateActionItems()205 for (final Attachment a : attachments) { in updateActionItems()
118 ArrayList<Part> attachments = new ArrayList<Part>(); in copyOneMessageToProvider() local119 MimeUtility.collectParts(message, viewables, attachments); in copyOneMessageToProvider()139 LegacyConversions.updateAttachments(context, localMessage, attachments); in copyOneMessageToProvider()
276 final List<Attachment> attachments = message.getAttachments(); in renderAttachments() local277 for (int i = 0, size = attachments.size(); i < size; i++) { in renderAttachments()278 final Attachment attachment = attachments.get(i); in renderAttachments()
81 String recipients, String bodyHtml, String attachments) { in appendMessage() argument82 append(mMessage, senderName, senderAddress, date, recipients, bodyHtml, attachments); in appendMessage()
266 ArrayList<Part> attachments = new ArrayList<Part>(); in loadUnsyncedMessages() local267 MimeUtility.collectParts(message, viewables, attachments); in loadUnsyncedMessages()1591 ArrayList<Part> attachments = new ArrayList<>(); in searchMailboxImpl() local1592 MimeUtility.collectParts(message, viewables, attachments); in searchMailboxImpl()
900 JSONArray attachments = new JSONArray(); in createAttachmentsJson() local902 attachments.put(attachment1.toJSON()); in createAttachmentsJson()903 attachments.put(attachment2.toJSON()); in createAttachmentsJson()907 return attachments.toString(); in createAttachmentsJson()
242 final ArrayList<Attachment> attachments = in writeMessageToTempFile() local244 Rfc822Output.writeTo(mContext, message, fileStream, smartSend, true, attachments); in writeMessageToTempFile()
1091 ArrayList<Part> attachments = new ArrayList<Part>(); in testNilMessage() local1092 MimeUtility.collectParts(message1, viewables, attachments); in testNilMessage()1104 attachments = new ArrayList<Part>(); in testNilMessage()1105 MimeUtility.collectParts(message1, viewables, attachments); in testNilMessage()
1495 Attachment[] attachments = new Attachment[count]; in restoreAttachmentsWithMessageId() local1500 attachments[i] = attach; in restoreAttachmentsWithMessageId()1502 return attachments; in restoreAttachmentsWithMessageId()
438 ArrayList<Part> attachments = new ArrayList<Part>(); in mimeBodyParser() local439 MimeUtility.collectParts(mimeMessage, viewables, attachments); in mimeBodyParser()
551 Attachment[] attachments = in testMessageSaveWithJustAttachments() local553 int size = attachments.length; in testMessageSaveWithJustAttachments()556 ProviderTestUtils.assertAttachmentEqual("save-message4", atts.get(i), attachments[i]); in testMessageSaveWithJustAttachments()
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...