HomeSort by relevance Sort by last modified time
    Searched full:contenttype (Results 1 - 25 of 1276) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
RequestTest.java 29 MediaType contentType = MediaType.parse("text/plain; charset=utf-8");
30 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8));
31 assertEquals(contentType, body.contentType());
38 MediaType contentType = MediaType.parse("text/plain");
39 Request.Body body = Request.Body.create(contentType, "\u0800");
40 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType());
46 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be");
47 Request.Body body = Request.Body.create(contentType, "\u0800");
48 assertEquals(contentType, body.contentType())
    [all...]
  /packages/apps/Mms/src/com/android/mms/model/
CarrierContentRestriction.java 30 import com.google.android.mms.ContentType;
39 sSupportedImageTypes = ContentType.getImageTypes();
40 sSupportedAudioTypes = ContentType.getAudioTypes();
41 sSupportedVideoTypes = ContentType.getVideoTypes();
71 public void checkImageContentType(String contentType)
73 if (null == contentType) {
77 if (!sSupportedImageTypes.contains(contentType)) {
79 + contentType);
83 public void checkAudioContentType(String contentType)
85 if (null == contentType) {
    [all...]
RegionMediaModel.java 34 public RegionMediaModel(Context context, String tag, String contentType,
36 super(context, tag, contentType, src, uri);
40 public RegionMediaModel(Context context, String tag, String contentType,
42 super(context, tag, contentType, src, data);
MediaModelFactory.java 33 import com.google.android.mms.ContentType;
121 return new TextModel(context, ContentType.TEXT_PLAIN, null, regionModel);
133 String contentType = new String(bytes);
136 media = new TextModel(context, contentType, src,
139 media = new ImageModel(context, contentType, src,
142 media = new VideoModel(context, contentType, src,
145 media = new AudioModel(context, contentType, src,
148 if (ContentType.isTextType(contentType)) {
149 media = new TextModel(context, contentType, src
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
ContentInfo.java 20 private ASN1ObjectIdentifier contentType;
45 contentType = (ASN1ObjectIdentifier)e.nextElement();
56 ASN1ObjectIdentifier contentType,
59 this.contentType = contentType;
65 return contentType;
77 * contentType ContentType,
79 * [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
86 v.add(contentType);
    [all...]
EncryptedData.java 26 * contentType ContentType,
71 ASN1ObjectIdentifier contentType,
77 v.add(contentType);
  /frameworks/opt/telephony/src/java/com/google/android/mms/
ContentType.java 22 public class ContentType {
166 private ContentType() {
169 public static boolean isSupportedType(String contentType) {
170 return (null != contentType) && sSupportedContentTypes.contains(contentType);
173 public static boolean isSupportedImageType(String contentType) {
174 return isImageType(contentType) && isSupportedType(contentType);
177 public static boolean isSupportedAudioType(String contentType) {
178 return isAudioType(contentType) && isSupportedType(contentType)
    [all...]
  /external/nist-sip/java/javax/sip/header/
ContentTypeHeader.java 9 void setContentType(String contentType, String contentSubType)
MediaType.java 10 void setContentType(String contentType) throws ParseException;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
ContentInfo.java 19 * contentType ContentType,
20 * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL
24 * eContentType ContentType,
35 private ASN1ObjectIdentifier contentType;
84 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0);
99 ASN1ObjectIdentifier contentType,
102 this.contentType = contentType;
108 return contentType;
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/xml/
DOMParser.cpp 28 PassRefPtrWillBeRawPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, ExceptionState& exceptionState)
32 if (contentType != "text/html"
33 && contentType != "text/xml"
34 && contentType != "application/xml"
35 && contentType != "application/xhtml+xml"
36 && contentType != "image/svg+xml") {
41 RefPtrWillBeRawPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false);
  /external/nist-sip/java/gov/nist/javax/sip/parser/
ContentTypeParser.java 48 public ContentTypeParser(String contentType) {
49 super(contentType);
58 ContentType contentType = new ContentType();
69 contentType.setContentType(type.getTokenValue());
76 contentType.setContentSubType(subType.getTokenValue());
77 super.parse(contentType);
83 return contentType;
  /external/chromium_org/chrome/renderer/resources/extensions/
content_setting.js 16 function ContentSetting(contentType, settingSchema) {
21 [contentType, details, callback],
30 [contentType, details, callback],
37 [contentType, details, callback],
46 [contentType, callback],
  /external/chromium_org/third_party/libxml/src/include/libxml/
nanohttp.h 30 char **contentType);
35 char **contentType,
42 char **contentType,
48 char **contentType);
51 char **contentType,
  /external/libxml2/include/libxml/
nanohttp.h 30 char **contentType);
35 char **contentType,
42 char **contentType,
48 char **contentType);
51 char **contentType,
  /external/nist-sip/java/gov/nist/javax/sip/header/
ContentType.java 35 * ContentType SIP Header
64 public class ContentType
78 public ContentType() {
83 *@param contentType is the content type.
86 public ContentType(String contentType, String contentSubtype) {
88 this.setContentType(contentType, contentSubtype);
170 *@param contentType Content type string.
173 public void setContentType(String contentType, String contentSubType) {
176 mediaRange.setType(contentType);
    [all...]
  /external/nist-sip/java/javax/sip/message/
MessageFactory.java 18 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
23 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
34 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
39 MaxForwardsHeader maxForwards, ContentTypeHeader contentType,
47 ContentTypeHeader contentType, Object content)
51 ContentTypeHeader contentType, byte[] content)
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DefaultSignedAttributeTableGenerator.java 52 * normally include contentType, signingTime, and messageDigest. If the constructor
53 * using an AttributeTable was used, entries in it for contentType, signingTime, and
65 if (!std.containsKey(CMSAttributes.contentType))
67 ASN1ObjectIdentifier contentType = ASN1ObjectIdentifier.getInstance(
70 // contentType will be null if we're trying to generate a counter signature.
71 if (contentType != null)
73 Attribute attr = new Attribute(CMSAttributes.contentType,
74 new DERSet(contentType));
CMSAttributeTableGenerator.java 12 static final String CONTENT_TYPE = "contentType";
  /external/chromium_org/third_party/WebKit/Source/platform/network/
ParsedContentType.cpp 131 bool parseContentType(const String& contentType, ReceiverType& receiver)
134 unsigned contentTypeLength = contentType.length();
135 skipSpaces(contentType, index);
137 WTF_LOG_ERROR("Invalid Content-Type string '%s'", contentType.ascii().data());
142 size_t semiColonIndex = contentType.find(';', index);
151 skipSpaces(contentType, index);
152 SubstringRange keyRange = parseParameterPart(contentType, index);
159 if (contentType[index++] != '=' || index >= contentTypeLength) {
165 SubstringRange valueRange = parseParameterPart(contentType, index);
168 WTF_LOG_ERROR("Invalid Content-Type, invalid parameter value (at %i, for '%s').", index, substringForRange(contentType, keyRange).stripWhiteSpace().ascii().data())
    [all...]
  /packages/apps/Browser/src/com/android/browser/
DataUri.java 45 String contentType = uri.substring(DATA_URI_PREFIX.length(),
48 if (contentType.contains(BASE_64_ENCODING)) {
51 int semiIndex = contentType.indexOf(';');
53 mMimeType = contentType.substring(0, semiIndex);
55 mMimeType = contentType;
  /external/chromium_org/chrome/browser/resources/options/
content_settings_exceptions_area.html 17 <div contentType="cookies">
30 <div contentType="images">
38 <div contentType="javascript">
46 <div contentType="plugins">
54 <div contentType="popups">
62 <div contentType="location">
65 <div contentType="notifications">
68 <div contentType="fullscreen">
76 <div contentType="mouselock">
84 <div contentType="protectedContent"
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Request.java 150 public abstract MediaType contentType();
165 * contentType} lacks a charset, this will use UTF-8.
167 public static Body create(MediaType contentType, String content) {
168 contentType = contentType.charset() != null
169 ? contentType
170 : MediaType.parse(contentType + "; charset=utf-8");
172 byte[] bytes = content.getBytes(contentType.charset().name());
173 return create(contentType, bytes);
180 public static Body create(final MediaType contentType, final byte[] content)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/encryptedmedia/
MediaKeys.cpp 37 #include "platform/ContentType.h"
47 static bool isKeySystemSupportedWithContentType(const String& keySystem, const String& contentType)
51 ContentType type(contentType);
103 MediaKeySession* MediaKeys::createSession(ExecutionContext* context, const String& contentType, Uint8Array* initData, ExceptionState& exceptionState)
111 if (contentType.isEmpty()) {
112 exceptionState.throwDOMException(InvalidAccessError, "The contentType provided ('" + contentType + "') is empty.");
123 if (!isKeySystemSupportedWithContentType(m_keySystem, contentType)) {
124 exceptionState.throwDOMException(NotSupportedError, "The type provided ('" + contentType + "') is unsupported.")
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/
ContentType.cpp 29 #include "platform/ContentType.h"
33 ContentType::ContentType(const String& contentType)
34 : m_type(contentType)
38 String ContentType::parameter(const String& parameterName) const
67 String ContentType::type() const
79 Vector<String> ContentType::codecs() const

Completed in 671 milliseconds

1 2 3 4 5 6 7 8 91011>>