/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...] |
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/ |
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); 22 mediaType = MediaType.parse(entity.getContentType().getValue()); 26 mediaType = DEFAULT_MEDIA_TYPE [all...] |
/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) { 73 return new MediaType(string, type, subtype, charset); 113 return mediaType; 117 return o instanceof MediaType && ((MediaType) o).mediaType.equals(mediaType) [all...] |
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
MediaType.java | 29 public final class MediaType { 36 private final String mediaType; 41 private MediaType(String mediaType, String type, String subtype, String charset) { 42 this.mediaType = mediaType; 52 public static MediaType parse(String string) { 75 return new MediaType(string, type, subtype, charset); 115 return mediaType; 119 return o instanceof MediaType && ((MediaType) o).mediaType.equals(mediaType) [all...] |
/frameworks/av/media/libmedia/ |
MediaCodecInfo.cpp | 165 MediaCodecInfo::getCapabilitiesFor(const char *mediaType) const { 166 ssize_t ix = getCapabilityIndex(mediaType); 199 AString mediaType = AString::FromParcel(parcel); 204 info->mCaps.add(mediaType, caps); 227 ssize_t MediaCodecInfo::getCapabilityIndex(const char *mediaType) const { 228 if (mediaType) { 230 if (mCaps.keyAt(ix).equalsIgnoreCase(mediaType)) { 265 MediaCodecInfoWriter::addMediaType(const char *mediaType) { 266 ssize_t ix = mInfo->getCapabilityIndex(mediaType); 273 mInfo->mCaps.add(AString(mediaType), caps) [all...] |
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
WebSocketRecorder.java | 18 import com.squareup.okhttp.MediaType; 148 public final MediaType mediaType; 151 private Message(MediaType mediaType) { 152 this.mediaType = mediaType; 156 return "Message[" + mediaType + " " + buffer + "]"; 160 return mediaType.hashCode() * 37 + buffer.hashCode(); 166 return mediaType.equals(other.mediaType) && buffer.equals(other.buffer) [all...] |
/frameworks/av/cmds/stagefright/ |
audioloop.cpp | 63 AString mediaType; 80 mediaType.setTo(optarg); 92 if ((name.empty() && !mediaType.empty()) || (!name.empty() && mediaType.empty())) { 127 meta->setString("mime", mediaType);
|
stagefright.cpp | 669 for (const AString &mediaType : supportedMediaTypes) { 670 if (allMediaTypes.indexOfKey(mediaType) < 0) { 671 allMediaTypes.add(mediaType, Vector<sp<MediaCodecInfo>>()); 673 allMediaTypes.editValueFor(mediaType).add(info); 681 const AString &mediaType = allMediaTypes.keyAt(type_ix); 682 printf("\nMedia type '%s':\n", mediaType.c_str()); 685 sp<MediaCodecInfo::Capabilities> caps = info->getCapabilitiesFor(mediaType.c_str()); 688 info->getCodecName(), mediaType.c_str()); 737 mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) ? asString_AACObject(pl.mProfile) : 738 mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG2) ? asString_MPEG2Profile(pl.mProfile) [all...] |
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/ |
MediaTypeTest.java | 20 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; 43 * Tests for {@link MediaType} [all...] |
/frameworks/av/media/codec2/sfplugin/ |
Codec2InfoBuilder.cpp | 74 const Traits& trait, const std::string &mediaType) { 76 C2Mapper::GetProfileLevelMapper(trait.mediaType); 121 supportsHdr |= (mediaType == MIMETYPE_VIDEO_VP9); 148 auto hdrMapper = C2Mapper::GetHdrProfileLevelMapper(trait.mediaType); 154 trait.mediaType, true /*isHdr10Plus*/); 168 if (mediaType == MIMETYPE_VIDEO_H263) { 191 const Traits& trait, const std::string &mediaType) { 197 if (mediaType.find("video") != std::string::npos 198 || mediaType.find("image") != std::string::npos) { 504 const std::string &mediaType = typeIt->first [all...] |
CCodecConfig.cpp | 183 AString mediaType; 193 mediaType = AString( 199 mediaType = AString( 204 ALOGD("read media type: %s", mediaType.c_str()); 206 return mediaType; [all...] |
/frameworks/av/media/libmedia/include/media/ |
MediaCodecInfo.h | 194 const sp<Capabilities> getCapabilitiesFor(const char *mediaType) const; 239 ssize_t getCapabilityIndex(const char *mediaType) const; 301 * @param[in] mediaType The name of a new media type to add. 304 * regardless of whether `mediaType` already exists or not. 307 const char* mediaType); 311 * @param mediaType The name of the media type to remove. 312 * @return `true` if `mediaType` is removed; `false` if `mediaType` is not found. 314 bool removeMediaType(const char* mediaType);
|
/frameworks/av/media/codec2/sfplugin/utils/ |
Codec2Mapper.h | 41 GetProfileLevelMapper(std::string mediaType); 44 GetHdrProfileLevelMapper(std::string mediaType, bool isHdr10Plus = false);
|
Codec2Mapper.cpp | 631 C2Mapper::GetProfileLevelMapper(std::string mediaType) { 632 std::transform(mediaType.begin(), mediaType.begin(), mediaType.end(), ::tolower); 633 if (mediaType == MIMETYPE_AUDIO_AAC) { 635 } else if (mediaType == MIMETYPE_VIDEO_AVC) { 637 } else if (mediaType == MIMETYPE_VIDEO_DOLBY_VISION) { 639 } else if (mediaType == MIMETYPE_VIDEO_H263) { 641 } else if (mediaType == MIMETYPE_VIDEO_HEVC) { 643 } else if (mediaType == MIMETYPE_VIDEO_MPEG2) [all...] |
/external/guava/guava-tests/test/com/google/common/net/ |
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; 56 * Tests for {@link MediaType} [all...] |
/frameworks/av/media/codec2/components/base/ |
SimpleC2Interface.cpp | 35 C2String mediaType, 112 if (mediaType == rawMediaType) { 127 isEncoder ? rawMediaType : mediaType)) 139 isEncoder ? mediaType : rawMediaType))
|
/external/guava/guava/src/com/google/common/net/ |
MediaType.java | 83 public final class MediaType { 109 private static final Map<MediaType, MediaType> KNOWN_TYPES = Maps.newHashMap(); 111 private static MediaType createConstant(String type, String subtype) { 112 return addKnownType(new MediaType(type, subtype, ImmutableListMultimap.<String, String>of())); 115 private static MediaType createConstantUtf8(String type, String subtype) { 116 return addKnownType(new MediaType(type, subtype, UTF_8_CONSTANT_PARAMETERS)); 119 private static MediaType addKnownType(MediaType mediaType) { [all...] |
/external/caliper/lib/ |
jersey-core-1.11.jar | |
/cts/tests/tests/media/src/android/media/cts/ |
MediaCodecListTest.java | 724 MediaCodecInfo info, String mediaType, [all...] |
/frameworks/av/media/libstagefright/ |
OmxInfoBuilder.cpp | 60 const IOmxStore::NodeInfo& node, const char* mediaType, bool isEncoder, 81 node.owner.c_str(), node.name.c_str(), mediaType, isEncoder, caps);
|
/external/syzkaller/pkg/email/ |
parser.go | 252 mediaType := "text/plain" 256 mediaType, params, err = mime.ParseMediaType(headers.Get("Content-Type")) 275 if mediaType == "text/plain" { 282 if !strings.HasPrefix(mediaType, "multipart/") {
|
/frameworks/av/media/codec2/core/include/ |
C2Component.h | 411 C2String mediaType; ///< media type supported by the component [all...] |
/frameworks/av/media/codec2/vndk/ |
C2Store.cpp | 735 traits->mediaType = 740 if (strncmp(traits->mediaType.c_str(), "audio/", 6) == 0) { 742 } else if (strncmp(traits->mediaType.c_str(), "video/", 6) == 0) { 744 } else if (strncmp(traits->mediaType.c_str(), "image/", 6) == 0) { [all...] |
/external/conscrypt/benchmark-android/ |
vogar.jar | |
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
ToUnknownStream.java | 686 public void setMediaType(String mediaType) 688 m_handler.setMediaType(mediaType); [all...] |