Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/src/java/com/google/android/mms/
DContentType.java169 public static boolean isSupportedType(String contentType) { in isSupportedType() argument
170 return (null != contentType) && sSupportedContentTypes.contains(contentType); in isSupportedType()
173 public static boolean isSupportedImageType(String contentType) { in isSupportedImageType() argument
174 return isImageType(contentType) && isSupportedType(contentType); in isSupportedImageType()
177 public static boolean isSupportedAudioType(String contentType) { in isSupportedAudioType() argument
178 return isAudioType(contentType) && isSupportedType(contentType); in isSupportedAudioType()
181 public static boolean isSupportedVideoType(String contentType) { in isSupportedVideoType() argument
182 return isVideoType(contentType) && isSupportedType(contentType); in isSupportedVideoType()
185 public static boolean isTextType(String contentType) { in isTextType() argument
186 return (null != contentType) && contentType.startsWith("text/"); in isTextType()
[all …]
/frameworks/base/core/java/com/android/internal/http/multipart/
DPartBase.java45 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()
DFilePart.java96 public FilePart(String name, PartSource partSource, String contentType, String charset) { in FilePart() argument
100 contentType == null ? DEFAULT_CONTENT_TYPE : contentType, in FilePart()
148 public FilePart(String name, File file, String contentType, String charset) in FilePart() argument
150 this(name, new FilePartSource(file), contentType, charset); in FilePart()
182 public FilePart(String name, String fileName, File file, String contentType, String charset) in FilePart() argument
184 this(name, new FilePartSource(fileName, file), contentType, charset); in FilePart()
DPart.java237 String contentType = getContentType(); in sendContentTypeHeader() local
238 if (contentType != null) { in sendContentTypeHeader()
241 out.write(EncodingUtils.getAsciiBytes(contentType)); in sendContentTypeHeader()
/frameworks/base/core/java/android/text/method/
DBaseKeyListener.java132 int contentType = InputType.TYPE_CLASS_TEXT; in makeTextContentType() local
135 contentType |= InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS; in makeTextContentType()
138 contentType |= InputType.TYPE_TEXT_FLAG_CAP_WORDS; in makeTextContentType()
141 contentType |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES; in makeTextContentType()
145 contentType |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT; in makeTextContentType()
147 return contentType; in makeTextContentType()
DDigitsKeyListener.java127 int contentType = InputType.TYPE_CLASS_NUMBER; in getInputType() local
129 contentType |= InputType.TYPE_NUMBER_FLAG_SIGNED; in getInputType()
132 contentType |= InputType.TYPE_NUMBER_FLAG_DECIMAL; in getInputType()
134 return contentType; in getInputType()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c141 FwdLockConv_String_t contentType; member
474 if (pSession->contentType.ptr == NULL) { in FwdLockConv_RecognizeMimeHeaderName()
503 if (pSession->contentType.ptr == NULL) { in FwdLockConv_ApplyDefaults()
505 pSession->contentType.ptr = malloc(sizeof strTextPlain); in FwdLockConv_ApplyDefaults()
506 if (pSession->contentType.ptr == NULL) { in FwdLockConv_ApplyDefaults()
509 memcpy(pSession->contentType.ptr, strTextPlain, sizeof strTextPlain); in FwdLockConv_ApplyDefaults()
510 pSession->contentType.length = strlenTextPlain; in FwdLockConv_ApplyDefaults()
511 pSession->contentType.maxLength = strlenTextPlain; in FwdLockConv_ApplyDefaults()
529 if (pSession->contentType.ptr == NULL) { in FwdLockConv_VerifyContentType()
531 } else if (strcmp(pSession->contentType.ptr, strApplicationVndOmaDrmRightsXml) == 0 || in FwdLockConv_VerifyContentType()
[all …]
/frameworks/av/media/libstagefright/
DDataSource.cpp189 String8 *contentType, in CreateFromURI() argument
191 if (contentType != NULL) { in CreateFromURI()
192 *contentType = ""; in CreateFromURI()
242 if (contentType != NULL) { in CreateFromURI()
243 *contentType = httpSource->getMIMEType(); in CreateFromURI()
DAwesomePlayer.cpp2272 String8 contentType = mConnectingDataSource->getMIMEType(); in finishSetDataSource_l() local
2303 if (strncasecmp(contentType.string(), "audio/", 6)) { in finishSetDataSource_l()
/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/
DMultipartTest.java55 StringBuffer contentType = new StringBuffer("multipart/form-data"); in testParts() local
56 contentType.append("; boundary="); in testParts()
57 contentType.append(boundry); in testParts()
58 assertEquals("Multipart content type error", contentType.toString(), h.getValue()); in testParts()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DPduPersister.java403 byte[] contentType = getByteArrayFromPartColumn( in loadParts()
405 if (contentType != null) { in loadParts()
406 part.setContentType(contentType); in loadParts()
430 String type = toIsoString(contentType); in loadParts()
713 String contentType = getPartContentType(part); in persistPart() local
714 if (contentType != null) { in persistPart()
717 if (ContentType.IMAGE_JPG.equals(contentType)) { in persistPart()
718 contentType = ContentType.IMAGE_JPEG; in persistPart()
721 values.put(Part.CONTENT_TYPE, contentType); in persistPart()
723 if (ContentType.APP_SMIL.equals(contentType)) { in persistPart()
[all …]
DPduParser.java175 byte[] contentType = retrieveConf.getContentType(); in parse()
176 if (null == contentType) { in parse()
179 String ctTypeStr = new String(contentType); in parse()
786 byte[] contentType = in parseHeaders()
789 if (null != contentType) { in parseHeaders()
793 contentType.toString()); in parseHeaders()
795 headers.setTextString(contentType, PduHeaders.CONTENT_TYPE); in parseHeaders()
855 byte[] contentType = parseContentType(pduDataStream, map); in parseParts()
856 if (null != contentType) { in parseParts()
857 part.setContentType(contentType); in parseParts()
[all …]
DPduPart.java307 public void setContentType(byte[] contentType) { in setContentType() argument
308 if(contentType == null) { in setContentType()
312 mPartHeader.put(P_CONTENT_TYPE, contentType); in setContentType()
DSendReq.java60 public SendReq(byte[] contentType, in SendReq() argument
66 setContentType(contentType); in SendReq()
DPduComposer.java851 String contentType = new String(mPduHeader.getTextString(PduHeaders.CONTENT_TYPE)); in makeMessageBody() local
852 Integer contentTypeIdentifier = mContentTypeMap.get(contentType); in makeMessageBody()
/frameworks/volley/src/com/android/volley/toolbox/
DHttpHeaderParser.java122 String contentType = headers.get(HTTP.CONTENT_TYPE); in parseCharset() local
123 if (contentType != null) { in parseCharset()
124 String[] params = contentType.split(";"); in parseCharset()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp325 String8 contentType = String8(pMimeType); in onGetOriginalMimeType() local
326 contentType.toLower(); in onGetOriginalMimeType()
327 mimeString = MimeTypeUtil::convertMimeType(contentType); in onGetOriginalMimeType()
503 String8 contentType = String8(pmime == NULL ? "" : pmime); local
504 contentType.toLower();
505 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType);
/frameworks/base/core/java/android/print/
DPrintDocumentInfo.java258 private String contentTyepToString(int contentType) { in contentTyepToString() argument
259 switch (contentType) { in contentTyepToString()
/frameworks/base/media/java/android/media/
DAudioAttributes.java403 public Builder setContentType(@AttributeContentType int contentType) { in setContentType() argument
404 switch (contentType) { in setContentType()
410 mContentType = contentType; in setContentType()
/frameworks/av/include/media/stagefright/
DDataSource.h52 String8 *contentType = NULL,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWapPushOverSms.java222 String contentType = ((mimeType == null) ? in dispatchWapPdu() local
224 if (DBG) Rlog.v(TAG, "appid found: " + wapAppId + ":" + contentType); in dispatchWapPdu()
242 int procRet = wapPushMan.processMessage(wapAppId, contentType, intent); in dispatchWapPdu()
/frameworks/base/core/java/android/net/http/
DAndroidHttpClient.java500 for (String contentType : textContentTypes) { in isBinaryContent()
501 if (header.getValue().startsWith(contentType)) { in isBinaryContent()
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java2150 String contentType = ((mimeType == null) ? in dispatchWapPdu() local
2152 if (false) Log.v(LOG_TAG, "appid found: " + wapAppId + ":" + contentType); in dispatchWapPdu()
2168 int procRet = wapPushMan.processMessage(wapAppId, contentType, intent); in dispatchWapPdu()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1130 final int contentType = Integer.parseInt(parser.getAttributeValue(null, in parsePrintJob() local
1136 .setContentType(contentType).build(); in parsePrintJob()
/frameworks/wilhelm/include/OMXAL/
DOpenMAXAL.h2465 XAuint8 contentType,

12