Searched defs:mimeType (Results 1 - 25 of 70) sorted by relevance

123

/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/apps/Mms/src/com/android/mms/drm/
H A DDrmUtils.java41 public static boolean isDrmType(String mimeType) { argument
46 if (drmManagerClient.canHandle("", mimeType)) {
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertInstallerMain.java112 private void startInstallActivity(String mimeType, Uri uri) { argument
113 if (mimeType == null) {
114 mimeType = getContentResolver().getType(uri);
122 startInstallActivity(mimeType, raw);
132 private void startInstallActivity(String mimeType, byte[] value) { argument
134 if ("application/x-pkcs12".equals(mimeType)) {
136 } else if ("application/x-x509-ca-cert".equals(mimeType)
137 || "application/x-x509-user-cert".equals(mimeType)
138 || "application/x-x509-server-cert".equals(mimeType)
139 || "application/x-pem-file".equals(mimeType)
[all...]
/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/Camera2/src/com/android/camera/data/
H A DLocalDataUtil.java42 * @param mimeType The MIME type to check.
45 public static boolean isMimeTypeVideo(String mimeType) { argument
46 return mimeType.startsWith("video/");
50 * @param mimeType The MIME type to check.
53 public static boolean isMimeTypeImage(String mimeType) { argument
54 return mimeType.startsWith("image/");
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPendingAddItemInfo.java63 String mimeType; field in class:PendingAddWidgetInfo
77 mimeType = dataMimeType;
92 mimeType = copy.mimeType;
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DMimeRecord.java42 private MimeRecord(String mimeType, byte[] content) { argument
43 mType = Preconditions.checkNotNull(mimeType);
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
H A DPart.java45 public boolean isMimeType(String mimeType) throws MessagingException; argument
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DMimeType.java123 * @param mimeType original mime type of the attachment.
126 public static String inferMimeType(String name, String mimeType) { argument
131 return mimeType;
133 final boolean isTextPlain = TEXT_PLAIN.equalsIgnoreCase(mimeType);
135 isTextPlain || GENERIC_MIMETYPE.equalsIgnoreCase(mimeType);
138 if (isGenericType || TextUtils.isEmpty(mimeType)) {
148 return !TextUtils.isEmpty(mimeType) ? mimeType : GENERIC_MIMETYPE;
156 * @param mimeType the mime type to check
159 public static boolean isEmlMimeType(String mimeType) { argument
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadScanner.java51 public final String mimeType; field in class:DownloadScanner.ScanRequest
54 public ScanRequest(long id, String path, String mimeType) { argument
57 this.mimeType = mimeType;
62 conn.scanFile(path, mimeType);
/packages/apps/Camera2/src/com/android/camera/session/
H A DPlaceholderManager.java102 * @param mimeType the mime type of the image
106 ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) {
109 session.time, location, orientation, exif, jpeg, width, height, mimeType);
105 finishPlaceholder(Session session, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
/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/Gallery/src/com/android/camera/gallery/
H A DImage.java47 String mimeType, long dateTaken, String title,
50 mimeType, dateTaken, title);
71 String mimeType = getMimeType();
72 return !"image/jpeg".equals(mimeType) && !"image/png".equals(mimeType);
45 Image(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, String mimeType, long dateTaken, String title, int rotation) argument
H A DVideoObject.java47 String mimeType, long dateTaken, String title) {
49 mimeType, dateTaken, title);
45 VideoObject(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, String mimeType, long dateTaken, String title) argument
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java248 public static boolean isSupportedByRegionDecoder(String mimeType) { argument
249 if (mimeType == null) return false;
250 mimeType = mimeType.toLowerCase();
251 return mimeType.startsWith("image/") &&
252 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp"));
255 public static boolean isRotationSupported(String mimeType) { argument
256 if (mimeType == null) return false;
257 mimeType
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DLocalMediaItem.java38 public String mimeType; field in class:LocalMediaItem
102 return mimeType;
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
H A DBitmapUtils.java248 public static boolean isSupportedByRegionDecoder(String mimeType) { argument
249 if (mimeType == null) return false;
250 mimeType = mimeType.toLowerCase();
251 return mimeType.startsWith("image/") &&
252 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp"));
255 public static boolean isRotationSupported(String mimeType) { argument
256 if (mimeType == null) return false;
257 mimeType
[all...]
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
H A DMimeBodyPart.java52 public MimeBodyPart(Body body, String mimeType) throws MessagingException { argument
53 if (mimeType != null) {
54 setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType);
145 public boolean isMimeType(String mimeType) throws MessagingException { argument
146 return getMimeType().equals(mimeType);
H A DMimeUtility.java229 String mimeType = part.getMimeType();
230 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) {
284 * Returns true if the given mimeType matches the matchAgainst specification. The comparison
287 * @param mimeType A MIME type to check.
289 * @return true if the mimeType matches
291 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { argument
294 return p.matcher(mimeType).matches();
298 * Returns true if the given mimeType matches any of the matchAgainst specifications. The
302 * @param mimeType
306 mimeTypeMatches(String mimeType, String[] matchAgainst) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/print/
H A DPrintUtils.java301 private static String getIconFilename(String mimeType) { argument
302 if (mimeType.startsWith("application/msword") ||
303 mimeType.startsWith("application/vnd.oasis.opendocument.text") ||
304 mimeType.equals("application/rtf") ||
305 mimeType.equals("application/"
308 } else if (mimeType.startsWith("image/")) {
310 } else if (mimeType.startsWith("text/html")) {
312 } else if (mimeType.startsWith("application/pdf")) {
314 } else if (mimeType.endsWith("powerpoint") ||
315 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/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...]

Completed in 610 milliseconds

123