Searched refs:mimeTypes (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/java/android/content/ |
D | ClipData.java | 638 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument 639 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData() 732 String[] mimeTypes = null; in newUri() local 735 mimeTypes = resolver.getStreamTypes(uri, "*/*"); in newUri() 736 if (mimeTypes == null) { in newUri() 738 mimeTypes = new String[] { realType, ClipDescription.MIMETYPE_TEXT_URILIST }; in newUri() 741 String[] tmp = new String[mimeTypes.length + (realType != null ? 2 : 1)]; in newUri() 747 System.arraycopy(mimeTypes, 0, tmp, i, mimeTypes.length); in newUri() 748 tmp[i + mimeTypes.length] = ClipDescription.MIMETYPE_TEXT_URILIST; in newUri() 749 mimeTypes = tmp; in newUri() [all …]
|
D | ClipDescription.java | 71 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() argument 72 if (mimeTypes == null) { in ClipDescription() 76 mMimeTypes = mimeTypes; in ClipDescription()
|
D | Intent.java | 928 String[] mimeTypes; in createChooser() local 930 mimeTypes = new String[] { target.getType() }; in createChooser() 932 mimeTypes = new String[] { }; in createChooser() 934 targetClipData = new ClipData(null, mimeTypes, item); in createChooser()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
D | RootInfo.java | 55 public String mimeTypes; field in RootInfo 75 mimeTypes = null; in reset() 94 mimeTypes = DurableUtils.readNullableString(in); in read() 113 DurableUtils.writeNullableString(out, mimeTypes); in write() 150 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES); in fromRootsCursor() 156 derivedMimeTypes = (mimeTypes != null) ? mimeTypes.split("\n") : null; in deriveFields()
|
/frameworks/base/media/java/android/media/ |
D | MediaScannerConnection.java | 188 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/ |
D | RootsCacheTest.java | 31 private static RootInfo buildForMimeTypes(String... mimeTypes) { in buildForMimeTypes() argument 33 root.derivedMimeTypes = mimeTypes; in buildForMimeTypes()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryFragment.java | 636 final ArrayList<String> mimeTypes = Lists.newArrayList(); in onShareDocuments() local 639 mimeTypes.add(doc.mimeType); in onShareDocuments() 643 intent.setType(findCommonMimeType(mimeTypes)); in onShareDocuments() 1167 private String findCommonMimeType(List<String> mimeTypes) { in findCommonMimeType() argument 1168 String[] commonType = mimeTypes.get(0).split("/"); in findCommonMimeType() 1173 for (int i = 1; i < mimeTypes.size(); i++) { in findCommonMimeType() 1174 String[] type = mimeTypes.get(i).split("/"); in findCommonMimeType()
|