Home
last modified time | relevance | path

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

12345678

/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;
63 for (MediaType constant : getConstants()) { in testParse_useConstants()
[all …]
/external/guava/android/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;
63 for (MediaType constant : getConstants()) { in testParse_useConstants()
[all …]
/external/guava/android/guava/src/com/google/common/net/
DMediaType.java78 public final class MediaType { class
108 private static final Map<MediaType, MediaType> KNOWN_TYPES = Maps.newHashMap();
110 private static MediaType createConstant(String type, String subtype) { in createConstant()
111 MediaType mediaType = in createConstant()
112 addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of())); in createConstant()
117 private static MediaType createConstantUtf8(String type, String subtype) { in createConstantUtf8()
118 MediaType mediaType = addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS)); in createConstantUtf8()
123 private static MediaType addKnownType(MediaType mediaType) { in addKnownType()
138 public static final MediaType ANY_TYPE = createConstant(WILDCARD, WILDCARD);
139 public static final MediaType ANY_TEXT_TYPE = createConstant(TEXT_TYPE, WILDCARD);
[all …]
/external/guava/guava/src/com/google/common/net/
DMediaType.java78 public final class MediaType { class
108 private static final Map<MediaType, MediaType> KNOWN_TYPES = Maps.newHashMap();
110 private static MediaType createConstant(String type, String subtype) { in createConstant()
111 MediaType mediaType = in createConstant()
112 addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of())); in createConstant()
117 private static MediaType createConstantUtf8(String type, String subtype) { in createConstantUtf8()
118 MediaType mediaType = addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS)); in createConstantUtf8()
123 private static MediaType addKnownType(MediaType mediaType) { in addKnownType()
138 public static final MediaType ANY_TYPE = createConstant(WILDCARD, WILDCARD);
139 public static final MediaType ANY_TEXT_TYPE = createConstant(TEXT_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/repackaged/okhttp/src/main/java/com/android/okhttp/
DMultipartBuilder.java40 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 …]
DRequestBody.java33 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() {
DResponseBody.java38 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()
DMediaType.java29 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/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/webrtc/video/end_to_end_tests/
Dnetwork_state_tests.cc79 MediaType network_to_bring_up,
83 MediaType network_to_bring_up,
88 MediaType network_to_bring_up, in VerifyNewVideoSendStreamsRespectNetworkState()
119 MediaType network_to_bring_up, in VerifyNewVideoReceiveStreamsRespectNetworkState()
232 sender_call_->SignalChannelNetworkState(MediaType::AUDIO, kNetworkDown); in TEST_F()
236 receiver_call_->SignalChannelNetworkState(MediaType::AUDIO, in TEST_F()
241 sender_call_->SignalChannelNetworkState(MediaType::VIDEO, kNetworkDown); in TEST_F()
251 receiver_call_->SignalChannelNetworkState(MediaType::VIDEO, in TEST_F()
257 sender_call_->SignalChannelNetworkState(MediaType::AUDIO, kNetworkUp); in TEST_F()
258 receiver_call_->SignalChannelNetworkState(MediaType::AUDIO, kNetworkUp); in TEST_F()
[all …]
/external/webrtc/test/
Ddirect_transport.cc24 Demuxer::Demuxer(const std::map<uint8_t, MediaType>& payload_type_map) in Demuxer()
27 MediaType Demuxer::GetMediaType(const uint8_t* packet_data, in GetMediaType()
32 std::map<uint8_t, MediaType>::const_iterator it = in GetMediaType()
38 return MediaType::ANY; in GetMediaType()
45 const std::map<uint8_t, MediaType>& payload_type_map) in DirectTransport()
82 MediaType media_type = demuxer_.GetMediaType(data, length); in SendPacket()
98 send_call_->SignalChannelNetworkState(MediaType::AUDIO, kNetworkUp); in Start()
99 send_call_->SignalChannelNetworkState(MediaType::VIDEO, kNetworkUp); in Start()
Ddirect_transport_unittest.cc22 Demuxer demuxer({{kVideoPayloadType, MediaType::VIDEO}, in TEST()
23 {kAudioPayloadType, MediaType::AUDIO}}); in TEST()
28 EXPECT_EQ(demuxer.GetMediaType(data, kPacketSize), MediaType::VIDEO); in TEST()
30 EXPECT_EQ(demuxer.GetMediaType(data, kPacketSize), MediaType::AUDIO); in TEST()
/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/pc/
Dpeer_connection_header_extension_unittest.cc34 std::tuple<cricket::MediaType, SdpSemantics>> {
53 cricket::MediaType media_type, in CreatePeerConnection()
57 if (media_type == cricket::MediaType::MEDIA_TYPE_AUDIO) in CreatePeerConnection()
94 cricket::MediaType media_type; in TEST_P()
107 cricket::MediaType media_type; in TEST_P()
127 cricket::MediaType media_type; in TEST_P()
146 cricket::MediaType media_type; in TEST_P()
173 Values(cricket::MediaType::MEDIA_TYPE_AUDIO,
174 cricket::MediaType::MEDIA_TYPE_VIDEO)),
177 cricket::MediaType media_type; in __anon9e8baa020102()
[all …]
/external/webrtc/sdk/android/api/org/webrtc/
DMediaStreamTrack.java32 public enum MediaType { enum in MediaStreamTrack
38 private MediaType(int nativeIndex) { in MediaType() method in MediaStreamTrack.MediaType
48 static MediaType fromNativeIndex(int nativeIndex) { in fromNativeIndex()
49 for (MediaType type : MediaType.values()) { in fromNativeIndex()
/external/webrtc/media/base/
Dmedia_channel.cc93 cricket::MediaType VoiceMediaChannel::media_type() const { in media_type()
94 return cricket::MediaType::MEDIA_TYPE_AUDIO; in media_type()
106 cricket::MediaType VideoMediaChannel::media_type() const { in media_type()
107 return cricket::MediaType::MEDIA_TYPE_VIDEO; in media_type()
129 cricket::MediaType DataMediaChannel::media_type() const { in media_type()
130 return cricket::MediaType::MEDIA_TYPE_DATA; in media_type()
/external/libcups/test/
Dtestps.ppd107 *OpenUI *MediaType/Media Type: PickOne
108 *OrderDependency: 10 AnySetup *MediaType
110 *MediaType Plain/Plain Paper: "<</MediaType(Plain)/cupsMediaType 0>>setpagedevice"
111 *MediaType Bond/Bond Paper: "<</MediaType(Bond)/cupsMediaType 1>>setpagedevice"
112 *MediaType Special/Special Paper: "<</MediaType(Special)/cupsMediaType 2>>setpagedevice"
113 *MediaType Transparency/Transparency: "<</MediaType(Transparency)/cupsMediaType 3>>setpagedevice"
114 *MediaType Glossy/Glossy Paper: "<</MediaType(Glossy)/cupsMediaType 4>>setpagedevice"
115 *CloseUI: *MediaType
Dtesthp.ppd111 *OpenUI *MediaType/Media Type: PickOne
112 *OrderDependency: 10 AnySetup *MediaType
114 *MediaType Plain/Plain Paper: "<</MediaType(Plain)/cupsMediaType 0>>setpagedevice"
115 *MediaType Bond/Bond Paper: "<</MediaType(Bond)/cupsMediaType 1>>setpagedevice"
116 *MediaType Special/Special Paper: "<</MediaType(Special)/cupsMediaType 2>>setpagedevice"
117 *MediaType Transparency/Transparency: "<</MediaType(Transparency)/cupsMediaType 3>>setpagedevice"
118 *MediaType Glossy/Glossy Paper: "<</MediaType(Glossy)/cupsMediaType 4>>setpagedevice"
119 *CloseUI: *MediaType
/external/webrtc/media/engine/
Dfake_webrtc_call.cc460 webrtc::NetworkState FakeCall::GetNetworkState(webrtc::MediaType media) const { in GetNetworkState()
462 case webrtc::MediaType::AUDIO: in GetNetworkState()
464 case webrtc::MediaType::VIDEO: in GetNetworkState()
466 case webrtc::MediaType::DATA: in GetNetworkState()
467 case webrtc::MediaType::ANY: in GetNetworkState()
588 FakeCall::DeliveryStatus FakeCall::DeliverPacket(webrtc::MediaType media_type, in DeliverPacket()
592 RTC_DCHECK(media_type == webrtc::MediaType::AUDIO || in DeliverPacket()
593 media_type == webrtc::MediaType::VIDEO); in DeliverPacket()
599 if (media_type == webrtc::MediaType::VIDEO) { in DeliverPacket()
605 if (media_type == webrtc::MediaType::AUDIO) { in DeliverPacket()
[all …]

12345678