OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MimeType
(Results
1 - 10
of
10
) sorted by null
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
MimeTypeTest.java
11
private static final String TEST_MIME_TYPE = "test/
mimetype
";
14
assertEquals(
MimeType
.EML_ATTACHMENT_CONTENT_TYPE,
15
MimeType
.inferMimeType("filename.eml",
MimeType
.GENERIC_MIMETYPE));
18
assertEquals("video/mp4",
MimeType
.inferMimeType("video.mp4",
MimeType
.GENERIC_MIMETYPE));
20
// file with no extension, should return the
mimetype
that was specified
21
assertEquals(TEST_MIME_TYPE,
MimeType
.inferMimeType("filename", TEST_MIME_TYPE));
23
// file with extension, and empty
mimetype
, where an
mimetype
can be derive
[
all
...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
EmlViewerActivity.java
29
import com.android.mail.utils.
MimeType
;
46
MimeType
.isEmlMimeType(type)) {
MessageAttachmentBar.java
52
import com.android.mail.utils.
MimeType
;
256
else if (
MimeType
.isInstallable(mAttachment.getContentType())) {
267
else if (
MimeType
.isViewable(
346
if (
MimeType
.isEmlMimeType(contentType)) {
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
MimeType.java
35
public class
MimeType
{
125
* @param
mimeType
original mime type of the attachment.
128
public static String inferMimeType(String name, String
mimeType
) {
133
return
mimeType
;
135
final boolean isTextPlain = TEXT_PLAIN.equalsIgnoreCase(
mimeType
);
137
isTextPlain || GENERIC_MIMETYPE.equalsIgnoreCase(
mimeType
);
140
if (isGenericType || TextUtils.isEmpty(
mimeType
)) {
150
return !TextUtils.isEmpty(
mimeType
) ?
mimeType
: GENERIC_MIMETYPE;
158
* @param
mimeType
the mime type to chec
[
all
...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
EmlAttachmentProvider.java
39
import com.android.mail.utils.
MimeType
;
350
if (
MimeType
.isInstallable(attachment.getContentType())) {
365
// (likely due to a bad
mimeType
), we still want to save it.
Attachment.java
39
import com.android.mail.utils.
MimeType
;
248
contentType =
MimeType
.inferMimeType(name, part.getMimeType());
434
return
MimeType
.isInstallable(getContentType());
473
inferredContentType =
MimeType
.inferMimeType(name, contentType);
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/gdiplus/
gdiplusimaging.h
117
WCHAR *
MimeType
;
/packages/apps/Email/provider_src/com/android/email/provider/
EmailProvider.java
129
import com.android.mail.utils.
MimeType
;
[
all
...]
/prebuilts/tools/common/m2/repository/net/sourceforge/htmlunit/htmlunit/2.14/
htmlunit-2.14.jar
/external/libgdx/backends/gdx-backends-gwt/libs/
gwt-dev.jar
Completed in 232 milliseconds