Home
last modified time | relevance | path

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

/frameworks/support/core-utils/java/android/support/v4/content/
DMimeTypeFilter.java112 @Nullable String[] mimeTypes, @NonNull String filter) { in matches()
113 if (mimeTypes == null) { in matches()
118 for (String mimeType : mimeTypes) { in matches()
133 @Nullable String[] mimeTypes, @NonNull String filter) { in matchesMany()
134 if (mimeTypes == null) { in matchesMany()
140 for (String mimeType : mimeTypes) { in matchesMany()
/frameworks/base/core/java/android/content/
DClipDescription.java104 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() argument
105 if (mimeTypes == null) { in ClipDescription()
109 mMimeTypes = new ArrayList<String>(Arrays.asList(mimeTypes)); in ClipDescription()
238 void addMimeTypes(String[] mimeTypes) { in addMimeTypes() argument
239 for (int i=0; i!=mimeTypes.length; i++) { in addMimeTypes()
240 final String mimeType = mimeTypes[i]; in addMimeTypes()
DClipData.java676 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument
677 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData()
788 String[] mimeTypes = getMimeTypes(resolver, uri); in newUri() local
789 return new ClipData(label, mimeTypes, item); in newUri()
800 String[] mimeTypes = null; in getMimeTypes() local
803 mimeTypes = resolver.getStreamTypes(uri, "*/*"); in getMimeTypes()
805 if (mimeTypes == null) { in getMimeTypes()
806 mimeTypes = new String[] { realType }; in getMimeTypes()
807 } else if (!ArrayUtils.contains(mimeTypes, realType)) { in getMimeTypes()
808 String[] tmp = new String[mimeTypes.length + 1]; in getMimeTypes()
[all …]
DIntent.java996 String[] mimeTypes; in createChooser() local
998 mimeTypes = new String[] { target.getType() }; in createChooser()
1000 mimeTypes = new String[] { }; in createChooser()
1002 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()
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/view/inputmethod/
DCommitContentSupport.java200 final String[] mimeTypes; // our own copy of contentMimeTypes. in createEditTextWithContentMimeTypes() local
203 mimeTypes = new String[0]; in createEditTextWithContentMimeTypes()
206 mimeTypes = Arrays.copyOf(contentMimeTypes, contentMimeTypes.length); in createEditTextWithContentMimeTypes()
212 EditorInfoCompat.setContentMimeTypes(editorInfo, mimeTypes); in createEditTextWithContentMimeTypes()
219 inputContentInfo, flags, opts, mimeTypes); in createEditTextWithContentMimeTypes()