OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:inferMimeType
(Results
1 - 5
of
5
) sorted by null
/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/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java
206
public static String
inferMimeType
(final String fileName, final String mimeType) {
241
* - Use {@link #
inferMimeType
} for a file: URI.
249
return
inferMimeType
(uri.getLastPathSegment(), "");
/packages/apps/Email/src/com/android/email/
AttachmentInfo.java
103
mContentType = AttachmentUtilities.
inferMimeType
(fileName, mimeType);
/packages/apps/Email/src/com/android/email/provider/
AttachmentProvider.java
115
mimeType = AttachmentUtilities.
inferMimeType
(fileName, mimeType);
/packages/apps/Email/src/com/android/email/service/
AttachmentDownloadService.java
[
all
...]
Completed in 172 milliseconds