/packages/apps/Messaging/tests/src/com/android/messaging/ui/ |
D | MultiAttachmentLayoutTest.java | 28 import com.android.messaging.datamodel.data.MessagePartData; 80 final MessagePartData testAttachment1 = MessagePartData.createMediaMessagePart( in testBindTwoAttachments() 82 final MessagePartData testAttachment2 = MessagePartData.createMediaMessagePart( in testBindTwoAttachments() 92 final MessagePartData testAttachment1 = MessagePartData.createMediaMessagePart( in testBindFiveAttachments() 94 final MessagePartData testAttachment2 = MessagePartData.createMediaMessagePart( in testBindFiveAttachments() 96 final MessagePartData testAttachment3 = MessagePartData.createMediaMessagePart( in testBindFiveAttachments() 98 final MessagePartData testAttachment4 = MessagePartData.createMediaMessagePart( in testBindFiveAttachments() 100 final MessagePartData testAttachment5 = MessagePartData.createMediaMessagePart( in testBindFiveAttachments() 114 private Iterable<MessagePartData> createAttachmentList(final MessagePartData... attachments) { in createAttachmentList()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessagePartData.java | 53 public class MessagePartData implements Parcelable { class 118 protected MessagePartData() { in MessagePartData() method in MessagePartData 125 protected MessagePartData(final String messageText) { in MessagePartData() method in MessagePartData 133 protected MessagePartData(final String contentType, final Uri contentUri, in MessagePartData() method in MessagePartData 141 protected MessagePartData(final String messageText, final String contentType, in MessagePartData() method in MessagePartData 149 protected MessagePartData(final String messageText, final String contentType, in MessagePartData() method in MessagePartData 157 private MessagePartData(final String messageId, final String messageText, in MessagePartData() method in MessagePartData 172 public static MessagePartData createTextMessagePart(final String messageText) { in createTextMessagePart() 173 return new MessagePartData(messageText); in createTextMessagePart() 179 public static MessagePartData createMediaMessagePart(final String contentType, in createMediaMessagePart() [all …]
|
D | DraftMessageData.java | 98 private final List<MessagePartData> mAttachments; 101 private final List<MessagePartData> mReadOnlyAttachments; 120 mAttachments = new ArrayList<MessagePartData>(); in DraftMessageData() 150 for (final MessagePartData part : message.getParts()) { in updateFromMessageData() 186 for (final MessagePartData attachment : mAttachments) { in createMessageWithCurrentAttachments() 276 public void addAttachments(final Collection<? extends MessagePartData> attachments) { in addAttachments() 279 for (final MessagePartData data : attachments) { in addAttachments() 289 for (final MessagePartData data : mAttachments) { in addAttachments() 299 for (final MessagePartData data : mPendingAttachments) { in addAttachments() 309 for (final MessagePartData data : attachments) { in addAttachments() [all …]
|
D | MessageData.java | 110 private final ArrayList<MessagePartData> mParts; 204 mParts = new ArrayList<MessagePartData>(); in MessageData() 223 message.mParts.add(MessagePartData.createTextMessagePart("")); in createDraftMessage() 231 for (final MessagePartData part : content.getParts()) { in createDraftMessage() 250 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); in createDraftSmsMessage() 269 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); in createDraftMmsMessage() 291 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); in createReceivedSmsMessage() 306 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); in createSharedMessage() 329 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); in createSmsMessage() 369 public void addPart(final MessagePartData part) { in addPart() [all …]
|
D | ConversationMessageData.java | 57 private List<MessagePartData> mParts; 247 static MessagePartData makePartData( 256 final MessagePartData textPart = MessagePartData.createTextMessagePart(text); 264 final MessagePartData attachmentPart = MessagePartData.createMediaMessagePart( 273 static List<MessagePartData> makeParts( 282 final List<MessagePartData> parts = new LinkedList<MessagePartData>(); 309 final List<MessagePartData> parts, 355 public List<MessagePartData> getParts() { 360 for (final MessagePartData part : mParts) { 382 for (final MessagePartData part : mParts) { [all …]
|
D | PendingAttachmentData.java | 34 public class PendingAttachmentData extends MessagePartData { 103 new SafeAsyncTask<Void, Void, MessagePartData>(LOAD_MEDIA_TIME_LIMIT_MILLIS, in loadAttachmentForDraft() 106 protected MessagePartData doInBackgroundTimed(final Void... params) { in loadAttachmentForDraft() 110 return MessagePartData.createMediaMessagePart( in loadAttachmentForDraft() 130 protected void onPostExecute(final MessagePartData attachment) { in loadAttachmentForDraft()
|
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/ |
D | AttachmentGridView.java | 26 import com.android.messaging.datamodel.data.MessagePartData; 46 private final Set<MessagePartData> mUnselectedSet; 59 public boolean isItemSelected(final MessagePartData attachment) { in isItemSelected() 64 public void onItemClicked(final AttachmentGridItemView view, final MessagePartData attachment) { in onItemClicked() 73 public void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment) { in onItemCheckedChanged() 84 public Set<MessagePartData> getUnselectedAttachments() { in getUnselectedAttachments() 105 .toArray(new MessagePartData[mUnselectedSet.size()]); in onSaveInstanceState() 120 final MessagePartData unselectedPart = savedState.unselectedParts[i]; in onRestoreInstanceState() 131 MessagePartData[] unselectedParts; 142 unselectedParts = new MessagePartData[partCount]; in SavedState() [all …]
|
D | AttachmentGridItemView.java | 28 import com.android.messaging.datamodel.data.MessagePartData; 38 boolean isItemSelected(MessagePartData attachment); in isItemSelected() 39 void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment); in onItemCheckedChanged() 40 void onItemClicked(AttachmentGridItemView view, MessagePartData attachment); in onItemClicked() 44 MessagePartData mAttachmentData; 92 public void bind(final MessagePartData attachment, final HostInterface hostInterface) { in bind()
|
D | AttachmentChooserFragment.java | 39 import com.android.messaging.datamodel.data.MessagePartData; 156 class AttachmentGridAdapter extends ArrayAdapter<MessagePartData> { 158 super(context, R.layout.attachment_grid_item_view, new ArrayList<MessagePartData>()); in AttachmentGridAdapter() 161 public void onAttachmentsLoaded(final List<MessagePartData> attachments) { in onAttachmentsLoaded() 170 final MessagePartData item = getItem(position); in getView()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | GalleryGridView.java | 35 import com.android.messaging.datamodel.data.MessagePartData; 59 void onItemSelected(MessagePartData item); in onItemSelected() 60 void onItemUnselected(MessagePartData item); in onItemUnselected() 68 private final ArrayMap<Uri, MessagePartData> mSelectedImages; 74 mSelectedImages = new ArrayMap<Uri, MessagePartData>(); in GalleryGridView() 127 final MessagePartData item = mSelectedImages.remove(data.getImageUri()); in toggleItemSelection() 134 final MessagePartData item = data.constructMessagePartData(startRect); in toggleItemSelection() 209 final Iterator<Map.Entry<Uri, MessagePartData>> iterator = in refreshImageSelectionStateOnAttachmentChange() 212 Map.Entry<Uri, MessagePartData> entry = iterator.next(); in refreshImageSelectionStateOnAttachmentChange() 242 .toArray(new MessagePartData[mSelectedImages.size()]); in onSaveInstanceState() [all …]
|
D | MediaPicker.java | 45 import com.android.messaging.datamodel.data.MessagePartData; 78 void onItemsSelected(Collection<MessagePartData> items, boolean dismissMediaPicker); in onItemsSelected() 83 void onItemUnselected(MessagePartData item); in onItemUnselected() 587 void dispatchItemsSelected(final MessagePartData item, final boolean dismissMediaPicker) { in dispatchItemsSelected() 588 final List<MessagePartData> items = new ArrayList<MessagePartData>(1); in dispatchItemsSelected() 593 void dispatchItemsSelected(final Collection<MessagePartData> items, in dispatchItemsSelected() 609 void dispatchItemUnselected(final MessagePartData item) { in dispatchItemUnselected()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ConversationMessageView.java | 48 import com.android.messaging.datamodel.data.MessagePartData; 85 boolean onAttachmentClick(ConversationMessageView view, MessagePartData attachment, in onAttachmentClick() 505 final List<MessagePartData> imageParts = mData.getAttachments(sImageFilter); in updateMessageAttachments() 557 final MessagePartData imagePart = imageParts.get(0); in updateMessageAttachments() 563 MessagePartData.UNSPECIFIED_SIZE, in updateMessageAttachments() 572 MessagePartData.UNSPECIFIED_SIZE, true /* allowCompression */, in updateMessageAttachments() 597 private void bindAttachmentsOfSameType(final Predicate<MessagePartData> attachmentTypeFilter, in bindAttachmentsOfSameType() 611 for (final MessagePartData attachment : mData.getAttachments(attachmentTypeFilter)) { in bindAttachmentsOfSameType() 993 private void adjustImageViewBounds(final MessagePartData imageAttachment) { in adjustImageViewBounds() 996 if (imageAttachment.getWidth() == MessagePartData.UNSPECIFIED_SIZE || in adjustImageViewBounds() [all …]
|
D | ComposeMessageView.java | 54 import com.android.messaging.datamodel.data.MessagePartData; 535 public void onMediaItemsSelected(final Collection<MessagePartData> items) { in onMediaItemsSelected() 541 public void onMediaItemsUnselected(final MessagePartData item) { in onMediaItemsUnselected() 635 extends SafeAsyncTask<List<MessagePartData>, Void, Long> { 646 protected Long doInBackgroundTimed(final List<MessagePartData>... params) { in doInBackgroundTimed() 647 final List<MessagePartData> attachments = params[0]; in doInBackgroundTimed() 649 for (final MessagePartData attachment : attachments) { in doInBackgroundTimed() 687 final List<MessagePartData> attachments = in updateVisualsOnDraftChanged() 688 new ArrayList<MessagePartData>(draftMessageData.getReadOnlyAttachments()); in updateVisualsOnDraftChanged() 774 for (final MessagePartData attachment : attachments) { in updateVisualsOnDraftChanged()
|
D | ConversationInputManager.java | 32 import com.android.messaging.datamodel.data.MessagePartData; 73 void onMediaItemsSelected(Collection<MessagePartData> items); in onMediaItemsSelected() 74 void onMediaItemsUnselected(MessagePartData item); in onMediaItemsUnselected() 386 public void onItemsSelected(final Collection<MessagePartData> items, in show() 396 public void onItemUnselected(final MessagePartData item) { in show()
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/ |
D | AttachmentChooserFragmentTest.java | 28 import com.android.messaging.datamodel.data.MessagePartData; 65 private class IsSetOfGivenAttachments implements ArgumentMatcher<Set<MessagePartData>> { 66 private final Set<MessagePartData> mGivenParts; 67 public IsSetOfGivenAttachments(final Set<MessagePartData> givenParts) { in IsSetOfGivenAttachments() 72 public boolean matches(final Set<MessagePartData> actualSet) { in matches() 91 private void loadWith(final List<MessagePartData> attachments) { in loadWith() 140 final List<MessagePartData> attachments = TestDataFactory.getTestDraftAttachments(); in testUnselect() 163 final MessagePartData[] attachmentsToRemove = new MessagePartData[] { in testUnselect()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | MultiAttachmentLayout.java | 32 import com.android.messaging.datamodel.data.MessagePartData; 72 boolean onAttachmentClick(MessagePartData attachment, Rect viewBoundsOnScreen, in onAttachmentClick() 164 public void bindAttachments(final Iterable<MessagePartData> attachments, in bindAttachments() 209 private void determineLayout(final Iterable<MessagePartData> attachments, final int count) { in determineLayout() 227 private void buildViews(final Iterable<MessagePartData> attachments, in buildViews() 232 final Iterator<MessagePartData> iterator = attachments.iterator(); in buildViews() 234 final MessagePartData attachment = iterator.next(); in buildViews() 405 public View findViewForAttachment(final MessagePartData attachment) { in findViewForAttachment() 417 final MessagePartData attachment; 424 ViewWrapper(final View view, final MessagePartData attachment) { in ViewWrapper()
|
D | AttachmentPreviewFactory.java | 35 import com.android.messaging.datamodel.data.MessagePartData; 65 final MessagePartData attachmentData, final ViewGroup parent, in createAttachmentPreview() 128 final MessagePartData attachmentData, final int desiredWidth, final int desiredHeight) { in getImageRequestDescriptorForAttachment() 150 final MessagePartData attachmentData, final ViewGroup parent, in createImagePreview() 201 layoutParams.width = attachmentData.getWidth() == MessagePartData.UNSPECIFIED_SIZE ? in createPendingAttachmentPreview() 203 layoutParams.height = attachmentData.getHeight() == MessagePartData.UNSPECIFIED_SIZE ? in createPendingAttachmentPreview() 209 final MessagePartData attachmentData, final ViewGroup parent, in createVCardPreview() 252 final MessagePartData attachmentData, final ViewGroup parent, in createAudioPreview() 278 final MessagePartData attachmentData, final ViewGroup parent, in createVideoPreview()
|
D | AttachmentPreview.java | 36 import com.android.messaging.datamodel.data.MessagePartData; 153 final List<MessagePartData> attachments = draftMessageData.getReadOnlyAttachments(); in onAttachmentsChanged() 211 final List<MessagePartData> combinedAttachments = new ArrayList<>(); in onAttachmentsChanged() 240 final MessagePartData attachment = combinedAttachments.get(0); in onAttachmentsChanged() 286 private void tryAnimateViewIn(final MessagePartData attachmentData, final View view) { in tryAnimateViewIn() 330 public boolean onAttachmentClick(final MessagePartData attachment, in onAttachmentClick()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
D | TestDataFactory.java | 159 final List<MessagePartData> parts = ConversationMessageData.makeParts( in getMessageText() 169 for (final MessagePartData part : parts) { in getMessageText() 334 public static List<MessagePartData> getTestDraftAttachments() { in getTestDraftAttachments() 335 final MessagePartData[] retParts = new MessagePartData[] { in getTestDraftAttachments() 336 new MessagePartData(ContentType.IMAGE_JPEG, Uri.parse("content://image"), in getTestDraftAttachments() 338 new MessagePartData(ContentType.VIDEO_3GPP, Uri.parse("content://video"), in getTestDraftAttachments() 340 new MessagePartData(ContentType.TEXT_VCARD, Uri.parse("content://vcard"), in getTestDraftAttachments() 342 new MessagePartData(ContentType.AUDIO_3GPP, Uri.parse("content://audio"), in getTestDraftAttachments()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | MessagePartImageRequestDescriptor.java | 22 import com.android.messaging.datamodel.data.MessagePartData; 35 public MessagePartImageRequestDescriptor(final MessagePartData messagePart, in MessagePartImageRequestDescriptor() 58 updatedWidth != MessagePartData.UNSPECIFIED_SIZE && in updateSourceDimensions() 59 updatedHeight != MessagePartData.UNSPECIFIED_SIZE && in updateSourceDimensions()
|
D | MessagePartVideoThumbnailRequestDescriptor.java | 22 import com.android.messaging.datamodel.data.MessagePartData; 25 public MessagePartVideoThumbnailRequestDescriptor(MessagePartData messagePart) { in MessagePartVideoThumbnailRequestDescriptor()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleDatabaseOperations.java | 39 import com.android.messaging.datamodel.data.MessagePartData; 626 for (final MessagePartData part : message.getParts()) { in addSnippetTextAndPreviewToContentValues() 755 for (final MessagePartData part : draftMessage.getParts()) { in updateConversationDraftSnippetAndPreviewInTransaction() 1020 static MessagePartData readMessagePartData(final DatabaseWrapper dbWrapper, in readMessagePartData() 1022 MessagePartData messagePartData = null; in readMessagePartData() 1026 MessagePartData.getProjection(), PartColumns._ID + "=?", in readMessagePartData() 1030 messagePartData = MessagePartData.createFromCursor(cursor); in readMessagePartData() 1099 MessagePartData.getProjection(), PartColumns.MESSAGE_ID + "=?", in readMessagePartsData() 1102 final MessagePartData messagePartData = MessagePartData.createFromCursor(cursor); in readMessagePartsData() 1141 final MessagePartData messagePart, final String conversationId) { in insertNewMessagePartInTransaction() [all …]
|
D | MessageNotificationState.java | 46 import com.android.messaging.datamodel.data.MessagePartData; 735 final List<MessagePartData> attachments = convMessageData.getAttachments(); in buildConversationPageForWearable() 736 for (final MessagePartData messagePartData : attachments) { in buildConversationPageForWearable() 955 final MessagePartData messagePartData = in createConversationInfoList() 991 private static MessagePartData getMostInterestingAttachment( in getMostInterestingAttachment() 993 final List<MessagePartData> attachments = convMessageData.getAttachments(); in getMostInterestingAttachment() 995 MessagePartData imagePart = null; in getMostInterestingAttachment() 996 MessagePartData audioPart = null; in getMostInterestingAttachment() 997 MessagePartData vcardPart = null; in getMostInterestingAttachment() 998 MessagePartData videoPart = null; in getMostInterestingAttachment() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | WidgetConversationService.java | 39 import com.android.messaging.datamodel.data.MessagePartData; 180 final List<MessagePartData> attachments = message.getAttachments(); in getViewAt() 181 for (MessagePartData part : attachments) { in getViewAt() 411 final List<MessagePartData> attachments = message.getAttachments(); in updateViewContent() 413 for (MessagePartData part : attachments) { in updateViewContent() 436 private Bitmap getAttachmentBitmap(final MessagePartData part) { in getAttachmentBitmap()
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 41 import com.android.messaging.datamodel.data.MessagePartData; 356 initial.addPart(MessagePartData.createMediaMessagePart(ContentType.MULTIPART_MIXED, in testBugleDatabaseDraftOperations() 366 for(final MessagePartData part : initialDraft.getParts()) { in testBugleDatabaseDraftOperations() 402 another.addPart(MessagePartData.createMediaMessagePart(ContentType.MMS_MULTIPART_MIXED, in testBugleDatabaseDraftOperations() 412 for(final MessagePartData part : anotherDraft.getParts()) { in testBugleDatabaseDraftOperations()
|