Home
last modified time | relevance | path

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

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDocumentClipper.java130 final String[] mimeTypes = getMimeTypes(resolver, docs); in getClipDataForDocuments() local
137 clipData = new ClipData(label, mimeTypes, new ClipData.Item(doc.derivedUri)); in getClipDataForDocuments()
147 final HashSet<String> mimeTypes = new HashSet<>(); in getMimeTypes() local
153 mimeTypes.add(resolver.getType(uri)); in getMimeTypes()
156 mimeTypes.addAll(Arrays.asList(streamTypes)); in getMimeTypes()
160 return mimeTypes.toArray(new String[0]); in getMimeTypes()
/frameworks/base/core/java/android/content/
DClipData.java645 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument
646 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData()
739 String[] mimeTypes = null; in newUri() local
742 mimeTypes = resolver.getStreamTypes(uri, "*/*"); in newUri()
744 if (mimeTypes == null) { in newUri()
745 mimeTypes = new String[] { realType }; in newUri()
747 String[] tmp = new String[mimeTypes.length + 1]; in newUri()
749 System.arraycopy(mimeTypes, 0, tmp, 1, mimeTypes.length); in newUri()
750 mimeTypes = tmp; in newUri()
754 if (mimeTypes == null) { in newUri()
[all …]
DClipDescription.java101 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() argument
102 if (mimeTypes == null) { in ClipDescription()
106 mMimeTypes = mimeTypes; in ClipDescription()
DIntent.java965 String[] mimeTypes; in createChooser() local
967 mimeTypes = new String[] { target.getType() }; in createChooser()
969 mimeTypes = new String[] { }; in createChooser()
971 targetClipData = new ClipData(null, mimeTypes, item); in createChooser()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java91 public String mimeTypes; field in RootInfo
112 mimeTypes = null; in reset()
132 mimeTypes = DurableUtils.readNullableString(in); in read()
151 DurableUtils.writeNullableString(out, mimeTypes); in write()
188 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES); in fromRootsCursor()
194 derivedMimeTypes = (mimeTypes != null) ? mimeTypes.split("\n") : null; in deriveFields()
/frameworks/base/media/java/android/media/
DMediaScannerConnection.java188 ClientProxy(String[] paths, String[] mimeTypes, OnScanCompletedListener client) { in ClientProxy() argument
190 mMimeTypes = mimeTypes; in ClientProxy()
233 public static void scanFile(Context context, String[] paths, String[] mimeTypes, in scanFile() argument
235 ClientProxy client = new ClientProxy(paths, mimeTypes, callback); in scanFile()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DRootsCacheTest.java164 private static RootInfo buildForMimeTypes(String... mimeTypes) { in buildForMimeTypes() argument
166 root.derivedMimeTypes = mimeTypes; in buildForMimeTypes()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java759 final ArrayList<String> mimeTypes = new ArrayList<>(); in shareDocuments() local
762 mimeTypes.add(doc.mimeType); in shareDocuments()
766 intent.setType(findCommonMimeType(mimeTypes)); in shareDocuments()
1007 private String findCommonMimeType(List<String> mimeTypes) { in findCommonMimeType() argument
1008 String[] commonType = mimeTypes.get(0).split("/"); in findCommonMimeType()
1013 for (int i = 1; i < mimeTypes.size(); i++) { in findCommonMimeType()
1014 String[] type = mimeTypes.get(i).split("/"); in findCommonMimeType()