Searched defs:contentType (Results 1 - 25 of 69) sorted by relevance

123

/external/skia/src/core/
H A DSkPaintPriv.cpp16 bool isPaintOpaque(const SkPaint* paint, SkPaintBitmapOpacity contentType) { argument
18 return contentType != kUnknown_SkPaintBitmapOpacity;
26 contentType != kUnknown_SkPaintBitmapOpacity &&
30 contentType == kNoBitmap_SkPaintBitmapOpacity &&
42 SkPaintBitmapOpacity contentType; local
45 contentType = kNoBitmap_SkPaintBitmapOpacity;
47 contentType = kOpaque_SkPaintBitmapOpacity;
49 contentType = kUnknown_SkPaintBitmapOpacity;
51 return isPaintOpaque(paint, contentType);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
H A DCMSAttributes.java9 * contentType ::= 1.2.840.113549.1.9.3
21 public static final ASN1ObjectIdentifier contentType = PKCSObjectIdentifiers.pkcs_9_at_contentType; field in interface:CMSAttributes
H A DContentInfo.java19 * contentType ContentType,
20 * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL
35 private ASN1ObjectIdentifier contentType; field in class:ContentInfo
84 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0);
99 ASN1ObjectIdentifier contentType,
102 this.contentType = contentType;
108 return contentType;
123 v.add(contentType);
98 ContentInfo( ASN1ObjectIdentifier contentType, ASN1Encodable content) argument
/external/nist-sip/java/gov/nist/javax/sip/parser/
H A DContentTypeParser.java48 public ContentTypeParser(String contentType) { argument
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/nist-sip/java/javax/sip/header/
H A DContentTypeHeader.java9 void setContentType(String contentType, String contentSubType) argument
H A DMediaType.java10 void setContentType(String contentType) throws ParseException; argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
H A DRealResponseBody.java32 @Override public MediaType contentType() { method in class:RealResponseBody
33 String contentType = headers.get("Content-Type");
34 return contentType != null ? MediaType.parse(contentType) : null;
/external/apache-http/src/org/apache/http/entity/
H A DFileEntity.java58 public FileEntity(final File file, final String contentType) { argument
64 setContentType(contentType);
H A DAbstractHttpEntity.java64 protected Header contentType; field in class:AbstractHttpEntity
94 * {@link #contentType contentType} attribute.
99 return this.contentType;
129 * {@link #contentType contentType} attribute.
131 * @param contentType the new Content-Encoding header, or
134 public void setContentType(final Header contentType) { argument
135 this.contentType = contentType;
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DContentInfo.java20 private ASN1ObjectIdentifier contentType; field in class:ContentInfo
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);
55 ContentInfo( ASN1ObjectIdentifier contentType, ASN1Encodable content) argument
H A DEncryptedData.java26 * contentType ContentType,
71 ASN1ObjectIdentifier contentType,
77 v.add(contentType);
70 EncryptedData( ASN1ObjectIdentifier contentType, AlgorithmIdentifier encryptionAlgorithm, ASN1Encodable content) argument
/external/nist-sip/java/gov/nist/javax/sip/message/
H A DMessageFactoryExt.java62 String[] contentType,
61 createMultipartMimeContent(ContentTypeHeader multipartMimeContentTypeHeader, String[] contentType, String[] contentSubtype, String[] contentBody) argument
H A DMultipartMimeContentImpl.java155 public Content getContentByType(String contentType, String contentSubtype) { argument
160 if (content.getContentTypeHeader().getContentType().equalsIgnoreCase(contentType)
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DRequestBody.java29 public abstract MediaType contentType(); method in class:RequestBody
44 * contentType} is non-null and lacks a charset, this will use UTF-8.
46 public static RequestBody create(MediaType contentType, String content) { argument
48 if (contentType != null) {
49 charset = contentType.charset();
52 contentType = MediaType.parse(contentType + "; charset=utf-8");
56 return create(contentType, bytes);
60 public static RequestBody create(final MediaType contentType, final ByteString content) { argument
62 @Override public MediaType contentType() {
77 create(final MediaType contentType, final byte[] content) argument
82 create(final MediaType contentType, final byte[] content, final int offset, final int byteCount) argument
102 create(final MediaType contentType, final File file) argument
[all...]
H A DResponseBody.java34 public abstract MediaType contentType(); method in class:ResponseBody
87 MediaType contentType = contentType();
88 return contentType != null ? contentType.charset(UTF_8) : UTF_8;
97 * contentType} is non-null and lacks a charset, this will use UTF-8.
99 public static ResponseBody create(MediaType contentType, String content) { argument
101 if (contentType != null) {
102 charset = contentType.charset();
105 contentType
113 create(final MediaType contentType, byte[] content) argument
119 create( final MediaType contentType, final long contentLength, final BufferedSource content) argument
[all...]
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
H A DHttpEntityBody.java34 @Override public MediaType contentType() { method in class:HttpEntityBody
/external/apache-http/android/src/com/android/internal/http/multipart/
H A DPartBase.java45 private String contentType; field in class:PartBase
57 * @param contentType The content type, or <code>null</code>
61 public PartBase(String name, String contentType, String charSet, String transferEncoding) { argument
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) { argument
125 this.contentType = contentType;
[all...]
H A DFilePart.java86 * @param contentType the content type for this part, if <code>null</code> the
91 public FilePart(String name, PartSource partSource, String contentType, String charset) { argument
95 contentType == null ? DEFAULT_CONTENT_TYPE : contentType,
135 * @param contentType the content type for this part, if <code>null</code> the
143 public FilePart(String name, File file, String contentType, String charset) argument
145 this(name, new FilePartSource(file), contentType, charset);
169 * @param contentType the content type for this part, if <code>null</code> the
177 public FilePart(String name, String fileName, File file, String contentType, String charset) argument
179 this(name, new FilePartSource(fileName, file), contentType, charse
[all...]
/external/jetty/src/java/org/eclipse/jetty/util/
H A DMultiPartWriter.java85 public void startPart(String contentType) argument
94 out.write(contentType);
114 public void startPart(String contentType, String[] headers) argument
123 out.write(contentType);
H A DMultiPartOutputStream.java92 public void startPart(String contentType) argument
101 if (contentType != null)
102 out.write(("Content-Type: "+contentType).getBytes(StringUtil.__ISO_8859_1));
110 public void startPart(String contentType, String[] headers) argument
119 if (contentType != null)
120 out.write(("Content-Type: "+contentType).getBytes(StringUtil.__ISO_8859_1));
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
H A DProgress.java79 @Override public MediaType contentType() { method in class:Progress.ProgressResponseBody
80 return responseBody.contentType();
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DContentType.java83 *@param contentType is the content type.
86 public ContentType(String contentType, String contentSubtype) { argument
88 this.setContentType(contentType, contentSubtype);
170 *@param contentType Content type string.
173 public void setContentType(String contentType, String contentSubType) { argument
176 mediaRange.setType(contentType);
182 *@param contentType Content type string.
185 public void setContentType(String contentType) throws ParseException { argument
186 if (contentType == null)
190 mediaRange.setType(contentType);
197 setContentSubType(String contentType) argument
[all...]
/external/nist-sip/java/javax/sip/message/
H A DMessageFactory.java18 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)
16 createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) argument
21 createRequest(URI requestURI, String method, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) argument
32 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, Object content) argument
37 createResponse(int statusCode, CallIdHeader callId, CSeqHeader cSeq, FromHeader from, ToHeader to, List via, MaxForwardsHeader maxForwards, ContentTypeHeader contentType, byte[] content) argument
46 createResponse(int statusCode, Request request, ContentTypeHeader contentType, Object content) argument
50 createResponse(int statusCode, Request request, ContentTypeHeader contentType, byte[] content) argument
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/spdy/
H A DSpdyServer.java152 new Header("content-type", contentType(file))
165 private String contentType(File file) { method in class:SpdyServer
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
H A DOkApacheClientTest.java130 @Test public void contentType() throws Exception { method in class:OkApacheClientTest

Completed in 636 milliseconds

123