/frameworks/base/core/java/com/android/internal/util/ |
D | MimeIconUtils.java | 39 private static MimeTypeInfo buildTypeInfo(String mimeType, int iconId, in buildTypeInfo() argument 45 final String ext = MimeMap.getDefault().guessExtensionFromMimeType(mimeType); in buildTypeInfo() 55 private static @Nullable MimeTypeInfo buildTypeInfo(@NonNull String mimeType) { in buildTypeInfo() argument 56 switch (mimeType) { in buildTypeInfo() 59 return buildTypeInfo(mimeType, R.drawable.ic_doc_folder, in buildTypeInfo() 63 return buildTypeInfo(mimeType, R.drawable.ic_doc_apk, in buildTypeInfo() 76 return buildTypeInfo(mimeType, R.drawable.ic_doc_certificate, in buildTypeInfo() 107 return buildTypeInfo(mimeType, R.drawable.ic_doc_codes, in buildTypeInfo() 128 return buildTypeInfo(mimeType, R.drawable.ic_doc_compressed, in buildTypeInfo() 133 return buildTypeInfo(mimeType, R.drawable.ic_doc_contact, in buildTypeInfo() [all …]
|
/frameworks/base/media/java/android/media/ |
D | MediaFile.java | 59 public final String mimeType; field in MediaFile.MediaFileType 61 MediaFileType(int fileType, String mimeType) { in MediaFileType() argument 63 this.mimeType = mimeType; in MediaFileType() 90 static void addFileType(String extension, int fileType, String mimeType) { in addFileType() argument 93 private static void addFileType(int mtpFormatCode, @NonNull String mimeType) { in addFileType() argument 94 if (!sMimeTypeToFormatMap.containsKey(mimeType)) { in addFileType() 95 sMimeTypeToFormatMap.put(mimeType, Integer.valueOf(mtpFormatCode)); in addFileType() 98 sFormatToMimeTypeMap.put(mtpFormatCode, mimeType); in addFileType() 209 public static boolean isDocumentMimeType(@Nullable String mimeType) { in isDocumentMimeType() argument 210 if (mimeType == null) { in isDocumentMimeType() [all …]
|
D | DrmInitData.java | 84 public final String mimeType; field in DrmInitData.SchemeInitData 97 public SchemeInitData(@NonNull UUID uuid, @NonNull String mimeType, @NonNull byte[] data) { in SchemeInitData() argument 99 this.mimeType = Objects.requireNonNull(mimeType); in SchemeInitData() 114 && mimeType.equals(other.mimeType) in equals() 120 return uuid.hashCode() + 31 * (mimeType.hashCode() + 31 * Arrays.hashCode(data)); in hashCode()
|
/frameworks/base/core/java/android/webkit/ |
D | MimeTypeMap.java | 81 public boolean hasMimeType(String mimeType) { in hasMimeType() argument 82 return MimeMap.getDefault().hasMimeType(mimeType); in hasMimeType() 117 public String getExtensionFromMimeType(String mimeType) { in getExtensionFromMimeType() argument 118 return MimeMap.getDefault().guessExtensionFromMimeType(mimeType); in getExtensionFromMimeType() 131 /* package */ String remapGenericMimeType(@Nullable String mimeType, String url, in remapGenericMimeType() argument 135 if ("text/plain".equals(mimeType) || in remapGenericMimeType() 136 "application/octet-stream".equals(mimeType)) { in remapGenericMimeType() 150 mimeType = newMimeType; in remapGenericMimeType() 152 } else if ("text/vnd.wap.wml".equals(mimeType)) { in remapGenericMimeType() 154 mimeType = "text/plain"; in remapGenericMimeType() [all …]
|
D | URLUtil.java | 347 String url, @Nullable String contentDisposition, @Nullable String mimeType) { in guessFileName() argument 350 return guessFileNameRfc6266(url, contentDisposition, mimeType); in guessFileName() 354 return guessFileNameRfc2616(url, contentDisposition, mimeType); in guessFileName() 359 String url, @Nullable String contentDisposition, @Nullable String mimeType) { in guessFileNameRfc2616() argument 401 if (mimeType != null) { in guessFileNameRfc2616() 402 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in guessFileNameRfc2616() 408 if (mimeType != null && mimeType.toLowerCase(Locale.ROOT).startsWith("text/")) { in guessFileNameRfc2616() 409 if (mimeType.equalsIgnoreCase("text/html")) { in guessFileNameRfc2616() 419 if (mimeType != null) { in guessFileNameRfc2616() 426 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) { in guessFileNameRfc2616() [all …]
|
D | WebResourceResponse.java | 63 public WebResourceResponse(String mimeType, String encoding, in WebResourceResponse() argument 65 mMimeType = mimeType; in WebResourceResponse() 90 public WebResourceResponse(String mimeType, String encoding, int statusCode, in WebResourceResponse() argument 92 this(mimeType, encoding, data); in WebResourceResponse() 102 public void setMimeType(String mimeType) { in setMimeType() argument 104 mMimeType = mimeType; in setMimeType() 236 public WebResourceResponse(boolean immutable, String mimeType, String encoding, int statusCode, in WebResourceResponse() argument 239 mMimeType = mimeType; in WebResourceResponse()
|
/frameworks/base/drm/java/android/drm/ |
D | DrmRights.java | 55 public DrmRights(String rightsFilePath, String mimeType) { in DrmRights() argument 57 instantiate(file, mimeType); in DrmRights() 67 public DrmRights(String rightsFilePath, String mimeType, String accountId) { in DrmRights() argument 68 this(rightsFilePath, mimeType); in DrmRights() 82 String rightsFilePath, String mimeType, String accountId, String subscriptionId) { in DrmRights() argument 83 this(rightsFilePath, mimeType); in DrmRights() 95 public DrmRights(File rightsFile, String mimeType) { in DrmRights() argument 96 instantiate(rightsFile, mimeType); in DrmRights() 99 private void instantiate(File rightsFile, String mimeType) { in instantiate() argument 106 mMimeType = mimeType; in instantiate() [all …]
|
D | DrmSupportInfo.java | 43 public void addMimeType(String mimeType) { in addMimeType() argument 44 if (mimeType == null) { in addMimeType() 47 if (mimeType == "") { in addMimeType() 51 mMimeTypeList.add(mimeType); in addMimeType() 163 /* package */ boolean isSupportedMimeType(String mimeType) { in isSupportedMimeType() argument 164 if (null != mimeType && !mimeType.equals("")) { in isSupportedMimeType() 172 if (completeMimeType.startsWith(mimeType)) { in isSupportedMimeType()
|
D | DrmInfoStatus.java | 57 public final String mimeType; field in DrmInfoStatus 76 public DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType) { in DrmInfoStatus() argument 85 if (mimeType == null || mimeType == "") { in DrmInfoStatus() 92 this.mimeType = mimeType; in DrmInfoStatus()
|
D | DrmInfo.java | 51 public DrmInfo(int infoType, byte[] data, String mimeType) { in DrmInfo() argument 53 mMimeType = mimeType; in DrmInfo() 57 "mimeType: " + mimeType + "," + in DrmInfo() 71 public DrmInfo(int infoType, String path, String mimeType) { in DrmInfo() argument 73 mMimeType = mimeType; in DrmInfo() 84 "mimeType: " + mimeType + "," + in DrmInfo()
|
D | DrmManagerClient.java | 500 public boolean canHandle(String path, String mimeType) { in canHandle() argument 501 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in canHandle() 504 return _canHandle(mUniqueId, path, mimeType); in canHandle() 515 public boolean canHandle(Uri uri, String mimeType) { in canHandle() argument 516 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { in canHandle() 519 return canHandle(convertUriToPath(uri), mimeType); in canHandle() 587 public int getDrmObjectType(String path, String mimeType) { in getDrmObjectType() argument 588 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in getDrmObjectType() 591 return _getDrmObjectType(mUniqueId, path, mimeType); in getDrmObjectType() 604 public int getDrmObjectType(Uri uri, String mimeType) { in getDrmObjectType() argument [all …]
|
/frameworks/base/core/java/android/content/ |
D | MimeTypeFilter.java | 77 public static boolean matches(@Nullable String mimeType, @NonNull String filter) { in matches() argument 78 if (mimeType == null) { in matches() 82 final String[] mimeTypeParts = mimeType.split("/"); in matches() 94 @Nullable String mimeType, @NonNull String[] filters) { in matches() 95 if (mimeType == null) { in matches() 99 final String[] mimeTypeParts = mimeType.split("/"); in matches() 122 for (String mimeType : mimeTypes) { in matches() 123 final String[] mimeTypeParts = mimeType.split("/"); in matches() 125 return mimeType; in matches() 145 for (String mimeType : mimeTypes) { in matchesMany() [all …]
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | FileInfo.java | 33 private final String mimeType; field in FileInfo 52 public FileInfo(Uri uri, String mimeType) { in FileInfo() argument 54 this.mimeType = mimeType; in FileInfo() 59 mimeType = in.readString(); in FileInfo() 65 dest.writeString(mimeType); in writeToParcel() 85 return mimeType; in getMimeType() 99 Objects.equals(mimeType, fileInfo.mimeType); in equals() 104 return Objects.hash(uri, mimeType); in hashCode()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | Wap230WspContentTypeTest.java | 228 String mimeType = unit.getValueString(); in testWellKnownShortIntegerMimeTypeValues() local 230 assertEquals(Wap230WspContentTypeTest.WELL_KNOWN_SHORT_MIME_TYPES.get(value), mimeType); in testWellKnownShortIntegerMimeTypeValues() local 247 String mimeType = unit.getValueString(); in testWellKnownLongIntegerMimeTypeValues() local 249 assertEquals(Wap230WspContentTypeTest.WELL_KNOWN_SHORT_MIME_TYPES.get(value), mimeType); in testWellKnownLongIntegerMimeTypeValues() local 272 String mimeType = unit.getValueString(); in testConstrainedMediaExtensionMedia() local 273 assertEquals(testType, mimeType); in testConstrainedMediaExtensionMedia() 289 String mimeType = unit.getValueString(); in testGeneralFormShortLengthExtensionMedia() local 290 assertEquals(testType, mimeType); in testGeneralFormShortLengthExtensionMedia() 304 String mimeType = unit.getValueString(); in testGeneralFormShortLengthWellKnownShortInteger() local 305 assertEquals(STRING_MIME_TYPE_ROLLOVER_CERTIFICATE, mimeType); in testGeneralFormShortLengthWellKnownShortInteger() [all …]
|
/frameworks/av/drm/drmserver/ |
D | DrmManager.cpp | 113 const char func[], const String8& plugInId8, const String8& mimeType) { in recordEngineMetrics() argument 131 if (!mimeType.empty()) { in recordEngineMetrics() 132 metrics.mMimeTypes.insert(mimeType.c_str()); in recordEngineMetrics() 306 bool DrmManager::canHandle(int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument 308 const String8 plugInId = getSupportedPlugInId(mimeType); in canHandle() 312 recordEngineMetrics(__func__, plugInId, mimeType); in canHandle() 332 const String8 mimeType = drmInfo->getMimeType(); in processDrmInfo() local 333 const String8 plugInId = getSupportedPlugInId(mimeType); in processDrmInfo() 339 recordEngineMetrics(__func__, plugInId, mimeType); in processDrmInfo() 363 const String8 mimeType = drmInfoRequest->getMimeType(); in acquireDrmInfo() local [all …]
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 247 public static boolean isSupportedByRegionDecoder(String mimeType) { in isSupportedByRegionDecoder() argument 248 if (mimeType == null) return false; in isSupportedByRegionDecoder() 249 mimeType = mimeType.toLowerCase(); in isSupportedByRegionDecoder() 250 return mimeType.startsWith("image/") && in isSupportedByRegionDecoder() 251 (!mimeType.equals("image/gif") && !mimeType.endsWith("bmp")); in isSupportedByRegionDecoder() 254 public static boolean isRotationSupported(String mimeType) { in isRotationSupported() argument 255 if (mimeType == null) return false; in isRotationSupported() 256 mimeType = mimeType.toLowerCase(); in isRotationSupported() 257 return mimeType.equals("image/jpeg"); in isRotationSupported()
|
/frameworks/av/drm/libdrmframework/ |
D | DrmManagerClientImpl.cpp | 105 int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument 107 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in canHandle() 108 retCode = getDrmManagerService()->canHandle(uniqueId, path, mimeType); in canHandle() 139 String8 mimeType = EMPTY_STRING; in getOriginalMimeType() local 141 mimeType = getDrmManagerService()->getOriginalMimeType(uniqueId, path, fd); in getOriginalMimeType() 143 return mimeType; in getOriginalMimeType() 147 int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument 149 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in getDrmObjectType() 151 getDrmManagerService()->getDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType() 212 int uniqueId, const String8& mimeType) { in openConvertSession() argument [all …]
|
D | DrmManagerClient.cpp | 50 bool DrmManagerClient::canHandle(const String8& path, const String8& mimeType) { in canHandle() argument 51 return mDrmManagerClientImpl->canHandle(mUniqueId, path, mimeType); in canHandle() 71 int DrmManagerClient::getDrmObjectType(const String8& path, const String8& mimeType) { in getDrmObjectType() argument 72 return mDrmManagerClientImpl->getDrmObjectType( mUniqueId, path, mimeType); in getDrmObjectType() 103 int DrmManagerClient::openConvertSession(const String8& mimeType) { in openConvertSession() argument 104 return mDrmManagerClientImpl->openConvertSession(mUniqueId, mimeType); in openConvertSession() 134 const DrmBuffer& buf, const String8& mimeType) { in openDecryptSession() argument 135 return mDrmManagerClientImpl->openDecryptSession(mUniqueId, buf, mimeType); in openDecryptSession()
|
/frameworks/base/core/java/android/app/ |
D | RemoteInput.java | 286 public Builder setAllowDataType(@NonNull String mimeType, boolean doAllow) { in setAllowDataType() argument 288 mAllowedDataTypes.add(mimeType); in setAllowDataType() 290 mAllowedDataTypes.remove(mimeType); in setAllowDataType() 404 String mimeType = key.substring(EXTRA_DATA_TYPE_RESULTS_DATA.length()); in getDataResultsFromIntent() local 405 if (mimeType == null || mimeType.isEmpty()) { in getDataResultsFromIntent() 413 results.put(mimeType, Uri.parse(uriStr)); in getDataResultsFromIntent() 485 String mimeType = entry.getKey(); in addDataResultToIntent() local 487 if (mimeType == null) { in addDataResultToIntent() 491 clipDataIntent.getBundleExtra(getExtraResultsKeyForData(mimeType)); in addDataResultToIntent() 497 clipDataIntent.putExtra(getExtraResultsKeyForData(mimeType), resultsBundle); in addDataResultToIntent() [all …]
|
/frameworks/av/drm/common/ |
D | DrmRights.cpp | 22 DrmRights::DrmRights(const String8& rightsFilePath, const String8& mimeType, in DrmRights() argument 24 mMimeType(mimeType), in DrmRights() 35 DrmRights::DrmRights(const DrmBuffer& rightsData, const String8& mimeType, in DrmRights() argument 38 mMimeType(mimeType), in DrmRights()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | WapPushOverSms.java | 232 String mimeType = pduDecoder.getValueString(); in decodeWapPdu() local 241 if (mimeType != null && mimeType.equals(WspTypeDecoder.CONTENT_TYPE_B_PUSH_CO)) { in decodeWapPdu() 293 String contentType = ((mimeType == null) ? in decodeWapPdu() 294 Long.toString(binaryContentType) : mimeType); in decodeWapPdu() 302 result.mimeType = mimeType; in decodeWapPdu() 382 if (result.mimeType == null) { in dispatchWapPdu() 388 intent.setType(result.mimeType); in dispatchWapPdu() 427 handler.dispatchIntent(intent, getPermissionForType(result.mimeType), in dispatchWapPdu() 428 getAppOpsStringPermissionForIntent(result.mimeType), options, receiver, in dispatchWapPdu() 440 && WspTypeDecoder.CONTENT_TYPE_B_MMS.equals(result.mimeType); in isWapPushForMms() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/ |
D | InitDataParser.cpp | 43 const std::string& mimeType, in parse() argument 49 if (mimeType == kIsoBmffVideoMimeType.c_str() || mimeType == kIsoBmffAudioMimeType.c_str() || in parse() 50 mimeType == kCencInitDataFormat.c_str()) { in parse() 55 } else if (mimeType == kWebmVideoMimeType.c_str() || mimeType == kWebmAudioMimeType.c_str() || in parse() 56 mimeType == kWebmInitDataFormat.c_str()) { in parse()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ChooserActivityLoggerFake.java | 37 public String mimeType; field in ChooserActivityLoggerFake.CallRecord 57 CallRecord(int atomId, String packageName, InstanceId instanceId, String mimeType, in CallRecord() argument 63 this.mimeType = mimeType; in CallRecord() 108 public void logShareStarted(int eventId, String packageName, String mimeType, in logShareStarted() argument 112 getInstanceId(), mimeType, appProvidedDirect, appProvidedApp, isWorkprofile, in logShareStarted()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | ImportTestProvider.java | 45 final String mimeType = expectedContentValues.getAsString(Data.MIMETYPE); in addExpectedContentValues() local 48 if (mMimeTypeToExpectedContentValues.containsKey(mimeType)) { in addExpectedContentValues() 49 contentValuesCollection = mMimeTypeToExpectedContentValues.get(mimeType); in addExpectedContentValues() 52 mMimeTypeToExpectedContentValues.put(mimeType, contentValuesCollection); in addExpectedContentValues() 86 final String mimeType = actualContentValues.getAsString(Data.MIMETYPE); in applyBatch() local 87 if (!mMimeTypeToExpectedContentValues.containsKey(mimeType)) { in applyBatch() 88 TestCase.fail("Unregistered MimeType " + mimeType); in applyBatch() 116 mMimeTypeToExpectedContentValues.get(mimeType); in applyBatch() 118 TestCase.fail("ContentValues for MimeType " + mimeType in applyBatch()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
D | InitDataParserUnittest.cpp | 41 const String8& mimeType, in attemptParse() argument 44 return parser.parse(initData, mimeType, licenseRequest); in attemptParse() 48 const String8& mimeType, in attemptParseExpectingSuccess() argument 53 ASSERT_EQ(android::OK, attemptParse(initData, mimeType, &request)); in attemptParseExpectingSuccess() 71 const String8& mimeType) { in attemptParseExpectingFailure() argument 73 ASSERT_NE(android::OK, attemptParse(initData, mimeType, &request)); in attemptParseExpectingFailure()
|