/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/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/include/media/ |
H A D | IMediaHTTPConnection.h | 40 virtual status_t getMIMEType(String8 *mimeType) = 0;
|
/frameworks/base/core/java/android/webkit/ |
H A D | URLUtil.java | 297 * @param mimeType Mime-type of the content or null 304 String mimeType) { 346 if (mimeType != null) { 347 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 353 if (mimeType != null && mimeType.toLowerCase(Locale.ROOT).startsWith("text/")) { 354 if (mimeType.equalsIgnoreCase("text/html")) { 364 if (mimeType != null) { 370 if (typeFromExt != null && !typeFromExt.equalsIgnoreCase(mimeType)) { 371 extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); 301 guessFileName( String url, String contentDisposition, String mimeType) argument [all...] |
/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 | 466 * @param mimeType MIME type of the object to be handled. 470 public boolean canHandle(String path, String mimeType) { argument 471 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { 474 return _canHandle(mUniqueId, path, mimeType); 481 * @param mimeType MIME type of the object to be handled 485 public boolean canHandle(Uri uri, String mimeType) { argument 486 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) { 489 return canHandle(convertUriToPath(uri), mimeType); 557 getDrmObjectType(String path, String mimeType) argument 574 getDrmObjectType(Uri uri, String mimeType) argument 747 openConvertSession(String mimeType) argument 875 _canHandle(int uniqueId, String path, String mimeType) argument 884 _getDrmObjectType(int uniqueId, String path, String mimeType) argument 894 _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/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | IconUtils.java | 35 private static void add(String mimeType, int resId) { argument 36 if (sMimeIcons.put(mimeType, resId) != null) { 37 throw new RuntimeException(mimeType + " already registered!"); 220 Context context, String mimeType, String authority, String docId, int mode) { 221 if (Document.MIME_TYPE_DIR.equals(mimeType)) { 235 return loadMimeIcon(context, mimeType); 238 public static Drawable loadMimeIcon(Context context, String mimeType) { argument 239 if (Document.MIME_TYPE_DIR.equals(mimeType)) { 244 Integer resId = sMimeIcons.get(mimeType); 249 if (mimeType 219 loadMimeIcon( Context context, String mimeType, String authority, String docId, int mode) argument [all...] |
H A D | FilteringCursorWrapper.java | 55 final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 57 if (rejectMimes != null && MimePredicate.mimeMatches(rejectMimes, mimeType)) { 63 if (MimePredicate.mimeMatches(acceptMimes, 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...] |
H A D | NoOpDrmManagerClientImpl.cpp | 43 bool NoOpDrmManagerClientImpl::canHandle(int uniqueId, const String8& path, const String8& mimeType) { argument 64 int NoOpDrmManagerClientImpl::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) { argument 94 int NoOpDrmManagerClientImpl::openConvertSession(int uniqueId, const String8& mimeType) { argument 121 const String8& mimeType) { 120 openDecryptSession(int uniqueId, const DrmBuffer& buf, const String8& mimeType) argument
|
/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/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/include/ |
H A D | AACExtractor.h | 56 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
H A D | AMRExtractor.h | 57 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
H A D | DRMExtractor.h | 56 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
H A D | FLACExtractor.h | 59 bool SniffFLAC(const sp<DataSource> &source, String8 *mimeType,
|
H A D | MP3Extractor.h | 56 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
H A D | OggExtractor.h | 58 const sp<DataSource> &source, String8 *mimeType, float *confidence,
|
/frameworks/base/core/java/android/content/ |
H A D | ClipDescription.java | 123 * @param mimeType The desired MIME type. May be a pattern. 127 public boolean hasMimeType(String mimeType) { argument 129 if (compareMimeTypes(mMimeTypes[i], mimeType)) { 140 * @param mimeType The desired MIME type. May be a pattern. 144 public String[] filterMimeTypes(String mimeType) { argument 147 if (compareMimeTypes(mMimeTypes[i], mimeType)) {
|
/frameworks/base/media/java/android/media/ |
H A D | MediaScannerConnection.java | 160 * @param mimeType an optional mimeType for the file. 161 * If mimeType is null, then the mimeType will be inferred from the file extension. 163 public void scanFile(String path, String mimeType) { argument 172 mService.requestScanFile(path, mimeType, mListener); 210 String mimeType = mMimeTypes != null ? mMimeTypes[mNextPath] : null; 211 mConnection.scanFile(mPaths[mNextPath], mimeType); 219 * <var>path</var> and <var>mimeType</var> when the connection is 227 * If mimeType i [all...] |