Searched refs:MimeType (Results 1 – 7 of 7) sorted by relevance
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/ |
D | MimeTypeTest.java | 14 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/ |
D | MessageAttachmentBar.java | 52 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()
|
D | EmlViewerActivity.java | 29 import com.android.mail.utils.MimeType; 46 MimeType.isEmlMimeType(type)) { in onCreate()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Attachment.java | 39 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()
|
D | EmlAttachmentProvider.java | 39 import com.android.mail.utils.MimeType; 350 if (MimeType.isInstallable(attachment.getContentType())) { in copyAttachment()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | MimeType.java | 35 public class MimeType { class
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailProvider.java | 129 import com.android.mail.utils.MimeType; 4304 TextUtils.equals(att.mMimeType, MimeType.ANDROID_ARCHIVE)) { in AttachmentsCursor()
|