/external/guava/android/guava-tests/test/com/google/common/net/ |
D | MediaTypeTest.java | 21 import static com.google.common.net.MediaType.ANY_APPLICATION_TYPE; 22 import static com.google.common.net.MediaType.ANY_AUDIO_TYPE; 23 import static com.google.common.net.MediaType.ANY_IMAGE_TYPE; 24 import static com.google.common.net.MediaType.ANY_TEXT_TYPE; 25 import static com.google.common.net.MediaType.ANY_TYPE; 26 import static com.google.common.net.MediaType.ANY_VIDEO_TYPE; 27 import static com.google.common.net.MediaType.HTML_UTF_8; 28 import static com.google.common.net.MediaType.JPEG; 29 import static com.google.common.net.MediaType.PLAIN_TEXT_UTF_8; 63 for (MediaType constant : getConstants()) { in testParse_useConstants() [all …]
|
/external/guava/guava-tests/test/com/google/common/net/ |
D | MediaTypeTest.java | 21 import static com.google.common.net.MediaType.ANY_APPLICATION_TYPE; 22 import static com.google.common.net.MediaType.ANY_AUDIO_TYPE; 23 import static com.google.common.net.MediaType.ANY_IMAGE_TYPE; 24 import static com.google.common.net.MediaType.ANY_TEXT_TYPE; 25 import static com.google.common.net.MediaType.ANY_TYPE; 26 import static com.google.common.net.MediaType.ANY_VIDEO_TYPE; 27 import static com.google.common.net.MediaType.HTML_UTF_8; 28 import static com.google.common.net.MediaType.JPEG; 29 import static com.google.common.net.MediaType.PLAIN_TEXT_UTF_8; 63 for (MediaType constant : getConstants()) { in testParse_useConstants() [all …]
|
/external/guava/guava/src/com/google/common/net/ |
D | MediaType.java | 78 public final class MediaType { class 107 private static final Map<MediaType, MediaType> KNOWN_TYPES = Maps.newHashMap(); 109 private static MediaType createConstant(String type, String subtype) { in createConstant() 110 MediaType mediaType = in createConstant() 111 addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of())); in createConstant() 116 private static MediaType createConstantUtf8(String type, String subtype) { in createConstantUtf8() 117 MediaType mediaType = addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS)); in createConstantUtf8() 122 private static MediaType addKnownType(MediaType mediaType) { in addKnownType() 137 public static final MediaType ANY_TYPE = createConstant(WILDCARD, WILDCARD); 138 public static final MediaType ANY_TEXT_TYPE = createConstant(TEXT_TYPE, WILDCARD); [all …]
|
/external/guava/android/guava/src/com/google/common/net/ |
D | MediaType.java | 78 public final class MediaType { class 107 private static final Map<MediaType, MediaType> KNOWN_TYPES = Maps.newHashMap(); 109 private static MediaType createConstant(String type, String subtype) { in createConstant() 110 MediaType mediaType = in createConstant() 111 addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of())); in createConstant() 116 private static MediaType createConstantUtf8(String type, String subtype) { in createConstantUtf8() 117 MediaType mediaType = addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS)); in createConstantUtf8() 122 private static MediaType addKnownType(MediaType mediaType) { in addKnownType() 137 public static final MediaType ANY_TYPE = createConstant(WILDCARD, WILDCARD); 138 public static final MediaType ANY_TEXT_TYPE = createConstant(TEXT_TYPE, WILDCARD); [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | MediaTypeTest.java | 38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8"); in testParse() 43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8"))); in testParse() 45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode()); in testParse() 91 MediaType mediaType = MediaType.parse( in testParseWithSpecialCharacters() 98 MediaType mediaType = MediaType.parse("text/plain;a=1;b=2;charset=utf-8;c=3"); in testCharsetIsOneOfManyParameters() 105 MediaType mediaType = MediaType.parse( in testCharsetAndQuoting() 111 MediaType mediaType = MediaType.parse("text/plain; charset=utf-8; charset=UTF-8"); in testDuplicatedCharsets() 117 MediaType.parse("text/plain; charset=utf-8; charset=utf-16"); in testMultipleCharsets() 124 MediaType mediaType = MediaType.parse("text/plain; charset=\"!@#$%^&*()\""); in testIllegalCharsetName() 133 MediaType mediaType = MediaType.parse("text/plain; charset=utf-wtf"); in testUnsupportedCharset() [all …]
|
D | RequestTest.java | 35 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); in string() 44 MediaType contentType = MediaType.parse("text/plain"); in stringWithDefaultCharsetAdded() 46 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); in stringWithDefaultCharsetAdded() 52 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); in stringWithNonDefaultCharsetSpecified() 60 MediaType contentType = MediaType.parse("text/plain"); in byteArray() 69 MediaType contentType = MediaType.parse("text/plain"); in byteArrayRange() 83 MediaType contentType = MediaType.parse("text/plain"); in file() 93 MediaType contentType = MediaType.parse("application/json"); in crudVerbs()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | MultipartBuilder.java | 38 public static final MediaType MIXED = MediaType.parse("multipart/mixed"); 45 public static final MediaType ALTERNATIVE = MediaType.parse("multipart/alternative"); 53 public static final MediaType DIGEST = MediaType.parse("multipart/digest"); 60 public static final MediaType PARALLEL = MediaType.parse("multipart/parallel"); 68 public static final MediaType FORM = MediaType.parse("multipart/form-data"); 75 private MediaType type = MIXED; 100 public MultipartBuilder type(MediaType type) { in type() 198 private final MediaType contentType; 203 public MultipartRequestBody(MediaType type, ByteString boundary, List<Headers> partHeaders, in MultipartRequestBody() 208 this.contentType = MediaType.parse(type + "; boundary=" + boundary.utf8()); in MultipartRequestBody() [all …]
|
D | RequestBody.java | 29 public abstract MediaType contentType(); in contentType() 46 public static RequestBody create(MediaType contentType, String content) { in create() 52 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 60 public static RequestBody create(final MediaType contentType, final ByteString content) { in create() 62 @Override public MediaType contentType() { in create() 77 public static RequestBody create(final MediaType contentType, final byte[] content) { 82 public static RequestBody create(final MediaType contentType, final byte[] content, 87 @Override public MediaType contentType() { 102 public static RequestBody create(final MediaType contentType, final File file) { 106 @Override public MediaType contentType() {
|
D | ResponseBody.java | 34 public abstract MediaType contentType(); in contentType() 87 MediaType contentType = contentType(); in charset() 99 public static ResponseBody create(MediaType contentType, String content) { in create() 105 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 113 public static ResponseBody create(final MediaType contentType, byte[] content) { in create() 120 final MediaType contentType, final long contentLength, final BufferedSource content) { in create() 123 @Override public MediaType contentType() { in create()
|
D | MediaType.java | 27 public final class MediaType { class 39 private MediaType(String mediaType, String type, String subtype, String charset) { in MediaType() method in MediaType 50 public static MediaType parse(String string) { in parse() 73 return new MediaType(string, type, subtype, charset); in parse() 117 return o instanceof MediaType && ((MediaType) o).mediaType.equals(mediaType); in equals()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | MultipartBuilder.java | 40 public static final MediaType MIXED = MediaType.parse("multipart/mixed"); 47 public static final MediaType ALTERNATIVE = MediaType.parse("multipart/alternative"); 55 public static final MediaType DIGEST = MediaType.parse("multipart/digest"); 62 public static final MediaType PARALLEL = MediaType.parse("multipart/parallel"); 70 public static final MediaType FORM = MediaType.parse("multipart/form-data"); 77 private MediaType type = MIXED; 102 public MultipartBuilder type(MediaType type) { in type() 200 private final MediaType contentType; 205 public MultipartRequestBody(MediaType type, ByteString boundary, List<Headers> partHeaders, in MultipartRequestBody() 210 this.contentType = MediaType.parse(type + "; boundary=" + boundary.utf8()); in MultipartRequestBody() [all …]
|
D | RequestBody.java | 33 public abstract MediaType contentType(); in contentType() 50 public static RequestBody create(MediaType contentType, String content) { in create() 56 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 64 public static RequestBody create(final MediaType contentType, final ByteString content) { in create() 66 @Override public MediaType contentType() { in create() 81 public static RequestBody create(final MediaType contentType, final byte[] content) { 86 public static RequestBody create(final MediaType contentType, final byte[] content, 91 @Override public MediaType contentType() { 106 public static RequestBody create(final MediaType contentType, final File file) { 110 @Override public MediaType contentType() {
|
D | ResponseBody.java | 38 public abstract MediaType contentType(); in contentType() 91 MediaType contentType = contentType(); in charset() 103 public static ResponseBody create(MediaType contentType, String content) { in create() 109 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 117 public static ResponseBody create(final MediaType contentType, byte[] content) { in create() 124 final MediaType contentType, final long contentLength, final BufferedSource content) { in create() 127 @Override public MediaType contentType() { in create()
|
D | MediaType.java | 29 public final class MediaType { class 41 private MediaType(String mediaType, String type, String subtype, String charset) { in MediaType() method in MediaType 52 public static MediaType parse(String string) { in parse() 75 return new MediaType(string, type, subtype, charset); in parse() 119 return o instanceof MediaType && ((MediaType) o).mediaType.equals(mediaType); in equals()
|
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/ |
D | HttpEntityBody.java | 3 import com.squareup.okhttp.MediaType; 11 private static final MediaType DEFAULT_MEDIA_TYPE = MediaType.parse("application/octet-stream"); 14 private final MediaType mediaType; 20 mediaType = MediaType.parse(contentTypeHeader); in HttpEntityBody() 22 mediaType = MediaType.parse(entity.getContentType().getValue()); in HttpEntityBody() 34 @Override public MediaType contentType() { in contentType()
|
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/ |
D | WebSocket.java | 18 import com.squareup.okhttp.MediaType; 26 MediaType TEXT = MediaType.parse("application/vnd.okhttp.websocket+text; charset=utf-8"); 28 MediaType BINARY = MediaType.parse("application/vnd.okhttp.websocket+binary");
|
/external/webrtc/webrtc/call/ |
D | rtc_event_log_unittest.cc | 58 MediaType GetRuntimeMediaType(rtclog::MediaType media_type) { in GetRuntimeMediaType() 60 case rtclog::MediaType::ANY: in GetRuntimeMediaType() 61 return MediaType::ANY; in GetRuntimeMediaType() 62 case rtclog::MediaType::AUDIO: in GetRuntimeMediaType() 63 return MediaType::AUDIO; in GetRuntimeMediaType() 64 case rtclog::MediaType::VIDEO: in GetRuntimeMediaType() 65 return MediaType::VIDEO; in GetRuntimeMediaType() 66 case rtclog::MediaType::DATA: in GetRuntimeMediaType() 67 return MediaType::DATA; in GetRuntimeMediaType() 70 return MediaType::ANY; in GetRuntimeMediaType() [all …]
|
D | rtc_event_log.cc | 51 MediaType media_type, in LogRtpHeader() 55 MediaType media_type, in LogRtcpPacket() 78 MediaType media_type, 82 MediaType media_type, 147 rtclog::MediaType ConvertMediaType(MediaType media_type) { 149 case MediaType::ANY: 150 return rtclog::MediaType::ANY; 151 case MediaType::AUDIO: 152 return rtclog::MediaType::AUDIO; 153 case MediaType::VIDEO: [all …]
|
/external/webrtc/talk/app/webrtc/ |
D | peerconnection.h | 230 void RemoveTracks(cricket::MediaType media_type); 241 cricket::MediaType media_type, 250 cricket::MediaType media_type); 257 cricket::MediaType media_type); 266 void EndRemoteTracks(cricket::MediaType media_type); 273 cricket::MediaType media_type); 283 cricket::MediaType media_type); 293 cricket::MediaType media_type); 332 TrackInfos* GetRemoteTracks(cricket::MediaType media_type); 333 TrackInfos* GetLocalTracks(cricket::MediaType media_type);
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | PostStreaming.java | 18 import com.squareup.okhttp.MediaType; 27 public static final MediaType MEDIA_TYPE_MARKDOWN 28 = MediaType.parse("text/x-markdown; charset=utf-8"); 34 @Override public MediaType contentType() { in run()
|
D | RequestBodyCompression.java | 20 import com.squareup.okhttp.MediaType; 39 public static final MediaType MEDIA_TYPE_JSON = MediaType.parse("application/json"); 84 @Override public MediaType contentType() { in gzip()
|
D | PostString.java | 18 import com.squareup.okhttp.MediaType; 26 public static final MediaType MEDIA_TYPE_MARKDOWN 27 = MediaType.parse("text/x-markdown; charset=utf-8");
|
/external/webrtc/talk/session/media/ |
D | mediasession.h | 57 enum MediaType { enum 63 std::string MediaTypeToString(MediaType type); 120 void AddSendStream(MediaType type, 126 void RemoveSendStream(MediaType type, const std::string& id); 130 void AddSendStreamInternal(MediaType type, 135 bool HasSendMediaStream(MediaType type) const; 156 Stream(MediaType type, in Stream() 163 MediaType type; 178 virtual MediaType type() const = 0; 367 virtual MediaType type() const { return MEDIA_TYPE_AUDIO; } in type() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | RealResponseBody.java | 19 import com.squareup.okhttp.MediaType; 32 @Override public MediaType contentType() { in contentType() 34 return contentType != null ? MediaType.parse(contentType) : null; in contentType()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
D | RealResponseBody.java | 20 import com.android.okhttp.MediaType; 36 @Override public MediaType contentType() { in contentType() 38 return contentType != null ? MediaType.parse(contentType) : null; in contentType()
|