Searched defs:contentType (Results 1 - 19 of 19) sorted by relevance

/packages/apps/Mms/src/com/android/mms/model/
H A DContentRestriction.java27 void checkImageContentType(String contentType) throws ContentRestrictionException; argument
29 void checkAudioContentType(String contentType) throws ContentRestrictionException; argument
31 void checkVideoContentType(String contentType) throws ContentRestrictionException; argument
H A DAudioModel.java53 public AudioModel(Context context, String contentType, String src, Uri uri) throws MmsException { argument
54 super(context, SmilHelper.ELEMENT_TAG_AUDIO, contentType, src, uri);
H A DCarrierContentRestriction.java71 public void checkImageContentType(String contentType) argument
73 if (null == contentType) {
77 if (!sSupportedImageTypes.contains(contentType)) {
79 + contentType);
83 public void checkAudioContentType(String contentType) argument
85 if (null == contentType) {
89 if (!sSupportedAudioTypes.contains(contentType)) {
91 + contentType);
95 public void checkVideoContentType(String contentType) argument
97 if (null == contentType) {
[all...]
H A DRegionMediaModel.java34 public RegionMediaModel(Context context, String tag, String contentType, argument
36 super(context, tag, contentType, src, uri);
40 public RegionMediaModel(Context context, String tag, String contentType, argument
42 super(context, tag, contentType, src, data);
H A DTextModel.java37 public TextModel(Context context, String contentType, String src, RegionModel region) { argument
38 this(context, contentType, src, CharacterSets.UTF_8, new byte[0], region);
41 public TextModel(Context context, String contentType, String src, argument
43 super(context, SmilHelper.ELEMENT_TAG_TEXT, contentType, src,
H A DVideoModel.java57 public VideoModel(Context context, String contentType, String src, argument
59 super(context, SmilHelper.ELEMENT_TAG_VIDEO, contentType, src, uri, region);
H A DImageModel.java78 public ImageModel(Context context, String contentType, String src, argument
81 contentType, src, uri, region);
H A DMediaModel.java67 public MediaModel(Context context, String tag, String contentType, argument
71 mContentType = contentType;
78 public MediaModel(Context context, String tag, String contentType, argument
86 mContentType = contentType;
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
H A DMimeMultipart.java43 public MimeMultipart(String contentType) throws MessagingException { argument
44 this.mContentType = contentType;
46 mSubType = MimeUtility.getHeaderParameter(contentType, null).split("/")[1];
47 mBoundary = MimeUtility.getHeaderParameter(contentType, "boundary");
49 throw new MessagingException("MultiPart does not contain boundary: " + contentType);
54 + contentType + ")", e);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DMimeType.java62 public static boolean isViewable(Context context, Uri contentUri, String contentType) { argument
63 // The provider returns a contentType of "null" instead of null, when the
67 if (contentType == null || contentType.length() == 0 ||
68 NULL_ATTACHMENT_CONTENT_TYPE.equals(contentType)) {
73 if (isBlocked(contentType)) {
74 LogUtils.d(LOG_TAG, "content type '%s' is blocked. '%s", contentType, contentUri);
83 Utils.setIntentDataAndTypeAndNormalize(mimetypeIntent, contentUri, contentType);
85 Utils.setIntentTypeAndNormalize(mimetypeIntent, contentType);
103 contentType, contentUr
111 isBlocked(String contentType) argument
[all...]
/packages/apps/Email/src/com/android/email/
H A DLegacyConversions.java197 String contentType = MimeUtility.unfoldAndDecode(part.getContentType());
198 String name = MimeUtility.getHeaderParameter(contentType, "name");
428 * @param contentType The content-type of the text being added
432 private static void addTextBodyPart(MimeMultipart mp, String contentType, String quotedPartTag, argument
438 MimeBodyPart bp = new MimeBodyPart(body, contentType);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DUriImage.java62 public UriImage(GalleryApp application, Path path, Uri uri, String contentType) { argument
66 mContentType = contentType;
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DShortcutIntentBuilder.java261 private void createContactShortcutIntent(Uri contactUri, String contentType, String displayName, argument
276 shortcutIntent.setDataAndType(contactUri, contentType);
/packages/apps/Exchange/src/com/android/exchange/service/
H A DEasServerConnection.java280 * @param contentType The Content-Type for this request.
284 public HttpPost makePost(final String uri, final HttpEntity entity, final String contentType, argument
293 if (contentType != null && entity != null) {
294 post.setHeader("Content-Type", contentType);
360 final String contentType;
362 contentType = MimeUtility.MIME_TYPE_RFC822;
364 contentType = EAS_14_MIME_TYPE;
366 contentType = null;
374 final HttpPost method = makePost(uriString, entity, contentType, !isPingCommand);
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DAttachment.java97 private String contentType; field in class:Attachment
179 contentType = in.readString();
200 contentType = cursor.getString(cursor.getColumnIndex(AttachmentColumns.CONTENT_TYPE));
221 contentType = srcJson.optString(AttachmentColumns.CONTENT_TYPE, null);
248 contentType = MimeType.inferMimeType(name, part.getMimeType());
292 contentType = values.getAsString(AttachmentColumns.CONTENT_TYPE);
316 values.put(AttachmentColumns.CONTENT_TYPE, contentType);
337 dest.writeString(contentType);
356 result.put(AttachmentColumns.CONTENT_TYPE, contentType);
470 inferredContentType = MimeType.inferMimeType(name, contentType);
490 setContentType(String contentType) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapbMessageMmsEmail.java35 public String contentType = null; /* The mime type, e.g. text/plain */ field in class:BluetoothMapbMessageMmsEmail.MimePart
49 if(contentType != null)
50 sb.append("Content-Type: ").append(contentType);
64 if(contentType != null &&
65 (contentType.toUpperCase().contains("TEXT") ||
66 contentType.toUpperCase().contains("SMIL") )) {
81 if(contentType != null && contentType.toUpperCase().contains("TEXT")) {
83 } else if(contentType != null && contentType
105 private String contentType = null; field in class:BluetoothMapbMessageMmsEmail
221 setContentType(String contentType) argument
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DMessageListItem.java531 String contentType) {
541 if (contentType != null && ContentType.TEXT_HTML.equals(contentType)) {
529 formatMessage(MessageItem msgItem, String body, String subject, Pattern highlight, String contentType) argument
H A DMessageUtils.java554 Context context, int requestCode, String contentType, boolean localFilesOnly) {
559 innerIntent.setType(contentType);
587 String contentType;
588 contentType = mm.getContentType();
589 intent.setDataAndType(mm.getUri(), contentType);
553 selectMediaByType( Context context, int requestCode, String contentType, boolean localFilesOnly) argument
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncher.java2980 AppsCustomizePagedView.ContentType contentType = mAppsCustomizeContent.getContentType();
2981 showAppsCustomizeHelper(animated, springLoaded, contentType);
2984 final AppsCustomizePagedView.ContentType contentType) {
3006 || contentType == AppsCustomizePagedView.ContentType.Widgets) {
3008 mAppsCustomizeTabHost.setContentTypeImmediate(contentType);
3283 void showAllApps(boolean animated, AppsCustomizePagedView.ContentType contentType, argument
3290 showAppsCustomizeHelper(animated, false, contentType);
2983 showAppsCustomizeHelper(final boolean animated, final boolean springLoaded, final AppsCustomizePagedView.ContentType contentType) argument

Completed in 650 milliseconds