| /packages/apps/Messaging/src/com/android/messaging/util/ |
| ContentType.java | 22 public final class ContentType { 101 private ContentType() { 104 public static boolean isTextType(final String contentType) { 105 return TEXT_PLAIN.equals(contentType) 106 || TEXT_HTML.equals(contentType) 107 || APP_WAP_XHTML.equals(contentType); 110 public static boolean isMediaType(final String contentType) { 111 return isImageType(contentType) 112 || isVideoType(contentType) 113 || isAudioType(contentType) [all...] |
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
| ContentInfo.java | 20 private ASN1ObjectIdentifier contentType; 45 contentType = (ASN1ObjectIdentifier)e.nextElement(); 56 ASN1ObjectIdentifier contentType, 59 this.contentType = contentType; 65 return contentType; 77 * contentType ContentType, 79 * [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL } 86 v.add(contentType); [all...] |
| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
| RequestBody.java | 29 public abstract MediaType contentType(); 44 * contentType} is non-null and lacks a charset, this will use UTF-8. 46 public static RequestBody create(MediaType contentType, String content) { 48 if (contentType != null) { 49 charset = contentType.charset(); 52 contentType = MediaType.parse(contentType + "; charset=utf-8"); 56 return create(contentType, bytes); 60 public static RequestBody create(final MediaType contentType, final ByteString content) { 62 @Override public MediaType contentType() { [all...] |
| ResponseBody.java | 34 public abstract MediaType contentType(); 87 MediaType contentType = contentType(); 88 return contentType != null ? contentType.charset(UTF_8) : UTF_8; 97 * contentType} is non-null and lacks a charset, this will use UTF-8. 99 public static ResponseBody create(MediaType contentType, String content) { 101 if (contentType != null) { 102 charset = contentType.charset(); 105 contentType = MediaType.parse(contentType + "; charset=utf-8") [all...] |
| /development/samples/ApiDemos/src/com/example/android/mmslib/ |
| ContentType.java | 22 public class ContentType { 166 private ContentType() { 169 public static boolean isSupportedType(String contentType) { 170 return (null != contentType) && sSupportedContentTypes.contains(contentType); 173 public static boolean isSupportedImageType(String contentType) { 174 return isImageType(contentType) && isSupportedType(contentType); 177 public static boolean isSupportedAudioType(String contentType) { 178 return isAudioType(contentType) && isSupportedType(contentType) [all...] |
| /frameworks/opt/telephony/src/java/com/google/android/mms/ |
| ContentType.java | 22 public class ContentType { 166 private ContentType() { 169 public static boolean isSupportedType(String contentType) { 170 return (null != contentType) && sSupportedContentTypes.contains(contentType); 173 public static boolean isSupportedImageType(String contentType) { 174 return isImageType(contentType) && isSupportedType(contentType); 177 public static boolean isSupportedAudioType(String contentType) { 178 return isAudioType(contentType) && isSupportedType(contentType) [all...] |
| /packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
| ContentType.java | 22 public class ContentType { 166 private ContentType() { 169 public static boolean isSupportedType(String contentType) { 170 return (null != contentType) && sSupportedContentTypes.contains(contentType); 173 public static boolean isSupportedImageType(String contentType) { 174 return isImageType(contentType) && isSupportedType(contentType); 177 public static boolean isSupportedAudioType(String contentType) { 178 return isAudioType(contentType) && isSupportedType(contentType) [all...] |
| /external/nist-sip/java/javax/sip/header/ |
| ContentTypeHeader.java | 9 void setContentType(String contentType, String contentSubType)
|
| MediaType.java | 10 void setContentType(String contentType) throws ParseException;
|
| /packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
| ShareIntentActivity.java | 34 import com.android.messaging.util.ContentType; 85 final String contentType = extractContentType(contentUri, intent.getType()); 89 contentUri, intent.getType(), contentType)); 91 if (ContentType.TEXT_PLAIN.equals(contentType)) { 98 } else if (ContentType.isImageType(contentType) || 99 ContentType.isVCardType(contentType) || 100 ContentType.isAudioType(contentType) | [all...] |
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/ |
| ContentInfo.java | 19 * contentType ContentType, 20 * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL 24 * eContentType ContentType, 33 private ASN1ObjectIdentifier contentType; 82 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); 97 ASN1ObjectIdentifier contentType, 100 this.contentType = contentType; 106 return contentType; [all...] |
| /packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
| MediaPickerMessagePartData.java | 25 public MediaPickerMessagePartData(final Rect startRect, final String contentType, 27 this(startRect, null /* messageText */, contentType, contentUri, width, height); 31 final String contentType, final Uri contentUri, final int width, final int height) { 32 this(startRect, messageText, contentType, contentUri, width, height, 36 public MediaPickerMessagePartData(final Rect startRect, final String contentType, 39 this(startRect, null /* messageText */, contentType, contentUri, width, height, 44 final String contentType, final Uri contentUri, final int width, final int height, 46 super(messageText, contentType, contentUri, width, height, onlySingleAttachment);
|
| PendingAttachmentData.java | 24 import com.android.messaging.util.ContentType; 57 protected PendingAttachmentData(final String caption, final String contentType, 60 super(caption, contentType, sourceUri, width, height, onlySingleAttachment); 68 public static PendingAttachmentData createPendingAttachmentData(final String contentType, 70 return createPendingAttachmentData(null, contentType, sourceUri, UNSPECIFIED_SIZE, 75 final String contentType, final Uri sourceUri, final int width, final int height) { 76 Assert.isTrue(ContentType.isMediaType(contentType)); 77 return new PendingAttachmentData(caption, contentType, sourceUri, width, height, 82 final String contentType, final Uri sourceUri, final int width, final int height [all...] |
| /external/nist-sip/java/gov/nist/javax/sip/parser/ |
| ContentTypeParser.java | 48 public ContentTypeParser(String contentType) { 49 super(contentType); 58 ContentType contentType = new ContentType(); 69 contentType.setContentType(type.getTokenValue()); 76 contentType.setContentSubType(subType.getTokenValue()); 77 super.parse(contentType); 83 return contentType;
|
| /external/libxml2/include/libxml/ |
| nanohttp.h | 30 char **contentType); 35 char **contentType, 42 char **contentType, 48 char **contentType); 51 char **contentType,
|
| /external/nist-sip/java/gov/nist/javax/sip/header/ |
| ContentType.java | 35 * ContentType SIP Header 64 public class ContentType 78 public ContentType() { 83 *@param contentType is the content type. 86 public ContentType(String contentType, String contentSubtype) { 88 this.setContentType(contentType, contentSubtype); 170 *@param contentType Content type string. 173 public void setContentType(String contentType, String contentSubType) { 176 mediaRange.setType(contentType); [all...] |
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
| RequestTest.java | 35 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); 36 RequestBody body = RequestBody.create(contentType, "abc".getBytes(Util.UTF_8)); 37 assertEquals(contentType, body.contentType()); 44 MediaType contentType = MediaType.parse("text/plain"); 45 RequestBody body = RequestBody.create(contentType, "\u0800"); 46 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); 52 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); 53 RequestBody body = RequestBody.create(contentType, "\u0800"); 54 assertEquals(contentType, body.contentType()) [all...] |
| /external/nist-sip/java/javax/sip/message/ |
| MessageFactory.java | 18 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, 23 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, 34 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, 39 MaxForwardsHeader maxForwards, ContentTypeHeader contentType, 47 ContentTypeHeader contentType, Object content) 51 ContentTypeHeader contentType, byte[] content)
|
| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
| RealResponseBody.java | 32 @Override public MediaType contentType() { 33 String contentType = headers.get("Content-Type"); 34 return contentType != null ? MediaType.parse(contentType) : null;
|
| /packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
| MimeMultipart.java | 30 protected String contentType; 41 public MimeMultipart(String contentType) throws MessagingException { 42 this.contentType = contentType; 44 subType = MimeUtility.getHeaderParameter(contentType, null).split("/")[1]; 45 boundary = MimeUtility.getHeaderParameter(contentType, "boundary"); 47 throw new MessagingException("MultiPart does not contain boundary: " + contentType); 52 + contentType 77 return contentType; 82 contentType = String.format("multipart/%s; boundary=\"%s\"", subType, boundary) [all...] |
| /cts/tests/tests/nativemedia/aaudio/jni/ |
| test_aaudio_attributes.cpp | 17 // Test AAudio attributes such as Usage, ContentType and InputPreset. 33 aaudio_content_type_t contentType, 53 if (contentType != DONT_SET) { 54 AAudioStreamBuilder_setContentType(aaudioBuilder, contentType); 72 (contentType == DONT_SET || contentType == AAUDIO_UNSPECIFIED) 74 : contentType; 142 for (aaudio_content_type_t contentType : sContentypes) { 143 checkAttributes(perfMode, DONT_SET, contentType);
|
| /frameworks/av/media/libaaudio/tests/ |
| test_attributes.cpp | 17 // Test AAudio attributes such as Usage, ContentType and InputPreset. 33 aaudio_content_type_t contentType, 53 if (contentType != DONT_SET) { 54 AAudioStreamBuilder_setContentType(aaudioBuilder, contentType); 72 (contentType == DONT_SET || contentType == AAUDIO_UNSPECIFIED) 74 : contentType; 142 for (aaudio_content_type_t contentType : sContentypes) { 143 checkAttributes(perfMode, DONT_SET, contentType);
|
| /libcore/ojluni/src/main/java/sun/security/pkcs/ |
| ContentInfo.java | 86 ObjectIdentifier contentType; 89 public ContentInfo(ObjectIdentifier contentType, DerValue content) { 90 this.contentType = contentType; 99 this.contentType = DATA_OID; 137 contentType = disType.getOID(); 162 return contentType; 166 if (contentType.equals((Object)DATA_OID) || 167 contentType.equals((Object)OLD_DATA_OID) || 168 contentType.equals((Object)TIMESTAMP_TOKEN_INFO_OID)) [all...] |
| /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
| DefaultSignedAttributeTableGenerator.java | 54 * normally include contentType, signingTime, messageDigest, and CMS algorithm protection. 55 * If the constructor using an AttributeTable was used, entries in it for contentType, signingTime, and 67 if (!std.containsKey(CMSAttributes.contentType)) 69 ASN1ObjectIdentifier contentType = ASN1ObjectIdentifier.getInstance( 72 // contentType will be null if we're trying to generate a counter signature. 73 if (contentType != null) 75 Attribute attr = new Attribute(CMSAttributes.contentType, 76 new DERSet(contentType));
|
| CMSAttributeTableGenerator.java | 12 String CONTENT_TYPE = "contentType";
|