/frameworks/base/core/java/android/webkit/ |
D | MimeTypeMap.java | 79 public boolean hasMimeType(String mimeType) { in hasMimeType() argument 80 return MimeUtils.hasMimeType(mimeType); in hasMimeType() 113 public String getExtensionFromMimeType(String mimeType) { in getExtensionFromMimeType() argument 114 return MimeUtils.guessExtensionFromMimeType(mimeType); in getExtensionFromMimeType() 127 /* package */ String remapGenericMimeType(String mimeType, String url, in remapGenericMimeType() argument 131 if ("text/plain".equals(mimeType) || in remapGenericMimeType() 132 "application/octet-stream".equals(mimeType)) { in remapGenericMimeType() 146 mimeType = newMimeType; in remapGenericMimeType() 148 } else if ("text/vnd.wap.wml".equals(mimeType)) { in remapGenericMimeType() 150 mimeType = "text/plain"; in remapGenericMimeType() [all …]
|
D | WebResourceResponse.java | 59 public WebResourceResponse(String mimeType, String encoding, in WebResourceResponse() argument 61 mMimeType = mimeType; in WebResourceResponse() 70 public void setMimeType(String mimeType) { in setMimeType() argument 71 mMimeType = mimeType; in setMimeType()
|
D | URLUtil.java | 301 String mimeType) { in guessFileName() argument 343 if (mimeType != null) { in guessFileName() 344 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in guessFileName() 350 if (mimeType != null && mimeType.toLowerCase().startsWith("text/")) { in guessFileName() 351 if (mimeType.equalsIgnoreCase("text/html")) { in guessFileName() 361 if (mimeType != null) { in guessFileName() 367 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) { in guessFileName() 368 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in guessFileName()
|
/frameworks/base/drm/java/android/drm/ |
D | DrmRights.java | 47 public DrmRights(String rightsFilePath, String mimeType) { in DrmRights() argument 49 instantiate(file, mimeType); in DrmRights() 59 public DrmRights(String rightsFilePath, String mimeType, String accountId) { in DrmRights() argument 60 this(rightsFilePath, mimeType); in DrmRights() 76 String rightsFilePath, String mimeType, String accountId, String subscriptionId) { in DrmRights() argument 77 this(rightsFilePath, mimeType); in DrmRights() 94 public DrmRights(File rightsFile, String mimeType) { in DrmRights() argument 95 instantiate(rightsFile, mimeType); in DrmRights() 98 private void instantiate(File rightsFile, String mimeType) { in instantiate() argument 105 mMimeType = mimeType; in instantiate() [all …]
|
D | DrmSupportInfo.java | 40 public void addMimeType(String mimeType) { in addMimeType() argument 41 mMimeTypeList.add(mimeType); in addMimeType() 125 /* package */ boolean isSupportedMimeType(String mimeType) { in isSupportedMimeType() argument 126 if (null != mimeType && !mimeType.equals("")) { in isSupportedMimeType() 129 if (completeMimeType.startsWith(mimeType)) { in isSupportedMimeType()
|
D | DrmManagerClient.java | 423 public boolean canHandle(String path, String mimeType) { in canHandle() argument 424 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in canHandle() 427 return _canHandle(mUniqueId, path, mimeType); in canHandle() 438 public boolean canHandle(Uri uri, String mimeType) { in canHandle() argument 439 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { in canHandle() 442 return canHandle(convertUriToPath(uri), mimeType); in canHandle() 510 public int getDrmObjectType(String path, String mimeType) { in getDrmObjectType() argument 511 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in getDrmObjectType() 514 return _getDrmObjectType(mUniqueId, path, mimeType); in getDrmObjectType() 527 public int getDrmObjectType(Uri uri, String mimeType) { in getDrmObjectType() argument [all …]
|
D | DrmInfo.java | 48 public DrmInfo(int infoType, byte[] data, String mimeType) { in DrmInfo() argument 50 mMimeType = mimeType; in DrmInfo() 61 public DrmInfo(int infoType, String path, String mimeType) { in DrmInfo() argument 63 mMimeType = mimeType; in DrmInfo()
|
D | DrmInfoStatus.java | 44 public final String mimeType; field in DrmInfoStatus 62 mimeType = _mimeType; in DrmInfoStatus()
|
/frameworks/base/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 | MediaFile.java | 110 public final String mimeType; field in MediaFile.MediaFileType 112 MediaFileType(int fileType, String mimeType) { in MediaFileType() argument 114 this.mimeType = mimeType; in MediaFileType() 132 static void addFileType(String extension, int fileType, String mimeType) { in addFileType() argument 133 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType)); in addFileType() 134 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType)); in addFileType() 137 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { in addFileType() argument 138 addFileType(extension, fileType, mimeType); in addFileType() 140 sMimeTypeToFormatMap.put(mimeType, Integer.valueOf(mtpFormatCode)); in addFileType() 141 sFormatToMimeTypeMap.put(mtpFormatCode, mimeType); in addFileType() [all …]
|
D | IMediaScannerService.aidl | 34 void requestScanFile(String path, String mimeType, in IMediaScannerListener listener); in requestScanFile() argument 43 void scanFile(String path, String mimeType); in scanFile() argument
|
/frameworks/base/media/java/android/drm/mobile1/ |
D | DrmRightsManager.java | 95 int mimeType = 0; in installRights() local 98 mimeType = DRM_MIMETYPE_RIGHTS_XML; in installRights() 100 mimeType = DRM_MIMETYPE_RIGHTS_WBXML; in installRights() 102 mimeType = DRM_MIMETYPE_MESSAGE; in installRights() 112 int res = nativeInstallDrmRights(rightsData, len, mimeType, rights); in installRights() 201 …private native int nativeInstallDrmRights(InputStream data, int len, int mimeType, DrmRights right… in nativeInstallDrmRights() argument
|
D | DrmRawContent.java | 132 int mimeType; in DrmRawContent() local 139 mimeType = DRM_MIMETYPE_MESSAGE; in DrmRawContent() 141 mimeType = DRM_MIMETYPE_CONTENT; in DrmRawContent() 149 id = nativeConstructDrmContent(inData, inDataLen, mimeType); in DrmRawContent() 394 private native int nativeConstructDrmContent(InputStream data, int len, int mimeType); in nativeConstructDrmContent() argument
|
/frameworks/base/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 | DrmSupportInfo.cpp | 45 bool DrmSupportInfo::isSupportedMimeType(const String8& mimeType) const { in isSupportedMimeType() 46 if (String8("") == mimeType) { in isSupportedMimeType() 53 if (!strcasecmp(item.string(), mimeType.string())) { in isSupportedMimeType() 86 status_t DrmSupportInfo::addMimeType(const String8& mimeType) { in addMimeType() argument 87 mMimeTypeVector.push(mimeType); in addMimeType()
|
/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/base/telephony/java/com/android/internal/telephony/ |
D | WapPushOverSms.java | 184 String mimeType = pduDecoder.getValueString(); in dispatchWapPdu() local 193 if (mimeType != null && mimeType.equals(WspTypeDecoder.CONTENT_TYPE_B_PUSH_CO)) { in dispatchWapPdu() 215 String contentType = ((mimeType == null) ? in dispatchWapPdu() 216 Long.toString(binaryContentType) : mimeType); in dispatchWapPdu() 250 if (mimeType == null) { in dispatchWapPdu() 257 if (mimeType.equals(WspTypeDecoder.CONTENT_TYPE_B_MMS)) { in dispatchWapPdu() 264 intent.setType(mimeType); in dispatchWapPdu()
|
/frameworks/base/drm/libdrmframework/ |
D | DrmManagerClientImpl.cpp | 117 int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument 119 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in canHandle() 120 retCode = getDrmManagerService()->canHandle(uniqueId, path, mimeType); in canHandle() 151 String8 mimeType = EMPTY_STRING; in getOriginalMimeType() local 153 mimeType = getDrmManagerService()->getOriginalMimeType(uniqueId, path); in getOriginalMimeType() 155 return mimeType; in getOriginalMimeType() 159 int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument 161 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in getDrmObjectType() 163 getDrmManagerService()->getDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType() 224 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()
|
/frameworks/base/core/java/android/provider/ |
D | DrmStore.java | 145 String mimeType = content.getContentType(); in addDrmFile() local 153 if (mimeType.startsWith("audio/")) { in addDrmFile() 155 } else if (mimeType.startsWith("image/")) { in addDrmFile() 158 Log.w(TAG, "unsupported mime type " + mimeType); in addDrmFile() 165 values.put(DrmStore.Columns.MIME_TYPE, mimeType); in addDrmFile() 178 result.setDataAndType(uri, mimeType); in addDrmFile()
|
/frameworks/base/media/jni/ |
D | android_media_MediaScanner.cpp | 140 virtual status_t setMimeType(const char* mimeType) in setMimeType() argument 142 LOGV("setMimeType: %s", mimeType); in setMimeType() 144 if ((mimeTypeStr = mEnv->NewStringUTF(mimeType)) == NULL) { in setMimeType() 206 jstring mimeType, jobject client) in android_media_MediaScanner_processFile() argument 228 (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL); in android_media_MediaScanner_processFile() 229 if (mimeType && mimeTypeStr == NULL) { // Out of memory in android_media_MediaScanner_processFile() 241 if (mimeType) { in android_media_MediaScanner_processFile() 242 env->ReleaseStringUTFChars(mimeType, mimeTypeStr); in android_media_MediaScanner_processFile()
|
/frameworks/base/drm/libdrmframework/include/ |
D | DrmManager.h | 79 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 90 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 106 int openConvertSession(int uniqueId, const String8& mimeType); 134 String8 getSupportedPlugInId(int uniqueId, const String8& path, const String8& mimeType); 136 String8 getSupportedPlugInId(const String8& mimeType);
|
/frameworks/base/core/java/android/content/ |
D | ClipDescription.java | 115 public boolean hasMimeType(String mimeType) { in hasMimeType() argument 117 if (compareMimeTypes(mMimeTypes[i], mimeType)) { in hasMimeType() 132 public String[] filterMimeTypes(String mimeType) { in filterMimeTypes() argument 135 if (compareMimeTypes(mMimeTypes[i], mimeType)) { in filterMimeTypes()
|
/frameworks/base/media/libstagefright/ |
D | AMRExtractor.cpp | 120 String8 mimeType; in AMRExtractor() local 122 if (!SniffAMR(mDataSource, &mimeType, &confidence, NULL)) { in AMRExtractor() 126 mIsWide = (mimeType == MEDIA_MIMETYPE_AUDIO_AMR_WB); in AMRExtractor() 330 const sp<DataSource> &source, String8 *mimeType, float *confidence, in SniffAMR() argument 339 *mimeType = MEDIA_MIMETYPE_AUDIO_AMR_NB; in SniffAMR() 344 *mimeType = MEDIA_MIMETYPE_AUDIO_AMR_WB; in SniffAMR()
|
D | DRMExtractor.cpp | 278 const sp<DataSource> &source, String8 *mimeType, float *confidence, in SniffDRM() argument 284 *mimeType = String8("drm+container_based+") + decryptHandle->mimeType; in SniffDRM() 286 *mimeType = String8("drm+es_based+") + decryptHandle->mimeType; in SniffDRM() 288 *mimeType = MEDIA_MIMETYPE_CONTAINER_WVM; in SniffDRM()
|