Home
last modified time | relevance | path

Searched refs:contentType (Results 1 – 6 of 6) 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/
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) {