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

12

/frameworks/opt/telephony/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/base/core/java/android/text/method/
H A DDigitsKeyListener.java127 int contentType = InputType.TYPE_CLASS_NUMBER;
129 contentType |= InputType.TYPE_NUMBER_FLAG_SIGNED;
132 contentType |= InputType.TYPE_NUMBER_FLAG_DECIMAL;
134 return contentType;
H A DBaseKeyListener.java432 int contentType = InputType.TYPE_CLASS_TEXT;
435 contentType |= InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS;
438 contentType |= InputType.TYPE_TEXT_FLAG_CAP_WORDS;
441 contentType |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
445 contentType |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT;
447 return contentType;
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DHTTPHandler.java103 public ByteBuffer exchangeBinary(URL url, String message, String contentType) argument
106 exchangeWithRetry(url, message, HTTPMessage.Method.POST, contentType);
120 String contentType) throws IOException {
125 response = httpExchange(url, message, method, contentType);
146 String contentType)
148 HTTPRequest request = new HTTPRequest(message, mCharset, method, url, contentType, false);
159 contentType, true);
119 exchangeWithRetry(URL url, String message, HTTPMessage.Method method, String contentType) argument
145 httpExchange(URL url, String message, HTTPMessage.Method method, String contentType) argument
/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/
H A DMultipartTest.java55 StringBuffer contentType = new StringBuffer("multipart/form-data");
56 contentType.append("; boundary=");
57 contentType.append(boundry);
58 assertEquals("Multipart content type error", contentType.toString(), h.getValue());
/frameworks/av/media/libstagefright/
H A DDataSource.cpp197 String8 *contentType,
199 if (contentType != NULL) {
200 *contentType = "";
250 if (contentType != NULL) {
251 *contentType = httpSource->getMIMEType();
193 CreateFromURI( const sp<IMediaHTTPService> &httpService, const char *uri, const KeyedVector<String8, String8> *headers, String8 *contentType, HTTPBase *httpSource) argument
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DHttpHeaderParser.java145 String contentType = headers.get(HTTP.CONTENT_TYPE);
146 if (contentType != null) {
147 String[] params = contentType.split(";");
/frameworks/opt/telephony/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 DPduPersister.java404 byte[] contentType = getByteArrayFromPartColumn(
406 if (contentType != null) {
407 part.setContentType(contentType);
431 String type = toIsoString(contentType);
714 String contentType = getPartContentType(part);
715 if (contentType != null) {
718 if (ContentType.IMAGE_JPG.equals(contentType)) {
719 contentType = ContentType.IMAGE_JPEG;
722 values.put(Part.CONTENT_TYPE, contentType);
724 if (ContentType.APP_SMIL.equals(contentType)) {
784 persistData(PduPart part, Uri uri, String contentType, HashMap<Uri, InputStream> preOpenedFiles) argument
[all...]
H A DPduParser.java175 byte[] contentType = retrieveConf.getContentType();
176 if (null == contentType) {
179 String ctTypeStr = new String(contentType);
786 byte[] contentType =
789 if (null != contentType) {
793 contentType.toString());
795 headers.setTextString(contentType, PduHeaders.CONTENT_TYPE);
855 byte[] contentType = parseContentType(pduDataStream, map);
856 if (null != contentType) {
857 part.setContentType(contentType);
[all...]
H A DPduPart.java307 public void setContentType(byte[] contentType) { argument
308 if(contentType == null) {
312 mPartHeader.put(P_CONTENT_TYPE, contentType);
H A DPduComposer.java851 String contentType = new String(mPduHeader.getTextString(PduHeaders.CONTENT_TYPE));
852 Integer contentTypeIdentifier = mContentTypeMap.get(contentType);
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
H A DHTTPResponse.java169 String contentType = mHeaders.get(ContentTypeHeader);
170 if (contentType == null) {
173 int csPos = contentType.indexOf(csIndicator);
174 return csPos < 0 ? null : contentType.substring(csPos + csIndicator.length()).trim();
H A DHTTPRequest.java35 public HTTPRequest(String payload, Charset charset, Method method, URL url, String contentType, argument
49 mHeaderFields.put(ContentTypeHeader, contentType);
52 mHeaderFields.put(ContentTypeHeader, contentType + "; charset=" +
/frameworks/base/core/java/android/print/
H A DPrintDocumentInfo.java267 builder.append(", contentType=").append(contentTypeToString(mContentType));
273 private String contentTypeToString(int contentType) { argument
274 switch (contentType) {
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp330 String8 contentType = String8(pMimeType); local
331 contentType.toLower();
332 mimeString = MimeTypeUtil::convertMimeType(contentType);
508 String8 contentType = String8(pmime == NULL ? "" : pmime); local
509 contentType.toLower();
510 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.c142 FwdLockConv_String_t contentType; member in struct:FwdLockConv_Session
475 if (pSession->contentType.ptr == NULL) {
504 if (pSession->contentType.ptr == NULL) {
506 pSession->contentType.ptr = malloc(sizeof strTextPlain);
507 if (pSession->contentType.ptr == NULL) {
510 memcpy(pSession->contentType.ptr, strTextPlain, sizeof strTextPlain);
511 pSession->contentType.length = strlenTextPlain;
512 pSession->contentType.maxLength = strlenTextPlain;
530 if (pSession->contentType.ptr == NULL) {
532 } else if (strcmp(pSession->contentType
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DWapPushOverSms.java250 String contentType = ((mimeType == null) ?
252 result.contentType = contentType;
253 if (DBG) Rlog.v(TAG, "appid found: " + wapAppId + ":" + contentType);
320 result.wapAppId, result.contentType, intent);
579 String contentType; field in class:WapPushOverSms.DecodedResult
/frameworks/base/media/java/android/media/
H A DAudioAttributes.java450 * @param contentType the content type values, one of
458 public Builder setContentType(@AttributeContentType int contentType) { argument
459 switch (contentType) {
465 mContentType = contentType;
/frameworks/av/include/media/stagefright/
H A DDataSource.h53 String8 *contentType = NULL,
/frameworks/base/packages/Osu/src/com/android/hotspot2/est/
H A DESTHandler.java251 Asn1Object contentType = children.next();
252 if (!contentType.equals(Asn1Oid.PKCS7SignedData)) {
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DWapPushTest.java2150 String contentType = ((mimeType == null) ?
2152 if (false) Log.v(LOG_TAG, "appid found: " + wapAppId + ":" + contentType);
2168 int procRet = wapPushMan.processMessage(wapAppId, contentType, intent);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp380 String8 contentType; local
395 mHTTPService, uri, &mUriHeaders, &contentType,
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPrintSpoolerService.java839 private static final String ATTR_CONTENT_TYPE = "contentType";
1286 final int contentType = Integer.parseInt(parser.getAttributeValue(null,
1292 .setContentType(contentType).build();
/frameworks/wilhelm/include/OMXAL/
H A DOpenMAXAL.h2465 XAuint8 contentType,

Completed in 998 milliseconds

12