Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/
DMimeTypeFilter.java116 @Nullable String[] mimeTypes, @NonNull String filter) { in matches()
117 if (mimeTypes == null) { in matches()
122 for (String mimeType : mimeTypes) { in matches()
138 @Nullable String[] mimeTypes, @NonNull String filter) { in matchesMany()
139 if (mimeTypes == null) { in matchesMany()
145 for (String mimeType : mimeTypes) { in matchesMany()
DClipDescription.java105 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() argument
106 if (mimeTypes == null) { in ClipDescription()
110 mMimeTypes = new ArrayList<String>(Arrays.asList(mimeTypes)); in ClipDescription()
239 void addMimeTypes(String[] mimeTypes) { in addMimeTypes() argument
240 for (int i=0; i!=mimeTypes.length; i++) { in addMimeTypes()
241 final String mimeType = mimeTypes[i]; in addMimeTypes()
DClipData.java711 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument
712 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData()
823 String[] mimeTypes = getMimeTypes(resolver, uri); in newUri() local
824 return new ClipData(label, mimeTypes, item); in newUri()
835 String[] mimeTypes = null; in getMimeTypes() local
838 mimeTypes = resolver.getStreamTypes(uri, "*/*"); in getMimeTypes()
840 if (mimeTypes == null) { in getMimeTypes()
841 mimeTypes = new String[] { realType }; in getMimeTypes()
842 } else if (!ArrayUtils.contains(mimeTypes, realType)) { in getMimeTypes()
843 String[] tmp = new String[mimeTypes.length + 1]; in getMimeTypes()
[all …]
DIntent.java1016 String[] mimeTypes; in createChooser() local
1018 mimeTypes = new String[] { target.getType() }; in createChooser()
1020 mimeTypes = new String[] { }; in createChooser()
1022 targetClipData = new ClipData(null, mimeTypes, item); in createChooser()
/frameworks/base/media/java/android/media/
DMediaScannerConnection.java192 ClientProxy(String[] paths, String[] mimeTypes, OnScanCompletedListener client) { in ClientProxy() argument
194 mMimeTypes = mimeTypes; in ClientProxy()
238 public static void scanFile(Context context, String[] paths, String[] mimeTypes, in scanFile() argument
240 ClientProxy client = new ClientProxy(paths, mimeTypes, callback); in scanFile()