Searched refs:mimeType (Results 1 - 25 of 129) sorted by relevance

123456

/packages/apps/Contacts/src/com/android/contacts/quickcontact/
H A DActionMultiMap.java27 public void put(String mimeType, Action info) { argument
28 put(mimeType, info, false);
32 * Puts the (mimeType,Action) tuple into the multimap at the front if
35 public void put(String mimeType, Action info, boolean front) { argument
37 ArrayList<Action> collectList = get(mimeType);
42 put(mimeType, collectList);
H A DResolveCache.java123 protected Entry getEntry(String mimeType, Intent intent) { argument
124 Entry entry = mCache.get(mimeType);
128 if (SipAddress.CONTENT_ITEM_TYPE.equals(mimeType)
154 mCache.put(mimeType, entry);
199 public boolean hasResolve(String mimeType, Intent intent) { argument
200 return getEntry(mimeType, intent).bestResolve != null;
208 public Drawable getIcon(String mimeType, Intent intent) { argument
209 return getEntry(mimeType, intent).icon;
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/
H A DVoicemailPayload.java26 public VoicemailPayload(String mimeType, byte[] bytes) { argument
27 mMimeType = mimeType;
/packages/apps/Browser/src/com/android/browser/
H A DFetchUrlMimeType.java62 String mimeType = null;
79 mimeType = connection.getContentType();
80 if (mimeType != null) {
81 final int semicolonIndex = mimeType.indexOf(';');
83 mimeType = mimeType.substring(0, semicolonIndex);
97 if (mimeType != null) {
98 if (mimeType.equalsIgnoreCase("text/plain") ||
99 mimeType.equalsIgnoreCase("application/octet-stream")) {
104 mimeType
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DMimeType.java125 * @param mimeType original mime type of the attachment.
128 public static String inferMimeType(String name, String mimeType) { argument
133 return mimeType;
135 final boolean isTextPlain = TEXT_PLAIN.equalsIgnoreCase(mimeType);
137 isTextPlain || GENERIC_MIMETYPE.equalsIgnoreCase(mimeType);
140 if (isGenericType || TextUtils.isEmpty(mimeType)) {
150 return !TextUtils.isEmpty(mimeType) ? mimeType : GENERIC_MIMETYPE;
158 * @param mimeType the mime type to check
161 public static boolean isEmlMimeType(String mimeType) { argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
H A DContentTypeField.java71 private String mimeType = ""; field in class:ContentTypeField
75 protected ContentTypeField(String name, String body, String raw, String mimeType, Map<String, String> parameters, ParseException parseException) { argument
77 this.mimeType = mimeType;
96 return mimeType;
190 * @param mimeType the MIME type to match against.
194 public boolean isMimeType(String mimeType) { argument
195 return this.mimeType.equalsIgnoreCase(mimeType);
205 return mimeType
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/field/
H A DContentTypeField.java71 private String mimeType = ""; field in class:ContentTypeField
75 protected ContentTypeField(String name, String body, String raw, String mimeType, Map<String, String> parameters, ParseException parseException) { argument
77 this.mimeType = mimeType;
96 return mimeType;
190 * @param mimeType the MIME type to match against.
194 public boolean isMimeType(String mimeType) { argument
195 return this.mimeType.equalsIgnoreCase(mimeType);
205 return mimeType
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DVideoItemData.java31 public VideoItemData(long contentId, String title, String mimeType, Date creationDate, argument
35 super(contentId, title, mimeType, creationDate, lastModifiedDate, filePath, uri, dimensions,
H A DFilmstripItemUtils.java39 * @param mimeType The MIME type to check.
42 public static boolean isMimeTypeVideo(String mimeType) { argument
43 return mimeType != null && mimeType.startsWith("video/");
49 * @param mimeType The MIME type to check.
52 public static boolean isMimeTypeImage(String mimeType) { argument
53 return mimeType != null && mimeType.startsWith("image/");
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
H A DDataItem.java60 final String mimeType = values.getAsString(Data.MIMETYPE);
61 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) {
63 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) {
65 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) {
67 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) {
69 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) {
71 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) {
73 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) {
75 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType)) {
77 } else if (Note.CONTENT_ITEM_TYPE.equals(mimeType)) {
123 setMimeType(String mimeType) argument
[all...]
H A DDataKind.java44 public String mimeType; field in class:DataKind
91 public DataKind(String mimeType, int titleRes, int weight, boolean editable) { argument
92 this.mimeType = mimeType;
109 sb.append(" mimeType=").append(mimeType);
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
H A DMessageTestUtils.java72 * @param mimeType MIME type of body part
77 public static BodyPart bodyPart(String mimeType, String contentId) throws MessagingException { argument
78 final MimeBodyPart bp = new MimeBodyPart(null, mimeType);
88 * @param mimeType MIME type of text
93 public static BodyPart textPart(String mimeType, String text) throws MessagingException { argument
96 textPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType);
114 * @param mimeType MIME type of this Multipart
116 public MultipartBuilder(String mimeType) { argument
117 this(mimeType, "this_is_boundary");
123 * @param mimeType MIM
126 MultipartBuilder(String mimeType, String boundary) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/session/
H A DStackSaver.java37 * @param mimeType the mime type of the image
42 int imageOrientation, long captureTimeEpoch, String mimeType);
41 saveStackedImage(File inputImagePath, String title, int width, int height, int imageOrientation, long captureTimeEpoch, String mimeType) argument
H A DStackSaverImpl.java63 int imageOrientation, long captureTimeEpoch, String mimeType) {
65 Storage.generateFilepath(mStackDirectory.getAbsolutePath(), title, mimeType);
74 mimeType);
62 saveStackedImage(File inputImagePath, String title, int width, int height, int imageOrientation, long captureTimeEpoch, String mimeType) argument
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPendingAddItemInfo.java57 String mimeType; field in class:PendingAddWidgetInfo
65 mimeType = dataMimeType;
74 mimeType = copy.mimeType;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java247 public static boolean isSupportedByRegionDecoder(String mimeType) { argument
248 if (mimeType == null) return false;
249 mimeType = mimeType.toLowerCase();
250 return mimeType.startsWith("image/") &&
251 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp"));
254 public static boolean isRotationSupported(String mimeType) { argument
255 if (mimeType == null) return false;
256 mimeType
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/print/
H A DPrintUtils.java303 private static String getIconFilename(String mimeType) { argument
304 if (mimeType.startsWith("application/msword") ||
305 mimeType.startsWith("application/vnd.oasis.opendocument.text") ||
306 mimeType.equals("application/rtf") ||
307 mimeType.equals("application/"
310 } else if (mimeType.startsWith("image/")) {
312 } else if (mimeType.startsWith("text/html")) {
314 } else if (mimeType.startsWith("application/pdf")) {
316 } else if (mimeType.endsWith("powerpoint") ||
317 mimeType
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
H A DBodyDescriptor.java35 private String mimeType = "text/plain"; field in class:BodyDescriptor
58 mimeType = "message/rfc822";
60 mimeType = "text/plain";
126 mimeType = main;
321 public boolean isMimeType(String mimeType) { argument
322 return this.mimeType.equals(mimeType.toLowerCase());
329 return mimeType.equals("message/rfc822");
336 return mimeType.startsWith("multipart/");
343 return mimeType;
[all...]
/packages/services/Telephony/src/org/apache/james/mime4j/
H A DBodyDescriptor.java35 private String mimeType = "text/plain"; field in class:BodyDescriptor
58 mimeType = "message/rfc822";
60 mimeType = "text/plain";
126 mimeType = main;
321 public boolean isMimeType(String mimeType) { argument
322 return this.mimeType.equals(mimeType.toLowerCase());
329 return mimeType.equals("message/rfc822");
336 return mimeType.startsWith("multipart/");
343 return mimeType;
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DOpenHelper.java77 String mimeType = getCursorString(cursor, COLUMN_MEDIA_TYPE);
78 mimeType = DownloadDrmHelper.getOriginalMimeType(context, file, mimeType);
82 if ("application/vnd.android.package-archive".equals(mimeType)) {
84 intent.setDataAndType(localUri, mimeType);
95 ContentUris.withAppendedId(ALL_DOWNLOADS_CONTENT_URI, id), mimeType);
98 intent.setDataAndType(localUri, mimeType);
H A DDownloadStorageProvider.java107 public String createDocument(String docId, String mimeType, String displayName) argument
111 if (Document.MIME_TYPE_DIR.equals(mimeType)) {
122 final File file = FileUtils.buildUniqueFile(parent, mimeType, displayName);
133 file.getName(), file.getName(), true, mimeType, file.getAbsolutePath(), 0L,
235 final String mimeType = cursor.getString(
242 if (mimeType == null
243 || (mimeType.startsWith("image/") && !TextUtils.isEmpty(uri))) {
294 String mimeType = cursor.getString(
296 if (mimeType == null) {
298 mimeType
356 removeExtension(String mimeType, String name) argument
371 addExtension(String mimeType, String name) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java116 * @param mimeType The MIME type of the data.
122 int height, String mimeType) throws IOException {
124 String path = generateFilepath(title, mimeType);
128 path, width, height, mimeType);
145 * @param mimeType The MIME type of the data.
151 String mimeType) {
155 height, mimeType);
174 String path, int width, int height, String mimeType) {
183 values.put(ImageColumns.MIME_TYPE, mimeType);
266 * @param mimeType o
120 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] data, int width, int height, String mimeType) argument
149 addImageToMediaStore(ContentResolver resolver, String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
172 getContentValuesForData(String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
269 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
395 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument
418 generateFilepath(String title, String mimeType) argument
422 generateFilepath(String directory, String title, String mimeType) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DRawContactDelta.java155 public ValuesDelta getPrimaryEntry(String mimeType) { argument
156 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false);
173 public ValuesDelta getSuperPrimaryEntry(String mimeType) { argument
174 return getSuperPrimaryEntry(mimeType, true);
184 public ValuesDelta getSuperPrimaryEntry(String mimeType, boolean forceSelection) { argument
185 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false);
246 private ArrayList<ValuesDelta> getMimeEntries(String mimeType, boolean lazyCreate) { argument
247 ArrayList<ValuesDelta> mimeEntries = mEntries.get(mimeType);
250 mEntries.put(mimeType, mimeEntries);
255 public ArrayList<ValuesDelta> getMimeEntries(String mimeType) { argument
259 getMimeEntriesCount(String mimeType, boolean onlyVisible) argument
272 hasMimeEntries(String mimeType) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DUriSource.java75 String mimeType = getMimeType(uri);
79 && mimeType.startsWith(IMAGE_TYPE_PREFIX))) {
80 type = mimeType;
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DImageRecord.java54 String mimeType = record.toMimeType();
55 if (mimeType == null) {
58 Preconditions.checkArgument(mimeType.startsWith("image/"));

Completed in 7977 milliseconds

123456