/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
H A D | MediaPickerMessagePartData.java | 25 public MediaPickerMessagePartData(final Rect startRect, final String contentType, argument 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, argument 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); 30 MediaPickerMessagePartData(final Rect startRect, final String messageText, final String contentType, final Uri contentUri, final int width, final int height) argument 43 MediaPickerMessagePartData(final Rect startRect, final String messageText, final String contentType, final Uri contentUri, final int width, final int height, final boolean onlySingleAttachment) argument
|
H A D | PendingAttachmentData.java | 57 protected PendingAttachmentData(final String caption, final String contentType, argument 60 super(caption, contentType, sourceUri, width, height, onlySingleAttachment); 68 public static PendingAttachmentData createPendingAttachmentData(final String contentType, argument 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, 84 Assert.isTrue(ContentType.isMediaType(contentType)); 85 return new PendingAttachmentData(caption, contentType, sourceUr 74 createPendingAttachmentData(final String caption, final String contentType, final Uri sourceUri, final int width, final int height) argument 81 createPendingAttachmentData(final String caption, final String contentType, final Uri sourceUri, final int width, final int height, final boolean onlySingleAttachment) argument [all...] |
H A D | MessagePartData.java | 120 protected MessagePartData(final String contentType, final Uri contentUri, argument 122 this(null, null, contentType, contentUri, width, height, false /*singlePartOnly*/); 128 protected MessagePartData(final String messageText, final String contentType, argument 130 this(null, messageText, contentType, contentUri, width, height, false /*singlePartOnly*/); 136 protected MessagePartData(final String messageText, final String contentType, argument 138 this(null, messageText, contentType, contentUri, width, height, singlePartOnly); 145 final String contentType, final Uri contentUri, final int width, final int height, 149 mContentType = contentType; 166 public static MessagePartData createMediaMessagePart(final String contentType, argument 168 return new MessagePartData(contentType, contentUr 144 MessagePartData(final String messageId, final String messageText, final String contentType, final Uri contentUri, final int width, final int height, final boolean singlePartOnly) argument 174 createMediaMessagePart(final String caption, final String contentType, final Uri contentUri, final int width, final int height) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
H A D | ShareIntentActivity.java | 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) || 94 ContentType.isVideoType(contentType)) { 97 addSharedImagePartToDraft(contentType, contentUri); 103 Assert.fail("Unsupported shared content type for " + contentUri + ": " + contentType 107 final String contentType 131 extractContentType(final Uri uri, final String contentType) argument 161 addSharedImagePartToDraft(final String contentType, final Uri imageUri) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | FileUtil.java | 60 * @param contentType of the media being saved 64 public static File getNewFile(File directory, String contentType) throws IOException { argument 66 String fileExtension = mimeTypeMap.getExtensionFromMimeType(contentType); 69 String fileNameFormat = context.getString(ContentType.isImageType(contentType)
|
H A D | UriUtil.java | 228 final InputStream inputStream, final File outputDir, final String contentType) { 236 final Uri targetUri = Uri.fromFile(FileUtil.getNewFile(outputDir, contentType)); 251 final Uri sourceUri, final File outputDir, final String contentType) { 263 return persistContent(inputStream, outputDir, contentType); 227 persistContent( final InputStream inputStream, final File outputDir, final String contentType) argument 250 persistContent( final Uri sourceUri, final File outputDir, final String contentType) argument
|
H A D | ContentType.java | 104 public static boolean isTextType(final String contentType) { argument 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) { argument 111 return isImageType(contentType) 112 || isVideoType(contentType) 113 || isAudioType(contentType) 114 || isVCardType(contentType); 117 public static boolean isImageType(final String contentType) { argument 121 isAudioType(final String contentType) argument 126 isVideoType(final String contentType) argument 130 isVCardType(final String contentType) argument 134 isDrmType(final String contentType) argument 140 isUnspecified(final String contentType) argument 147 isConversationListPreviewableType(final String contentType) argument 176 getExtension(final String contentType) argument [all...] |
H A D | ImageUtils.java | 227 String contentType = null; 234 contentType = cursor.getString(INDEX_CONTENT_TYPE); 242 if (contentType == null) { 244 contentType = ContentType.getContentTypeFromExtension(uri.toString(), 247 return contentType; 297 public static boolean isGif(String contentType, Uri contentUri) { argument 298 if (TextUtils.equals(contentType, ContentType.IMAGE_GIF)) { 301 if (ContentType.isImageType(contentType)) { 424 * @param contentType of image 430 final String contentType) { 427 getResizedImageData(final int width, final int height, final int orientation, final int widthLimit, final int heightLimit, final int byteLimit, final Uri uri, final Context context, final String contentType) argument 439 ImageResizer(final int width, final int height, final int orientation, final int widthLimit, final int heightLimit, final int byteLimit, final Uri uri, final Context context, final String contentType) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
H A D | MimeMultipart.java | 43 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 D | MimeType.java | 59 public static boolean isViewable(Context context, Uri contentUri, String contentType) { argument 60 // The provider returns a contentType of "null" instead of null, when the 64 if (contentType == null || contentType.length() == 0 || 65 NULL_ATTACHMENT_CONTENT_TYPE.equals(contentType)) { 75 Utils.setIntentDataAndTypeAndNormalize(mimetypeIntent, contentUri, contentType); 79 Utils.setIntentDataAndTypeAndNormalize(mimetypeIntent, dummyUri, contentType); 97 contentType, contentUri, mimetypeIntent.getType(), mimetypeIntent.getData());
|
/packages/services/Car/service/src/com/android/car/ |
H A D | CarAudioAttributesUtil.java | 128 private static AudioAttributes createAudioAttributes(int contentType, int usage) { argument 130 return builder.setContentType(contentType).setUsage(usage).build(); 134 int contentType, int usage) { 138 return builder.setContentType(contentType).setUsage(usage).addBundle(bundle).build(); 133 createCustomAudioAttributes(int carAudioType, int contentType, int usage) argument
|
/packages/services/Car/tests/carservice_test/src/android/media/tests/ |
H A D | AudioPolicyTest.java | 87 private static AudioMix createAudioMix(int contentType, int usage) { argument 89 audioAttributesBuilder.setContentType(contentType).setUsage(usage);
|
/packages/services/Telephony/src/com/android/phone/common/mail/internet/ |
H A D | MimeMultipart.java | 42 public MimeMultipart(String contentType) throws MessagingException { argument 43 this.mContentType = contentType; 45 mSubType = MimeUtility.getHeaderParameter(contentType, null).split("/")[1]; 46 mBoundary = MimeUtility.getHeaderParameter(contentType, "boundary"); 48 throw new MessagingException("MultiPart does not contain boundary: " + contentType); 53 + contentType + ")", e);
|
/packages/apps/Email/provider_src/com/android/email/ |
H A D | LegacyConversions.java | 197 final String contentType = MimeUtility.unfoldAndDecode(part.getContentType()); 199 String name = MimeUtility.getHeaderParameter(contentType, "name"); 470 * @param contentType The content-type of the text being added 473 private static void addTextBodyPart(final MimeMultipart mp, final String contentType, argument 480 final MimeBodyPart bp = new MimeBodyPart(body, contentType); 488 * @param contentType Mime type 495 protected static void addAttachmentPart(final Multipart mp, final String contentType, argument 499 final MimeBodyPart bp = new MimeBodyPart(body, contentType);
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
H A D | SendReq.java | 51 * @param contentType the content type value 56 * NullPointerException if contentType, form or transactionId is null. 58 public SendReq(byte[] contentType, argument 64 setContentType(contentType);
|
H A D | ContentType.java | 169 public static boolean isSupportedType(String contentType) { argument 170 return (null != contentType) && sSupportedContentTypes.contains(contentType); 173 public static boolean isSupportedImageType(String contentType) { argument 174 return isImageType(contentType) && isSupportedType(contentType); 177 public static boolean isSupportedAudioType(String contentType) { argument 178 return isAudioType(contentType) && isSupportedType(contentType); 181 public static boolean isSupportedVideoType(String contentType) { argument 185 isTextType(String contentType) argument 189 isImageType(String contentType) argument 193 isAudioType(String contentType) argument 197 isVideoType(String contentType) argument 201 isDrmType(String contentType) argument 207 isUnspecified(String contentType) argument [all...] |
H A D | PduPart.java | 304 * @param contentType the content type 307 public void setContentType(byte[] contentType) { argument 308 if(contentType == null) { 312 mPartHeader.put(P_CONTENT_TYPE, contentType);
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
H A D | SendReq.java | 53 * @param contentType the content type value 58 * NullPointerException if contentType, form or 61 public SendReq(byte[] contentType, argument 67 setContentType(contentType);
|
H A D | PduPart.java | 282 public void setContentType(final byte[] contentType) { argument 283 if (contentType == null) { 287 mPartHeader.put(P_CONTENT_TYPE, contentType);
|
H A D | PduPersister.java | 416 final byte[] contentType = getByteArrayFromPartColumn( 418 if (contentType != null) { 419 part.setContentType(contentType); 443 final String type = toIsoString(contentType); 779 String contentType = getPartContentType(part); 783 LogUtil.v(TAG, "PduPersister.persistPart part: " + uri + " contentType: " + 784 contentType); 787 if (contentType != null) { 790 if (ContentType.IMAGE_JPG.equals(contentType)) { 791 contentType 858 persistData(final PduPart part, final Uri uri, final String contentType, final Map<Uri, InputStream> preOpenedFiles) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | UriImage.java | 62 public UriImage(GalleryApp application, Path path, Uri uri, String contentType) { argument 66 mContentType = contentType;
|
/packages/apps/TV/src/com/android/tv/search/ |
H A D | LocalSearchProvider.java | 112 row.add(result.contentType); 159 public String contentType; field in class:LocalSearchProvider.SearchResult
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ShortcutIntentBuilder.java | 264 private void createContactShortcutIntent(Uri contactUri, String contentType, String displayName, argument 285 shortcutIntent.setDataAndType(contactUri, contentType);
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | Attachment.java | 96 private String contentType; field in class:Attachment 178 contentType = in.readString(); 199 contentType = cursor.getString(cursor.getColumnIndex(AttachmentColumns.CONTENT_TYPE)); 220 contentType = srcJson.optString(AttachmentColumns.CONTENT_TYPE, null); 248 contentType = MimeType.inferMimeType(name, part.getMimeType()); 293 contentType = values.getAsString(AttachmentColumns.CONTENT_TYPE); 318 values.put(AttachmentColumns.CONTENT_TYPE, contentType); 340 dest.writeString(contentType); 359 result.put(AttachmentColumns.CONTENT_TYPE, contentType); 473 inferredContentType = MimeType.inferMimeType(name, contentType); 493 setContentType(String contentType) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapbMessageMime.java | 150 private String contentType = null; field in class:BluetoothMapbMessageMime 281 public void setContentType(String contentType) { argument 282 this.contentType = contentType; 285 return contentType; 403 if(contentType != null) 405 contentType).append("; boundary=").append(getBoundary()).append("\r\n"); 554 contentType = contentTypeParts[0]; 708 if(contentType == null) 709 contentType [all...] |