/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 105 protected MessagePartData() { in MessagePartData() method in MessagePartData 112 protected MessagePartData(final String messageText) { in MessagePartData() method in MessagePartData 120 protected MessagePartData(final String contentType, final Uri contentUri, in MessagePartData() method in MessagePartData 128 protected MessagePartData(final String messageText, final String contentType, in MessagePartData() method in MessagePartData 136 protected MessagePartData(final String messageText, final String contentType, in MessagePartData() method in MessagePartData 144 private MessagePartData(final String messageId, final String messageText, in MessagePartData() method in MessagePartData 159 public static MessagePartData createTextMessagePart(final String messageText) { in createTextMessagePart() 160 return new MessagePartData(messageText); in createTextMessagePart() 166 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() 304 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); in createSharedMessage() 327 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); in createSmsMessage() 367 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 | 46 import com.android.messaging.datamodel.data.MessagePartData; 80 void onItemsSelected(Collection<MessagePartData> items, boolean dismissMediaPicker); in onItemsSelected() 85 void onItemUnselected(MessagePartData item); in onItemUnselected() 600 void dispatchItemsSelected(final MessagePartData item, final boolean dismissMediaPicker) { in dispatchItemsSelected() 601 final List<MessagePartData> items = new ArrayList<MessagePartData>(1); in dispatchItemsSelected() 606 void dispatchItemsSelected(final Collection<MessagePartData> items, in dispatchItemsSelected() 622 void dispatchItemUnselected(final MessagePartData item) { in dispatchItemUnselected()
|
D | GalleryMediaChooser.java | 36 import com.android.messaging.datamodel.data.MessagePartData; 87 public void onItemSelected(final MessagePartData item) { in onItemSelected() 92 public void onItemUnselected(final MessagePartData item) { in onItemUnselected()
|
/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() 504 final List<MessagePartData> imageParts = mData.getAttachments(sImageFilter); in updateMessageAttachments() 556 final MessagePartData imagePart = imageParts.get(0); in updateMessageAttachments() 562 MessagePartData.UNSPECIFIED_SIZE, in updateMessageAttachments() 571 MessagePartData.UNSPECIFIED_SIZE, true /* allowCompression */, in updateMessageAttachments() 596 private void bindAttachmentsOfSameType(final Predicate<MessagePartData> attachmentTypeFilter, in bindAttachmentsOfSameType() 610 for (final MessagePartData attachment : mData.getAttachments(attachmentTypeFilter)) { in bindAttachmentsOfSameType() 992 private void adjustImageViewBounds(final MessagePartData imageAttachment) { in adjustImageViewBounds() 995 if (imageAttachment.getWidth() == MessagePartData.UNSPECIFIED_SIZE || in adjustImageViewBounds() [all …]
|
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; 71 boolean onAttachmentClick(MessagePartData attachment, Rect viewBoundsOnScreen, in onAttachmentClick() 163 public void bindAttachments(final Iterable<MessagePartData> attachments, in bindAttachments() 208 private void determineLayout(final Iterable<MessagePartData> attachments, final int count) { in determineLayout() 226 private void buildViews(final Iterable<MessagePartData> attachments, in buildViews() 231 final Iterator<MessagePartData> iterator = attachments.iterator(); in buildViews() 233 final MessagePartData attachment = iterator.next(); in buildViews() 400 public View findViewForAttachment(final MessagePartData attachment) { in findViewForAttachment() 412 final MessagePartData attachment; 419 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; 150 final List<MessagePartData> attachments = draftMessageData.getReadOnlyAttachments(); in onAttachmentsChanged() 208 final List<MessagePartData> combinedAttachments = new ArrayList<>(); in onAttachmentsChanged() 237 final MessagePartData attachment = combinedAttachments.get(0); in onAttachmentsChanged() 283 static void tryAnimateViewIn(final MessagePartData attachmentData, final View view) { in tryAnimateViewIn() 318 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/ |
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; 733 final List<MessagePartData> attachments = convMessageData.getAttachments(); in buildConversationPageForWearable() 734 for (final MessagePartData messagePartData : attachments) { in buildConversationPageForWearable() 953 final MessagePartData messagePartData = in createConversationInfoList() 989 private static MessagePartData getMostInterestingAttachment( in getMostInterestingAttachment() 991 final List<MessagePartData> attachments = convMessageData.getAttachments(); in getMostInterestingAttachment() 993 MessagePartData imagePart = null; in getMostInterestingAttachment() 994 MessagePartData audioPart = null; in getMostInterestingAttachment() 995 MessagePartData vcardPart = null; in getMostInterestingAttachment() 996 MessagePartData videoPart = null; in getMostInterestingAttachment() [all …]
|
/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()
|
/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() 410 final List<MessagePartData> attachments = message.getAttachments(); in updateViewContent() 412 for (MessagePartData part : attachments) { in updateViewContent() 435 private Bitmap getAttachmentBitmap(final MessagePartData part) { in getAttachmentBitmap()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | MmsUtils.java | 51 import com.android.messaging.datamodel.data.MessagePartData; 304 for (final MessagePartData part : message.getParts()) { in makePduBody() 332 for (final MessagePartData part : message.getParts()) { in makePduBody() 399 private static int getMediaDurationMs(final Context context, final MessagePartData part, in getMediaDurationMs() 450 final MessagePartData messagePart, int widthLimit, int heightLimit, in addPicturePart() 529 final MessagePartData messagePart, final String srcName) { in addVCardPart() 552 final MessagePartData messagePart, final String srcName) { in addVideoPart() 569 final MessagePartData messagePart, final String srcName) { in addOtherPart() 1762 final MessagePartData messagePart = MmsUtils.createMmsMessagePart(part); in createMmsMessage() 1770 message.addPart(MessagePartData.createEmptyMessagePart()); in createMmsMessage() [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ReadWriteDraftMessageActionTest.java | 42 import com.android.messaging.datamodel.data.MessagePartData; 357 initial.addPart(MessagePartData.createMediaMessagePart(ContentType.MULTIPART_MIXED, in testBugleDatabaseDraftOperations() 367 for(final MessagePartData part : initialDraft.getParts()) { in testBugleDatabaseDraftOperations() 403 another.addPart(MessagePartData.createMediaMessagePart(ContentType.MMS_MULTIPART_MIXED, in testBugleDatabaseDraftOperations() 413 for(final MessagePartData part : anotherDraft.getParts()) { in testBugleDatabaseDraftOperations()
|