Home
last modified time | relevance | path

Searched refs:ContentType (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java39 import com.android.messaging.util.ContentType;
59 ContentType.IMAGE_JPEG, ContentType.IMAGE_JPG, ContentType.IMAGE_PNG,
60 ContentType.IMAGE_GIF, ContentType.IMAGE_WBMP, ContentType.IMAGE_X_MS_BMP,
62 ContentType.VIDEO_3GP, ContentType.VIDEO_3GPP, ContentType.VIDEO_3G2,
63 ContentType.VIDEO_H263, ContentType.VIDEO_M4V, ContentType.VIDEO_MP4,
64 ContentType.VIDEO_MPEG, ContentType.VIDEO_MPEG4, ContentType.VIDEO_WEBM,
66 ContentType.AUDIO_MP3, ContentType.AUDIO_MP4, ContentType.AUDIO_MIDI,
67 ContentType.AUDIO_MID, ContentType.AUDIO_AMR, ContentType.AUDIO_X_WAV,
68 ContentType.AUDIO_AAC, ContentType.AUDIO_X_MIDI, ContentType.AUDIO_X_MID,
69 ContentType.AUDIO_X_MP3
[all …]
DGalleryGridItemData.java31 import com.android.messaging.util.ContentType;
85 if (ContentType.isAudioType(mContentType)) { in bind()
101 if (ContentType.isVideoType(mContentType)) { in bind()
128 return ContentType.isAudioType(mContentType) ? mAudioUri : mImageData.uri; in getImageUri()
137 return ContentType.isAudioType(mContentType) in constructMessagePartData()
DPendingAttachmentData.java24 import com.android.messaging.util.ContentType;
76 Assert.isTrue(ContentType.isMediaType(contentType)); in createPendingAttachmentData()
84 Assert.isTrue(ContentType.isMediaType(contentType)); in createPendingAttachmentData()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapObexServer.java205 public static class ContentType { class in BluetoothPbapObexServer
443 appParamValue.needTag = ContentType.PHONEBOOK; in onGet()
445 appParamValue.needTag = ContentType.INCOMING_CALL_HISTORY; in onGet()
447 appParamValue.needTag = ContentType.OUTGOING_CALL_HISTORY; in onGet()
449 appParamValue.needTag = ContentType.MISSED_CALL_HISTORY; in onGet()
452 appParamValue.needTag = ContentType.COMBINED_CALL_HISTORY; in onGet()
477 appParamValue.needTag = ContentType.PHONEBOOK; in onGet()
482 appParamValue.needTag = ContentType.INCOMING_CALL_HISTORY; in onGet()
485 ContentType.INCOMING_CALL_HISTORY); in onGet()
490 appParamValue.needTag = ContentType.OUTGOING_CALL_HISTORY; in onGet()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DContentType.java22 public final class ContentType { class
101 private ContentType() { in ContentType() method in ContentType
148 return ContentType.isAudioType(contentType) || ContentType.isVideoType(contentType) || in isConversationListPreviewableType()
149 ContentType.isImageType(contentType) || ContentType.isVCardType(contentType); in isConversationListPreviewableType()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java41 import com.android.messaging.util.ContentType;
608 if (ContentType.isImageType(mContentType)) { in load()
610 } else if (ContentType.isVideoType(mContentType)) { in load()
787 return ContentType.TEXT_PLAIN.equals(mContentType) in isEmbeddedTextType()
788 || ContentType.APP_SMIL.equals(mContentType) in isEmbeddedTextType()
789 || ContentType.TEXT_HTML.equals(mContentType); in isEmbeddedTextType()
806 return ContentType.TEXT_PLAIN.equals(mContentType) in isText()
807 || ContentType.TEXT_HTML.equals(mContentType) in isText()
808 || ContentType.APP_WAP_XHTML.equals(mContentType); in isText()
812 return ContentType.isImageType(mContentType) in isMedia()
[all …]
DMmsUtils.java72 import com.android.messaging.util.ContentType;
305 if (ContentType.isImageType(contentType)) { in makePduBody()
307 } else if (ContentType.isVCardType(contentType)) { in makePduBody()
334 final String extension = ContentType.getExtensionFromMimeType(contentType); in makePduBody()
335 if (ContentType.isImageType(contentType)) { in makePduBody()
344 contentType = isGif ? ContentType.IMAGE_GIF : contentType; in makePduBody()
351 } else if (ContentType.isVideoType(contentType)) { in makePduBody()
359 } else if (ContentType.isVCardType(contentType)) { in makePduBody()
364 } else if (ContentType.isAudioType(contentType)) { in makePduBody()
408 Assert.isTrue(ContentType.isAudioType(part.getContentType()) || in getMediaDurationMs()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/data/
DTestDataFactory.java38 import com.android.messaging.util.ContentType;
108 ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_INCOMING_COMPLETE}, in getConversationListCursor()
111 0, ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_INCOMING_COMPLETE}, in getConversationListCursor()
114 0, ContentType.IMAGE_JPEG, MessageData.BUGLE_STATUS_OUTGOING_COMPLETE} in getConversationListCursor()
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/ui/conversationlist/
DConversationListItemView.java54 import com.android.messaging.util.ContentType;
95 Assert.isTrue(ContentType.isImageType(previewType) ||
96 ContentType.isVideoType(previewType));
100 if (ContentType.isImageType(previewType)) {
474 if (ContentType.isAudioType(previewContentType)) { in bind()
478 } else if (ContentType.isVideoType(previewContentType)) { in bind()
483 } else if (ContentType.isImageType(previewContentType)) { in bind()
639 if (ContentType.isAudioType(previewContentType)) { in getSnippetText()
641 } else if (ContentType.isImageType(previewContentType)) { in getSnippetText()
643 } else if (ContentType.isVideoType(previewContentType)) { in getSnippetText()
[all …]
DShareIntentActivity.java36 import com.android.messaging.util.ContentType;
104 if (ContentType.TEXT_PLAIN.equals(contentType)) { in onAttachFragment()
142 if (ContentType.TEXT_PLAIN.equals(actualContentType)) { in onAttachFragment()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DComposeMessageView.java67 import com.android.messaging.util.ContentType;
777 newType = ContentType.TYPE_IMAGE; in updateVisualsOnDraftChanged()
779 newType = ContentType.TYPE_AUDIO; in updateVisualsOnDraftChanged()
781 newType = ContentType.TYPE_VIDEO; in updateVisualsOnDraftChanged()
783 newType = ContentType.TYPE_VCARD; in updateVisualsOnDraftChanged()
785 newType = ContentType.TYPE_OTHER; in updateVisualsOnDraftChanged()
790 } else if (type != newType || type == ContentType.TYPE_OTHER) { in updateVisualsOnDraftChanged()
791 type = ContentType.TYPE_OTHER; in updateVisualsOnDraftChanged()
797 case ContentType.TYPE_IMAGE: in updateVisualsOnDraftChanged()
802 case ContentType.TYPE_AUDIO: in updateVisualsOnDraftChanged()
[all …]
DConversationActivity.java40 import com.android.messaging.util.ContentType;
111 if (ContentType.isImageType(contentType)) { in onCreate()
116 } else if (ContentType.isVideoType(contentType)) { in onCreate()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java52 import com.android.messaging.util.ContentType;
444 if (!ContentType.isImageType(type) in loadParts()
445 && !ContentType.isAudioType(type) in loadParts()
446 && !ContentType.isVideoType(type)) { in loadParts()
453 if (ContentType.TEXT_PLAIN.equals(type) || ContentType.APP_SMIL.equals(type) in loadParts()
454 || ContentType.TEXT_HTML.equals(type)) { in loadParts()
790 if (ContentType.IMAGE_JPG.equals(contentType)) { in persistPart()
791 contentType = ContentType.IMAGE_JPEG; in persistPart()
796 if (ContentType.TEXT_PLAIN.equals(contentType) && data != null) { in persistPart()
803 contentType = ContentType.TEXT_VCARD; in persistPart()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMmsVideoRecorder.java27 import com.android.messaging.util.ContentType;
55 ContentType.getExtension(getContentType())); in MmsVideoRecorder()
125 return ContentType.VIDEO_MP4; in getContentType()
128 return ContentType.VIDEO_3GPP; in getContentType()
DGalleryGridItemView.java38 import com.android.messaging.util.ContentType;
163 if (ContentType.isAudioType(contentType)) { in updateImageView()
183 if (ContentType.isVideoType(mData.getContentType())) { in updateImageView()
DContactMediaChooser.java34 import com.android.messaging.util.ContentType;
136 ContentType.TEXT_VCARD.toLowerCase(), vCardUri); in onActivityResult()
DLevelTrackingMediaRecorder.java26 import com.android.messaging.util.ContentType;
96 ContentType.THREE_GPP_EXTENSION); in startRecording()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAttachmentPreviewFactory.java46 import com.android.messaging.util.ContentType;
73 } else if (ContentType.isImageType(contentType)) { in createAttachmentPreview()
76 } else if (ContentType.isAudioType(contentType)) { in createAttachmentPreview()
78 } else if (ContentType.isVideoType(contentType)) { in createAttachmentPreview()
80 } else if (ContentType.isVCardType(contentType)) { in createAttachmentPreview()
131 if (ContentType.isImageType(contentType)) { in getImageRequestDescriptorForAttachment()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationListService.java43 import com.android.messaging.util.ContentType;
221 if (ContentType.isAudioType(previewContentType)) { in getSnippetText()
224 } else if (ContentType.isImageType(previewContentType)) { in getSnippetText()
226 } else if (ContentType.isVideoType(previewContentType)) { in getSnippetText()
228 } else if (ContentType.isVCardType(previewContentType)) { in getSnippetText()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DAbortMmsWapPushReceiver.java24 import com.android.messaging.util.ContentType;
35 && ContentType.MMS_MESSAGE.equals(intent.getType())) { in onReceive()
DMmsWapPushDeliverReceiver.java24 import com.android.messaging.util.ContentType;
35 && ContentType.MMS_MESSAGE.equals(intent.getType())) { in onReceive()
DMmsWapPushReceiver.java25 import com.android.messaging.util.ContentType;
38 && ContentType.MMS_MESSAGE.equals(intent.getType())) { in onReceive()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java72 import com.android.messaging.util.ContentType;
724 (ContentType.isImageType(attachmentType) || in sendNotification()
725 ContentType.isVideoType(attachmentType))) { in sendNotification()
726 final boolean isVideo = ContentType.isVideoType(attachmentType); in sendNotification()
1082 if (ContentType.isAudioType(attachmentType)) { in formatAttachmentTag()
1084 } else if (ContentType.isVideoType(attachmentType)) { in formatAttachmentTag()
1086 } else if (ContentType.isVCardType(attachmentType)) { in formatAttachmentTag()
DConversationImagePartsView.java26 import com.android.messaging.util.ContentType;
70 + " like '" + ContentType.IMAGE_PREFIX + "%'"
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DNetworkUriImageRequest.java24 import com.android.messaging.util.ContentType;
63 return ContentType.IMAGE_GIF.equalsIgnoreCase(connection.getContentType()); in isGif()

12