Searched refs:attachments (Results 1 – 23 of 23) sorted by relevance
222 ArrayList<Part> attachments = new ArrayList<Part>(); in convertAndCheckcheckAddedAttachments() local223 MimeUtility.collectParts(legacyMessage, viewables, attachments); in convertAndCheckcheckAddedAttachments()224 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in convertAndCheckcheckAddedAttachments()235 checkAttachment("attachment1Part", attachments.get(0), attachment, in convertAndCheckcheckAddedAttachments()238 checkAttachment("attachment2Part", attachments.get(1), attachment, in convertAndCheckcheckAddedAttachments()316 ArrayList<Part> attachments = new ArrayList<Part>(); in testAddDuplicateAttachments() local317 MimeUtility.collectParts(legacyMessage, viewables, attachments); in testAddDuplicateAttachments()318 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in testAddDuplicateAttachments()325 LegacyConversions.updateAttachments(mProviderContext, localMessage, attachments); in testAddDuplicateAttachments()331 attachments = new ArrayList<Part>(); in testAddDuplicateAttachments()[all …]
140 final List<Attachment> attachments; in renderAttachments() local143 attachments = Lists.newArrayList(); in renderAttachments()145 attachments.add(mAttachmentsCursor.get()); in renderAttachments()150 attachments = mMessageHeaderItem.getMessage().getAttachments(); in renderAttachments()152 renderAttachments(attachments, loaderResult); in renderAttachments()155 private void renderAttachments(List<Attachment> attachments, boolean loaderResult) { in renderAttachments() argument156 if (attachments == null || attachments.isEmpty()) { in renderAttachments()161 final int maxSize = attachments.size(); in renderAttachments()165 for (Attachment attachment : attachments) { in renderAttachments()172 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 boolean multipart = attachments.size() > 0; in writeTo()177 if (attachments.size() == 1) { in writeTo()180 int flags = attachments.get(0).mFlags; in writeTo()198 for (Attachment att: attachments) { in writeTo()
931 ArrayList<Attachment> attachments = mAttachmentsView.getAttachments(); in createMessage() local932 message.hasAttachments = attachments != null && attachments.size() > 0; in createMessage()936 message.attachmentsJson = Attachment.toJSONArray(attachments); in createMessage()1125 mAttachmentsView = (AttachmentsView)findViewById(R.id.attachments); in findViews()1294 List<Attachment> attachments = message.getAttachments(); in initFromDraftMessage() local1295 for (Attachment a : attachments) { in initFromDraftMessage()1522 public long addAttachments(List<Attachment> attachments) { in addAttachments() argument1525 for (Attachment a : attachments) { in addAttachments()1534 if (attachments.size() > 1) { in addAttachments()1593 ArrayList<Attachment> attachments = new ArrayList<Attachment>(); in initAttachmentsFromIntent() local[all …]
161 List<Attachment> attachments = getAllAttachments(); in updateActionItems() local162 if (attachments != null) { in updateActionItems()164 for (final Attachment a : attachments) { in updateActionItems()175 for (final Attachment a : attachments) { in updateActionItems()
408 ArrayList<Part> attachments) throws MessagingException { in collectParts() argument438 collectParts(bp, viewables, attachments); in collectParts()444 collectParts(message, viewables, attachments); in collectParts()450 attachments.add(part); in collectParts()
115 ArrayList<Part> attachments = new ArrayList<Part>(); in copyOneMessageToProvider() local116 MimeUtility.collectParts(message, viewables, attachments); in copyOneMessageToProvider()139 LegacyConversions.updateAttachments(context, localMessage, attachments); in copyOneMessageToProvider()
158 public static void putAttachments(ContentValues values, List<Attachment> attachments) { in putAttachments() argument159 values.put(MessageColumns.ATTACHMENTS, Attachment.toJSONArray(attachments)); in putAttachments()
395 ArrayList<Part> attachments = new ArrayList<Part>(); in Message() local396 MimeUtility.collectParts(mimeMessage, viewables, attachments); in Message()410 for (final Part attachmentPart : attachments) { in Message()
600 public static String toJSONArray(Collection<? extends Attachment> attachments) { in toJSONArray() argument601 if (attachments == null) { in toJSONArray()606 for (Attachment attachment : attachments) { in toJSONArray()
738 ArrayList<Parcelable> attachments = new ArrayList<Parcelable>();744 attachments.add(uri);749 intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, attachments);
847 JSONArray attachments = new JSONArray(); in createAttachmentsJson() local849 attachments.put(attachment1.toJSON()); in createAttachmentsJson()850 attachments.put(attachment2.toJSON()); in createAttachmentsJson()854 return attachments.toString(); in createAttachmentsJson()
231 ArrayList<Part> attachments = new ArrayList<Part>(); in loadUnsyncedMessages() local232 MimeUtility.collectParts(message, viewables, attachments); in loadUnsyncedMessages()1510 ArrayList<Part> attachments = new ArrayList<Part>(); in searchMailboxImpl() local1511 MimeUtility.collectParts(message, viewables, attachments); in searchMailboxImpl()
218 final ArrayList<Attachment> attachments = in writeMessageToTempFile() local220 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()
166 ArrayList<Part> attachments) throws MessagingException, IOException { in updateAttachments() argument168 for (Part attachmentPart : attachments) { in updateAttachments()
1398 Attachment[] attachments = new Attachment[count]; in restoreAttachmentsWithMessageId() local1403 attachments[i] = attach; in restoreAttachmentsWithMessageId()1405 return attachments; in restoreAttachmentsWithMessageId()
426 ArrayList<Part> attachments = new ArrayList<Part>(); in mimeBodyParser() local427 MimeUtility.collectParts(mimeMessage, viewables, attachments); in mimeBodyParser()
810 ArrayList<Part> attachments = new ArrayList<Part>();811 MimeUtility.collectParts(mimeMessage, viewables, attachments);
582 Attachment[] attachments = in testMessageSaveWithJustAttachments() local584 int size = attachments.length; in testMessageSaveWithJustAttachments()587 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 ...