/frameworks/base/core/java/android/content/ |
D | MimeTypeFilter.java | 116 @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()
|
D | ClipData.java | 871 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 …]
|
D | ClipDescription.java | 205 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()
|
D | Intent.java | 1081 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/ |
D | DragUtils.java | 99 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/ |
D | MediaScannerConnection.java | 181 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/ |
D | TextViewReceiveContentTest.java | 93 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/ |
D | PackageStateWrite.java | 44 PackageStateWrite setMimeGroup(@NonNull String mimeGroup, @NonNull ArraySet<String> mimeTypes); in setMimeGroup() argument
|
D | PackageStateMutator.java | 242 @NonNull ArraySet<String> mimeTypes) { in setMimeGroup() argument 244 mState.setMimeGroup(mimeGroup, mimeTypes); in setMimeGroup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputView.java | 581 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/ |
D | DragAndDropTargetState.kt | 38 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/ |
D | ClipboardOverlayUtilsTest.java | 192 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/ |
D | DrmFactory.cpp | 89 schemes.mimeTypes.push_back({mime, minLevel, maxLevel}); in getSupportedCryptoSchemes()
|
/frameworks/av/drm/drmserver/ |
D | DrmManager.cpp | 156 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/ |
D | ViewStructure.java | 480 @SuppressLint("NullableCollection") @Nullable String[] mimeTypes) {} in setReceiveContentMimeTypes()
|
D | View.java | 9888 @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/ |
D | MediaMetricsManagerService.java | 776 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/ |
D | PackageSetting.java | 580 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);
|
D | PackageManagerService.java | 6240 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/ |
D | DownloadManager.java | 1095 final String[] mimeTypes = new String[idToMime.size()]; 1098 mimeTypes[i] = idToMime.valueAt(i); 1102 mimeTypes);
|
/frameworks/base/core/java/android/app/assist/ |
D | AssistStructure.java | 2338 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/ |
D | ViewNode.java | 937 public void setReceiveContentMimeTypes(@Nullable String[] mimeTypes) { in setReceiveContentMimeTypes() argument 938 mNode.mReceiveContentMimeTypes = mimeTypes; in setReceiveContentMimeTypes()
|
/frameworks/base/core/java/android/content/pm/ |
D | IPackageManager.aidl | 801 void setMimeGroup(String packageName, String group, in List<String> mimeTypes); in setMimeGroup() argument
|
/frameworks/base/services/core/java/com/android/server/pm/resolution/ |
D | ComponentResolver.java | 917 Collection<String> mimeTypes = packageState == null in applyMimeGroups() local 921 for (String mimeType : mimeTypes) { in applyMimeGroups()
|
/frameworks/av/drm/libmediadrm/ |
D | DrmHalAidl.cpp | 430 for (auto ct : schemes.mimeTypes) { in isCryptoSchemeSupported()
|