/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/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/android/guava/src/com/google/common/net/ |
D | MediaType.java | 78 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/ |
D | MediaType.java | 78 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/ |
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/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/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/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/webrtc/video/end_to_end_tests/ |
D | network_state_tests.cc | 79 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/ |
D | direct_transport.cc | 24 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()
|
D | direct_transport_unittest.cc | 22 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/ |
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/pc/ |
D | peer_connection_header_extension_unittest.cc | 34 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/ |
D | MediaStreamTrack.java | 32 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/ |
D | media_channel.cc | 93 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/ |
D | testps.ppd | 107 *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
|
D | testhp.ppd | 111 *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/ |
D | fake_webrtc_call.cc | 460 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 …]
|