Home
last modified time | relevance | path

Searched refs:MimeType (Results 1 – 7 of 7) sorted by relevance

/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
DMimeTypeTest.java14 assertEquals(MimeType.EML_ATTACHMENT_CONTENT_TYPE, in testInferMimeType()
15 MimeType.inferMimeType("filename.eml", MimeType.GENERIC_MIMETYPE)); in testInferMimeType()
18 assertEquals("video/mp4", MimeType.inferMimeType("video.mp4", MimeType.GENERIC_MIMETYPE)); in testInferMimeType()
21 assertEquals(TEST_MIME_TYPE, MimeType.inferMimeType("filename", TEST_MIME_TYPE)); in testInferMimeType()
25 assertEquals("video/mp4", MimeType.inferMimeType("video.mp4", "")); in testInferMimeType()
29 assertEquals(MimeType.GENERIC_MIMETYPE, MimeType.inferMimeType("video.foo", "")); in testInferMimeType()
32 assertEquals("text/rtf", MimeType.inferMimeType("filename.rtf", MimeType.GENERIC_MIMETYPE)); in testInferMimeType()
35 assertEquals("application/rtf", MimeType.inferMimeType("filename.rtf", "application/rtf")); in testInferMimeType()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageAttachmentBar.java52 import com.android.mail.utils.MimeType;
256 else if (MimeType.isInstallable(mAttachment.getContentType())) { in onClick()
267 else if (MimeType.isViewable( in onClick()
346 if (MimeType.isEmlMimeType(contentType)) { in viewAttachment()
DEmlViewerActivity.java29 import com.android.mail.utils.MimeType;
46 MimeType.isEmlMimeType(type)) { in onCreate()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAttachment.java39 import com.android.mail.utils.MimeType;
264 contentType = MimeType.inferMimeType(name, part.getMimeType()); in Attachment()
455 return MimeType.isInstallable(getContentType()); in isInstallable()
494 inferredContentType = MimeType.inferMimeType(name, contentType); in getContentType()
DEmlAttachmentProvider.java39 import com.android.mail.utils.MimeType;
350 if (MimeType.isInstallable(attachment.getContentType())) { in copyAttachment()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DMimeType.java35 public class MimeType { class
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java129 import com.android.mail.utils.MimeType;
4304 TextUtils.equals(att.mMimeType, MimeType.ANDROID_ARCHIVE)) { in AttachmentsCursor()