/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
MediaTypeTest.java | 31 * Test MediaType API and parsing. 38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8"); 39 assertEquals("text", mediaType.type()); 40 assertEquals("plain", mediaType.subtype()); 41 assertEquals("UTF-8", mediaType.charset().name()); 42 assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString()); 43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8"))) [all...] |
RequestTest.java | 29 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); 38 MediaType contentType = MediaType.parse("text/plain"); 40 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); 46 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); 54 MediaType contentType = MediaType.parse("text/plain"); 68 MediaType contentType = MediaType.parse("text/plain") [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
MediaTypeNames.in | 1 namespace="MediaType"
|
MediaValuesCached.cpp | 64 const String mediaType = calculateMediaType(frame); 65 if (!mediaType.isEmpty()) 66 m_data.mediaType = mediaType.isolatedCopy(); 158 const String MediaValuesCached::mediaType() const 160 return m_data.mediaType;
|
MediaValuesCached.h | 30 String mediaType; 75 virtual const String mediaType() const OVERRIDE;
|
/external/nist-sip/java/javax/sip/header/ |
AcceptHeader.java | 5 public interface AcceptHeader extends Header, MediaType, Parameters {
|
ContentTypeHeader.java | 5 public interface ContentTypeHeader extends Header, MediaType, Parameters {
|
MediaType.java | 5 public interface MediaType {
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
MediaType.java | 27 public final class MediaType { 34 private final String mediaType; 39 private MediaType(String mediaType, String type, String subtype, String charset) { 40 this.mediaType = mediaType; 50 public static MediaType parse(String string) { 70 return new MediaType(string, type, subtype, charset); 110 return mediaType; 114 return o instanceof MediaType && ((MediaType) o).mediaType.equals(mediaType) [all...] |
Request.java | 150 public abstract MediaType contentType(); 167 public static Body create(MediaType contentType, String content) { 170 : MediaType.parse(contentType + "; charset=utf-8"); 180 public static Body create(final MediaType contentType, final byte[] content) { 185 @Override public MediaType contentType() { 200 public static Body create(final MediaType contentType, final File file) { 205 @Override public MediaType contentType() {
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
sbe.h | 18 AM_MEDIA_TYPE MediaType;
|
/packages/providers/MediaProvider/tools/genfiles/ |
genfiles.sh | 54 while read format mediatype mimetype data; 64 elif [ "$format" == "14343" -a "$mediatype" == "0" ] 68 elif [ "$format" == "12292" -a "$mediatype" == "0" ] 72 elif [ "$format" == "12293" -a "$mediatype" == "0" ] 84 elif [ "$format" == "12299" -a "$mediatype" == "0" ] 88 elif [ "$format" == "12299" -a "$mediatype" == "3" ] 92 elif [ "$format" == "12299" -a "$mediatype" == "2" ] 108 elif [ "$format" == "12288" -a "$mediatype" == "0" ] 116 elif [ "$format" == "12288" -a "$mediatype" == "4" ] 121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $dat [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ |
ContextMenuParams.java | 21 /** Must correspond to the MediaType enum in WebKit/chromium/public/WebContextMenuData.h */ 23 private static interface MediaType { 160 private ContextMenuParams(int mediaType, String linkUrl, String linkText, 172 mIsImage = mediaType == MediaType.MEDIA_TYPE_IMAGE; 173 mIsVideo = mediaType == MediaType.MEDIA_TYPE_VIDEO; 177 private static ContextMenuParams create(int mediaType, String linkUrl, String linkText, 182 return new ContextMenuParams(mediaType, linkUrl, linkText, unfilteredLinkUrl, srcUrl,
|
/external/chromium_org/media/test/data/eme_player_js/ |
test_config.js | 10 this.mediaType = null; 48 if (this.mediaType) 49 Utils.ensureOptionInList(MEDIA_TYPE_ELEMENT_ID, this.mediaType); 59 this.mediaType = document.getElementById(MEDIA_TYPE_ELEMENT_ID).value;
|
eme_app.js | 59 if (testConfig.mediaType) 60 Utils.ensureOptionInList(MEDIA_TYPE_ELEMENT_ID, testConfig.mediaType); 72 this.testConfig_.mediaType =
|
clearkey_player.js | 23 Utils.getInitDataFromMessage(message, this.testConfig.mediaType, true);
|
prefixed_clearkey_player.js | 22 Utils.getInitDataFromMessage(message, this.testConfig.mediaType, false);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
FilterSource.java | 44 mMatcher.add("/filter/mediatype/*/*", FILTER_BY_MEDIATYPE); 58 // /filter/mediatype/k/{set} where k is the media type we want. 66 int mediaType = mMatcher.getIntVar(0); 69 return new FilterTypeSet(path, dataManager, sets[0], mediaType);
|
FilterTypeSet.java | 33 int mediaType) { 37 mMediaType = mediaType; 84 String basePath = "/filter/mediatype/" + mMediaType;
|
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/ |
Crawler.java | 19 import com.squareup.okhttp.MediaType; 102 MediaType mediaType = MediaType.parse(contentType); 103 Document document = Jsoup.parse(in, mediaType.charset(UTF_8).name(), url.toString());
|
/external/chromium_org/net/base/ |
data_url.h | 20 // data:[<mediatype>][;base64],<data> 22 // The <mediatype> is an Internet media type specification (with optional 27 // If <mediatype> is omitted, it defaults to text/plain;charset=US-ASCII. As a
|
/external/chromium_org/media/test/data/ |
mse_config_change.html | 14 var mediaType = 'video/webm; codecs="vorbis, vp8"'; 121 testConfig.mediaType = mediaType; 129 MEDIA_1, mediaType, appendNextSource);
|
/external/chromium_org/third_party/libjingle/source/talk/session/media/ |
mediasession.h | 57 enum MediaType { 63 std::string MediaTypeToString(MediaType type); 109 // Add a stream with MediaType type and id. 112 void AddStream(MediaType type, 118 void RemoveStream(MediaType type, const std::string& id); 122 void AddStreamInternal(MediaType type, 140 Stream(MediaType type, 147 MediaType type; 172 virtual MediaType type() const = 0; 355 virtual MediaType type() const { return MEDIA_TYPE_AUDIO; [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/network/ |
HTTPParsers.cpp | 269 AtomicString extractMIMETypeFromMediaType(const AtomicString& mediaType) 272 unsigned length = mediaType.length(); 275 UChar c = mediaType[i]; 300 return mediaType; 304 String extractCharsetFromMediaType(const String& mediaType) 307 findCharsetInMediaType(mediaType, pos, len); 308 return mediaType.substring(pos, len); 311 void findCharsetInMediaType(const String& mediaType, unsigned& charsetPos, unsigned& charsetLen, unsigned start) 317 unsigned length = mediaType.length(); 320 pos = mediaType.find("charset", pos, false) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/streams/ |
Stream.h | 49 static PassRefPtrWillBeRawPtr<Stream> create(ExecutionContext* context, const String& mediaType) 51 RefPtrWillBeRawPtr<Stream> stream = adoptRefWillBeNoop(new Stream(context, mediaType)); 88 Stream(ExecutionContext*, const String& mediaType);
|