Home
last modified time | relevance | path

Searched refs:contentType (Results 1 – 25 of 121) sorted by relevance

12345

/external/okhttp/src/test/java/com/squareup/okhttp/
DRequestTest.java29 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); in string() local
30 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8)); in string()
31 assertEquals(contentType, body.contentType()); in string()
38 MediaType contentType = MediaType.parse("text/plain"); in stringWithDefaultCharsetAdded() local
39 Request.Body body = Request.Body.create(contentType, "\u0800"); in stringWithDefaultCharsetAdded()
40 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); in stringWithDefaultCharsetAdded()
46 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); in stringWithNonDefaultCharsetSpecified() local
47 Request.Body body = Request.Body.create(contentType, "\u0800"); in stringWithNonDefaultCharsetSpecified()
48 assertEquals(contentType, body.contentType()); in stringWithNonDefaultCharsetSpecified()
54 MediaType contentType = MediaType.parse("text/plain"); in byteArray() local
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/network/
DParsedContentType.cpp131 bool parseContentType(const String& contentType, ReceiverType& receiver) in parseContentType() argument
134 unsigned contentTypeLength = contentType.length(); in parseContentType()
135 skipSpaces(contentType, index); in parseContentType()
137 WTF_LOG_ERROR("Invalid Content-Type string '%s'", contentType.ascii().data()); in parseContentType()
142 size_t semiColonIndex = contentType.find(';', index); in parseContentType()
151 skipSpaces(contentType, index); in parseContentType()
152 SubstringRange keyRange = parseParameterPart(contentType, index); in parseContentType()
159 if (contentType[index++] != '=' || index >= contentTypeLength) { in parseContentType()
165 SubstringRange valueRange = parseParameterPart(contentType, index); in parseContentType()
168 … invalid parameter value (at %i, for '%s').", index, substringForRange(contentType, keyRange).stri… in parseContentType()
[all …]
/external/chromium_org/chrome/browser/resources/options/
Dcontent_settings_exceptions_area.js24 function ExceptionsListItem(contentType, mode, enableAskOption, exception) { argument
27 el.contentType = contentType;
81 if (this.contentType == 'cookies') {
88 if (this.contentType != 'fullscreen') {
115 if (this.contentType == 'media-stream') {
145 if (this.contentType == 'notifications' ||
146 this.contentType == 'location' ||
147 this.contentType == 'media-stream') {
167 indicator.setAttribute('content-exception', this.contentType);
170 var event = new Event(this.contentType);
[all …]
/external/chromium_org/third_party/WebKit/Source/core/xml/
DDOMParser.cpp28 PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, Excep… in parseFromString() argument
32 if (contentType != "text/html" in parseFromString()
33 && contentType != "text/xml" in parseFromString()
34 && contentType != "application/xml" in parseFromString()
35 && contentType != "application/xhtml+xml" in parseFromString()
36 && contentType != "image/svg+xml") { in parseFromString()
41 RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false); in parseFromString()
/external/okhttp/src/main/java/com/squareup/okhttp/
DRequest.java102 public MediaType contentType() { in contentType() method in Request.Body
118 public static Body create(MediaType contentType, String content) { in create() argument
119 contentType = contentType.charset() != null in create()
120 ? contentType in create()
121 : MediaType.parse(contentType + "; charset=utf-8"); in create()
123 byte[] bytes = content.getBytes(contentType.charset().name()); in create()
124 return create(contentType, bytes); in create()
131 public static Body create(final MediaType contentType, final byte[] content) { in create() argument
132 if (contentType == null) throw new NullPointerException("contentType == null"); in create()
136 @Override public MediaType contentType() { in create()
[all …]
/external/chromium/chrome/browser/resources/options/
Dcontent_settings_exceptions_area.js21 function ExceptionsListItem(contentType, mode, enableAskOption, exception) { argument
24 el.contentType = contentType;
77 if (this.contentType == 'cookies') {
112 if (this.contentType == 'notifications' ||
113 this.contentType == 'location') {
122 [listItem.contentType, listItem.mode, input.value]);
252 [this.contentType, this.mode, oldPattern]);
256 [this.contentType, this.mode, newPattern, newSetting]);
271 function ExceptionsAddRowListItem(contentType, mode, enableAskOption) { argument
274 el.contentType = contentType;
[all …]
/external/nist-sip/java/gov/nist/javax/sip/header/
DContentType.java86 public ContentType(String contentType, String contentSubtype) { in ContentType() argument
88 this.setContentType(contentType, contentSubtype); in ContentType()
173 public void setContentType(String contentType, String contentSubType) { in setContentType() argument
176 mediaRange.setType(contentType); in setContentType()
185 public void setContentType(String contentType) throws ParseException { in setContentType() argument
186 if (contentType == null) in setContentType()
190 mediaRange.setType(contentType); in setContentType()
197 public void setContentSubType(String contentType) throws ParseException { in setContentSubType() argument
198 if (contentType == null) in setContentSubType()
202 mediaRange.setSubtype(contentType); in setContentSubType()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DContentTypeParser.java48 public ContentTypeParser(String contentType) { in ContentTypeParser() argument
49 super(contentType); in ContentTypeParser()
58 ContentType contentType = new ContentType(); in parse() local
69 contentType.setContentType(type.getTokenValue()); in parse()
76 contentType.setContentSubType(subType.getTokenValue()); in parse()
77 super.parse(contentType); in parse()
83 return contentType; in parse()
/external/nist-sip/java/gov/nist/javax/sip/message/
DMessageFactoryImpl.java124 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, in createRequest() argument
129 || contentType == null) in createRequest()
141 sipRequest.setContent(content, contentType); in createRequest()
181 ContentTypeHeader contentType) throws ParseException { in createRequest() argument
185 || contentType == null) in createRequest()
199 sipRequest.setHeader((ContentType) contentType); in createRequest()
289 ContentTypeHeader contentType) throws ParseException { in createResponse() argument
292 || contentType == null) in createResponse()
309 sipResponse.setContent(content, contentType); in createResponse()
346 ContentTypeHeader contentType) throws ParseException { in createResponse() argument
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DContentInfo.java20 private ASN1ObjectIdentifier contentType; field in ContentInfo
45 contentType = (ASN1ObjectIdentifier)e.nextElement(); in ContentInfo()
56 ASN1ObjectIdentifier contentType, in ContentInfo() argument
59 this.contentType = contentType; in ContentInfo()
65 return contentType; in getContentType()
86 v.add(contentType); in toASN1Primitive()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
DContentInfo.java19 private ASN1ObjectIdentifier contentType; field in ContentInfo
55 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); in ContentInfo()
70 ASN1ObjectIdentifier contentType, in ContentInfo() argument
73 this.contentType = contentType; in ContentInfo()
79 return contentType; in getContentType()
100 v.add(contentType); in toASN1Primitive()
/external/chromium_org/third_party/libxml/src/
Dnanohttp.c155 char *contentType; /* the MIME type for the input */ member
420 if (ctxt->contentType != NULL) xmlFree(ctxt->contentType); in xmlNanoHTTPFreeCtxt()
735 if (ctxt->contentType != NULL) in xmlNanoHTTPScanAnswer()
736 xmlFree(ctxt->contentType); in xmlNanoHTTPScanAnswer()
737 ctxt->contentType = xmlMemStrdup(cur); in xmlNanoHTTPScanAnswer()
746 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer()
760 if (ctxt->contentType != NULL) return; in xmlNanoHTTPScanAnswer()
762 ctxt->contentType = xmlMemStrdup(cur); in xmlNanoHTTPScanAnswer()
771 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer()
1219 xmlNanoHTTPOpen(const char *URL, char **contentType) { in xmlNanoHTTPOpen() argument
[all …]
/external/libxml2/
Dnanohttp.c153 char *contentType; /* the MIME type for the input */ member
418 if (ctxt->contentType != NULL) xmlFree(ctxt->contentType); in xmlNanoHTTPFreeCtxt()
733 if (ctxt->contentType != NULL) in xmlNanoHTTPScanAnswer()
734 xmlFree(ctxt->contentType); in xmlNanoHTTPScanAnswer()
735 ctxt->contentType = xmlMemStrdup(cur); in xmlNanoHTTPScanAnswer()
744 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer()
758 if (ctxt->contentType != NULL) return; in xmlNanoHTTPScanAnswer()
760 ctxt->contentType = xmlMemStrdup(cur); in xmlNanoHTTPScanAnswer()
769 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer()
1217 xmlNanoHTTPOpen(const char *URL, char **contentType) { in xmlNanoHTTPOpen() argument
[all …]
/external/chromium_org/third_party/WebKit/Source/modules/mediasource/
DWebKitMediaSource.cpp99 ContentType contentType(type); in addSourceBuffer() local
100 Vector<String> codecs = contentType.codecs(); in addSourceBuffer()
101 …OwnPtr<WebSourceBuffer> webSourceBuffer = createWebSourceBuffer(contentType.type(), codecs, except… in addSourceBuffer()
188 ContentType contentType(type); in isTypeSupported() local
189 String codecs = contentType.parameter("codecs"); in isTypeSupported()
192 if (contentType.type().isEmpty()) in isTypeSupported()
199 return MIMETypeRegistry::isSupportedMediaSourceMIMEType(contentType.type(), codecs); in isTypeSupported()
DMediaSource.cpp100 ContentType contentType(type); in addSourceBuffer() local
101 Vector<String> codecs = contentType.codecs(); in addSourceBuffer()
102 …OwnPtr<WebSourceBuffer> webSourceBuffer = createWebSourceBuffer(contentType.type(), codecs, except… in addSourceBuffer()
199 ContentType contentType(type); in isTypeSupported() local
200 String codecs = contentType.parameter("codecs"); in isTypeSupported()
203 if (contentType.type().isEmpty()) in isTypeSupported()
210 return MIMETypeRegistry::isSupportedMediaSourceMIMEType(contentType.type(), codecs); in isTypeSupported()
/external/chromium_org/third_party/libxml/src/include/libxml/
Dnanohttp.h30 char **contentType);
35 char **contentType,
42 char **contentType,
48 char **contentType);
51 char **contentType,
/external/libxml2/include/libxml/
Dnanohttp.h30 char **contentType);
35 char **contentType,
42 char **contentType,
48 char **contentType);
51 char **contentType,
/external/apache-http/src/org/apache/http/entity/
DAbstractHttpEntity.java59 protected Header contentType; field in AbstractHttpEntity
94 return this.contentType; in getContentType()
129 public void setContentType(final Header contentType) { in setContentType() argument
130 this.contentType = contentType; in setContentType()
/external/chromium_org/chrome/renderer/resources/extensions/
Dcontent_setting.js16 function ContentSetting(contentType, settingSchema) { argument
21 [contentType, details, callback],
30 [contentType, details, callback],
37 [contentType, details, callback],
46 [contentType, callback],
/external/nist-sip/java/javax/sip/message/
DMessageFactory.java18 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, in createRequest() argument
23 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, in createRequest() argument
34 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, in createResponse() argument
39 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, in createResponse() argument
47 ContentTypeHeader contentType, Object content) in createResponse() argument
51 ContentTypeHeader contentType, byte[] content) in createResponse() argument
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DRequestHeaders.java57 private String contentType; field in RequestHeaders
113 contentType = value; in RequestHeaders()
185 return contentType; in getContentType()
248 public void setContentType(String contentType) { in setContentType() argument
249 if (this.contentType != null) { in setContentType()
252 headers.add("Content-Type", contentType); in setContentType()
253 this.contentType = contentType; in setContentType()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DDefaultSignedAttributeTableGenerator.java64 if (!std.containsKey(CMSAttributes.contentType)) in createStandardAttributeTable()
66 ASN1ObjectIdentifier contentType = ASN1ObjectIdentifier.getInstance( in createStandardAttributeTable() local
70 if (contentType != null) in createStandardAttributeTable()
72 Attribute attr = new Attribute(CMSAttributes.contentType, in createStandardAttributeTable()
73 new DERSet(contentType)); in createStandardAttributeTable()
DSignerInfoGenerator.java170 public SignerInfo generate(ASN1ObjectIdentifier contentType) in generate() argument
192 …Map parameters = getBaseParameters(contentType, digester.getAlgorithmIdentifier(), calculatedDiges… in generate()
223 Map parameters = getBaseParameters(contentType, digestAlg, calculatedDigest); in generate()
258 …private Map getBaseParameters(ASN1ObjectIdentifier contentType, AlgorithmIdentifier digAlgId, byte… in getBaseParameters() argument
262 if (contentType != null) in getBaseParameters()
264 param.put(CMSAttributeTableGenerator.CONTENT_TYPE, contentType); in getBaseParameters()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DContentProviders.js85 contentType: function() method in WebInspector.ConcatenatedScriptsContentProvider
196 WebInspector.CompilerSourceMappingContentProvider = function(sourceURL, contentType) argument
199 this._contentType = contentType;
214 contentType: function() method in WebInspector.CompilerSourceMappingContentProvider
278 WebInspector.StaticContentProvider = function(contentType, content) argument
281 this._contentType = contentType;
296 contentType: function() method in WebInspector.StaticContentProvider
DUISourceCode.js43 WebInspector.UISourceCode = function(project, parentPath, name, originURL, url, contentType, isEdit… argument
50 this._contentType = contentType;
188 _updateName: function(name, url, originURL, contentType) argument
196 if (contentType)
197 this._contentType = contentType;
212 contentType: function() method in WebInspector.UISourceCode
598 return this.contentType().canonicalMimeType();
612 return mimeType || this.contentType().canonicalMimeType();
633 var provider = new WebInspector.StaticContentProvider(this.contentType(), content);
788 formatter = WebInspector.Formatter.createFormatter(this.contentType());
[all …]

12345