/frameworks/base/media/java/android/media/ |
H A D | MediaFile.java | 127 public final String mimeType; field in class:MediaFile.MediaFileType 129 MediaFileType(int fileType, String mimeType) { argument 131 this.mimeType = mimeType; 149 static void addFileType(String extension, int fileType, String mimeType) { argument 150 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType)); 151 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType)); 154 private static void addFileType(String extension, int fileType, String mimeType, argument 156 addFileType(extension, fileType, mimeType); 158 sMimeTypeToFormatMap.put(mimeType, Intege 323 isMimeTypeMedia(String mimeType) argument 347 getFileTypeForMimeType(String mimeType) argument 357 getFormatCode(String fileName, String mimeType) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | RemoteInput.java | 243 * @param mimeType A mime type that results are allowed to come in. 251 public Builder setAllowDataType(@NonNull String mimeType, boolean doAllow) { argument 253 mAllowedDataTypes.add(mimeType); 255 mAllowedDataTypes.remove(mimeType); 355 String mimeType = key.substring(EXTRA_DATA_TYPE_RESULTS_DATA.length()); 356 if (mimeType == null || mimeType.isEmpty()) { 364 results.put(mimeType, Uri.parse(uriStr)); 436 String mimeType = entry.getKey(); 438 if (mimeType 495 getExtraResultsKeyForData(String mimeType) argument [all...] |
/frameworks/av/drm/drmserver/ |
H A 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);
|
H A D | DrmManagerService.h | 83 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 94 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 110 int openConvertSession(int uniqueId, const String8& mimeType); 125 const String8& mimeType);
|
/frameworks/support/compat/src/main/java/androidx/core/app/ |
H A D | RemoteInput.java | 169 * @param mimeType A mime type that results are allowed to come in. 176 public Builder setAllowDataType(String mimeType, boolean doAllow) { argument 178 mAllowedDataTypes.add(mimeType); 180 mAllowedDataTypes.remove(mimeType); 267 String mimeType = key.substring(EXTRA_DATA_TYPE_RESULTS_DATA.length()); 268 if (mimeType.isEmpty()) { 276 results.put(mimeType, Uri.parse(uriStr)); 389 String mimeType = entry.getKey(); 391 if (mimeType == null) { 395 clipDataIntent.getBundleExtra(getExtraResultsKeyForData(mimeType)); 408 getExtraResultsKeyForData(String mimeType) argument [all...] |
/frameworks/av/drm/libdrmframework/include/ |
H A D | NoOpDrmManagerClientImpl.h | 36 bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 42 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 51 int openConvertSession(int uniqueId, const String8& mimeType); 60 const String8& mimeType);
|
H A D | DrmManagerClientImpl.h | 109 virtual bool canHandle(int uniqueId, const String8& path, const String8& mimeType); 164 * @param[in] mimeType Mime type of the content or null. 168 virtual int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType); 248 * @param[in] mimeType Description/MIME type of the input data packet 251 virtual int openConvertSession(int uniqueId, const String8& mimeType); 328 * @param[in] mimeType Mime type of the protected content 333 const String8& mimeType);
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
H A D | DrmFactory.h | 35 virtual bool isContentTypeSupported(const android::String8 &mimeType);
|
/frameworks/av/include/drm/ |
H A D | DrmManagerClient.h | 89 * @param[in] mimeType Mime type of the protected content 93 sp<DecryptHandle> openDecryptSession(const DrmBuffer& buf, const String8& mimeType); 244 bool canHandle(const String8& path, const String8& mimeType); 294 * @param[in] mimeType Mime type of the content or null. 298 int getDrmObjectType(const String8& path, const String8& mimeType); 335 * @param[in] mimeType Description/MIME type of the input data packet 338 int openConvertSession(const String8& mimeType);
|
H A D | DrmSupportInfo.h | 133 * @param[in] mimeType mimetype to be added 136 status_t addMimeType(const String8& mimeType); 164 * @param[in] mimeType MIME type 169 bool isSupportedMimeType(const String8& mimeType) const;
|
/frameworks/av/media/libmedia/include/media/ |
H A D | MediaHTTPConnection.h | 37 virtual status_t getMIMEType(String8 *mimeType) = 0;
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ImportTestProvider.java | 45 final String mimeType = expectedContentValues.getAsString(Data.MIMETYPE); 48 if (mMimeTypeToExpectedContentValues.containsKey(mimeType)) { 49 contentValuesCollection = mMimeTypeToExpectedContentValues.get(mimeType); 52 mMimeTypeToExpectedContentValues.put(mimeType, contentValuesCollection); 86 final String mimeType = actualContentValues.getAsString(Data.MIMETYPE); 87 if (!mMimeTypeToExpectedContentValues.containsKey(mimeType)) { 88 TestCase.fail("Unregistered MimeType " + mimeType); 109 mimeType, actualContentValues.toString())); */ 116 mMimeTypeToExpectedContentValues.get(mimeType); 118 TestCase.fail("ContentValues for MimeType " + mimeType [all...] |
/frameworks/base/drm/java/android/drm/ |
H A D | DrmManagerClient.java | 480 * @param mimeType MIME type of the object to be handled. 484 public boolean canHandle(String path, String mimeType) { argument 485 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { 488 return _canHandle(mUniqueId, path, mimeType); 495 * @param mimeType MIME type of the object to be handled 499 public boolean canHandle(Uri uri, String mimeType) { argument 500 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { 503 return canHandle(convertUriToPath(uri), mimeType); 571 getDrmObjectType(String path, String mimeType) argument 588 getDrmObjectType(Uri uri, String mimeType) argument 761 openConvertSession(String mimeType) argument 889 _canHandle(int uniqueId, String path, String mimeType) argument 898 _getDrmObjectType(int uniqueId, String path, String mimeType) argument 908 _openConvertSession(int uniqueId, String mimeType) argument [all...] |
H A D | DrmOutputStream.java | 56 public DrmOutputStream(DrmManagerClient client, ParcelFileDescriptor pfd, String mimeType) argument 62 mSessionId = mClient.openConvertSession(mimeType); 64 throw new UnknownServiceException("Failed to open DRM session for " + mimeType);
|
/frameworks/av/drm/libdrmframework/ |
H A D | DrmManagerClient.cpp | 50 bool DrmManagerClient::canHandle(const String8& path, const String8& mimeType) { argument 51 return mDrmManagerClientImpl->canHandle(mUniqueId, path, mimeType); 71 int DrmManagerClient::getDrmObjectType(const String8& path, const String8& mimeType) { argument 72 return mDrmManagerClientImpl->getDrmObjectType( mUniqueId, path, mimeType); 103 int DrmManagerClient::openConvertSession(const String8& mimeType) { argument 104 return mDrmManagerClientImpl->openConvertSession(mUniqueId, mimeType); 134 const DrmBuffer& buf, const String8& mimeType) { 135 return mDrmManagerClientImpl->openDecryptSession(mUniqueId, buf, mimeType); 133 openDecryptSession( const DrmBuffer& buf, const String8& mimeType) argument
|
H A D | DrmManagerClientImpl.cpp | 119 int uniqueId, const String8& path, const String8& mimeType) { 121 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { 122 retCode = getDrmManagerService()->canHandle(uniqueId, path, mimeType); 153 String8 mimeType = EMPTY_STRING; local 155 mimeType = getDrmManagerService()->getOriginalMimeType(uniqueId, path, fd); 157 return mimeType; 161 int uniqueId, const String8& path, const String8& mimeType) { 163 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { 165 getDrmManagerService()->getDrmObjectType(uniqueId, path, mimeType); 226 int uniqueId, const String8& mimeType) { 118 canHandle( int uniqueId, const String8& path, const String8& mimeType) argument 160 getDrmObjectType( int uniqueId, const String8& path, const String8& mimeType) argument 225 openConvertSession( int uniqueId, const String8& mimeType) argument 277 openDecryptSession( int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | MimeIconUtils.java | 31 private static void add(String mimeType, int resId) { argument 32 if (sMimeIcons.put(mimeType, resId) != null) { 33 throw new RuntimeException(mimeType + " already registered!"); 200 public static Drawable loadMimeIcon(Context context, String mimeType) { argument 201 if (DocumentsContract.Document.MIME_TYPE_DIR.equals(mimeType)) { 206 Integer resId = sMimeIcons.get(mimeType); 211 if (mimeType == null) { 217 final String typeOnly = mimeType.split("/")[0];
|
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | DrmConvertSession.java | 44 * @param mimeType Mimetype of content that shall be converted. 47 public static DrmConvertSession open(Context context, String mimeType) { argument 50 if (context != null && mimeType != null && !mimeType.equals("")) { 54 convertSessionId = drmClient.openConvertSession(mimeType); 56 Log.w(TAG, "Conversion of Mimetype: " + mimeType
|
/frameworks/base/core/java/android/content/ |
H A D | ClipDescription.java | 181 * @param mimeType The desired MIME type. May be a pattern. 185 public boolean hasMimeType(String mimeType) { argument 188 if (compareMimeTypes(mMimeTypes.get(i), mimeType)) { 199 * @param mimeType The desired MIME type. May be a pattern. 203 public String[] filterMimeTypes(String mimeType) { argument 207 if (compareMimeTypes(mMimeTypes.get(i), mimeType)) { 241 final String mimeType = mimeTypes[i]; 242 if (!mMimeTypes.contains(mimeType)) { 243 mMimeTypes.add(mimeType);
|
/frameworks/base/core/java/android/webkit/ |
H A D | URLUtil.java | 298 * @param mimeType Mime-type of the content or {@code null} 305 @Nullable String mimeType) { 347 if (mimeType != null) { 348 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 354 if (mimeType != null && mimeType.toLowerCase(Locale.ROOT).startsWith("text/")) { 355 if (mimeType.equalsIgnoreCase("text/html")) { 365 if (mimeType != null) { 371 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) { 372 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 302 guessFileName( String url, @Nullable String contentDisposition, @Nullable String mimeType) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaScanner.cpp | 204 virtual status_t setMimeType(const char* mimeType) argument 206 ALOGV("setMimeType: %s", mimeType); 208 if ((mimeTypeStr = mEnv->NewStringUTF(mimeType)) == NULL) { 270 jstring mimeType, jobject client) 292 (mimeType ? env->GetStringUTFChars(mimeType, NULL) : NULL); 293 if (mimeType && mimeTypeStr == NULL) { // Out of memory 305 if (mimeType) { 306 env->ReleaseStringUTFChars(mimeType, mimeTypeStr); 268 android_media_MediaScanner_processFile( JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument
|
/frameworks/av/drm/libdrmframework/plugins/common/util/src/ |
H A D | MimeTypeUtil.cpp | 121 * @param mimeType - mimetype in lower case to convert. 125 String8 MimeTypeUtil::convertMimeType(String8& mimeType) { argument 126 String8 result = mimeType; 131 pMimeType = mimeType.string();
|
/frameworks/av/media/libstagefright/ |
H A D | StagefrightMediaScanner.cpp | 59 const char *path, const char *mimeType, 65 MediaScanResult result = processFileInternal(path, mimeType, client); 67 if (mimeType == NULL && result != MEDIA_SCAN_RESULT_OK) { 76 const char *path, const char * /* mimeType */, 58 processFile( const char *path, const char *mimeType, MediaScannerClient &client) argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | WapPushOverSms.java | 240 String mimeType = pduDecoder.getValueString(); 249 if (mimeType != null && mimeType.equals(WspTypeDecoder.CONTENT_TYPE_B_PUSH_CO)) { 293 String contentType = ((mimeType == null) ? 294 Long.toString(binaryContentType) : mimeType); 302 result.mimeType = mimeType; 381 if (result.mimeType == null) { 387 intent.setType(result.mimeType); 414 handler.dispatchIntent(intent, getPermissionForType(result.mimeType), 599 getPermissionForType(String mimeType) argument 609 getAppOpsPermissionForIntent(String mimeType) argument 623 String mimeType; field in class:WapPushOverSms.DecodedResult [all...] |
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
H A D | DrmFactory.h | 42 Return<bool> isContentTypeSupported(const hidl_string &mimeType)
|