Home
last modified time | relevance | path

Searched refs:contentType (Results 1 – 7 of 7) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/mmslib/
DContentType.java169 public static boolean isSupportedType(String contentType) { in isSupportedType() argument
170 return (null != contentType) && sSupportedContentTypes.contains(contentType); in isSupportedType()
173 public static boolean isSupportedImageType(String contentType) { in isSupportedImageType() argument
174 return isImageType(contentType) && isSupportedType(contentType); in isSupportedImageType()
177 public static boolean isSupportedAudioType(String contentType) { in isSupportedAudioType() argument
178 return isAudioType(contentType) && isSupportedType(contentType); in isSupportedAudioType()
181 public static boolean isSupportedVideoType(String contentType) { in isSupportedVideoType() argument
182 return isVideoType(contentType) && isSupportedType(contentType); in isSupportedVideoType()
185 public static boolean isTextType(String contentType) { in isTextType() argument
186 return (null != contentType) && contentType.startsWith("text/"); in isTextType()
[all …]
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/content/
DContentItem.java34 public final int contentType; field in ContentItem
45 contentType = type; in ContentItem()
57 contentType = type; in ContentItem()
84 switch (contentType) { in getShareIntent()
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduParser.java175 byte[] contentType = retrieveConf.getContentType(); in parse()
176 if (null == contentType) { in parse()
179 String ctTypeStr = new String(contentType); in parse()
786 byte[] contentType = in parseHeaders()
789 if (null != contentType) { in parseHeaders()
793 contentType.toString()); in parseHeaders()
795 headers.setTextString(contentType, PduHeaders.CONTENT_TYPE); in parseHeaders()
855 byte[] contentType = parseContentType(pduDataStream, map); in parseParts()
856 if (null != contentType) { in parseParts()
857 part.setContentType(contentType); in parseParts()
[all …]
DPduPart.java307 public void setContentType(byte[] contentType) { in setContentType() argument
308 if(contentType == null) { in setContentType()
312 mPartHeader.put(P_CONTENT_TYPE, contentType); in setContentType()
DSendReq.java60 public SendReq(byte[] contentType, in SendReq() argument
66 setContentType(contentType); in SendReq()
DPduComposer.java851 String contentType = new String(mPduHeader.getTextString(PduHeaders.CONTENT_TYPE)); in makeMessageBody() local
852 Integer contentTypeIdentifier = mContentTypeMap.get(contentType); in makeMessageBody()
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/
DMainActivity.java125 switch (item.contentType) {