/frameworks/base/core/java/com/android/internal/http/multipart/ |
H A D | PartBase.java | 45 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 D | FilePart.java | 86 * @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...] |
H A D | Part.java | 231 String contentType = getContentType(); 232 if (contentType != null) { 235 out.write(EncodingUtils.getAsciiBytes(contentType));
|
/frameworks/opt/mms/src/java/com/google/android/mms/ |
H A D | ContentType.java | 169 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 D | BaseKeyListener.java | 132 int contentType = InputType.TYPE_CLASS_TEXT; 135 contentType |= InputType.TYPE_TEXT_FLAG_CAP_CHARACTERS; 138 contentType |= InputType.TYPE_TEXT_FLAG_CAP_WORDS; 141 contentType |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES; 145 contentType |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT; 147 return contentType;
|
H A D | DigitsKeyListener.java | 118 int contentType = InputType.TYPE_CLASS_NUMBER; 120 contentType |= InputType.TYPE_NUMBER_FLAG_SIGNED; 123 contentType |= InputType.TYPE_NUMBER_FLAG_DECIMAL; 125 return contentType;
|
/frameworks/base/media/libdrm/mobile1/src/parser/ |
H A D | parser_dm.c | 101 strcpy((char *)pDmInfo->contentType, "text/plain"); /* According RFC2045 chapter 5.2, the default value should be "text/plain". */ 129 strncpy((char *)pDmInfo->contentType, (char *)pStart, pEnd - pStart); 130 pDmInfo->contentType[pEnd - pStart] = '\0'; 165 strncpy((char *)pDmInfo->contentType, (char *)pStart, pEnd - pStart); 166 pDmInfo->contentType[pEnd - pStart] = '\0'; 169 if (0 == strcmp((char *)pDmInfo->contentType, DRM_MIME_TYPE_RIGHTS_XML)) { 173 else if (0 == strcmp((char *)pDmInfo->contentType, DRM_MIME_TYPE_CONTENT)) { 244 strcpy((char *)pDmInfo->contentType, (char *)dcfInfo.ContentType);
|
/frameworks/support/volley/src/com/android/volley/toolbox/ |
H A D | HttpHeaderParser.java | 121 String contentType = headers.get(HTTP.CONTENT_TYPE); 122 if (contentType != null) { 123 String[] params = contentType.split(";");
|
/frameworks/base/core/tests/coretests/src/com/android/internal/http/multipart/ |
H A D | MultipartTest.java | 55 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/base/media/libdrm/mobile1/include/parser/ |
H A D | parser_dm.h | 59 uint8_t contentType[MAX_CONTENT_TYPE_LEN]; /**< Content type */ member in struct:_T_DRM_DM_Info
|
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/ |
H A D | PduPart.java | 295 public void setContentType(byte[] contentType) { argument 296 if(contentType == null) { 300 mPartHeader.put(P_CONTENT_TYPE, contentType);
|
H A D | SendReq.java | 53 * @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 D | PduPersister.java | 400 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...] |
H A D | PduParser.java | 171 byte[] contentType = retrieveConf.getContentType(); 172 if (null == contentType) { 175 String ctTypeStr = new String(contentType); 782 byte[] contentType = 785 if (null != contentType) { 789 contentType.toString()); 791 headers.setTextString(contentType, PduHeaders.CONTENT_TYPE); 851 byte[] contentType = parseContentType(pduDataStream, map); 852 if (null != contentType) { 853 part.setContentType(contentType); [all...] |
H A D | PduComposer.java | 851 String contentType = new String(mPduHeader.getTextString(PduHeaders.CONTENT_TYPE)); 852 Integer contentTypeIdentifier = mContentTypeMap.get(contentType);
|
/frameworks/base/media/libdrm/mobile1/include/objmng/ |
H A D | drm_inner.h | 72 uint8_t contentType[64]; member in struct:_T_DRM_Session_Node
|
/frameworks/av/media/libstagefright/include/ |
H A D | ChromiumHTTPDataSource.h | 108 int64_t contentSize, const char *contentType);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | WapPushOverSms.java | 215 String contentType = ((mimeType == null) ? 217 if (false) Log.v(LOG_TAG, "appid found: " + wapAppId + ":" + contentType); 234 int procRet = wapPushMan.processMessage(wapAppId, contentType, intent);
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 324 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 D | FwdLockConv.c | 141 FwdLockConv_String_t contentType; member in struct:FwdLockConv_Session 472 if (pSession->contentType.ptr == NULL) { 501 if (pSession->contentType.ptr == NULL) { 503 pSession->contentType.ptr = malloc(sizeof strTextPlain); 504 if (pSession->contentType.ptr == NULL) { 507 memcpy(pSession->contentType.ptr, strTextPlain, sizeof strTextPlain); 508 pSession->contentType.length = strlenTextPlain; 509 pSession->contentType.maxLength = strlenTextPlain; 527 if (pSession->contentType.ptr == NULL) { 529 } else if (strcmp(pSession->contentType [all...] |
/frameworks/av/media/libstagefright/chromium_http/ |
H A D | ChromiumHTTPDataSource.cpp | 107 int64_t contentSize, const char *contentType) { 118 mContentType = String8(contentType); 106 onConnectionEstablished( int64_t contentSize, const char *contentType) argument
|
H A D | support.cpp | 326 std::string contentType; local 327 request->GetResponseHeaderByName("Content-Type", &contentType); 330 request->GetExpectedContentSize(), contentType.c_str());
|
/frameworks/base/core/java/android/net/http/ |
H A D | AndroidHttpClient.java | 477 for (String contentType : textContentTypes) { 478 if (header.getValue().startsWith(contentType)) {
|
/frameworks/base/media/libdrm/mobile1/src/jni/ |
H A D | drm1_jni.c | 717 uint8_t contentType[64] = {0}; local 723 if (DRM_SUCCESS == SVC_drm_getContentType(id, contentType)) 724 str = (*env)->NewStringUTF(env, (char *)contentType);
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
H A D | drm_api.c | 853 strcpy((char *)s->contentType, (char *)dmInfo.contentType); 1048 strcpy((char *)s->contentType, (char *)dcfInfo.ContentType); 1112 strcpy((char *)mediaType, (char *)s->contentType);
|