/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
H A D | ActionMultiMap.java | 27 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 D | QuickContactActivity.java | 356 private boolean isMimeExcluded(String mimeType) { argument 359 if (TextUtils.equals(excludedMime, mimeType)) { 435 final String mimeType = dataItem.getMimeType(); 438 .getKindOrFallback(accountType, mimeType); 441 if (isMimeExcluded(mimeType)) continue; 455 if (isSuperPrimary || (isPrimary && (mDefaultsMap.get(mimeType) == null))) { 456 mDefaultsMap.put(mimeType, action); 490 for (String mimeType : LEADING_MIMETYPES) { 491 if (containedTypes.contains(mimeType)) { 492 mSortedActionMimeTypes.add(mimeType); 571 inflateAction(String mimeType, ResolveCache resolveCache, ViewGroup root, String name) argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/ |
H A D | DataItem.java | 56 final String mimeType = values.getAsString(Data.MIMETYPE); 57 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) { 59 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) { 61 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) { 63 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { 65 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { 67 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) { 69 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) { 71 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType)) { 73 } else if (Note.CONTENT_ITEM_TYPE.equals(mimeType)) { 115 setMimeType(String mimeType) argument [all...] |
H A D | DataKind.java | 44 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/CertInstaller/src/com/android/certinstaller/ |
H A D | CertInstallerMain.java | 100 private void startInstallActivity(String mimeType, Uri uri) { argument 101 if (mimeType == null) { 102 mimeType = getContentResolver().getType(uri); 110 startInstallActivity(mimeType, raw); 120 private void startInstallActivity(String mimeType, byte[] value) { argument 122 if ("application/x-pkcs12".equals(mimeType)) { 124 } else if ("application/x-x509-ca-cert".equals(mimeType) 125 || "application/x-x509-user-cert".equals(mimeType) 126 || "application/x-x509-server-cert".equals(mimeType) 127 || "application/x-pem-file".equals(mimeType) [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
H A D | ContentTypeField.java | 71 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/Email/tests/src/com/android/emailcommon/mail/ |
H A D | MessageTestUtils.java | 72 * @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/Browser/src/com/android/browser/ |
H A D | FetchUrlMimeType.java | 88 String mimeType = null; 98 mimeType = header.getValue(); 99 final int semicolonIndex = mimeType.indexOf(';'); 101 mimeType = mimeType.substring(0, semicolonIndex); 121 if (mimeType != null) { 122 if (mimeType.equalsIgnoreCase("text/plain") || 123 mimeType.equalsIgnoreCase("application/octet-stream")) { 128 mimeType = newMimeType; 133 mimeType); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | MimeType.java | 138 * @param mimeType original mime type of the attachment. 141 public static String inferMimeType(String name, String mimeType) { argument 146 return mimeType; 148 final boolean isTextPlain = TEXT_PLAIN.equalsIgnoreCase(mimeType); 150 isTextPlain || GENERIC_MIMETYPE.equalsIgnoreCase(mimeType); 153 if (isGenericType || TextUtils.isEmpty(mimeType)) { 163 return !TextUtils.isEmpty(mimeType) ? mimeType : GENERIC_MIMETYPE; 171 * @param mimeType the mime type to check 174 public static boolean isEmlMimeType(String mimeType) { argument [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | PendingAddItemInfo.java | 63 String mimeType; field in class:PendingAddWidgetInfo 77 mimeType = dataMimeType; 92 mimeType = copy.mimeType;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | PendingAddItemInfo.java | 63 String mimeType; field in class:PendingAddWidgetInfo 77 mimeType = dataMimeType; 92 mimeType = copy.mimeType;
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 248 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/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 248 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/org/apache/james/mime4j/ |
H A D | BodyDescriptor.java | 35 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 D | OpenHelper.java | 77 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 D | DownloadStorageProvider.java | 105 public String createDocument(String docId, String mimeType, String displayName) argument 107 if (Document.MIME_TYPE_DIR.equals(mimeType)) { 118 displayName = removeExtension(mimeType, displayName); 119 File file = new File(parent, addExtension(mimeType, displayName)); 124 file = new File(parent, addExtension(mimeType, displayName + " (" + n + ")")); 136 file.getName(), file.getName(), false, mimeType, file.getAbsolutePath(), 0L, 238 final String mimeType = cursor.getString( 245 if (mimeType == null 246 || (mimeType.startsWith("image/") && !TextUtils.isEmpty(uri))) { 297 String mimeType 358 removeExtension(String mimeType, String name) argument 373 addExtension(String mimeType, String name) argument [all...] |
H A D | DownloadScanner.java | 51 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/ContactsCommon/src/com/android/contacts/common/model/ |
H A D | RawContactDelta.java | 155 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/UnifiedEmail/src/com/android/emailcommon/internet/ |
H A D | MimeUtility.java | 218 public static Part findFirstPartByMimeType(Part part, String mimeType) argument 224 Part ret = findFirstPartByMimeType(bodyPart, mimeType); 230 else if (part.getMimeType().equalsIgnoreCase(mimeType)) { 265 String mimeType = part.getMimeType(); 266 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) { 320 * Returns true if the given mimeType matches the matchAgainst specification. The comparison 323 * @param mimeType A MIME type to check. 325 * @return true if the mimeType matches 327 public static boolean mimeTypeMatches(String mimeType, Strin argument 342 mimeTypeMatches(String mimeType, String[] matchAgainst) argument [all...] |
H A D | MimeBodyPart.java | 52 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);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | UriSource.java | 75 String mimeType = getMimeType(uri); 79 && mimeType.startsWith(IMAGE_TYPE_PREFIX))) { 80 type = mimeType;
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
H A D | ImageRecord.java | 54 String mimeType = record.toMimeType(); 55 if (mimeType == null) { 58 Preconditions.checkArgument(mimeType.startsWith("image/"));
|
/packages/apps/Mms/src/com/android/mms/drm/ |
H A D | DrmUtils.java | 40 public static boolean isDrmType(String mimeType) { argument 45 if (drmManagerClient.canHandle("", mimeType)) {
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
H A D | EmailSyncAdapterTests.java | 63 String mimeType = p.getMimeTypeFromFileName("foo.jpg"); 64 assertEquals("image/jpeg", mimeType); 66 mimeType = p.getMimeTypeFromFileName("foo.JPG"); 67 assertEquals("image/jpeg", mimeType); 68 mimeType = p.getMimeTypeFromFileName("this_is_a_weird_filename.gif"); 69 assertEquals("image/gif", mimeType); 71 mimeType = p.getMimeTypeFromFileName("foo."); 72 assertEquals("application/octet-stream", mimeType); 74 mimeType = p.getMimeTypeFromFileName("....."); 75 assertEquals("application/octet-stream", mimeType); [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | Image.java | 47 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
|