Home
last modified time | relevance | path

Searched refs:MediaType (Results 1 – 25 of 80) sorted by relevance

1234

/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/
DMediaTypeTest.java20 import static com.google.common.net.MediaType.ANY_APPLICATION_TYPE;
21 import static com.google.common.net.MediaType.ANY_AUDIO_TYPE;
22 import static com.google.common.net.MediaType.ANY_IMAGE_TYPE;
23 import static com.google.common.net.MediaType.ANY_TEXT_TYPE;
24 import static com.google.common.net.MediaType.ANY_TYPE;
25 import static com.google.common.net.MediaType.ANY_VIDEO_TYPE;
26 import static com.google.common.net.MediaType.HTML_UTF_8;
27 import static com.google.common.net.MediaType.JPEG;
28 import static com.google.common.net.MediaType.PLAIN_TEXT_UTF_8;
53 MediaType.create("te><t", "plaintext"); in testCreate_invalidType()
[all …]
/external/guava/guava-tests/test/com/google/common/net/
DMediaTypeTest.java21 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;
64 for (MediaType constant : getConstants()) { in testParse_useConstants()
[all …]
/external/guava/guava/src/com/google/common/net/
DMediaType.java83 public final class MediaType { class
109 private static final Map<MediaType, MediaType> KNOWN_TYPES = Maps.newHashMap();
111 private static MediaType createConstant(String type, String subtype) { in createConstant()
112 return addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of())); in createConstant()
115 private static MediaType createConstantUtf8(String type, String subtype) { in createConstantUtf8()
116 return addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS)); in createConstantUtf8()
119 private static MediaType addKnownType(MediaType mediaType) { in addKnownType()
134 public static final MediaType ANY_TYPE = createConstant(WILDCARD, WILDCARD);
135 public static final MediaType ANY_TEXT_TYPE = createConstant(TEXT_TYPE, WILDCARD);
136 public static final MediaType ANY_IMAGE_TYPE = createConstant(IMAGE_TYPE, WILDCARD);
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DMediaTypeTest.java38 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 …]
DRequestTest.java35 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/
DMultipartBuilder.java38 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 …]
DRequestBody.java29 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() {
DResponseBody.java34 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()
DMediaType.java27 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/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
DHttpEntityBody.java3 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/
DWebSocket.java18 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/
Drtc_event_log_unittest.cc58 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 …]
Drtc_event_log.cc51 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 …]
Dcall.cc82 DeliveryStatus DeliverPacket(MediaType media_type,
98 DeliveryStatus DeliverRtcp(MediaType media_type, const uint8_t* packet,
100 DeliveryStatus DeliverRtp(MediaType media_type,
654 PacketReceiver::DeliveryStatus Call::DeliverRtcp(MediaType media_type, in DeliverRtcp()
664 if (media_type == MediaType::ANY || media_type == MediaType::VIDEO) { in DeliverRtcp()
674 if (media_type == MediaType::ANY || media_type == MediaType::VIDEO) { in DeliverRtcp()
687 PacketReceiver::DeliveryStatus Call::DeliverRtp(MediaType media_type, in DeliverRtp()
702 if (media_type == MediaType::ANY || media_type == MediaType::AUDIO) { in DeliverRtp()
714 if (media_type == MediaType::ANY || media_type == MediaType::VIDEO) { in DeliverRtp()
730 MediaType media_type, in DeliverPacket()
Drtc_event_log.h31 enum class MediaType; variable
67 MediaType media_type,
73 MediaType media_type,
/external/webrtc/talk/app/webrtc/
Dpeerconnection.h230 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/webrtc/talk/session/media/
Dmediasession.h57 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/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DPostStreaming.java18 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()
DRequestBodyCompression.java20 import com.squareup.okhttp.MediaType;
39 public static final MediaType MEDIA_TYPE_JSON = MediaType.parse("application/json");
84 @Override public MediaType contentType() { in gzip()
DPostString.java18 import com.squareup.okhttp.MediaType;
26 public static final MediaType MEDIA_TYPE_MARKDOWN
27 = MediaType.parse("text/x-markdown; charset=utf-8");
DPostFile.java18 import com.squareup.okhttp.MediaType;
27 public static final MediaType MEDIA_TYPE_MARKDOWN
28 = MediaType.parse("text/x-markdown; charset=utf-8");
DPostMultipart.java18 import com.squareup.okhttp.MediaType;
34 private static final MediaType MEDIA_TYPE_PNG = MediaType.parse("image/png");
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DRealResponseBody.java19 import com.squareup.okhttp.MediaType;
32 @Override public MediaType contentType() { in contentType()
34 return contentType != null ? MediaType.parse(contentType) : null; in contentType()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/guide/
DPostExample.java3 import com.squareup.okhttp.MediaType;
11 public static final MediaType JSON
12 = MediaType.parse("application/json; charset=utf-8");
/external/libcups/cups/
Dtest.ppd139 *OpenUI *MediaType/Media Type: PickOne
140 *OrderDependency: 25 AnySetup *MediaType
142 *MediaType Plain/Plain Paper: "MediaType=Plain"
143 *MediaType Matte/Matte Photo: "MediaType=Matte"
144 *MediaType Glossy/Glossy Photo: "MediaType=Glossy"
145 *MediaType Transparency/Transparency Film: "MediaType=Transparency"
146 *CloseUI: *MediaType

1234