/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | RequestBody.java | 29 public abstract MediaType contentType(); in contentType() method in RequestBody 46 public static RequestBody create(MediaType contentType, String content) { in create() argument 48 if (contentType != null) { in create() 49 charset = contentType.charset(); in create() 52 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 56 return create(contentType, bytes); in create() 60 public static RequestBody create(final MediaType contentType, final ByteString content) { in create() argument 62 @Override public MediaType contentType() { in create() 63 return contentType; in create() 77 public static RequestBody create(final MediaType contentType, final byte[] content) { [all …]
|
D | ResponseBody.java | 34 public abstract MediaType contentType(); in contentType() method in ResponseBody 87 MediaType contentType = contentType(); in charset() local 88 return contentType != null ? contentType.charset(UTF_8) : UTF_8; in charset() 99 public static ResponseBody create(MediaType contentType, String content) { in create() argument 101 if (contentType != null) { in create() 102 charset = contentType.charset(); in create() 105 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 109 return create(contentType, buffer.size(), buffer); in create() 113 public static ResponseBody create(final MediaType contentType, byte[] content) { in create() argument 115 return create(contentType, content.length, buffer); in create() [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | RequestBody.java | 33 public abstract MediaType contentType(); in contentType() method in RequestBody 50 public static RequestBody create(MediaType contentType, String content) { in create() argument 52 if (contentType != null) { in create() 53 charset = contentType.charset(); in create() 56 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 60 return create(contentType, bytes); in create() 64 public static RequestBody create(final MediaType contentType, final ByteString content) { in create() argument 66 @Override public MediaType contentType() { in create() 67 return contentType; in create() 81 public static RequestBody create(final MediaType contentType, final byte[] content) { [all …]
|
D | ResponseBody.java | 38 public abstract MediaType contentType(); in contentType() method in ResponseBody 91 MediaType contentType = contentType(); in charset() local 92 return contentType != null ? contentType.charset(UTF_8) : UTF_8; in charset() 103 public static ResponseBody create(MediaType contentType, String content) { in create() argument 105 if (contentType != null) { in create() 106 charset = contentType.charset(); in create() 109 contentType = MediaType.parse(contentType + "; charset=utf-8"); in create() 113 return create(contentType, buffer.size(), buffer); in create() 117 public static ResponseBody create(final MediaType contentType, byte[] content) { in create() argument 119 return create(contentType, content.length, buffer); in create() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | RequestTest.java | 35 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); in string() local 36 RequestBody body = RequestBody.create(contentType, "abc".getBytes(Util.UTF_8)); in string() 37 assertEquals(contentType, body.contentType()); in string() 44 MediaType contentType = MediaType.parse("text/plain"); in stringWithDefaultCharsetAdded() local 45 RequestBody body = RequestBody.create(contentType, "\u0800"); in stringWithDefaultCharsetAdded() 46 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); in stringWithDefaultCharsetAdded() 52 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); in stringWithNonDefaultCharsetSpecified() local 53 RequestBody body = RequestBody.create(contentType, "\u0800"); in stringWithNonDefaultCharsetSpecified() 54 assertEquals(contentType, body.contentType()); in stringWithNonDefaultCharsetSpecified() 60 MediaType contentType = MediaType.parse("text/plain"); in byteArray() local [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | AudioAttributes.java | 43 private @C.AudioContentType int contentType; field in AudioAttributes.Builder 55 contentType = C.CONTENT_TYPE_UNKNOWN; in Builder() 64 public Builder setContentType(@C.AudioContentType int contentType) { in setContentType() argument 65 this.contentType = contentType; in setContentType() 93 return new AudioAttributes(contentType, flags, usage, allowedCapturePolicy); in build() 98 public final @C.AudioContentType int contentType; field in AudioAttributes 106 @C.AudioContentType int contentType, in AudioAttributes() 110 this.contentType = contentType; in AudioAttributes() 126 .setContentType(contentType) in getAudioAttributesV21() 146 return this.contentType == other.contentType in equals() [all …]
|
/external/apache-http/android/src/com/android/internal/http/multipart/ |
D | PartBase.java | 45 private String contentType; field in PartBase 61 public PartBase(String name, String contentType, String charSet, String transferEncoding) { in PartBase() argument 67 this.contentType = contentType; in PartBase() 88 return this.contentType; in getContentType() 124 public void setContentType(String contentType) { in setContentType() argument 125 this.contentType = contentType; in setContentType()
|
D | FilePart.java | 91 public FilePart(String name, PartSource partSource, String contentType, String charset) { in FilePart() argument 95 contentType == null ? DEFAULT_CONTENT_TYPE : contentType, in FilePart() 143 public FilePart(String name, File file, String contentType, String charset) in FilePart() argument 145 this(name, new FilePartSource(file), contentType, charset); in FilePart() 177 public FilePart(String name, String fileName, File file, String contentType, String charset) in FilePart() argument 179 this(name, new FilePartSource(fileName, file), contentType, charset); in FilePart()
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | ContentType.java | 86 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/message/ |
D | MessageFactoryImpl.java | 124 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/nist-sip/java/gov/nist/javax/sip/parser/ |
D | ContentTypeParser.java | 48 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/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/upstream/ |
D | HttpDataSource.java | 221 contentType -> { 222 contentType = Util.toLowerInvariant(contentType); 223 return !TextUtils.isEmpty(contentType) 224 && (!contentType.contains("text") || contentType.contains("text/vtt")) 225 && !contentType.contains("html") 226 && !contentType.contains("xml"); 282 public final String contentType; field in HttpDataSource.InvalidContentTypeException 284 public InvalidContentTypeException(String contentType, DataSpec dataSpec) { in InvalidContentTypeException() argument 285 super("Invalid content type: " + contentType, dataSpec, TYPE_OPEN); in InvalidContentTypeException() 286 this.contentType = contentType; in InvalidContentTypeException()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | ContentInfo.java | 20 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/ |
D | ContentInfo.java | 33 private ASN1ObjectIdentifier contentType; field in ContentInfo 82 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); in ContentInfo() 97 ASN1ObjectIdentifier contentType, in ContentInfo() argument 100 this.contentType = contentType; in ContentInfo() 106 return contentType; in getContentType() 121 v.add(contentType); in toASN1Primitive()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/ |
D | ContentInfo.java | 24 private ASN1ObjectIdentifier contentType; field in ContentInfo 49 contentType = (ASN1ObjectIdentifier)e.nextElement(); in ContentInfo() 60 ASN1ObjectIdentifier contentType, in ContentInfo() argument 63 this.contentType = contentType; in ContentInfo() 69 return contentType; in getContentType() 90 v.add(contentType); in toASN1Primitive()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/cms/ |
D | ContentInfo.java | 35 private ASN1ObjectIdentifier contentType; field in ContentInfo 84 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); in ContentInfo() 99 ASN1ObjectIdentifier contentType, in ContentInfo() argument 102 this.contentType = contentType; in ContentInfo() 108 return contentType; in getContentType() 123 v.add(contentType); in toASN1Primitive()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/pkcs/ |
D | ContentInfo.java | 24 private ASN1ObjectIdentifier contentType; field in ContentInfo 49 contentType = (ASN1ObjectIdentifier)e.nextElement(); in ContentInfo() 60 ASN1ObjectIdentifier contentType, in ContentInfo() argument 63 this.contentType = contentType; in ContentInfo() 69 return contentType; in getContentType() 90 v.add(contentType); in toASN1Primitive()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/cms/ |
D | ContentInfo.java | 35 private ASN1ObjectIdentifier contentType; field in ContentInfo 84 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); in ContentInfo() 99 ASN1ObjectIdentifier contentType, in ContentInfo() argument 102 this.contentType = contentType; in ContentInfo() 108 return contentType; in getContentType() 123 v.add(contentType); in toASN1Primitive()
|
/external/libxml2/ |
D | nanohttp.c | 143 char *contentType; /* the MIME type for the input */ member 432 if (ctxt->contentType != NULL) xmlFree(ctxt->contentType); in xmlNanoHTTPFreeCtxt() 747 if (ctxt->contentType != NULL) in xmlNanoHTTPScanAnswer() 748 xmlFree(ctxt->contentType); in xmlNanoHTTPScanAnswer() 749 ctxt->contentType = xmlMemStrdup(cur); in xmlNanoHTTPScanAnswer() 758 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer() 772 if (ctxt->contentType != NULL) return; in xmlNanoHTTPScanAnswer() 774 ctxt->contentType = xmlMemStrdup(cur); in xmlNanoHTTPScanAnswer() 783 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer() 1235 xmlNanoHTTPOpen(const char *URL, char **contentType) { in xmlNanoHTTPOpen() argument [all …]
|
/external/okhttp/okhttp-logging-interceptor/src/main/java/com/squareup/okhttp/logging/ |
D | HttpLoggingInterceptor.java | 164 if (requestBody.contentType() != null) { in intercept() 165 logger.log("Content-Type: " + requestBody.contentType()); in intercept() 190 MediaType contentType = requestBody.contentType(); in intercept() local 191 if (contentType != null) { in intercept() 192 contentType.charset(UTF8); in intercept() 228 MediaType contentType = responseBody.contentType(); in intercept() local 229 if (contentType != null) { in intercept() 230 charset = contentType.charset(UTF8); in intercept()
|
/external/libxml2/include/libxml/ |
D | nanohttp.h | 30 char **contentType); 35 char **contentType, 42 char **contentType, 48 char **contentType); 51 char **contentType,
|
/external/apache-http/src/org/apache/http/entity/ |
D | AbstractHttpEntity.java | 64 protected Header contentType; field in AbstractHttpEntity 99 return this.contentType; in getContentType() 134 public void setContentType(final Header contentType) { in setContentType() argument 135 this.contentType = contentType; in setContentType()
|
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/util/ |
D | AsyncHttpURLConnection.java | 31 private String contentType; field in AsyncHttpURLConnection 48 public void setContentType(String contentType) { in setContentType() argument 49 this.contentType = contentType; in setContentType() 76 if (contentType == null) { in sendHttpMessage() 79 connection.setRequestProperty("Content-Type", contentType); in sendHttpMessage()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | RealResponseBody.java | 32 @Override public MediaType contentType() { in contentType() method in RealResponseBody 33 String contentType = headers.get("Content-Type"); in contentType() local 34 return contentType != null ? MediaType.parse(contentType) : null; in contentType()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/ |
D | RealResponseBody.java | 36 @Override public MediaType contentType() { in contentType() method in RealResponseBody 37 String contentType = headers.get("Content-Type"); in contentType() local 38 return contentType != null ? MediaType.parse(contentType) : null; in contentType()
|