Home | History | Annotate | Download | only in conversationlist

Lines Matching refs:ContentType

34 import com.android.messaging.util.ContentType;
78 final String contentType = extractContentType(contentUri, intent.getType());
82 contentUri, intent.getType(), contentType));
84 if (ContentType.TEXT_PLAIN.equals(contentType)) {
91 } else if (ContentType.isImageType(contentType) ||
92 ContentType.isVCardType(contentType) ||
93 ContentType.isAudioType(contentType) ||
94 ContentType.isVideoType(contentType)) {
97 addSharedImagePartToDraft(contentType, contentUri);
103 Assert.fail("Unsupported shared content type for " + contentUri + ": " + contentType
107 final String contentType = intent.getType();
108 if (ContentType.isImageType(contentType)) {
115 final String actualContentType = extractContentType(imageUri, contentType);
123 Assert.fail("Unsupported shared content type: " + contentType);
131 private static String extractContentType(final Uri uri, final String contentType) {
133 return contentType;
158 return contentType;
161 private void addSharedImagePartToDraft(final String contentType, final Uri imageUri) {
165 mDraftMessage.addPart(PendingAttachmentData.createPendingAttachmentData(contentType,