Home
last modified time | relevance | path

Searched refs:mimeTypes (Results 1 – 11 of 11) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java94 public String mimeTypes; field in RootInfo
118 mimeTypes = null; in reset()
139 mimeTypes = DurableUtils.readNullableString(in); in read()
158 DurableUtils.writeNullableString(out, mimeTypes); in write()
195 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES); in fromRootsCursor()
201 derivedMimeTypes = (mimeTypes != null) ? mimeTypes.split("\n") : null; in deriveFields()
DMimeTypes.java49 public static String findCommonMimeType(List<String> mimeTypes) { in findCommonMimeType() argument
50 String[] commonType = splitMimeType(mimeTypes.get(0)); in findCommonMimeType()
55 for (int i = 1; i < mimeTypes.size(); i++) { in findCommonMimeType()
56 String[] type = mimeTypes.get(i).split("/"); in findCommonMimeType()
DDocumentInfo.java364 public static void addMimeTypes(ContentResolver resolver, Uri uri, Set<String> mimeTypes) { in addMimeTypes() argument
367 mimeTypes.add(resolver.getType(uri)); in addMimeTypes()
370 mimeTypes.addAll(Arrays.asList(streamTypes)); in addMimeTypes()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java277 final String[] mimeTypes = contentResolver.getStreamTypes(contentUri, "*/*"); in generateLocalAttachment() local
278 if (mimeTypes != null && mimeTypes.length > 0) { in generateLocalAttachment()
279 attachment.virtualMimeType = mimeTypes[0]; in generateLocalAttachment()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DGalleryBoundCursorLoader.java45 private static String createSelection(final String[] mimeTypes, Integer[] mediaTypes) { in createSelection() argument
46 return Media.MIME_TYPE + " IN ('" + Joiner.on("','").join(mimeTypes) + "') AND " in createSelection()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/
DProvidersCacheTest.java165 private static RootInfo buildForMimeTypes(String... mimeTypes) { in buildForMimeTypes() argument
167 root.derivedMimeTypes = mimeTypes; in buildForMimeTypes()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstallerMain.java107 final String[] mimeTypes = MIME_MAPPINGS.keySet().toArray(new String[0]); in onCreate() local
110 openIntent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes); in onCreate()
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java616 List<String> mimeTypes = new ArrayList<>(); in getVoicemailPayloadFromMessage() local
620 mimeTypes.add(bodyPartMimeType); in getVoicemailPayloadFromMessage()
627 LogUtils.e(TAG, "No audio attachment found on this voicemail, mimeTypes:" + mimeTypes); in getVoicemailPayloadFromMessage()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java364 final ArrayList<String> mimeTypes = new ArrayList<>(); in shareSelectedDocuments() local
367 mimeTypes.add(doc.mimeType); in shareSelectedDocuments()
371 intent.setType(MimeTypes.findCommonMimeType(mimeTypes)); in shareSelectedDocuments()
/packages/apps/ExactCalculator/src/com/android/calculator2/
DCalculatorResult.java1143 String[] mimeTypes = new String[] {ClipDescription.MIMETYPE_TEXT_PLAIN}; in copyContent() local
1144 ClipData cd = new ClipData("calculator result", mimeTypes, newItem); in copyContent()
/packages/apps/Browser2/test/webexposed/
Dglobal-interface-listing-expected.txt2915 getter mimeTypes