/packages/apps/TV/src/com/android/exoplayer/ |
D | MediaSoftwareCodecUtil.java | 56 public static DecoderInfo getSoftwareDecoderInfo(String mimeType, boolean secure) in getSoftwareDecoderInfo() argument 60 getMediaSoftwareCodecInfo(mimeType, secure); in getSoftwareDecoderInfo() 71 getMediaSoftwareCodecInfo(String mimeType, boolean secure) throws DecoderQueryException { in getMediaSoftwareCodecInfo() argument 72 CodecKey key = new CodecKey(mimeType, secure); in getMediaSoftwareCodecInfo() 84 Log.w(TAG, "MediaCodecList API didn't list secure decoder for: " + mimeType in getMediaSoftwareCodecInfo() 104 String mimeType = key.mimeType; in getMediaSoftwareCodecInfoInternal() local 115 if (supportedType.equalsIgnoreCase(mimeType)) { in getMediaSoftwareCodecInfoInternal() 119 key.mimeType, capabilities); in getMediaSoftwareCodecInfoInternal() 123 sSwCodecs.put(key.secure ? new CodecKey(mimeType, false) : key, in getMediaSoftwareCodecInfoInternal() 126 sSwCodecs.put(key.secure ? key : new CodecKey(mimeType, true), in getMediaSoftwareCodecInfoInternal() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/ |
D | DataItem.java | 60 final String mimeType = values.getAsString(Data.MIMETYPE); in createFrom() local 61 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 63 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 65 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 67 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 69 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 71 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 73 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 75 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 77 } else if (Note.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/ |
D | DataItem.java | 57 final String mimeType = values.getAsString(Data.MIMETYPE); in createFrom() local 58 if (GroupMembership.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 60 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 62 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 64 } else if (Email.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 66 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 68 } else if (Im.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 70 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 72 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() 74 } else if (Note.CONTENT_ITEM_TYPE.equals(mimeType)) { in createFrom() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactModifier.java | 90 final int visibleCount = state.getMimeEntriesCount(kind.mimeType, true); in canInsert() 112 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() argument 113 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists() 114 final boolean hasChild = state.getMimeEntriesCount(mimeType, true) > 0; in ensureKindExists() 119 return state.getMimeEntries(mimeType).get(0); in ensureKindExists() 123 if (kind.mimeType.equals(Photo.CONTENT_ITEM_TYPE)) { in ensureKindExists() 194 final List<ValuesDelta> mimeEntries = state.getMimeEntries(kind.mimeType); in getTypeFrequencies() 352 after.put(Data.MIMETYPE, kind.mimeType); in insertChild() 418 final String mimeType = kind.mimeType; in trimEmpty() local 419 final ArrayList<ValuesDelta> entries = state.getMimeEntries(mimeType); in trimEmpty() [all …]
|
D | RawContactDelta.java | 155 public ValuesDelta getPrimaryEntry(String mimeType) { in getPrimaryEntry() argument 156 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false); in getPrimaryEntry() 173 public ValuesDelta getSuperPrimaryEntry(String mimeType) { in getSuperPrimaryEntry() argument 174 return getSuperPrimaryEntry(mimeType, true); in getSuperPrimaryEntry() 183 public ValuesDelta getSuperPrimaryEntry(String mimeType, boolean forceSelection) { in getSuperPrimaryEntry() argument 184 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false); in getSuperPrimaryEntry() 249 private ArrayList<ValuesDelta> getMimeEntries(String mimeType, boolean lazyCreate) { in getMimeEntries() argument 250 ArrayList<ValuesDelta> mimeEntries = mEntries.get(mimeType); in getMimeEntries() 253 mEntries.put(mimeType, mimeEntries); in getMimeEntries() 258 public ArrayList<ValuesDelta> getMimeEntries(String mimeType) { in getMimeEntries() argument [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/print/ |
D | PrintUtils.java | 303 private static String getIconFilename(String mimeType) { in getIconFilename() argument 304 if (mimeType.startsWith("application/msword") || in getIconFilename() 305 mimeType.startsWith("application/vnd.oasis.opendocument.text") || in getIconFilename() 306 mimeType.equals("application/rtf") || in getIconFilename() 307 mimeType.equals("application/" in getIconFilename() 310 } else if (mimeType.startsWith("image/")) { in getIconFilename() 312 } else if (mimeType.startsWith("text/html")) { in getIconFilename() 314 } else if (mimeType.startsWith("application/pdf")) { in getIconFilename() 316 } else if (mimeType.endsWith("powerpoint") || in getIconFilename() 317 mimeType.equals("application/vnd.oasis.opendocument.presentation") || in getIconFilename() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | StubProvider.java | 187 public String createDocument(String parentId, String mimeType, String displayName) in createDocument() argument 190 File file = createFile(parent, mimeType, displayName); in createDocument() 192 final StubDocument document = StubDocument.createRegularDocument(file, mimeType, parent); in createDocument() 314 StubDocument newDoc = StubDocument.createRegularDocument(after, oldDoc.mimeType, in renameDocument() 384 for (final String mimeType : document.streamTypes) { in openTypedDocument() 387 if (mimeType.equals(mimeTypeFilter)) { in openTypedDocument() 540 String mimeType = extras.getString(Document.COLUMN_MIME_TYPE); in dispatchCreateDocumentWithFlags() local 548 documentId = createDocument(rootId, mimeType, name, flags, streamTypes); in dispatchCreateDocumentWithFlags() 573 public String createDocument(String parentId, String mimeType, String displayName, int flags, in createDocument() argument 577 File file = createFile(parent, mimeType, displayName); in createDocument() [all …]
|
D | DocumentsProviderHelper.java | 88 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() argument 93 Uri uri = DocumentsContract.createDocument(mClient, parentUri, mimeType, name); in createDocument() 97 + mimeType, e); in createDocument() 101 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() argument 103 return createDocument(parentUri, mimeType, name); in createDocument() 106 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() argument 107 return createDocument(root.documentId, mimeType, name); in createDocument() 110 public Uri createDocumentWithFlags(String documentId, String mimeType, String name, int flags, in createDocumentWithFlags() argument 116 in.putString(Document.COLUMN_MIME_TYPE, mimeType); in createDocumentWithFlags() 296 RootInfo root, String path, String mimeType, byte[] content, String... streamTypes) in createVirtualFile() argument [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 122 int height, String mimeType) throws IOException { in addImage() argument 124 String path = generateFilepath(title, mimeType); in addImage() 128 path, width, height, mimeType); in addImage() 151 String mimeType) { in addImageToMediaStore() argument 155 height, mimeType); in addImageToMediaStore() 174 String path, int width, int height, String mimeType) { in getContentValuesForData() argument 183 values.put(ImageColumns.MIME_TYPE, mimeType); in getContentValuesForData() 271 byte[] jpeg, int width, int height, String mimeType) throws IOException { in updateImage() argument 272 String path = generateFilepath(title, mimeType); in updateImage() 275 width, height, mimeType); in updateImage() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
D | ContentTypeField.java | 71 private String mimeType = ""; field in ContentTypeField 75 …protected ContentTypeField(String name, String body, String raw, String mimeType, Map<String, Stri… in ContentTypeField() argument 77 this.mimeType = mimeType; in ContentTypeField() 96 return mimeType; in getMimeType() 194 public boolean isMimeType(String mimeType) { in isMimeType() argument 195 return this.mimeType.equalsIgnoreCase(mimeType); in isMimeType() 205 return mimeType.startsWith(TYPE_MULTIPART_PREFIX); in isMultipart() 213 String mimeType = ""; in parse() local 238 mimeType = (type + "/" + parser.getSubType()).toLowerCase(); in parse() 256 return new ContentTypeField(name, body, raw, mimeType, parameters, parseException); in parse()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | EntityDelta.java | 150 public ValuesDelta getPrimaryEntry(String mimeType) { in getPrimaryEntry() argument 151 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false); in getPrimaryEntry() 168 public ValuesDelta getSuperPrimaryEntry(String mimeType) { in getSuperPrimaryEntry() argument 169 return getSuperPrimaryEntry(mimeType, true); in getSuperPrimaryEntry() 178 public ValuesDelta getSuperPrimaryEntry(String mimeType, boolean forceSelection) { in getSuperPrimaryEntry() argument 179 final ArrayList<ValuesDelta> mimeEntries = getMimeEntries(mimeType, false); in getSuperPrimaryEntry() 206 private ArrayList<ValuesDelta> getMimeEntries(String mimeType, boolean lazyCreate) { in getMimeEntries() argument 207 ArrayList<ValuesDelta> mimeEntries = mEntries.get(mimeType); in getMimeEntries() 210 mEntries.put(mimeType, mimeEntries); in getMimeEntries() 215 public ArrayList<ValuesDelta> getMimeEntries(String mimeType) { in getMimeEntries() argument [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 247 public static boolean isSupportedByRegionDecoder(String mimeType) { in isSupportedByRegionDecoder() argument 248 if (mimeType == null) return false; in isSupportedByRegionDecoder() 249 mimeType = mimeType.toLowerCase(); in isSupportedByRegionDecoder() 250 return mimeType.startsWith("image/") && in isSupportedByRegionDecoder() 251 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp")); in isSupportedByRegionDecoder() 254 public static boolean isRotationSupported(String mimeType) { in isRotationSupported() argument 255 if (mimeType == null) return false; in isRotationSupported() 256 mimeType = mimeType.toLowerCase(); in isRotationSupported() 257 return mimeType.equals("image/jpeg"); in isRotationSupported()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
D | BodyDescriptor.java | 35 private String mimeType = "text/plain"; field in BodyDescriptor 58 mimeType = "message/rfc822"; in BodyDescriptor() 60 mimeType = "text/plain"; in BodyDescriptor() 126 mimeType = main; in addField() 321 public boolean isMimeType(String mimeType) { in isMimeType() argument 322 return this.mimeType.equals(mimeType.toLowerCase()); in isMimeType() 329 return mimeType.equals("message/rfc822"); in isMessage() 336 return mimeType.startsWith("multipart/"); in isMultipart() 343 return mimeType; in getMimeType() 390 return mimeType; in toString()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryGridItemData.java | 40 private String mimeType; field in GalleryGridItemData 47 mimeType = Assert.isNotNull(copyData.getMimeType()); in GalleryGridItemData() 56 mimeType = Assert.isNotNull(cursor.getString(INDEX_MIME_TYPE)); in bind() 78 return mimeType; in getMimeType() 84 && Objects.equals(mimeType, ((GalleryGridItemData) obj).mimeType) in equals() 91 return Objects.hash(filePath, mimeType, dateModifiedSeconds); in hashCode() 102 dest.writeString(mimeType); in writeToParcel() 121 mimeType = in.readString(); in GalleryGridItemData()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | MimeType.java | 128 public static String inferMimeType(String name, String mimeType) { in inferMimeType() argument 133 return mimeType; in inferMimeType() 135 final boolean isTextPlain = TEXT_PLAIN.equalsIgnoreCase(mimeType); in inferMimeType() 137 isTextPlain || GENERIC_MIMETYPE.equalsIgnoreCase(mimeType); in inferMimeType() 140 if (isGenericType || TextUtils.isEmpty(mimeType)) { in inferMimeType() 150 return !TextUtils.isEmpty(mimeType) ? mimeType : GENERIC_MIMETYPE; in inferMimeType() 161 public static boolean isEmlMimeType(String mimeType) { in isEmlMimeType() argument 162 return EML_ATTACHMENT_CONTENT_TYPES.contains(mimeType); in isEmlMimeType()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | RawContactEditorView.java | 597 : " dropped uneditable mimetype: " + dataKind.mimeType)); in parseRawContactDelta() 601 final String mimeType = dataKind.mimeType; in parseRawContactDelta() local 604 if (DataKind.PSEUDO_MIME_TYPE_NAME.equals(mimeType) || in parseRawContactDelta() 605 DataKind.PSEUDO_MIME_TYPE_PHONETIC_NAME.equals(mimeType)) { in parseRawContactDelta() 607 Log.v(TAG, "parse: " + i + " " + dataKind.mimeType + " dropped pseudo type"); in parseRawContactDelta() 614 if (CustomDataItem.MIMETYPE_CUSTOM_FIELD.equals(mimeType)) { in parseRawContactDelta() 616 Log.v(TAG, "parse: " + i + " " + dataKind.mimeType + " dropped custom field"); in parseRawContactDelta() 623 mKindSectionDataMap.put(mimeType, kindSectionData); in parseRawContactDelta() 624 mSortedMimetypes.add(mimeType); in parseRawContactDelta() 627 Log.v(TAG, "parse: " + i + " " + dataKind.mimeType + " " + in parseRawContactDelta() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 201 String contentDisposition, String contentLocation, String mimeType, int destination) in generateSaveFile() argument 229 if (DownloadDrmHelper.isDrmConvertNeeded(mimeType)) { in generateSaveFile() 251 suffix = chooseExtensionFromMimeType(mimeType, true); in generateSaveFile() 254 suffix = chooseExtensionFromFilename(mimeType, destination, name, dotIndex); in generateSaveFile() 348 private static String chooseExtensionFromMimeType(String mimeType, boolean useDefaults) { in chooseExtensionFromMimeType() argument 350 if (mimeType != null) { in chooseExtensionFromMimeType() 351 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in chooseExtensionFromMimeType() 359 Log.v(Constants.TAG, "couldn't find extension for " + mimeType); in chooseExtensionFromMimeType() 364 if (mimeType != null && mimeType.toLowerCase().startsWith("text/")) { in chooseExtensionFromMimeType() 365 if (mimeType.equalsIgnoreCase("text/html")) { in chooseExtensionFromMimeType() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | DocumentInfo.java | 56 public String mimeType; field in DocumentInfo 75 mimeType = null; in reset() 94 mimeType = DurableUtils.readNullableString(in); in read() 113 DurableUtils.writeNullableString(out, mimeType); in write() 162 this.mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); in updateFromCursor() 216 + ", mimeType=" + mimeType in toString() 235 return Document.MIME_TYPE_DIR.equals(mimeType); in isDirectory() 255 return ArchivesProvider.isSupportedArchiveType(mimeType); in isArchive() 281 return derivedUri.hashCode() + mimeType.hashCode(); in hashCode() 298 && Objects.equals(mimeType, other.mimeType); in equals()
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
D | MessageTestUtils.java | 77 public static BodyPart bodyPart(String mimeType, String contentId) throws MessagingException { in bodyPart() argument 78 final MimeBodyPart bp = new MimeBodyPart(null, mimeType); in bodyPart() 93 public static BodyPart textPart(String mimeType, String text) throws MessagingException { in textPart() argument 96 textPart.setHeader(MimeHeader.HEADER_CONTENT_TYPE, mimeType); in textPart() 116 public MultipartBuilder(String mimeType) { in MultipartBuilder() argument 117 this(mimeType, "this_is_boundary"); in MultipartBuilder() 126 public MultipartBuilder(String mimeType, String boundary) { in MultipartBuilder() argument 127 mContentType = mimeType + "; boundary=" + boundary; in MultipartBuilder()
|
/packages/apps/StorageManager/src/com/android/storagemanager/utils/ |
D | IconProvider.java | 42 public Drawable loadMimeIcon(String mimeType) { in loadMimeIcon() argument 43 return mContext.getContentResolver().getTypeDrawable(mimeType); in loadMimeIcon() 51 final String mimeType = in getMimeType() local 53 if (mimeType != null) { in getMimeType() 54 return mimeType; in getMimeType() 61 String mimeType = getMimeType(file); in isImageType() local 62 return mimeType.startsWith("image/"); in isImageType()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
D | MimeUtility.java | 220 String mimeType = part.getMimeType(); in getTextFromPart() local 221 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) { in getTextFromPart() 280 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { in mimeTypeMatches() argument 282 return p.matcher(mimeType).matches(); in mimeTypeMatches() 294 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { in mimeTypeMatches() argument 296 if (mimeTypeMatches(mimeType, matchType)) { in mimeTypeMatches() 363 String mimeType = part.getMimeType().toLowerCase(); in collectParts() local 393 } else if (inline && (mimeType.startsWith("text") || (mimeType.startsWith("image")))) { in collectParts()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeUtility.java | 229 String mimeType = part.getMimeType(); in getTextFromPart() local 230 if (mimeType != null && MimeUtility.mimeTypeMatches(mimeType, "text/*")) { in getTextFromPart() 291 public static boolean mimeTypeMatches(String mimeType, String matchAgainst) { in mimeTypeMatches() argument 294 return p.matcher(mimeType).matches(); in mimeTypeMatches() 306 public static boolean mimeTypeMatches(String mimeType, String[] matchAgainst) { in mimeTypeMatches() argument 308 if (mimeTypeMatches(mimeType, matchType)) { in mimeTypeMatches() 379 String mimeType = part.getMimeType().toLowerCase(); in collectParts() local 409 } else if (inline && (mimeType.startsWith("text") || (mimeType.startsWith("image")))) { in collectParts()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ResolveCache.java | 124 protected Entry getEntry(String mimeType, Intent intent) { in getEntry() argument 125 Entry entry = mCache.get(mimeType); in getEntry() 129 if (SipAddress.CONTENT_ITEM_TYPE.equals(mimeType) in getEntry() 155 mCache.put(mimeType, entry); in getEntry() 200 public boolean hasResolve(String mimeType, Intent intent) { in hasResolve() argument 201 return getEntry(mimeType, intent).bestResolve != null; in hasResolve() 209 public Drawable getIcon(String mimeType, Intent intent) { in getIcon() argument 210 return getEntry(mimeType, intent).icon; in getIcon()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | BeamTransferManager.java | 231 public void finishTransfer(boolean success, Uri uri, String mimeType) { in finishTransfer() argument 237 if (DBG) Log.d(TAG, "Transfer success, uri " + uri + " mimeType " + mimeType); in finishTransfer() 239 if (mimeType == null) { in finishTransfer() 240 mimeType = MimeTypeUtil.getMimeTypeForUri(mContext, uri); in finishTransfer() 242 if (mimeType != null) { in finishTransfer() 244 mTransferMimeTypes.add(mimeType); in finishTransfer() 413 String mimeType = mTransferMimeTypes.get(i); in processFiles() local 426 mMimeTypes.put(dstFile.getAbsolutePath(), mimeType); in processFiles() local 436 String mimeType = mMimeTypes.get(mPaths.get(0)); in processFiles() local 437 if (mimeType.startsWith("image/") || mimeType.startsWith("video/") || in processFiles() [all …]
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstallerMain.java | 123 private void startInstallActivity(String mimeType, Uri uri) { in startInstallActivity() argument 124 if (mimeType == null) { in startInstallActivity() 125 mimeType = getContentResolver().getType(uri); in startInstallActivity() 128 String target = MIME_MAPPINGS.get(mimeType); in startInstallActivity() 130 throw new IllegalArgumentException("Unknown MIME type: " + mimeType); in startInstallActivity() 134 startWifiInstallActivity(mimeType, uri); in startInstallActivity() 160 private void startWifiInstallActivity(String mimeType, Uri uri) { in startWifiInstallActivity() argument 167 intent.putExtra(WIFI_CONFIG, mimeType); in startWifiInstallActivity()
|