HomeSort by relevance Sort by last modified time
    Searched full:contenttype (Results 1 - 25 of 1461) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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...]
EncryptedData.java 26 * contentType ContentType,
71 ASN1ObjectIdentifier contentType,
77 v.add(contentType);
  /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...]
  /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;
78 final String contentType = extractContentType(contentUri, intent.getType());
82 contentUri, intent.getType(), contentType));
84 if (ContentType.TEXT_PLAIN.equals(contentType)) {
91 } else if (ContentType.isImageType(contentType) ||
92 ContentType.isVCardType(contentType) ||
93 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,
35 private ASN1ObjectIdentifier contentType;
84 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0);
99 ASN1ObjectIdentifier contentType,
102 this.contentType = contentType;
108 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;
  /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(DATA_OID) ||
167 contentType.equals(OLD_DATA_OID) ||
168 contentType.equals(TIMESTAMP_TOKEN_INFO_OID))
    [all...]
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
DefaultSignedAttributeTableGenerator.java 54 * normally include contentType, signingTime, and messageDigest. If the constructor
55 * 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";
  /external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/unit/elasticache/
test_api_interface.py 19 'ContentType',
  /external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1-modules/tools/
pkcs7dump.py 31 contentType = contentInfo.getComponentByName('contentType')
44 asn1Spec=contentInfoMap[contentType]
  /external/apache-http/android/src/com/android/internal/http/multipart/
PartBase.java 45 private String contentType;
57 * @param contentType The content type, or <code>null</code>
61 public PartBase(String name, String contentType, String charSet, String transferEncoding) {
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) {
125 this.contentType = contentType;
    [all...]

Completed in 1703 milliseconds

1 2 3 4 5 6 7 8 91011>>