Searched refs:inferMimeType (Results 1 – 9 of 9) sorted by relevance
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | AttachmentUtilitiesTests.java | 61 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", null)); in testInferMimeType() 62 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", "")); in testInferMimeType() 64 AttachmentUtilities.inferMimeType("a.eml", DEFAULT_LOWER)); in testInferMimeType() 66 AttachmentUtilities.inferMimeType("a.eMl", TEXT_PLAIN)); in testInferMimeType() 68 AttachmentUtilities.inferMimeType("a.eml", TYPE_IMG_PNG)); in testInferMimeType() 71 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_PNG, "Mime/TyPe")); in testInferMimeType() 72 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_ABC, "Mime/TyPe")); in testInferMimeType() 74 AttachmentUtilities.inferMimeType(FILE_NO_EXT, "Mime/TyPe")); in testInferMimeType() 75 assertEquals("mime/type", AttachmentUtilities.inferMimeType(null, "Mime/TyPe")); in testInferMimeType() 76 assertEquals("mime/type", AttachmentUtilities.inferMimeType("", "Mime/TyPe")); in testInferMimeType() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/ |
D | MimeTypeTest.java | 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/utils/ |
D | MimeType.java | 128 public static String inferMimeType(String name, String mimeType) { in inferMimeType() method in MimeType
|
/packages/apps/Email/provider_src/com/android/email/ |
D | AttachmentInfo.java | 110 mContentType = AttachmentUtilities.inferMimeType(fileName, mimeType); in AttachmentInfo()
|
D | LegacyConversions.java | 229 localAttachment.mMimeType = AttachmentUtilities.inferMimeType(name, part.getMimeType()); in mimePartToAttachment()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Attachment.java | 248 contentType = MimeType.inferMimeType(name, part.getMimeType()); in Attachment() 473 inferredContentType = MimeType.inferMimeType(name, contentType); in getContentType()
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 216 public static String inferMimeType(final String fileName, final String mimeType) { in inferMimeType() method in AttachmentUtilities
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | AttachmentProvider.java | 119 mimeType = AttachmentUtilities.inferMimeType(fileName, mimeType); in getType()
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | AttachmentService.java | 1354 pw.print(AttachmentUtilities.inferMimeType(fileName, null)); in dump()
|