/packages/apps/Mms/src/com/android/mms/model/ |
CarrierContentRestriction.java | 30 import com.google.android.mms.ContentType; 39 sSupportedImageTypes = ContentType.getImageTypes(); 40 sSupportedAudioTypes = ContentType.getAudioTypes(); 41 sSupportedVideoTypes = ContentType.getVideoTypes(); 71 public void checkImageContentType(String contentType) 73 if (null == contentType) { 77 if (!sSupportedImageTypes.contains(contentType)) { 79 + contentType); 83 public void checkAudioContentType(String contentType) 85 if (null == contentType) { [all...] |
RegionMediaModel.java | 34 public RegionMediaModel(Context context, String tag, String contentType, 36 super(context, tag, contentType, src, uri); 40 public RegionMediaModel(Context context, String tag, String contentType, 42 super(context, tag, contentType, src, data);
|
MediaModelFactory.java | 33 import com.google.android.mms.ContentType; 121 return new TextModel(context, ContentType.TEXT_PLAIN, null, regionModel); 133 String contentType = new String(bytes); 136 media = new TextModel(context, contentType, src, 139 media = new ImageModel(context, contentType, src, 142 media = new VideoModel(context, contentType, src, 145 media = new AudioModel(context, contentType, src, 148 if (ContentType.isTextType(contentType)) { 149 media = new TextModel(context, contentType, src [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/ |
ContentInfo.java | 19 private ASN1ObjectIdentifier contentType; 55 contentType = (ASN1ObjectIdentifier)seq.getObjectAt(0); 70 ASN1ObjectIdentifier contentType, 73 this.contentType = contentType; 79 return contentType; 91 * contentType ContentType, 93 * [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL } 100 v.add(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/src/test/java/com/squareup/okhttp/ |
RequestTest.java | 29 MediaType contentType = MediaType.parse("text/plain; charset=utf-8"); 30 Request.Body body = Request.Body.create(contentType, "abc".getBytes(Util.UTF_8)); 31 assertEquals(contentType, body.contentType()); 38 MediaType contentType = MediaType.parse("text/plain"); 39 Request.Body body = Request.Body.create(contentType, "\u0800"); 40 assertEquals(MediaType.parse("text/plain; charset=utf-8"), body.contentType()); 46 MediaType contentType = MediaType.parse("text/plain; charset=utf-16be"); 47 Request.Body body = Request.Body.create(contentType, "\u0800"); 48 assertEquals(contentType, body.contentType()) [all...] |
/external/chromium/chrome/browser/resources/options/ |
content_settings_exceptions_area.html | 11 <div contentType="cookies"> 24 <div contentType="images"> 33 <div contentType="javascript"> 42 <div contentType="plugins"> 51 <div contentType="popups"> 60 <div contentType="location"> 64 <div contentType="notifications">
|
/frameworks/opt/mms/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...] |
/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;
|
/external/chromium_org/chrome/browser/resources/options/ |
content_settings_exceptions_area.html | 12 <div contentType="cookies"> 25 <div contentType="images"> 33 <div contentType="javascript"> 41 <div contentType="plugins"> 49 <div contentType="popups"> 57 <div contentType="location"> 60 <div contentType="notifications"> 63 <div contentType="fullscreen"> 71 <div contentType="mouselock"> 79 <div contentType="protectedContent" [all...] |
/external/chromium_org/third_party/WebKit/Source/core/xml/ |
DOMParser.cpp | 28 PassRefPtr<Document> DOMParser::parseFromString(const String& str, const String& contentType, ExceptionState& exceptionState) 32 if (contentType != "text/html" 33 && contentType != "text/xml" 34 && contentType != "application/xml" 35 && contentType != "application/xhtml+xml" 36 && contentType != "image/svg+xml") { 41 RefPtr<Document> doc = DOMImplementation::createDocument(contentType, 0, KURL(), false);
|
/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/chromium_org/chrome/renderer/resources/extensions/ |
content_setting.js | 16 function ContentSetting(contentType, settingSchema) { 21 [contentType, details, callback], 30 [contentType, details, callback], 37 [contentType, details, callback], 46 [contentType, callback],
|
/external/chromium_org/third_party/libxml/src/include/libxml/ |
nanohttp.h | 30 char **contentType); 35 char **contentType, 42 char **contentType, 48 char **contentType); 51 char **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/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/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
DefaultSignedAttributeTableGenerator.java | 51 * normally include contentType, signingTime, and messageDigest. If the constructor 52 * using an AttributeTable was used, entries in it for contentType, signingTime, and 64 if (!std.containsKey(CMSAttributes.contentType)) 66 ASN1ObjectIdentifier contentType = ASN1ObjectIdentifier.getInstance( 69 // contentType will be null if we're trying to generate a counter signature. 70 if (contentType != null) 72 Attribute attr = new Attribute(CMSAttributes.contentType, 73 new DERSet(contentType));
|
/external/chromium_org/third_party/WebKit/Source/platform/network/ |
ParsedContentType.cpp | 131 bool parseContentType(const String& contentType, ReceiverType& receiver) 134 unsigned contentTypeLength = contentType.length(); 135 skipSpaces(contentType, index); 137 WTF_LOG_ERROR("Invalid Content-Type string '%s'", contentType.ascii().data()); 142 size_t semiColonIndex = contentType.find(';', index); 151 skipSpaces(contentType, index); 152 SubstringRange keyRange = parseParameterPart(contentType, index); 159 if (contentType[index++] != '=' || index >= contentTypeLength) { 165 SubstringRange valueRange = parseParameterPart(contentType, index); 168 WTF_LOG_ERROR("Invalid Content-Type, invalid parameter value (at %i, for '%s').", index, substringForRange(contentType, keyRange).stripWhiteSpace().ascii().data()) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
DataUri.java | 45 String contentType = uri.substring(DATA_URI_PREFIX.length(), 48 if (contentType.contains(BASE_64_ENCODING)) { 51 int semiIndex = contentType.indexOf(';'); 53 mMimeType = contentType.substring(0, semiIndex); 55 mMimeType = contentType;
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGAnimatedTypeAnimator.h | 72 typename AnimValType::ContentType* constructFromBaseValue(const SVGElementAnimatedPropertyList& animatedTypes) 75 const typename AnimValType::ContentType& animatedType = castAnimatedPropertyToActualType<AnimValType>(animatedTypes[0].properties[0].get())->currentBaseValue(); 77 typename AnimValType::ContentType* copy = new typename AnimValType::ContentType(animatedType); 83 void resetFromBaseValue(const SVGElementAnimatedPropertyList& animatedTypes, SVGAnimatedType* type, typename AnimValType::ContentType& (SVGAnimatedType::*getter)()) 88 typename AnimValType::ContentType& animatedTypeValue = (type->*getter)(); 117 pair<typename AnimValType1::ContentType, typename AnimValType2::ContentType>* constructFromBaseValues(const SVGElementAnimatedPropertyList& animatedTypes) 120 const typename AnimValType1::ContentType& firstType = castAnimatedPropertyToActualType<AnimValType1>(animatedTypes[0].properties[0].get())->currentBaseValue(); 121 const typename AnimValType2::ContentType& secondType = castAnimatedPropertyToActualType<AnimValType2>(animatedTypes[0].properties[1].get()) (…) [all...] |
/external/okhttp/src/main/java/com/squareup/okhttp/ |
Request.java | 102 public MediaType contentType() { 116 * contentType} lacks a charset, this will use UTF-8. 118 public static Body create(MediaType contentType, String content) { 119 contentType = contentType.charset() != null 120 ? contentType 121 : MediaType.parse(contentType + "; charset=utf-8"); 123 byte[] bytes = content.getBytes(contentType.charset().name()); 124 return create(contentType, bytes); 131 public static Body create(final MediaType contentType, final byte[] content) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/ |
ContentType.cpp | 29 #include "platform/ContentType.h" 33 ContentType::ContentType(const String& contentType) 34 : m_type(contentType) 38 String ContentType::parameter(const String& parameterName) const 67 String ContentType::type() const 79 Vector<String> ContentType::codecs() const
|
/external/chromium_org/third_party/tlslite/patches/ |
close_notify.patch | 15 for result in self._getMsg((ContentType.alert, \ 16 ContentType.application_data)):
|