/packages/apps/Messaging/tests/src/com/android/messaging/ui/ |
MultiAttachmentLayoutTest.java | 28 import com.android.messaging.datamodel.data.MessagePartData; 80 final MessagePartData testAttachment1 = MessagePartData.createMediaMessagePart( 82 final MessagePartData testAttachment2 = MessagePartData.createMediaMessagePart( 92 final MessagePartData testAttachment1 = MessagePartData.createMediaMessagePart( 94 final MessagePartData testAttachment2 = MessagePartData.createMediaMessagePart( 96 final MessagePartData testAttachment3 = MessagePartData.createMediaMessagePart [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/ |
AttachmentGridView.java | 26 import com.android.messaging.datamodel.data.MessagePartData; 46 private final Set<MessagePartData> mUnselectedSet; 59 public boolean isItemSelected(final MessagePartData attachment) { 64 public void onItemClicked(final AttachmentGridItemView view, final MessagePartData attachment) { 73 public void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment) { 84 public Set<MessagePartData> getUnselectedAttachments() { 105 .toArray(new MessagePartData[mUnselectedSet.size()]); 120 final MessagePartData unselectedPart = savedState.unselectedParts[i]; 131 MessagePartData[] unselectedParts; 142 unselectedParts = new MessagePartData[partCount] [all...] |
AttachmentGridItemView.java | 28 import com.android.messaging.datamodel.data.MessagePartData; 38 boolean isItemSelected(MessagePartData attachment); 39 void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment); 40 void onItemClicked(AttachmentGridItemView view, MessagePartData attachment); 44 MessagePartData mAttachmentData; 92 public void bind(final MessagePartData attachment, final HostInterface hostInterface) {
|
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>()); 161 public void onAttachmentsLoaded(final List<MessagePartData> attachments) { 170 final MessagePartData item = getItem(position);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
MessagePartVideoThumbnailRequestDescriptor.java | 22 import com.android.messaging.datamodel.data.MessagePartData; 25 public MessagePartVideoThumbnailRequestDescriptor(MessagePartData messagePart) {
|
MessagePartImageRequestDescriptor.java | 22 import com.android.messaging.datamodel.data.MessagePartData; 35 public MessagePartImageRequestDescriptor(final MessagePartData messagePart, 58 updatedWidth != MessagePartData.UNSPECIFIED_SIZE && 59 updatedHeight != MessagePartData.UNSPECIFIED_SIZE &&
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
MessagePartData.java | 53 public class MessagePartData implements Parcelable { 105 protected MessagePartData() { 112 protected MessagePartData(final String messageText) { 120 protected MessagePartData(final String contentType, final Uri contentUri, 128 protected MessagePartData(final String messageText, final String contentType, 136 protected MessagePartData(final String messageText, final String contentType, 144 private MessagePartData(final String messageId, final String messageText, 159 public static MessagePartData createTextMessagePart(final String messageText) { 160 return new MessagePartData(messageText); 166 public static MessagePartData createMediaMessagePart(final String contentType [all...] |
DraftMessageData.java | 98 private final List<MessagePartData> mAttachments; 101 private final List<MessagePartData> mReadOnlyAttachments; 120 mAttachments = new ArrayList<MessagePartData>(); 150 for (final MessagePartData part : message.getParts()) { 186 for (final MessagePartData attachment : mAttachments) { 276 public void addAttachments(final Collection<? extends MessagePartData> attachments) { 279 for (final MessagePartData data : attachments) { 289 for (final MessagePartData data : mAttachments) { 299 for (final MessagePartData data : mPendingAttachments) { 309 for (final MessagePartData data : attachments) [all...] |
PendingAttachmentData.java | 34 public class PendingAttachmentData extends MessagePartData { 103 new SafeAsyncTask<Void, Void, MessagePartData>(LOAD_MEDIA_TIME_LIMIT_MILLIS, 106 protected MessagePartData doInBackgroundTimed(final Void... params) { 110 return MessagePartData.createMediaMessagePart( 130 protected void onPostExecute(final MessagePartData attachment) {
|
MessageData.java | 110 private final ArrayList<MessagePartData> mParts; 204 mParts = new ArrayList<MessagePartData>(); 223 message.mParts.add(MessagePartData.createTextMessagePart("")); 231 for (final MessagePartData part : content.getParts()) { 250 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); 269 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); 291 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); 304 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); 327 message.mParts.add(MessagePartData.createTextMessagePart(messageText)); 367 public void addPart(final MessagePartData part) [all...] |
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 [all...] |
MediaPickerMessagePartData.java | 22 public class MediaPickerMessagePartData extends MessagePartData {
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
GalleryGridView.java | 35 import com.android.messaging.datamodel.data.MessagePartData; 59 void onItemSelected(MessagePartData item); 60 void onItemUnselected(MessagePartData item); 68 private final ArrayMap<Uri, MessagePartData> mSelectedImages; 74 mSelectedImages = new ArrayMap<Uri, MessagePartData>(); 127 final MessagePartData item = mSelectedImages.remove(data.getImageUri()); 134 final MessagePartData item = data.constructMessagePartData(startRect); 209 final Iterator<Map.Entry<Uri, MessagePartData>> iterator = 212 Map.Entry<Uri, MessagePartData> entry = iterator.next(); 242 .toArray(new MessagePartData[mSelectedImages.size()]) [all...] |
AudioMediaChooser.java | 26 import com.android.messaging.datamodel.data.MessagePartData; 57 public void onAudioRecorded(final MessagePartData item) {
|
MediaPicker.java | 46 import com.android.messaging.datamodel.data.MessagePartData; 80 void onItemsSelected(Collection<MessagePartData> items, boolean dismissMediaPicker); 85 void onItemUnselected(MessagePartData item); 600 void dispatchItemsSelected(final MessagePartData item, final boolean dismissMediaPicker) { 601 final List<MessagePartData> items = new ArrayList<MessagePartData>(1); 606 void dispatchItemsSelected(final Collection<MessagePartData> items, 622 void dispatchItemUnselected(final MessagePartData item) {
|
GalleryMediaChooser.java | 36 import com.android.messaging.datamodel.data.MessagePartData; 87 public void onItemSelected(final MessagePartData item) { 92 public void onItemUnselected(final MessagePartData item) {
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/ |
AttachmentChooserFragmentTest.java | 28 import com.android.messaging.datamodel.data.MessagePartData; 65 private class IsSetOfGivenAttachments extends ArgumentMatcher<Set<MessagePartData>> { 66 private final Set<MessagePartData> mGivenParts; 67 public IsSetOfGivenAttachments(final Set<MessagePartData> givenParts) { 74 final Set<MessagePartData> actualSet = (Set<MessagePartData>) set; 93 private void loadWith(final List<MessagePartData> attachments) { 142 final List<MessagePartData> attachments = TestDataFactory.getTestDraftAttachments(); 165 final MessagePartData[] attachmentsToRemove = new MessagePartData[] { [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
GalleryBoundCursorLoader.java | 26 import com.android.messaging.datamodel.data.MessagePartData; 37 MessagePartData.ACCEPTABLE_IMAGE_TYPES,
|
BugleDatabaseOperations.java | 39 import com.android.messaging.datamodel.data.MessagePartData; 626 for (final MessagePartData part : message.getParts()) { [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
ConversationMessageView.java | 48 import com.android.messaging.datamodel.data.MessagePartData; 85 boolean onAttachmentClick(ConversationMessageView view, MessagePartData attachment, 504 final List<MessagePartData> imageParts = mData.getAttachments(sImageFilter); 556 final MessagePartData imagePart = imageParts.get(0); 562 MessagePartData.UNSPECIFIED_SIZE, 571 MessagePartData.UNSPECIFIED_SIZE, true /* allowCompression */, 596 private void bindAttachmentsOfSameType(final Predicate<MessagePartData> attachmentTypeFilter, 610 for (final MessagePartData attachment : mData.getAttachments(attachmentTypeFilter)) { [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
MultiAttachmentLayout.java | 32 import com.android.messaging.datamodel.data.MessagePartData; 71 boolean onAttachmentClick(MessagePartData attachment, Rect viewBoundsOnScreen, 163 public void bindAttachments(final Iterable<MessagePartData> attachments, 208 private void determineLayout(final Iterable<MessagePartData> attachments, final int count) { 226 private void buildViews(final Iterable<MessagePartData> attachments, 231 final Iterator<MessagePartData> iterator = attachments.iterator(); 233 final MessagePartData attachment = iterator.next(); 400 public View findViewForAttachment(final MessagePartData attachment) { 412 final MessagePartData attachment; 419 ViewWrapper(final View view, final MessagePartData attachment) [all...] |
AttachmentPreviewFactory.java | 35 import com.android.messaging.datamodel.data.MessagePartData; 65 final MessagePartData attachmentData, final ViewGroup parent, 128 final MessagePartData attachmentData, final int desiredWidth, final int desiredHeight) { 150 final MessagePartData attachmentData, final ViewGroup parent, 201 layoutParams.width = attachmentData.getWidth() == MessagePartData.UNSPECIFIED_SIZE ? 203 layoutParams.height = attachmentData.getHeight() == MessagePartData.UNSPECIFIED_SIZE ? 209 final MessagePartData attachmentData, final ViewGroup parent, 252 final MessagePartData attachmentData, final ViewGroup parent, 278 final MessagePartData attachmentData, final ViewGroup parent,
|
AttachmentPreview.java | 36 import com.android.messaging.datamodel.data.MessagePartData; 150 final List<MessagePartData> attachments = draftMessageData.getReadOnlyAttachments(); 208 final List<MessagePartData> combinedAttachments = new ArrayList<>(); 237 final MessagePartData attachment = combinedAttachments.get(0); 283 static void tryAnimateViewIn(final MessagePartData attachmentData, final View view) { 318 public boolean onAttachmentClick(final MessagePartData attachment,
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/ |
TestDataFactory.java | 159 final List<MessagePartData> parts = ConversationMessageData.makeParts( 169 for (final MessagePartData part : parts) { 334 public static List<MessagePartData> getTestDraftAttachments() { 335 final MessagePartData[] retParts = new MessagePartData[] { 336 new MessagePartData(ContentType.IMAGE_JPEG, Uri.parse("content://image"), 338 new MessagePartData(ContentType.VIDEO_3GPP, Uri.parse("content://video"), 340 new MessagePartData(ContentType.TEXT_VCARD, Uri.parse("content://vcard"), 342 new MessagePartData(ContentType.AUDIO_3GPP, Uri.parse("content://audio"),
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
AudioRecordViewTest.java | 25 import com.android.messaging.datamodel.data.MessagePartData; 47 Mockito.verify(mockHost).onAudioRecorded(Matchers.any(MessagePartData.class));
|