Searched defs:mimeType (Results 76 - 100 of 108) sorted by relevance

12345

/frameworks/base/core/java/android/provider/
H A DDocumentsContract.java892 * @param mimeType MIME type of new document
897 String mimeType, String displayName) {
901 return createDocument(client, parentDocumentUri, mimeType, displayName);
912 String mimeType, String displayName) throws RemoteException {
915 in.putString(Document.COLUMN_MIME_TYPE, mimeType);
896 createDocument(ContentResolver resolver, Uri parentDocumentUri, String mimeType, String displayName) argument
911 createDocument(ContentProviderClient client, Uri parentDocumentUri, String mimeType, String displayName) argument
/frameworks/base/drm/java/android/drm/
H A DDrmManagerClient.java466 * @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...]
/frameworks/base/media/java/android/media/
H A DMediaFile.java111 public final String mimeType; field in class:MediaFile.MediaFileType
113 MediaFileType(int fileType, String mimeType) { argument
115 this.mimeType = mimeType;
133 static void addFileType(String extension, int fileType, String mimeType) { argument
134 sFileTypeMap.put(extension, new MediaFileType(fileType, mimeType));
135 sMimeTypeMap.put(mimeType, Integer.valueOf(fileType));
138 static void addFileType(String extension, int fileType, String mimeType, int mtpFormatCode) { argument
139 addFileType(extension, fileType, mimeType);
141 sMimeTypeToFormatMap.put(mimeType, Intege
281 isMimeTypeMedia(String mimeType) argument
305 getFileTypeForMimeType(String mimeType) argument
315 getFormatCode(String fileName, String mimeType) argument
[all...]
H A DMediaDrm.java134 * media container format specified by mimeType.
136 * @param mimeType The MIME type of the media container, e.g. "video/mp4"
139 public static final boolean isCryptoSchemeSupported(UUID uuid, String mimeType) { argument
140 return isCryptoSchemeSupportedNative(getByteArrayFromUUID(uuid), mimeType);
157 String mimeType);
419 * mime type provided in the mimeType parameter. It could contain, for example,
423 * @param mimeType identifies the mime type of the content
434 String mimeType, int keyType, HashMap<String, String> optionalParameters)
156 isCryptoSchemeSupportedNative(byte[] uuid, String mimeType) argument
433 getKeyRequest(byte[] scope, byte[] init, String mimeType, int keyType, HashMap<String, String> optionalParameters) argument
H A DMediaScanner.java442 public FileEntry beginFile(String path, String mimeType, long lastModified, argument
444 mMimeType = mimeType;
455 // try mimeType first, if it is specified
456 if (mimeType != null) {
457 mFileType = MediaFile.getFileTypeForMimeType(mimeType);
460 // if mimeType was not specified, compute file type based on file extension.
466 mMimeType = mediaFileType.mimeType;
524 public Uri doScanFile(String path, String mimeType, long lastModified, argument
529 FileEntry entry = beginFile(path, mimeType, lastModified,
569 processFile(path, mimeType, thi
745 setMimeType(String mimeType) argument
1359 scanSingleFile(String path, String volumeName, String mimeType) argument
1865 processFile(String path, String mimeType, MediaScannerClient client) argument
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardBuilder.java1825 final String mimeType, ContentValues contentValues) {
1826 if (!sAllowedAndroidPropertySet.contains(mimeType)) {
1854 mBuilder.append(mimeType); // Should not be encoded.
1824 appendAndroidSpecificProperty( final String mimeType, ContentValues contentValues) argument
H A DVCardEntry.java1438 public AndroidCustomData(String mimeType, List<String> dataList) { argument
1439 mMimeType = mimeType;
1444 String mimeType;
1448 mimeType = null;
1451 mimeType = list.get(0);
1456 mimeType = list.get(0);
1460 return new AndroidCustomData(mimeType, dataList);
/frameworks/support/v4/java/android/support/v4/app/
H A DShareCompat.java414 * @param mimeType mimetype of the shared data
418 public IntentBuilder setType(String mimeType) { argument
419 mIntent.setType(mimeType);
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DRemotePlaybackClient.java231 * @param mimeType The mime type of the content, or null if unknown.
245 public void play(Uri contentUri, String mimeType, Bundle metadata, argument
247 playOrEnqueue(contentUri, mimeType, metadata, positionMillis,
265 * @param mimeType The mime type of the content, or null if unknown.
280 public void enqueue(Uri contentUri, String mimeType, Bundle metadata, argument
282 playOrEnqueue(contentUri, mimeType, metadata, positionMillis,
286 private void playOrEnqueue(Uri contentUri, String mimeType, Bundle metadata, argument
298 intent.setDataAndType(contentUri, mimeType);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp137 String8 mimeType; local
142 success = SniffWVM(mDataSource, &mimeType, &confidence, &dummy);
145 mimeType.string(), MEDIA_MIMETYPE_CONTAINER_WVM)) {
146 ALOGE("unsupported widevine mime: %s", mimeType.string());
/frameworks/av/media/libstagefright/
H A DAVIExtractor.cpp1286 const sp<DataSource> &source, String8 *mimeType, float *confidence,
1294 mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_AVI);
1285 SniffAVI( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *) argument
H A DFLACExtractor.cpp840 const sp<DataSource> &source, String8 *mimeType, float *confidence,
854 *mimeType = MEDIA_MIMETYPE_AUDIO_FLAC;
839 SniffFLAC( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *) argument
H A DOggExtractor.cpp1063 const sp<DataSource> &source, String8 *mimeType, float *confidence,
1070 mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_OGG);
1062 SniffOgg( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *) argument
H A DAwesomePlayer.cpp2390 String8 mimeType; local
2398 success = SniffWVM(dataSource, &mimeType, &confidence, &dummy);
2403 mimeType.string(), MEDIA_MIMETYPE_CONTAINER_WVM)) {
2826 String8 mimeType(request.readString16());
2828 return mTextDriver->addOutOfBandTextSource(nTracks, uri, mimeType);
2839 String8 mimeType(request.readString16());
2842 nTracks, fd, offset, length, mimeType);
/frameworks/av/media/libstagefright/matroska/
H A DMatroskaExtractor.cpp1092 const sp<DataSource> &source, String8 *mimeType, float *confidence,
1101 mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_MATROSKA);
1091 SniffMatroska( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *) argument
/frameworks/av/media/ndk/
H A DNdkMediaDrm.cpp189 bool AMediaDrm_isCryptoSchemeSupported(const AMediaUUID uuid, const char *mimeType) { argument
196 String8 mimeStr = mimeType ? String8(mimeType) : String8("");
277 const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType,
284 if (!mimeType || !scope || !keyRequest || !keyRequestSize) {
315 status_t status = mObj->mDrm->getKeyRequest(*iter, mdInit, String8(mimeType),
276 AMediaDrm_getKeyRequest(AMediaDrm *mObj, const AMediaDrmScope *scope, const uint8_t *init, size_t initSize, const char *mimeType, AMediaDrmKeyType keyType, const AMediaDrmKeyValue *optionalParameters, size_t numOptionalParameters, const uint8_t **keyRequest, size_t *keyRequestSize) argument
/frameworks/base/core/java/android/content/
H A DContentProvider.java384 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri uri, String mimeType, argument
392 uri, mimeType, opts, CancellationSignal.fromTransport(cancellationSignal));
1459 * <p>The default implementation compares the given mimeType against the
1520 * <p>The default implementation compares the given mimeType against the
1585 * @param mimeType The desired type of data to be written.
1589 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, argument
1601 * @param mimeType The desired type of data to be written.
1610 public <T> ParcelFileDescriptor openPipeHelper(final Uri uri, final String mimeType, argument
1619 func.writeDataToPipe(fds[1], uri, mimeType, opts, args);
H A DContentResolver.java1012 * @param mimeType The desired MIME type of the returned data. This can
1026 Uri uri, String mimeType, Bundle opts) throws FileNotFoundException {
1027 return openTypedAssetFileDescriptor(uri, mimeType, opts, null);
1045 * @param mimeType The desired MIME type of the returned data. This can
1062 String mimeType, Bundle opts, CancellationSignal cancellationSignal)
1081 mPackageName, uri, mimeType, opts, remoteCancellationSignal);
1096 mPackageName, uri, mimeType, opts, remoteCancellationSignal);
1025 openTypedAssetFileDescriptor( Uri uri, String mimeType, Bundle opts) argument
1061 openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts, CancellationSignal cancellationSignal) argument
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp335 jstring mimeType = getMimeTypeString(env, decoder->getFormat()); local
341 env->SetObjectField(options, gOptions_mimeFieldID, mimeType);
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp415 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) {
420 Utility::getStringValue(env, mimeType));
498 processedData, env->NewStringUTF(pDrmInfoStatus->mimeType.string()));
581 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) {
586 Utility::getStringValue(env, mimeType));
599 String8 mimeType local
604 return env->NewStringUTF(mimeType.string());
632 JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) {
636 ->openConvertSession(uniqueId, Utility::getStringValue(env, mimeType));
414 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
580 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
631 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDocumentsActivity.java194 final String mimeType = getIntent().getType();
196 SaveFragment.show(getFragmentManager(), mimeType, title);
1038 public void onSaveRequested(String mimeType, String displayName) { argument
1039 new CreateFinishTask(mimeType, displayName).executeOnExecutor(getCurrentExecutor());
1105 public CreateFinishTask(String mimeType, String displayName) { argument
1106 mMimeType = mimeType;
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
H A DVCardExporterTests.java1042 private String getAndroidPropValue(final String mimeType, String value, Integer type) { argument
1043 return getAndroidPropValue(mimeType, value, type, null);
1046 private String getAndroidPropValue(final String mimeType, String value, argument
1048 return (mimeType + ";" + value + ";"
/frameworks/base/core/java/android/app/
H A DDownloadManager.java611 public Request setMimeType(String mimeType) { argument
612 mMimeType = mimeType;
1183 * @param mimeType mimetype of the file.
1193 boolean isMediaScannerScannable, String mimeType, String path, long length,
1195 return addCompletedDownload(title, description, isMediaScannerScannable, mimeType, path,
1201 boolean isMediaScannerScannable, String mimeType, String path, long length,
1207 validateArgumentIsNonEmpty("mimeType", mimeType);
1216 .setMimeType(mimeType);
1192 addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification) argument
1200 addCompletedDownload(String title, String description, boolean isMediaScannerScannable, String mimeType, String path, long length, boolean showNotification, boolean allowWrite) argument
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java116 public void loadData(String data, String mimeType, String encoding); argument
119 String mimeType, String encoding, String historyUrl);
118 loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) argument
/frameworks/base/media/jni/
H A Dandroid_media_MediaDrm.cpp386 bool JDrm::IsCryptoSchemeSupported(const uint8_t uuid[16], const String8 &mimeType) { argument
393 return drm->isCryptoSchemeSupported(uuid, mimeType);
687 String8 mimeType; local
689 mimeType = JStringToString8(env, jmimeType);
692 return JDrm::IsCryptoSchemeSupported(uuid.array(), mimeType);
746 String8 mimeType; local
748 mimeType = JStringToString8(env, jmimeType);
772 status_t err = drm->getKeyRequest(sessionId, initData, mimeType,

Completed in 1270 milliseconds

12345