/libcore/luni/src/main/java/java/net/ |
ContentHandlerFactory.java | 27 * Creates a content handler to handle {@code contentType}. 29 * @param contentType 34 ContentHandler createContentHandler(String contentType);
|
/frameworks/base/core/java/com/android/internal/http/multipart/ |
PartBase.java | 45 private String contentType; 57 * @param contentType The content type, or <code>null</code> 61 public PartBase(String name, String contentType, String charSet, String transferEncoding) { 67 this.contentType = contentType; 88 return this.contentType; 122 * @param contentType the content type, or <code>null</code> to exclude the content type header 124 public void setContentType(String contentType) { 125 this.contentType = contentType; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/xml/ |
DOMParser.cpp | 28 PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType) 30 if (!DOMImplementation::isXMLMIMEType(contentType)) 33 RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false);
|
DOMParser.idl | 24 [Default=Undefined] optional DOMString contentType);
|
/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/okhttp/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...] |
ContentRestriction.java | 27 void checkImageContentType(String contentType) throws ContentRestrictionException; 29 void checkAudioContentType(String contentType) throws ContentRestrictionException; 31 void checkVideoContentType(String contentType) throws ContentRestrictionException;
|
/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;
|
/frameworks/opt/mms/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/chromium_org/third_party/WebKit/Source/core/platform/network/ |
ParsedContentType.cpp | 154 bool parseContentType(const String& contentType, ReceiverType& receiver) 157 unsigned contentTypeLength = contentType.length(); 158 skipSpaces(contentType, index); 160 LOG_ERROR("Invalid Content-Type string '%s'", contentType.ascii().data()); 165 size_t semiColonIndex = contentType.find(';', index); 174 skipSpaces(contentType, index); 175 SubstringRange keyRange = parseToken(contentType, index); 182 if (contentType[index++] != '=' || index >= contentTypeLength) { 190 if (contentType[index] == '"') 191 valueRange = parseQuotedString(contentType, index) [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...] |
/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/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/ |
ContentInfo.java | 19 private ASN1ObjectIdentifier contentType; 55 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); 70 ASN1ObjectIdentifier contentType, 73 this.contentType = contentType; 79 return contentType; 91 * contentType ContentType, 93 * [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL } 100 v.add(contentType); [all...] |
/external/apache-http/src/org/apache/http/entity/ |
AbstractHttpEntity.java | 59 protected Header contentType; 89 * {@link #contentType contentType} attribute. 94 return this.contentType; 124 * {@link #contentType contentType} attribute. 126 * @param contentType the new Content-Encoding header, or 129 public void setContentType(final Header contentType) { 130 this.contentType = contentType; [all...] |
/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,
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
importNode16.java | 61 String contentType = getContentType(); 62 preload(contentType, "staffNS", true); 63 preload(contentType, "staffNS", true);
|
importNode17.java | 61 String contentType = getContentType(); 62 preload(contentType, "staffNS", true); 63 preload(contentType, "staffNS", true);
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
documentgetelementsbytagnamelength.java | 55 String contentType = getContentType(); 56 preload(contentType, "staff", false);
|
elementgetelementsbytagname.java | 56 String contentType = getContentType(); 57 preload(contentType, "staff", false);
|
elementgetelementsbytagnamenomatch.java | 54 String contentType = getContentType(); 55 preload(contentType, "staff", false);
|
hc_documentgetelementsbytagnamelength.java | 54 String contentType = getContentType(); 55 preload(contentType, "hc_staff", false);
|