Searched refs:mimeType (Results 101 - 125 of 217) sorted by relevance

123456789

/frameworks/support/documents-archive/src/android/support/provider/
H A DDocumentArchiveHelper.java218 public boolean isSupportedArchiveType(String mimeType) { argument
220 if (zipMimeType.equals(mimeType)) {
279 final String mimeType = cursor.getString(cursor.getColumnIndex(
281 Preconditions.checkArgument(isSupportedArchiveType(mimeType),
H A DDocumentArchive.java511 final String mimeType = getMimeTypeForEntry(entry);
512 row.add(Document.COLUMN_MIME_TYPE, mimeType);
514 final int flags = mimeType.startsWith("image/") ? Document.FLAG_SUPPORTS_THUMBNAIL : 0;
526 final String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);
527 if (mimeType != null) {
528 return mimeType;
/frameworks/support/v4/java/android/support/v4/provider/
H A DDocumentFile.java153 * @param mimeType MIME type of new document, such as {@code image/png} or
164 public abstract DocumentFile createFile(String mimeType, String displayName); argument
/frameworks/av/drm/libdrmframework/plugins/common/include/
H A DDrmEngineBase.h58 int getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);
91 const DrmBuffer& buf, const String8& mimeType);
238 * @param[in] mimeType Mime type of the content or null.
243 int uniqueId, const String8& path, const String8& mimeType) = 0;
445 * @param[in] mimeType Mime type of the protected content
452 const String8& /* mimeType */) {
/frameworks/av/media/libstagefright/
H A DDataSource.cpp120 String8 *mimeType, float *confidence, sp<AMessage> *meta) {
121 *mimeType = "";
139 *mimeType = newMimeType;
119 sniff( String8 *mimeType, float *confidence, sp<AMessage> *meta) argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DFragmentTuner.java126 public boolean isDocumentEnabled(String mimeType, int docFlags) { argument
128 if (MimePredicate.isDirectoryType(mimeType)) {
146 return MimePredicate.mimeMatches(mState.acceptMimes, mimeType);
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportStorageProvider.java182 String mimeType = getTypeForName(file.getName());
184 if (mArchiveHelper.isSupportedArchiveType(mimeType)) {
190 row.add(Document.COLUMN_MIME_TYPE, mimeType);
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContentProvider.java131 String mimeType, Bundle opts, ICancellationSignal signal)
133 return MockContentProvider.this.openTypedAssetFile(url, mimeType, opts);
249 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) { argument
130 openTypedAssetFile(String callingPackage, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
H A DMockIContentProvider.java109 public AssetFileDescriptor openTypedAssetFile(String callingPackage, Uri url, String mimeType, argument
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java84 public static boolean isImageMimeType(String mimeType) { argument
85 return mimeType != null && mimeType.startsWith("image/");
/frameworks/base/core/java/android/content/
H A DContentProviderClient.java398 @NonNull String mimeType, @Nullable Bundle opts)
400 return openTypedAssetFileDescriptor(uri, mimeType, opts, null);
405 @NonNull String mimeType, @Nullable Bundle opts, @Nullable CancellationSignal signal)
408 Preconditions.checkNotNull(mimeType, "mimeType");
419 mPackageName, uri, mimeType, opts, remoteSignal);
397 openTypedAssetFileDescriptor(@onNull Uri uri, @NonNull String mimeType, @Nullable Bundle opts) argument
404 openTypedAssetFileDescriptor(@onNull Uri uri, @NonNull String mimeType, @Nullable Bundle opts, @Nullable CancellationSignal signal) argument
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
H A DModelTest.java234 String mimeType =(i % 2 == 0) ? Document.MIME_TYPE_DIR : "text/*";
235 row.add(Document.COLUMN_MIME_TYPE, mimeType);
253 String mimeType = DocumentInfo.getCursorString(cOut, Document.COLUMN_MIME_TYPE);
255 assertFalse(Document.MIME_TYPE_DIR.equals(mimeType));
257 if (!Document.MIME_TYPE_DIR.equals(mimeType)) {
/frameworks/base/core/java/android/provider/
H A DDocumentsProvider.java218 * @param mimeType the concrete MIME type associated with the new document.
225 public String createDocument(String parentDocumentId, String mimeType, String displayName) argument
755 final String mimeType = extras.getString(Document.COLUMN_MIME_TYPE);
757 final String newDocumentId = createDocument(documentId, mimeType, displayName);
968 final String mimeType =
972 if ((flags & Document.FLAG_VIRTUAL_DOCUMENT) == 0 && mimeType != null &&
973 mimeTypeMatches(mimeTypeFilter, mimeType)) {
974 return new String[] { mimeType };
/frameworks/wilhelm/src/
H A Ddata.c500 if (NULL != pDataFormat->mMIME.mimeType) {
502 size_t len = strlen((const char *) pDataFormat->mMIME.mimeType);
507 memcpy(myMIME, pDataFormat->mMIME.mimeType, len + 1);
515 pDataFormat->mMIME.mimeType = myMIME;
738 if (NULL != pDataFormat->mMIME.mimeType) {
739 free(pDataFormat->mMIME.mimeType);
740 pDataFormat->mMIME.mimeType = NULL;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp343 const String8& mimeType) {
344 String8 mimeStr = String8(mimeType);
355 ((0 == mimeType.length()) || IsMimeTypeSupported(mimeType)) && (mimeType != path) ) {
510 decryptHandle->mimeType = MimeTypeUtil::convertMimeType(contentType);
341 onGetDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) argument
/frameworks/base/core/java/android/os/
H A DFileUtils.java619 public static File buildUniqueFile(File parent, String mimeType, String displayName) argument
621 final String[] parts = splitFileName(mimeType, displayName);
644 public static String[] splitFileName(String mimeType, String displayName) { argument
648 if (Document.MIME_TYPE_DIR.equals(mimeType)) {
672 mimeType);
673 if (Objects.equals(mimeType, mimeTypeFromExt) || Objects.equals(ext, extFromMimeType)) {
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDocumentsActivity.java77 final String mimeType = getIntent().getType();
79 SaveFragment.show(getFragmentManager(), mimeType, title);
314 void onSaveRequested(String mimeType, String displayName) { argument
315 new CreateFinishTask(this, mimeType, displayName)
547 public CreateFinishTask(DocumentsActivity activity, String mimeType, String displayName) { argument
549 mMimeType = mimeType;
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DRemotePlaybackClient.java273 * @param mimeType The mime type of the content, or null if unknown.
287 public void play(Uri contentUri, String mimeType, Bundle metadata, argument
289 playOrEnqueue(contentUri, mimeType, metadata, positionMillis,
307 * @param mimeType The mime type of the content, or null if unknown.
322 public void enqueue(Uri contentUri, String mimeType, Bundle metadata, argument
324 playOrEnqueue(contentUri, mimeType, metadata, positionMillis,
328 private void playOrEnqueue(Uri contentUri, String mimeType, Bundle metadata, argument
340 intent.setDataAndType(contentUri, mimeType);
/frameworks/av/drm/libdrmframework/plugins/passthru/include/
H A DDrmPassthruPlugIn.h52 int onGetDrmObjectType(int uniqueId, const String8& path, const String8& mimeType);
/frameworks/av/media/libstagefright/include/
H A DAVIExtractor.h122 const sp<DataSource> &source, String8 *mimeType, float *confidence,
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp416 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) {
421 Utility::getStringValue(env, mimeType));
499 processedData, env->NewStringUTF(pDrmInfoStatus->mimeType.string()));
582 JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) {
587 Utility::getStringValue(env, mimeType));
600 String8 mimeType local
605 return env->NewStringUTF(mimeType.string());
633 JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) {
637 ->openConvertSession(uniqueId, Utility::getStringValue(env, mimeType));
415 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
581 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
632 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument
/frameworks/base/media/java/android/media/
H A DMediaScanner.java475 public FileEntry beginFile(String path, String mimeType, long lastModified, argument
477 mMimeType = mimeType;
488 // try mimeType first, if it is specified
489 if (mimeType != null) {
490 mFileType = MediaFile.getFileTypeForMimeType(mimeType);
493 // if mimeType was not specified, compute file type based on file extension.
499 mMimeType = mediaFileType.mimeType;
557 public Uri doScanFile(String path, String mimeType, long lastModified, argument
562 FileEntry entry = beginFile(path, mimeType, lastModified,
612 processFile(path, mimeType, thi
788 setMimeType(String mimeType) argument
1390 scanSingleFile(String path, String mimeType) argument
1894 processFile(String path, String mimeType, MediaScannerClient client) argument
[all...]
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
H A DAppLaunch.java360 String mimeType = mLaunchIntent.getType();
361 if (mimeType == null && mLaunchIntent.getData() != null
363 mimeType = mAm.getProviderMimeType(mLaunchIntent.getData(),
367 mResult = mAm.startActivityAndWait(null, null, mLaunchIntent, mimeType,
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
H A DMemoryUsageTest.java313 String mimeType = mLaunchIntent.getType();
314 if (mimeType == null && mLaunchIntent.getData() != null
316 mimeType = mAm.getProviderMimeType(mLaunchIntent.getData(),
320 mAm.startActivityAndWait(null, null, mLaunchIntent, mimeType,
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.h35 bool isContentTypeSupported(const String8 &mimeType);
63 String8 const &mimeType, KeyType keyType,

Completed in 9844 milliseconds

123456789