/frameworks/base/core/java/android/webkit/ |
D | MimeTypeMap.java | 78 public boolean hasMimeType(String mimeType) { in hasMimeType() argument 79 return MimeUtils.hasMimeType(mimeType); in hasMimeType() 112 public String getExtensionFromMimeType(String mimeType) { in getExtensionFromMimeType() argument 113 return MimeUtils.guessExtensionFromMimeType(mimeType); in getExtensionFromMimeType() 126 /* package */ String remapGenericMimeType(String mimeType, String url, in remapGenericMimeType() argument 130 if ("text/plain".equals(mimeType) || in remapGenericMimeType() 131 "application/octet-stream".equals(mimeType)) { in remapGenericMimeType() 145 mimeType = newMimeType; in remapGenericMimeType() 147 } else if ("text/vnd.wap.wml".equals(mimeType)) { in remapGenericMimeType() 149 mimeType = "text/plain"; in remapGenericMimeType() [all …]
|
D | WebResourceResponse.java | 50 public WebResourceResponse(String mimeType, String encoding, in WebResourceResponse() argument 52 mMimeType = mimeType; in WebResourceResponse() 73 public WebResourceResponse(String mimeType, String encoding, int statusCode, in WebResourceResponse() argument 75 this(mimeType, encoding, data); in WebResourceResponse() 85 public void setMimeType(String mimeType) { in setMimeType() argument 87 mMimeType = mimeType; in setMimeType() 218 public WebResourceResponse(boolean immutable, String mimeType, String encoding, int statusCode, in WebResourceResponse() argument 221 mMimeType = mimeType; in WebResourceResponse()
|
D | URLUtil.java | 304 String mimeType) { in guessFileName() argument 346 if (mimeType != null) { in guessFileName() 347 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in guessFileName() 353 if (mimeType != null && mimeType.toLowerCase(Locale.ROOT).startsWith("text/")) { in guessFileName() 354 if (mimeType.equalsIgnoreCase("text/html")) { in guessFileName() 364 if (mimeType != null) { in guessFileName() 370 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) { in guessFileName() 371 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in guessFileName()
|
/frameworks/base/drm/java/android/drm/ |
D | DrmRights.java | 53 public DrmRights(String rightsFilePath, String mimeType) { in DrmRights() argument 55 instantiate(file, mimeType); in DrmRights() 65 public DrmRights(String rightsFilePath, String mimeType, String accountId) { in DrmRights() argument 66 this(rightsFilePath, mimeType); in DrmRights() 80 String rightsFilePath, String mimeType, String accountId, String subscriptionId) { in DrmRights() argument 81 this(rightsFilePath, mimeType); in DrmRights() 93 public DrmRights(File rightsFile, String mimeType) { in DrmRights() argument 94 instantiate(rightsFile, mimeType); in DrmRights() 97 private void instantiate(File rightsFile, String mimeType) { in instantiate() argument 104 mMimeType = mimeType; in instantiate() [all …]
|
D | DrmSupportInfo.java | 41 public void addMimeType(String mimeType) { in addMimeType() argument 42 if (mimeType == null) { in addMimeType() 45 if (mimeType == "") { in addMimeType() 49 mMimeTypeList.add(mimeType); in addMimeType() 161 /* package */ boolean isSupportedMimeType(String mimeType) { in isSupportedMimeType() argument 162 if (null != mimeType && !mimeType.equals("")) { in isSupportedMimeType() 170 if (completeMimeType.startsWith(mimeType)) { in isSupportedMimeType()
|
D | DrmInfoStatus.java | 55 public final String mimeType; field in DrmInfoStatus 74 public DrmInfoStatus(int statusCode, int infoType, ProcessedData data, String mimeType) { in DrmInfoStatus() argument 83 if (mimeType == null || mimeType == "") { in DrmInfoStatus() 90 this.mimeType = mimeType; in DrmInfoStatus()
|
D | DrmManagerClient.java | 477 public boolean canHandle(String path, String mimeType) { in canHandle() argument 478 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in canHandle() 481 return _canHandle(mUniqueId, path, mimeType); in canHandle() 492 public boolean canHandle(Uri uri, String mimeType) { in canHandle() argument 493 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { in canHandle() 496 return canHandle(convertUriToPath(uri), mimeType); in canHandle() 564 public int getDrmObjectType(String path, String mimeType) { in getDrmObjectType() argument 565 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in getDrmObjectType() 568 return _getDrmObjectType(mUniqueId, path, mimeType); in getDrmObjectType() 581 public int getDrmObjectType(Uri uri, String mimeType) { in getDrmObjectType() argument [all …]
|
D | DrmInfo.java | 49 public DrmInfo(int infoType, byte[] data, String mimeType) { in DrmInfo() argument 51 mMimeType = mimeType; in DrmInfo() 55 "mimeType: " + mimeType + "," + in DrmInfo() 69 public DrmInfo(int infoType, String path, String mimeType) { in DrmInfo() argument 71 mMimeType = mimeType; in DrmInfo() 82 "mimeType: " + mimeType + "," + in DrmInfo()
|
/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/base/media/java/android/media/ |
D | DrmInitData.java | 52 public final String mimeType; field in DrmInitData.SchemeInitData 64 public SchemeInitData(String mimeType, byte[] data) { in SchemeInitData() argument 65 this.mimeType = mimeType; in SchemeInitData() 79 return mimeType.equals(other.mimeType) && Arrays.equals(data, other.data); in equals() 84 return mimeType.hashCode() + 31 * Arrays.hashCode(data); in hashCode()
|
D | MediaFile.java | 125 public final String mimeType; field in MediaFile.MediaFileType 127 MediaFileType(int fileType, String mimeType) { in MediaFileType() argument 129 this.mimeType = mimeType; in MediaFileType() 147 static void addFileType(String extension, int fileType, String mimeType) { in addFileType() argument 148 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType)); in addFileType() 149 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType)); in addFileType() 152 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { in addFileType() argument 153 addFileType(extension, fileType, mimeType); in addFileType() 155 sMimeTypeToFormatMap.put(mimeType, Integer.valueOf(mtpFormatCode)); in addFileType() 156 sFormatToMimeTypeMap.put(mtpFormatCode, mimeType); in addFileType() [all …]
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
D | StubProvider.java | 185 public String createDocument(String parentId, String mimeType, String displayName) in createDocument() argument 188 File file = createFile(parent, mimeType, displayName); in createDocument() 190 final StubDocument document = StubDocument.createRegularDocument(file, mimeType, parent); in createDocument() 296 StubDocument newDoc = StubDocument.createRegularDocument(after, oldDoc.mimeType, in renameDocument() 366 for (final String mimeType : document.streamTypes) { in openTypedDocument() 369 if (mimeType.equals(mimeTypeFilter)) { in openTypedDocument() 519 String mimeType = extras.getString(Document.COLUMN_MIME_TYPE); in dispatchCreateDocumentWithFlags() local 527 documentId = createDocument(rootId, mimeType, name, flags, streamTypes); in dispatchCreateDocumentWithFlags() 536 public String createDocument(String parentId, String mimeType, String displayName, int flags, in createDocument() argument 540 File file = createFile(parent, mimeType, displayName); in createDocument() [all …]
|
D | DocumentsProviderHelper.java | 87 public Uri createDocument(Uri parentUri, String mimeType, String name) { in createDocument() argument 92 Uri uri = DocumentsContract.createDocument(mClient, parentUri, mimeType, name); in createDocument() 96 + mimeType, e); in createDocument() 100 public Uri createDocument(String parentId, String mimeType, String name) { in createDocument() argument 102 return createDocument(parentUri, mimeType, name); in createDocument() 105 public Uri createDocument(RootInfo root, String mimeType, String name) { in createDocument() argument 106 return createDocument(root.documentId, mimeType, name); in createDocument() 109 public Uri createDocumentWithFlags(String documentId, String mimeType, String name, int flags, in createDocumentWithFlags() argument 115 in.putString(Document.COLUMN_MIME_TYPE, mimeType); in createDocumentWithFlags() 290 RootInfo root, String path, String mimeType, byte[] content, String... streamTypes) in createVirtualFile() argument [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 | 119 int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument 121 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in canHandle() 122 retCode = getDrmManagerService()->canHandle(uniqueId, path, mimeType); in canHandle() 153 String8 mimeType = EMPTY_STRING; in getOriginalMimeType() local 155 mimeType = getDrmManagerService()->getOriginalMimeType(uniqueId, path, fd); in getOriginalMimeType() 157 return mimeType; in getOriginalMimeType() 161 int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument 163 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in getDrmObjectType() 165 getDrmManagerService()->getDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType() 226 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/packages/DocumentsUI/src/com/android/documentsui/ |
D | IconUtils.java | 32 private static void add(String mimeType, int resId) { in add() argument 33 if (sMimeIcons.put(mimeType, resId) != null) { in add() 34 throw new RuntimeException(mimeType + " already registered!"); in add() 217 Context context, String mimeType, String authority, String docId, int mode) { in loadMimeIcon() argument 218 if (Document.MIME_TYPE_DIR.equals(mimeType)) { in loadMimeIcon() 232 return loadMimeIcon(context, mimeType); in loadMimeIcon() 235 public static Drawable loadMimeIcon(Context context, String mimeType) { in loadMimeIcon() argument 236 if (Document.MIME_TYPE_DIR.equals(mimeType)) { in loadMimeIcon() 241 Integer resId = sMimeIcons.get(mimeType); in loadMimeIcon() 246 if (mimeType == null) { in loadMimeIcon() [all …]
|
D | MimePredicate.java | 44 if (mimeMatches(mFilters, doc.mimeType)) { in apply() 100 public static boolean isApkType(@Nullable String mimeType) { in isApkType() argument 101 return APK_TYPE.equals(mimeType); in isApkType() 104 public static boolean isDirectoryType(@Nullable String mimeType) { in isDirectoryType() argument 105 return Document.MIME_TYPE_DIR.equals(mimeType); in isDirectoryType()
|
/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/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()
|
D | IDrmManagerService.cpp | 44 data->writeString8(handle->mimeType); in writeDecryptHandleToParcelData() 76 handle->mimeType = data.readString8(); in readDecryptHandleFromParcelData() 220 bool BpDrmManagerService::canHandle(int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument 228 data.writeString8(mimeType); in canHandle() 269 const String8 mimeType = reply.readString8(); in processDrmInfo() local 281 drmInfoStatus = new DrmInfoStatus(statusCode, infoType, drmBuffer, mimeType); in processDrmInfo() 354 const String8 mimeType = drmRights.getMimeType(); in saveRights() local 355 data.writeString8((mimeType == String8("")) ? String8("NULL") : mimeType); in saveRights() 388 int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument 395 data.writeString8(mimeType); in getDrmObjectType() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | WapPushOverSms.java | 197 String mimeType = pduDecoder.getValueString(); in decodeWapPdu() local 206 if (mimeType != null && mimeType.equals(WspTypeDecoder.CONTENT_TYPE_B_PUSH_CO)) { in decodeWapPdu() 250 String contentType = ((mimeType == null) ? in decodeWapPdu() 251 Long.toString(binaryContentType) : mimeType); in decodeWapPdu() 259 result.mimeType = mimeType; in decodeWapPdu() 336 if (result.mimeType == null) { in dispatchWapPdu() 342 intent.setType(result.mimeType); in dispatchWapPdu() 369 handler.dispatchIntent(intent, getPermissionForType(result.mimeType), in dispatchWapPdu() 370 getAppOpsPermissionForIntent(result.mimeType), options, receiver, in dispatchWapPdu() 381 && WspTypeDecoder.CONTENT_TYPE_B_MMS.equals(result.mimeType); in isWapPushForMms() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
D | DocumentInfo.java | 51 public String mimeType; field in DocumentInfo 70 mimeType = null; in reset() 89 mimeType = DurableUtils.readNullableString(in); in read() 108 DurableUtils.writeNullableString(out, mimeType); in write() 157 this.mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); in updateFromCursor() 231 return Document.MIME_TYPE_DIR.equals(mimeType); in isDirectory() 267 return derivedUri.hashCode() + mimeType.hashCode(); in hashCode() 283 && Objects.equals(mimeType, other.mimeType); in equals()
|
/frameworks/av/drm/libdrmframework/include/ |
D | DrmManager.h | 77 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 88 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 104 int openConvertSession(int uniqueId, const String8& mimeType); 118 const String8& mimeType); 136 String8 getSupportedPlugInId(int uniqueId, const String8& path, const String8& mimeType); 138 String8 getSupportedPlugInId(const String8& mimeType);
|
/frameworks/base/media/jni/ |
D | android_media_MediaScanner.cpp | 204 virtual status_t setMimeType(const char* mimeType) in setMimeType() argument 206 ALOGV("setMimeType: %s", mimeType); in setMimeType() 208 if ((mimeTypeStr = mEnv->NewStringUTF(mimeType)) == NULL) { in setMimeType() 270 jstring mimeType, jobject client) in android_media_MediaScanner_processFile() argument 292 (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL); in android_media_MediaScanner_processFile() 293 if (mimeType && mimeTypeStr == NULL) { // Out of memory in android_media_MediaScanner_processFile() 305 if (mimeType) { in android_media_MediaScanner_processFile() 306 env->ReleaseStringUTFChars(mimeType, mimeTypeStr); in android_media_MediaScanner_processFile()
|