/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 | QuickContactListFragment.java | 48 public QuickContactListFragment(String mimeType) { argument 50 this.mMimeType = mimeType; 101 String mimeType = action.getMimeType(); 105 mimeType.equals(StructuredPostal.CONTENT_ITEM_TYPE) ? 134 if (mimeType.equals(Phone.CONTENT_ITEM_TYPE)) {
|
/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/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/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/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/Tag/src/com/android/apps/tag/record/ |
H A D | MimeRecord.java | 42 private MimeRecord(String mimeType, byte[] content) { argument 43 mType = Preconditions.checkNotNull(mimeType);
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
H A D | Part.java | 45 public boolean isMimeType(String mimeType) throws MessagingException; argument
|
/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/providers/DownloadProvider/src/com/android/providers/downloads/ |
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/Camera2/src/com/android/camera/ |
H A D | Storage.java | 103 // Save the image with a given mimeType and add it the MediaStore. 106 int height, String mimeType) { 111 jpeg.length, path, width, height, mimeType); 117 String path, int width, int height, String mimeType) { 123 values.put(ImageColumns.MIME_TYPE, mimeType); 141 String path, int width, int height, String mimeType) { 145 width, height, mimeType); 154 int height, String mimeType) { 158 width, height, mimeType); 165 String path, int width, int height, String mimeType) { 104 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument 115 getContentValuesForData(String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument 139 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument 152 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument 163 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument [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/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
|
H A D | VideoObject.java | 47 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 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/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocalMediaItem.java | 38 public String mimeType; field in class:LocalMediaItem 102 return mimeType;
|
/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/com/android/emailcommon/internet/ |
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);
|
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...] |
/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/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/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | EntitySet.java | 275 public ValuesDelta getSuperPrimaryEntry(final String mimeType) { argument 279 final ArrayList<ValuesDelta> mimeEntries = delta.getMimeEntries(mimeType);
|
H A D | Sources.java | 269 * {@link ContactsSource#accountType} and {@link DataKind#mimeType}. If no 274 public DataKind getKindOrFallback(String accountType, String mimeType, Context context, argument 282 kind = source.getKindForMimetype(mimeType); 288 kind = mFallbackSource.getKindForMimetype(mimeType); 292 Log.w(TAG, "Unknown type=" + accountType + ", mime=" + mimeType);
|