OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MimeUtils
(Results
1 - 4
of
4
) sorted by null
/libcore/luni/src/test/java/libcore/net/
MimeUtilsTest.java
21
import libcore.net.
MimeUtils
;
25
assertEquals("audio/flac",
MimeUtils
.guessMimeTypeFromExtension("flac"));
26
assertEquals("flac",
MimeUtils
.guessExtensionFromMimeType("audio/flac"));
27
assertEquals("flac",
MimeUtils
.guessExtensionFromMimeType("application/x-flac"));
31
assertEquals("image/x-ms-bmp",
MimeUtils
.guessMimeTypeFromExtension("bmp"));
32
assertEquals("image/x-icon",
MimeUtils
.guessMimeTypeFromExtension("ico"));
33
assertEquals("video/mp2ts",
MimeUtils
.guessMimeTypeFromExtension("ts"));
37
assertEquals("audio/mpeg",
MimeUtils
.guessMimeTypeFromExtension("mp3"));
38
assertEquals("image/png",
MimeUtils
.guessMimeTypeFromExtension("png"));
39
assertEquals("application/zip",
MimeUtils
.guessMimeTypeFromExtension("zip"))
[
all
...]
/libcore/luni/src/main/java/java/net/
DefaultFileNameMap.java
20
import libcore.net.
MimeUtils
;
23
* Implements {@link FileNameMap} in terms of {@link libcore.net.
MimeUtils
}.
29
return
MimeUtils
.guessMimeTypeFromExtension("html");
40
return
MimeUtils
.guessMimeTypeFromExtension(ext.toLowerCase(Locale.US));
/frameworks/base/core/java/android/webkit/
MimeTypeMap.java
21
import libcore.net.
MimeUtils
;
79
return
MimeUtils
.hasMimeType(mimeType);
88
return
MimeUtils
.guessMimeTypeFromExtension(extension);
93
return
MimeUtils
.guessMimeTypeFromExtension(extension);
102
return
MimeUtils
.hasExtension(extension);
113
return
MimeUtils
.guessExtensionFromMimeType(mimeType);
/libcore/luni/src/main/java/libcore/net/
MimeUtils.java
31
public final class
MimeUtils
{
453
private
MimeUtils
() {
Completed in 2105 milliseconds