Home
last modified time | relevance | path

Searched refs:GENERIC_MIMETYPE (Results 1 – 2 of 2) sorted by relevance

/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
DMimeTypeTest.java15 MimeType.inferMimeType("filename.eml", MimeType.GENERIC_MIMETYPE)); in testInferMimeType()
18 assertEquals("video/mp4", MimeType.inferMimeType("video.mp4", MimeType.GENERIC_MIMETYPE)); 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()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DMimeType.java41 static final String GENERIC_MIMETYPE = "application/octet-stream"; field in MimeType
137 isTextPlain || GENERIC_MIMETYPE.equalsIgnoreCase(mimeType); in inferMimeType()
150 return !TextUtils.isEmpty(mimeType) ? mimeType : GENERIC_MIMETYPE; in inferMimeType()