Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/
DClipData.java621 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument
622 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData()
715 String[] mimeTypes = null; in newUri() local
718 mimeTypes = resolver.getStreamTypes(uri, "*/*"); in newUri()
719 if (mimeTypes == null) { in newUri()
721 mimeTypes = new String[] { realType, ClipDescription.MIMETYPE_TEXT_URILIST }; in newUri()
724 String[] tmp = new String[mimeTypes.length + (realType != null ? 2 : 1)]; in newUri()
730 System.arraycopy(mimeTypes, 0, tmp, i, mimeTypes.length); in newUri()
731 tmp[i + mimeTypes.length] = ClipDescription.MIMETYPE_TEXT_URILIST; in newUri()
732 mimeTypes = tmp; in newUri()
[all …]
DClipDescription.java71 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() argument
72 if (mimeTypes == null) { in ClipDescription()
76 mMimeTypes = mimeTypes; in ClipDescription()
DIntent.java926 String[] mimeTypes; in createChooser() local
928 mimeTypes = new String[] { target.getType() }; in createChooser()
930 mimeTypes = new String[] { }; in createChooser()
932 targetClipData = new ClipData(null, mimeTypes, item); in createChooser()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java55 public String mimeTypes; field in RootInfo
76 mimeTypes = null; in reset()
96 mimeTypes = DurableUtils.readNullableString(in); in read()
115 DurableUtils.writeNullableString(out, mimeTypes); in write()
152 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES); in fromRootsCursor()
158 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.java31 private static RootInfo buildForMimeTypes(String... mimeTypes) { in buildForMimeTypes() argument
33 root.derivedMimeTypes = mimeTypes; in buildForMimeTypes()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDirectoryFragment.java570 final ArrayList<String> mimeTypes = Lists.newArrayList(); in onShareDocuments() local
573 mimeTypes.add(doc.mimeType); in onShareDocuments()
577 intent.setType(findCommonMimeType(mimeTypes)); in onShareDocuments()
1080 private String findCommonMimeType(List<String> mimeTypes) { in findCommonMimeType() argument
1081 String[] commonType = mimeTypes.get(0).split("/"); in findCommonMimeType()
1086 for (int i = 1; i < mimeTypes.size(); i++) { in findCommonMimeType()
1087 String[] type = mimeTypes.get(i).split("/"); in findCommonMimeType()