Searched defs:mimeType (Results 51 - 75 of 122) sorted by relevance

12345

/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
H A DContentProviderNative.java307 String mimeType = data.readString();
313 fd = openTypedAssetFile(callingPkg, url, mimeType, opts, signal);
677 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri url, String mimeType, argument
686 data.writeString(mimeType);
H A DIContentProvider.java70 public AssetFileDescriptor openTypedAssetFile(String callingPkg, Uri url, String mimeType, argument
/frameworks/base/core/java/android/webkit/
H A DCacheManager.java59 String mimeType; field in class:CacheManager.CacheResult
144 return mimeType;
/frameworks/base/packages/DocumentsUI/perf-tests/src/com/android/documentsui/
H A DStressProvider.java191 row.add(Document.COLUMN_MIME_TYPE, document.mimeType);
202 final String mimeType; field in class:StressProvider.StubDocument
208 private StubDocument(String mimeType, String id, int size, long lastModified, argument
210 this.mimeType = mimeType;
227 public static StubDocument createFile(Context context, String mimeType, int thumbnail, argument
230 mimeType, createRandomId(index), createRandomSize(index),
/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/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
H A DIconHelper.java199 * @param mimeType The mime type of the file being represented.
207 public void loadThumbnail(Uri uri, String mimeType, int docFlags, int docIcon, argument
215 || MimePredicate.mimeMatches(MimePredicate.VISUAL_MIMES, mimeType);
231 DocumentsContract.getDocumentId(uri), mimeType, docIcon);
254 * @param mimeType The mime type of the file.
259 String mimeType, int icon) {
263 return IconUtils.loadMimeIcon(context, mimeType, authority, id, mMode);
258 getDocumentIcon(Context context, String authority, String id, String mimeType, int icon) argument
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DDocumentInfo.java51 public String mimeType; field in class:DocumentInfo
70 mimeType = null;
89 mimeType = DurableUtils.readNullableString(in);
108 DurableUtils.writeNullableString(out, mimeType);
157 this.mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE);
231 return Document.MIME_TYPE_DIR.equals(mimeType);
267 return derivedUri.hashCode() + mimeType.hashCode();
283 && Objects.equals(mimeType, other.mimeType);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/services/
H A DCopyJob.java341 dstMimeType = src.mimeType;
371 if (Document.MIME_TYPE_DIR.equals(src.mimeType)) {
440 * @param mimeType Mime type for the target. Can be different than source for virtual files.
444 String mimeType) throws ResourceException {
459 src.derivedUri, mimeType, null, canceller);
443 copyFileHelper(DocumentInfo src, DocumentInfo dest, DocumentInfo destParent, String mimeType) argument
/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/telephony/src/java/com/android/internal/telephony/
H A DWapPushOverSms.java197 String mimeType = pduDecoder.getValueString();
206 if (mimeType != null && mimeType.equals(WspTypeDecoder.CONTENT_TYPE_B_PUSH_CO)) {
250 String contentType = ((mimeType == null) ?
251 Long.toString(binaryContentType) : mimeType);
259 result.mimeType = mimeType;
336 if (result.mimeType == null) {
342 intent.setType(result.mimeType);
369 handler.dispatchIntent(intent, getPermissionForType(result.mimeType),
554 getPermissionForType(String mimeType) argument
564 getAppOpsPermissionForIntent(String mimeType) argument
578 String mimeType; field in class:WapPushOverSms.DecodedResult
[all...]
/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),
/frameworks/av/drm/libdrmframework/plugins/passthru/src/
H A DDrmPassthruPlugIn.cpp173 int uniqueId, const String8& path, const String8& mimeType) {
242 decryptHandle->mimeType = String8("video/passthru");
172 onGetDrmObjectType( int uniqueId, const String8& path, const String8& mimeType) argument
/frameworks/av/include/drm/
H A Ddrm_framework_common.h270 String8 mimeType; member in class:android::DecryptHandle
314 mimeType(""),
/frameworks/av/media/libstagefright/
H A DNuMediaExtractor.cpp82 String8 mimeType; local
85 bool success = SniffWVM(dataSource, &mimeType, &confidence, &dummy);
89 mimeType.string(), MEDIA_MIMETYPE_CONTAINER_WVM)) {
H A DWAVExtractor.cpp541 const sp<DataSource> &source, String8 *mimeType, float *confidence,
557 *mimeType = MEDIA_MIMETYPE_CONTAINER_WAV;
540 SniffWAV( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *) argument
/frameworks/av/media/libstagefright/mpeg2ts/
H A DMPEG2TSExtractor.cpp484 const sp<DataSource> &source, String8 *mimeType, float *confidence,
495 mimeType->setTo(MEDIA_MIMETYPE_CONTAINER_MPEG2TS);
483 SniffMPEG2TS( const sp<DataSource> &source, String8 *mimeType, float *confidence, sp<AMessage> *) argument
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoDecoderOMXComponent.cpp77 const char *mimeType,
96 def.format.video.cMIMEType = const_cast<char *>(mimeType);
73 initPorts( OMX_U32 numInputBuffers, OMX_U32 inputBufferSize, OMX_U32 numOutputBuffers, const char *mimeType, OMX_U32 minCompressionRatio) argument
/frameworks/base/core/java/android/nfc/
H A DNdefRecord.java391 * The mimeType parameter will be normalized with
396 * if the mimeType parameter has serious problems,
405 * @param mimeType a valid MIME type
408 * @throws IllegalArugmentException if the mimeType is empty or invalid
411 public static NdefRecord createMime(String mimeType, byte[] mimeData) { argument
412 if (mimeType == null) throw new NullPointerException("mimeType is null");
417 mimeType = Intent.normalizeMimeType(mimeType);
418 if (mimeType
[all...]
/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/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/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/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DTestDocumentsProvider.java156 public String createDocument(String parentDocumentId, String mimeType, String displayName) argument
160 return super.createDocument(parentDocumentId, mimeType, displayName);
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DMtpDatabase.java825 final String mimeType = getMimeType(info);
832 values.put(Document.COLUMN_MIME_TYPE, mimeType);
840 operationsSupported, mimeType, info.getThumbCompressedSizeLong(),
884 @Nullable int[] operationsSupported, String mimeType, long thumbnailSize,
887 if (!mimeType.equals(Document.MIME_TYPE_DIR) &&
899 if (mimeType.equals(Document.MIME_TYPE_DIR) &&
883 getDocumentFlags( @ullable int[] operationsSupported, String mimeType, long thumbnailSize, int protectionState, @DocumentType int documentType) argument

Completed in 669 milliseconds

12345