Searched refs:mimeType (Results 26 - 50 of 242) sorted by relevance

12345678910

/frameworks/base/media/java/android/media/
H A DMediaFile.java126 public final String mimeType; field in class:MediaFile.MediaFileType
128 MediaFileType(int fileType, String mimeType) { argument
130 this.mimeType = mimeType;
148 static void addFileType(String extension, int fileType, String mimeType) { argument
149 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
150 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType));
153 private static void addFileType(String extension, int fileType, String mimeType, argument
155 addFileType(extension, fileType, mimeType);
157 sMimeTypeToFormatMap.put(mimeType, Intege
320 isMimeTypeMedia(String mimeType) argument
344 getFileTypeForMimeType(String mimeType) argument
354 getFormatCode(String fileName, String mimeType) argument
[all...]
/frameworks/support/compat/api20/android/support/v4/app/
H A DRemoteInputCompatApi20.java80 String mimeType = key.substring(EXTRA_DATA_TYPE_RESULTS_DATA.length());
81 if (mimeType == null || mimeType.isEmpty()) {
89 results.put(mimeType, Uri.parse(uriStr));
133 String mimeType = entry.getKey();
135 if (mimeType == null) {
139 clipDataIntent.getBundleExtra(getExtraResultsKeyForData(mimeType));
144 clipDataIntent.putExtra(getExtraResultsKeyForData(mimeType), resultsBundle);
149 private static String getExtraResultsKeyForData(String mimeType) { argument
150 return EXTRA_DATA_TYPE_RESULTS_DATA + mimeType;
[all...]
/frameworks/support/compat/jellybean/android/support/v4/app/
H A DRemoteInputCompatJellybean.java127 String mimeType = key.substring(EXTRA_DATA_TYPE_RESULTS_DATA.length());
128 if (mimeType == null || mimeType.isEmpty()) {
136 results.put(mimeType, Uri.parse(uriStr));
176 String mimeType = entry.getKey();
178 if (mimeType == null) {
182 clipDataIntent.getBundleExtra(getExtraResultsKeyForData(mimeType));
187 clipDataIntent.putExtra(getExtraResultsKeyForData(mimeType), resultsBundle);
192 private static String getExtraResultsKeyForData(String mimeType) { argument
193 return EXTRA_DATA_TYPE_RESULTS_DATA + mimeType;
[all...]
/frameworks/av/drm/libdrmframework/include/
H A DDrmManager.h77 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 DNoOpDrmManagerClientImpl.h36 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 DDrmManagerClientImpl.h109 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);
H A DDrmManagerService.h83 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/av/drm/mediadrm/plugins/clearkey/
H A DDrmFactory.h35 virtual bool isContentTypeSupported(const android::String8 &mimeType);
/frameworks/av/include/drm/
H A DDrmManagerClient.h89 * @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 DDrmSupportInfo.h133 * @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 DIMediaHTTPConnection.h40 virtual status_t getMIMEType(String8 *mimeType) = 0;
/frameworks/av/media/libmedia/include/media/
H A DIMediaHTTPConnection.h40 virtual status_t getMIMEType(String8 *mimeType) = 0;
/frameworks/base/core/java/android/webkit/
H A DURLUtil.java297 * @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 DImportTestProvider.java45 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 DDrmManagerClient.java477 * @param mimeType MIME type of the object to be handled.
481 public boolean canHandle(String path, String mimeType) { argument
482 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) {
485 return _canHandle(mUniqueId, path, mimeType);
492 * @param mimeType MIME type of the object to be handled
496 public boolean canHandle(Uri uri, String mimeType) { argument
497 if ((null == uri || Uri.EMPTY == uri) && (null == mimeType || mimeType.equals(""))) {
500 return canHandle(convertUriToPath(uri), mimeType);
568 getDrmObjectType(String path, String mimeType) argument
585 getDrmObjectType(Uri uri, String mimeType) argument
758 openConvertSession(String mimeType) argument
886 _canHandle(int uniqueId, String path, String mimeType) argument
895 _getDrmObjectType(int uniqueId, String path, String mimeType) argument
905 _openConvertSession(int uniqueId, String mimeType) argument
[all...]
H A DDrmOutputStream.java56 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 DDrmManagerClient.cpp50 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 DDrmManagerClientImpl.cpp119 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 DMimeIconUtils.java31 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 DDrmConvertSession.java44 * @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 DClipDescription.java180 * @param mimeType The desired MIME type. May be a pattern.
184 public boolean hasMimeType(String mimeType) { argument
187 if (compareMimeTypes(mMimeTypes.get(i), mimeType)) {
198 * @param mimeType The desired MIME type. May be a pattern.
202 public String[] filterMimeTypes(String mimeType) { argument
206 if (compareMimeTypes(mMimeTypes.get(i), mimeType)) {
240 final String mimeType = mimeTypes[i];
241 if (!mMimeTypes.contains(mimeType)) {
242 mMimeTypes.add(mimeType);
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp204 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 DMimeTypeUtil.cpp121 * @param mimeType - mimetype in lower case to convert.
125 String8 MimeTypeUtil::convertMimeType(String8& mimeType) { argument
126 String8 result = mimeType;
131 pMimeType = mimeType.string();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DWapPushOverSms.java240 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/include/media/stagefright/
H A DAACExtractor.h57 const sp<DataSource> &source, String8 *mimeType, float *confidence,

Completed in 714 milliseconds

12345678910