/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 107 ArrayList<Part> attachments = new ArrayList<Part>(); in convertAndCheckcheckAddedAttachments() local 108 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() local 203 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 …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageFooterView.java | 161 final List<Attachment> attachments; in renderAttachments() local 164 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() argument 177 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()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
D | Rfc822Output.java | 124 boolean useSmartReply, boolean sendBcc, List<Attachment> attachments) in writeTo() argument 160 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()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | LegacyConversions.java | 166 final EmailContent.Message localMessage, final ArrayList<Part> attachments) in updateAttachments() argument 169 for (Part attachmentPart : attachments) { in updateAttachments() 417 final Cursor attachments = in makeMessage() local 422 while (attachments != null && attachments.moveToNext()) { in makeMessage() 424 att.restore(attachments); in makeMessage() 458 if (attachments != null) { in makeMessage() 459 attachments.close(); in makeMessage()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | MultiAttachmentLayout.java | 163 public void bindAttachments(final Iterable<MessagePartData> attachments, in bindAttachments() argument 170 determineLayout(attachments, count); in bindAttachments() 171 buildViews(attachments, previousViews, transitionRect); in bindAttachments() 208 private void determineLayout(final Iterable<MessagePartData> attachments, final int count) { in determineLayout() argument 209 Assert.isTrue(attachments != null); in determineLayout() 226 private void buildViews(final Iterable<MessagePartData> attachments, in buildViews() argument 231 final Iterator<MessagePartData> iterator = attachments.iterator(); in buildViews()
|
D | AttachmentPreview.java | 150 final List<MessagePartData> attachments = draftMessageData.getReadOnlyAttachments(); in onAttachmentsChanged() local 158 final int combinedAttachmentCount = attachments.size() + pendingAttachments.size(); in onAttachmentsChanged() 168 if (attachments.size() + pendingAttachments.size() == 0) { in onAttachmentsChanged() 209 combinedAttachments.addAll(attachments); in onAttachmentsChanged()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/ |
D | AttachmentChooserFragmentTest.java | 93 private void loadWith(final List<MessagePartData> attachments) { in loadWith() argument 99 Mockito.doReturn(attachments) in loadWith() 142 final List<MessagePartData> attachments = TestDataFactory.getTestDraftAttachments(); in testUnselect() local 143 loadWith(attachments); in testUnselect() 146 assertEquals("bad view count", attachments.size(), in testUnselect()
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 1153 ArrayList<Attachment> attachments = mAttachmentsView.getAttachments(); in createMessage() local 1154 message.hasAttachments = attachments != null && attachments.size() > 0; in createMessage() 1158 message.attachmentsJson = Attachment.toJSONArray(attachments); in createMessage() 1355 mAttachmentsView = (AttachmentsView)findViewById(R.id.attachments); in findViews() 1578 List<Attachment> attachments = message.getAttachments(); in initFromDraftMessage() local 1579 for (Attachment a : attachments) { in initFromDraftMessage() 1837 public long addAttachments(List<Attachment> attachments) { in addAttachments() argument 1840 for (Attachment a : attachments) { in addAttachments() 1849 if (attachments.size() > 1) { in addAttachments() 1929 ArrayList<Attachment> attachments = Lists.newArrayList(); in handleAttachmentUrisFromIntent() local [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Message.java | 461 ArrayList<Part> attachments = new ArrayList<Part>(); in Message() local 462 MimeUtility.collectParts(mimeMessage, viewables, attachments); in Message() 478 for (final Part attachmentPart : attachments) { in Message() 666 final List<Attachment> attachments = getAttachments(); in getAttachmentCount() local 667 for (int i = 0, size = attachments.size(); i < size; i++) { in getAttachmentCount() 668 if (attachments.get(i).isInlineAttachment()) { in getAttachmentCount()
|
D | MessageModification.java | 158 public static void putAttachments(ContentValues values, List<Attachment> attachments) { in putAttachments() argument 159 values.put(MessageColumns.ATTACHMENTS, Attachment.toJSONArray(attachments)); in putAttachments()
|
D | Attachment.java | 612 public static String toJSONArray(Collection<? extends Attachment> attachments) { in toJSONArray() argument 613 if (attachments == null) { in toJSONArray() 618 for (Attachment attachment : attachments) { in toJSONArray()
|
/packages/services/Telephony/src/com/android/phone/common/mail/internet/ |
D | MimeUtility.java | 371 ArrayList<Part> attachments) throws MessagingException { in collectParts() argument 401 collectParts(bp, viewables, attachments); in collectParts() 407 collectParts(message, viewables, attachments); in collectParts() 413 attachments.add(part); in collectParts()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeUtility.java | 372 ArrayList<Part> attachments) throws MessagingException { in collectParts() argument 402 collectParts(bp, viewables, attachments); in collectParts() 408 collectParts(message, viewables, attachments); in collectParts() 414 attachments.add(part); in collectParts()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
D | MailPhotoViewController.java | 191 List<Attachment> attachments = getAllAttachments(); in updateActionItems() local 192 if (attachments != null) { in updateActionItems() 194 for (final Attachment a : attachments) { in updateActionItems() 205 for (final Attachment a : attachments) { in updateActionItems()
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | WidgetConversationService.java | 180 final List<MessagePartData> attachments = message.getAttachments(); in getViewAt() local 181 for (MessagePartData part : attachments) { in getViewAt() 410 final List<MessagePartData> attachments = message.getAttachments(); in updateViewContent() local 412 for (MessagePartData part : attachments) { in updateViewContent()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | Utilities.java | 118 ArrayList<Part> attachments = new ArrayList<Part>(); in copyOneMessageToProvider() local 119 MimeUtility.collectParts(message, viewables, attachments); in copyOneMessageToProvider() 139 LegacyConversions.updateAttachments(context, localMessage, attachments); in copyOneMessageToProvider()
|
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
D | PrintUtils.java | 276 final List<Attachment> attachments = message.getAttachments(); in renderAttachments() local 277 for (int i = 0, size = attachments.size(); i < size; i++) { in renderAttachments() 278 final Attachment attachment = attachments.get(i); in renderAttachments()
|
D | HtmlPrintTemplates.java | 81 String recipients, String bodyHtml, String attachments) { in appendMessage() argument 82 append(mMessage, senderName, senderAddress, date, recipients, bodyHtml, attachments); in appendMessage()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/ |
D | MultiAttachmentLayoutTest.java | 114 private Iterable<MessagePartData> createAttachmentList(final MessagePartData... attachments) { in createAttachmentList() argument 115 return Collections.unmodifiableList(Arrays.asList(attachments)); in createAttachmentList()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | DraftMessageData.java | 276 public void addAttachments(final Collection<? extends MessagePartData> attachments) { in addAttachments() argument 279 for (final MessagePartData data : attachments) { in addAttachments() 309 for (final MessagePartData data : attachments) { in addAttachments()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | MessageNotificationState.java | 733 final List<MessagePartData> attachments = convMessageData.getAttachments(); in buildConversationPageForWearable() local 734 for (final MessagePartData messagePartData : attachments) { in buildConversationPageForWearable() 991 final List<MessagePartData> attachments = convMessageData.getAttachments(); in getMostInterestingAttachment() local 1002 for (final MessagePartData messagePartData : attachments) { in getMostInterestingAttachment()
|
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/ |
D | AttachmentChooserFragment.java | 161 public void onAttachmentsLoaded(final List<MessagePartData> attachments) { in onAttachmentsLoaded() argument 163 addAll(attachments); in onAttachmentsLoaded()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ComposeMessageView.java | 702 final List<MessagePartData> attachments = draftMessageData.getReadOnlyAttachments(); in updateVisualsOnDraftChanged() local 703 final int attachmentCount = attachments.size(); in updateVisualsOnDraftChanged() 717 for (final MessagePartData attachment : attachments) { in updateVisualsOnDraftChanged()
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | ImapService.java | 266 ArrayList<Part> attachments = new ArrayList<Part>(); in loadUnsyncedMessages() local 267 MimeUtility.collectParts(message, viewables, attachments); in loadUnsyncedMessages() 1591 ArrayList<Part> attachments = new ArrayList<>(); in searchMailboxImpl() local 1592 MimeUtility.collectParts(message, viewables, attachments); in searchMailboxImpl()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
D | ComposeActivityTest.java | 900 JSONArray attachments = new JSONArray(); in createAttachmentsJson() local 902 attachments.put(attachment1.toJSON()); in createAttachmentsJson() 903 attachments.put(attachment2.toJSON()); in createAttachmentsJson() 907 return attachments.toString(); in createAttachmentsJson()
|