OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:inferMimeType
(Results
1 - 9
of
9
) sorted by null
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
MimeTypeTest.java
15
MimeType.
inferMimeType
("filename.eml", MimeType.GENERIC_MIMETYPE));
18
assertEquals("video/mp4", MimeType.
inferMimeType
("video.mp4", MimeType.GENERIC_MIMETYPE));
21
assertEquals(TEST_MIME_TYPE, MimeType.
inferMimeType
("filename", TEST_MIME_TYPE));
25
assertEquals("video/mp4", MimeType.
inferMimeType
("video.mp4", ""));
29
assertEquals(MimeType.GENERIC_MIMETYPE, MimeType.
inferMimeType
("video.foo", ""));
32
assertEquals("text/rtf", MimeType.
inferMimeType
("filename.rtf", MimeType.GENERIC_MIMETYPE));
35
assertEquals("application/rtf", MimeType.
inferMimeType
("filename.rtf", "application/rtf"));
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
AttachmentUtilitiesTests.java
28
* Test static
inferMimeType
()
59
assertEquals("message/rfc822", AttachmentUtilities.
inferMimeType
("a.eml", null));
60
assertEquals("message/rfc822", AttachmentUtilities.
inferMimeType
("a.eml", ""));
62
AttachmentUtilities.
inferMimeType
("a.eml", DEFAULT_LOWER));
64
AttachmentUtilities.
inferMimeType
("a.eMl", TEXT_PLAIN));
66
AttachmentUtilities.
inferMimeType
("a.eml", TYPE_IMG_PNG));
69
assertEquals("mime/type", AttachmentUtilities.
inferMimeType
(FILE_PNG, "Mime/TyPe"));
70
assertEquals("mime/type", AttachmentUtilities.
inferMimeType
(FILE_ABC, "Mime/TyPe"));
72
AttachmentUtilities.
inferMimeType
(FILE_NO_EXT, "Mime/TyPe"));
73
assertEquals("mime/type", AttachmentUtilities.
inferMimeType
(null, "Mime/TyPe"))
[
all
...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
MimeType.java
141
public static String
inferMimeType
(String name, String mimeType) {
/packages/apps/Email/src/com/android/email/
AttachmentInfo.java
103
mContentType = AttachmentUtilities.
inferMimeType
(fileName, mimeType);
LegacyConversions.java
219
// Run the mime type through
inferMimeType
in case we have something generic and can do
221
String mimeType = AttachmentUtilities.
inferMimeType
(name, part.getMimeType());
/packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.java
119
mimeType = AttachmentUtilities.
inferMimeType
(fileName, mimeType);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java
218
public static String
inferMimeType
(final String fileName, final String mimeType) {
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
Attachment.java
248
contentType = MimeType.
inferMimeType
(name, part.getMimeType());
470
inferredContentType = MimeType.
inferMimeType
(name, contentType);
/packages/apps/Email/src/com/android/email/service/
AttachmentDownloadService.java
[
all
...]
Completed in 229 milliseconds