Home
last modified time | relevance | path

Searched refs:mimeTypes (Results 1 – 22 of 22) 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()
DClipData.java769 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument
770 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData()
901 String[] mimeTypes = getMimeTypes(resolver, uri); in newUri() local
902 return new ClipData(label, mimeTypes, item); in newUri()
913 String[] mimeTypes = null; in getMimeTypes() local
916 mimeTypes = resolver.getStreamTypes(uri, "*/*"); in getMimeTypes()
918 if (mimeTypes == null) { in getMimeTypes()
919 mimeTypes = new String[] { realType }; in getMimeTypes()
920 } else if (!ArrayUtils.contains(mimeTypes, realType)) { in getMimeTypes()
921 String[] tmp = new String[mimeTypes.length + 1]; in getMimeTypes()
[all …]
DClipDescription.java167 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() argument
168 if (mimeTypes == null) { in ClipDescription()
172 mMimeTypes = new ArrayList<String>(Arrays.asList(mimeTypes)); in ClipDescription()
319 void addMimeTypes(String[] mimeTypes) { in addMimeTypes() argument
320 for (int i=0; i!=mimeTypes.length; i++) { in addMimeTypes()
321 final String mimeType = mimeTypes[i]; in addMimeTypes()
DIntent.java1054 String[] mimeTypes; in createChooser() local
1056 mimeTypes = new String[] { target.getType() }; in createChooser()
1058 mimeTypes = new String[] { }; in createChooser()
1060 targetClipData = new ClipData(null, mimeTypes, item); in createChooser()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSetting.java232 ArraySet<String> mimeTypes = newMimeGroups.get(mimeGroup);
234 if (mimeTypes != null) {
235 mimeGroups.put(mimeGroup, new ArraySet<>(mimeTypes));
330 public boolean setMimeGroup(String mimeGroup, List<String> mimeTypes) {
337 ArraySet<String> newMimeTypes = new ArraySet<>(mimeTypes);
344 ArraySet<String> mimeTypes = getMimeGroupInternal(mimeGroup);
345 if (mimeTypes == null) {
349 return new ArrayList<>(mimeTypes);
DComponentResolver.java1336 List<String> mimeTypes = sPackageManagerInternal.getMimeGroup( in applyMimeGroups() local
1339 for (int typeIndex = mimeTypes.size() - 1; typeIndex >= 0; typeIndex--) { in applyMimeGroups()
1340 String mimeType = mimeTypes.get(typeIndex); in applyMimeGroups()
DSettings.java3811 ArraySet<String> mimeTypes = mimeGroups.get(groupName);
3812 if (mimeTypes == null) {
3813 mimeTypes = new ArraySet<>();
3814 mimeGroups.put(groupName, mimeTypes);
3828 mimeTypes.add(typeName);
DPackageManagerService.java28669 public void setMimeGroup(String packageName, String mimeGroup, List<String> mimeTypes) {
28673 changed = mSettings.getPackageLPr(packageName).setMimeGroup(mimeGroup, mimeTypes);
/frameworks/base/media/java/android/media/
DMediaScannerConnection.java181 public static void scanFile(Context context, String[] paths, String[] mimeTypes, in scanFile() argument
236 ClientProxy(String[] paths, String[] mimeTypes, OnScanCompletedListener client) { in ClientProxy() argument
238 mMimeTypes = mimeTypes; in ClientProxy()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragAndDropController.java245 String mimeTypes = "";
248 mimeTypes += ", ";
250 mimeTypes += description.getMimeType(i);
252 return mimeTypes;
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewReceiveContentTest.java93 String[] mimeTypes = {"image/gif", "image/png"}; in testGetFallbackMimeTypesForAutofill() local
94 mEditText.setContentMimeTypes(mimeTypes); in testGetFallbackMimeTypesForAutofill()
103 mimeTypes); in testGetFallbackMimeTypesForAutofill()
/frameworks/av/drm/drmserver/
DDrmManager.cpp155 std::vector<std::string> mimeTypes(metrics.mMimeTypes.begin(), metrics.mMimeTypes.end()); in flushEngineMetrics() local
156 std::string mimeTypesStr(mimeTypes.empty() ? "" : mimeTypes[0]); in flushEngineMetrics()
157 for (size_t i = 1; i < mimeTypes.size() ; i++) { in flushEngineMetrics()
158 mimeTypesStr.append(",").append(mimeTypes[i]); in flushEngineMetrics()
/frameworks/base/core/java/android/view/
DViewStructure.java382 @SuppressLint("NullableCollection") @Nullable String[] mimeTypes) {} in setReceiveContentMimeTypes()
DView.java9089 @SuppressLint("NullableCollection") @Nullable String[] mimeTypes,
9092 Preconditions.checkArgument(mimeTypes != null && mimeTypes.length > 0,
9095 if (mimeTypes != null) {
9096 Preconditions.checkArgument(Arrays.stream(mimeTypes).noneMatch(t -> t.startsWith("*")),
9097 "A MIME type set here must not start with *: " + Arrays.toString(mimeTypes));
9099 mReceiveContentMimeTypes = ArrayUtils.isEmpty(mimeTypes) ? null : mimeTypes;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java897 void setSupportedMimeTypes(@Nullable Collection<String> mimeTypes) { in setSupportedMimeTypes() argument
900 if (mimeTypes != null && !mimeTypes.isEmpty()) { in setSupportedMimeTypes()
901 types = mimeTypes.toArray(new String[0]); in setSupportedMimeTypes()
906 mSupportedMimes.addAll(mimeTypes); in setSupportedMimeTypes()
/frameworks/base/core/java/android/app/
DDownloadManager.java1094 final String[] mimeTypes = new String[idToMime.size()];
1097 mimeTypes[i] = idToMime.valueAt(i);
1101 mimeTypes);
DApplicationPackageManager.java3433 public void setMimeGroup(String mimeGroup, Set<String> mimeTypes) { in setMimeGroup() argument
3435 mPM.setMimeGroup(mContext.getPackageName(), mimeGroup, new ArrayList<>(mimeTypes)); in setMimeGroup()
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java2171 public void setReceiveContentMimeTypes(@Nullable String[] mimeTypes) { in setReceiveContentMimeTypes() argument
2172 mNode.mReceiveContentMimeTypes = mimeTypes; in setReceiveContentMimeTypes()
2452 String[] mimeTypes = node.getReceiveContentMimeTypes(); in dump() local
2453 if (mimeTypes != null) { in dump()
2454 Log.i(TAG, prefix + " MIME types: " + Arrays.toString(mimeTypes)); in dump()
/frameworks/base/core/java/android/view/contentcapture/
DViewNode.java932 public void setReceiveContentMimeTypes(@Nullable String[] mimeTypes) { in setReceiveContentMimeTypes() argument
933 mNode.mReceiveContentMimeTypes = mimeTypes; in setReceiveContentMimeTypes()
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl792 void setMimeGroup(String packageName, String group, in List<String> mimeTypes); in setMimeGroup() argument
DPackageManager.java8939 public void setMimeGroup(@NonNull String mimeGroup, @NonNull Set<String> mimeTypes) { in setMimeGroup() argument
/frameworks/base/core/java/android/widget/
DTextView.java11770 String[] mimeTypes = getReceiveContentMimeTypes(); in onProvideStructure() local
11771 if (mimeTypes == null && mEditor != null) { in onProvideStructure()
11778 mimeTypes = mEditor.getDefaultOnReceiveContentListener() in onProvideStructure()
11781 structure.setReceiveContentMimeTypes(mimeTypes); in onProvideStructure()