Home
last modified time | relevance | path

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

12

/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.java871 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() argument
872 mClipDescription = new ClipDescription(label, mimeTypes); in ClipData()
1003 String[] mimeTypes = getMimeTypes(resolver, uri); in newUri() local
1004 return new ClipData(label, mimeTypes, item); in newUri()
1015 String[] mimeTypes = null; in getMimeTypes() local
1018 mimeTypes = resolver.getStreamTypes(uri, "*/*"); in getMimeTypes()
1020 if (mimeTypes == null) { in getMimeTypes()
1021 mimeTypes = new String[] { realType }; in getMimeTypes()
1022 } else if (!ArrayUtils.contains(mimeTypes, realType)) { in getMimeTypes()
1023 String[] tmp = new String[mimeTypes.length + 1]; in getMimeTypes()
[all …]
DClipDescription.java205 public ClipDescription(CharSequence label, String[] mimeTypes) { in ClipDescription() argument
206 if (mimeTypes == null) { in ClipDescription()
210 mMimeTypes = new ArrayList<String>(Arrays.asList(mimeTypes)); in ClipDescription()
357 void addMimeTypes(String[] mimeTypes) { in addMimeTypes() argument
358 for (int i=0; i!=mimeTypes.length; i++) { in addMimeTypes()
359 final String mimeType = mimeTypes[i]; in addMimeTypes()
DIntent.java1081 String[] mimeTypes; in createChooser() local
1083 mimeTypes = new String[] { target.getType() }; in createChooser()
1085 mimeTypes = new String[] { }; in createChooser()
1087 targetClipData = new ClipData(null, mimeTypes, item); in createChooser()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragUtils.java99 String mimeTypes = ""; in getMimeTypesConcatenated() local
102 mimeTypes += ", "; in getMimeTypesConcatenated()
104 mimeTypes += description.getMimeType(i); in getMimeTypesConcatenated()
106 return mimeTypes; in getMimeTypesConcatenated()
/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/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/base/services/core/java/com/android/server/pm/pkg/mutate/
DPackageStateWrite.java44 PackageStateWrite setMimeGroup(@NonNull String mimeGroup, @NonNull ArraySet<String> mimeTypes); in setMimeGroup() argument
DPackageStateMutator.java242 @NonNull ArraySet<String> mimeTypes) { in setMimeGroup() argument
244 mState.setMimeGroup(mimeGroup, mimeTypes); in setMimeGroup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java581 public void setSupportedMimeTypes(Collection<String> mimeTypes) { in setSupportedMimeTypes() argument
582 mEditText.setSupportedMimeTypes(mimeTypes); in setSupportedMimeTypes()
972 void setSupportedMimeTypes(@Nullable Collection<String> mimeTypes) { in setSupportedMimeTypes() argument
975 if (mimeTypes != null && !mimeTypes.isEmpty()) { in setSupportedMimeTypes()
976 types = mimeTypes.toArray(new String[0]); in setSupportedMimeTypes()
981 mSupportedMimes.addAll(mimeTypes); in setSupportedMimeTypes()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DDragAndDropTargetState.kt38 import androidx.compose.ui.draganddrop.mimeTypes in <lambda>()
107 startEvent.mimeTypes().any { it == ClipDescription.MIMETYPE_TEXT_INTENT } in dragAndDropTarget()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayUtilsTest.java192 private static ClipData constructClipData(String[] mimeTypes, ClipData.Item item, in constructClipData() argument
194 ClipDescription description = new ClipDescription("Test", mimeTypes); in constructClipData()
/frameworks/av/drm/mediadrm/plugins/clearkey/aidl/
DDrmFactory.cpp89 schemes.mimeTypes.push_back({mime, minLevel, maxLevel}); in getSupportedCryptoSchemes()
/frameworks/av/drm/drmserver/
DDrmManager.cpp156 std::vector<std::string> mimeTypes(metrics.mMimeTypes.begin(), metrics.mMimeTypes.end()); in flushEngineMetrics() local
157 std::string mimeTypesStr(mimeTypes.empty() ? "" : mimeTypes[0]); in flushEngineMetrics()
158 for (size_t i = 1; i < mimeTypes.size() ; i++) { in flushEngineMetrics()
159 mimeTypesStr.append(",").append(mimeTypes[i]); in flushEngineMetrics()
/frameworks/base/core/java/android/view/
DViewStructure.java480 @SuppressLint("NullableCollection") @Nullable String[] mimeTypes) {} in setReceiveContentMimeTypes()
DView.java9888 @SuppressLint("NullableCollection") @Nullable String[] mimeTypes,
9891 Preconditions.checkArgument(mimeTypes != null && mimeTypes.length > 0,
9894 if (mimeTypes != null) {
9895 Preconditions.checkArgument(Arrays.stream(mimeTypes).noneMatch(t -> t.startsWith("*")),
9896 "A MIME type set here must not start with *: " + Arrays.toString(mimeTypes));
9898 mReceiveContentMimeTypes = ArrayUtils.isEmpty(mimeTypes) ? null : mimeTypes;
/frameworks/base/services/core/java/com/android/server/media/metrics/
DMediaMetricsManagerService.java776 private static String getFilteredFirstMimeType(List<String> mimeTypes, String prefix) { in getFilteredFirstMimeType() argument
777 int size = mimeTypes.size(); in getFilteredFirstMimeType()
779 String mimeType = mimeTypes.get(i); in getFilteredFirstMimeType()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSetting.java580 Set<String> mimeTypes = newMimeGroups.get(mimeGroup);
582 if (mimeTypes != null) {
583 mimeGroups.put(mimeGroup, new ArraySet<>(mimeTypes));
1586 public PackageSetting addMimeTypes(String mimeGroup, Set<String> mimeTypes) {
1596 existingMimeTypes.addAll(mimeTypes);
DPackageManagerService.java6240 public void setMimeGroup(String packageName, String mimeGroup, List<String> mimeTypes) { in setMimeGroup() argument
6243 mimeTypes = CollectionUtils.emptyIfNull(mimeTypes); in setMimeGroup()
6244 for (int i = 0; i < mimeTypes.size(); i++) { in setMimeGroup()
6245 if (mimeTypes.get(i).length() > 255) { in setMimeGroup()
6255 if (existingMimeTypes.size() == mimeTypes.size() in setMimeGroup()
6256 && existingMimeTypes.containsAll(mimeTypes)) { in setMimeGroup()
6259 if (mimeTypes.size() > 500) { in setMimeGroup()
6264 ArraySet<String> mimeTypesSet = new ArraySet<>(mimeTypes); in setMimeGroup()
7543 Set<String> mimeTypes = mimeGroups != null ? mimeGroups.get(mimeGroup) : null; in getMimeGroupInternal() local
7544 if (mimeTypes == null) { in getMimeGroupInternal()
[all …]
/frameworks/base/core/java/android/app/
DDownloadManager.java1095 final String[] mimeTypes = new String[idToMime.size()];
1098 mimeTypes[i] = idToMime.valueAt(i);
1102 mimeTypes);
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java2338 public void setReceiveContentMimeTypes(@Nullable String[] mimeTypes) { in setReceiveContentMimeTypes() argument
2339 mNode.mReceiveContentMimeTypes = mimeTypes; in setReceiveContentMimeTypes()
2626 String[] mimeTypes = node.getReceiveContentMimeTypes(); in dump() local
2627 if (mimeTypes != null) { in dump()
2628 Log.i(TAG, prefix + " MIME types: " + Arrays.toString(mimeTypes)); in dump()
/frameworks/base/core/java/android/view/contentcapture/
DViewNode.java937 public void setReceiveContentMimeTypes(@Nullable String[] mimeTypes) { in setReceiveContentMimeTypes() argument
938 mNode.mReceiveContentMimeTypes = mimeTypes; in setReceiveContentMimeTypes()
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl801 void setMimeGroup(String packageName, String group, in List<String> mimeTypes); in setMimeGroup() argument
/frameworks/base/services/core/java/com/android/server/pm/resolution/
DComponentResolver.java917 Collection<String> mimeTypes = packageState == null in applyMimeGroups() local
921 for (String mimeType : mimeTypes) { in applyMimeGroups()
/frameworks/av/drm/libmediadrm/
DDrmHalAidl.cpp430 for (auto ct : schemes.mimeTypes) { in isCryptoSchemeSupported()

12