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

/frameworks/base/core/java/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...]
/frameworks/base/core/java/android/print/
H A DPrintDocumentInfo.java252 builder.append(", contentType=").append(contentTyepToString(mContentType));
258 private String contentTyepToString(int contentType) { argument
259 switch (contentType) {
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
H A DSendReq.java53 * @param contentType the content type value
58 * NullPointerException if contentType, form or transactionId is null.
60 public SendReq(byte[] contentType, argument
66 setContentType(contentType);
H A DPduPart.java295 public void setContentType(byte[] contentType) { argument
296 if(contentType == null) {
300 mPartHeader.put(P_CONTENT_TYPE, contentType);
H A DPduPersister.java400 byte[] contentType = getByteArrayFromPartColumn(
402 if (contentType != null) {
403 part.setContentType(contentType);
427 String type = toIsoString(contentType);
710 String contentType = getPartContentType(part);
711 if (contentType != null) {
714 if (ContentType.IMAGE_JPG.equals(contentType)) {
715 contentType = ContentType.IMAGE_JPEG;
718 values.put(Part.CONTENT_TYPE, contentType);
720 if (ContentType.APP_SMIL.equals(contentType)) {
780 persistData(PduPart part, Uri uri, String contentType, HashMap<Uri, InputStream> preOpenedFiles) argument
[all...]
/frameworks/av/media/libstagefright/chromium_http/
H A DChromiumHTTPDataSource.cpp112 int64_t contentSize, const char *contentType) {
123 mContentType = String8(contentType);
111 onConnectionEstablished( int64_t contentSize, const char *contentType) argument
H A Dsupport.cpp349 std::string contentType; local
350 request->GetResponseHeaderByName("Content-Type", &contentType);
353 request->GetExpectedContentSize(), contentType.c_str());
/frameworks/opt/mms/src/java/com/google/android/mms/
H A DContentType.java169 public static boolean isSupportedType(String contentType) { argument
170 return (null != contentType) && sSupportedContentTypes.contains(contentType);
173 public static boolean isSupportedImageType(String contentType) { argument
174 return isImageType(contentType) && isSupportedType(contentType);
177 public static boolean isSupportedAudioType(String contentType) { argument
178 return isAudioType(contentType) && isSupportedType(contentType);
181 public static boolean isSupportedVideoType(String contentType) { argument
185 isTextType(String contentType) argument
189 isImageType(String contentType) argument
193 isAudioType(String contentType) argument
197 isVideoType(String contentType) argument
201 isDrmType(String contentType) argument
207 isUnspecified(String contentType) argument
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp324 String8 contentType = String8(pMimeType); local
325 contentType.toLower();
326 mimeString = MimeTypeUtil::convertMimeType(contentType);
502 String8 contentType = String8(pmime == NULL ? "" : pmime); local
503 contentType.toLower();
504 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.c141 FwdLockConv_String_t contentType; member in struct:FwdLockConv_Session
474 if (pSession->contentType.ptr == NULL) {
503 if (pSession->contentType.ptr == NULL) {
505 pSession->contentType.ptr = malloc(sizeof strTextPlain);
506 if (pSession->contentType.ptr == NULL) {
509 memcpy(pSession->contentType.ptr, strTextPlain, sizeof strTextPlain);
510 pSession->contentType.length = strlenTextPlain;
511 pSession->contentType.maxLength = strlenTextPlain;
529 if (pSession->contentType.ptr == NULL) {
531 } else if (strcmp(pSession->contentType
[all...]
/frameworks/av/media/libstagefright/
H A DAwesomePlayer.cpp2238 String8 contentType = dataSource->getMIMEType(); local
2240 if (strncasecmp(contentType.string(), "audio/", 6)) {

Completed in 4421 milliseconds