Home
last modified time | relevance | path

Searched refs:MimeTypes (Results 1 – 25 of 25) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DConfig.java28 import com.android.documentsui.base.MimeTypes;
42 if (MimeTypes.isDirectoryType(docMimeType)) { in canSelectType()
59 if (MimeTypes.isDirectoryType(mimeType)) { in isDocumentEnabled()
79 return MimeTypes.mimeMatches(state.acceptMimes, mimeType); in isDocumentEnabled()
DMenuManager.java35 import com.android.documentsui.base.MimeTypes;
86 if (!MimeTypes.mimeMatches(Document.MIME_TYPE_DIR, docMimeType)) { in updateModel()
DPickActivity.java56 import com.android.documentsui.base.MimeTypes;
343 boolean visualMimes = MimeTypes.mimeMatches( in refreshDirectory()
344 MimeTypes.VISUAL_MIMES, mState.acceptMimes); in refreshDirectory()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunkIoHelper.java33 import com.google.android.exoplayer.util.MimeTypes;
220 if (MimeTypes.isAudio(mMediaFormats.get(i).mimeType)) { in init()
222 } else if (MimeTypes.isVideo(mMediaFormats.get(i).mimeType)) { in init()
337 if (MimeTypes.isAudio(mMediaFormats.get(i).mimeType)) { in release()
339 } else if (MimeTypes.isVideo(mMediaFormats.get(i).mimeType)) { in release()
420 && (MimeTypes.isVideo(mMediaFormats.get(index).mimeType) in doOpenWrite()
421 || MimeTypes.isAudio(mMediaFormats.get(index).mimeType)); in doOpenWrite()
517 && (MimeTypes.isVideo(mMediaFormats.get(index).mimeType) in doWrite()
518 || MimeTypes.isAudio( in doWrite()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunkIoHelper.java34 import com.google.android.exoplayer2.util.MimeTypes;
210 if (MimeTypes.isAudio(mFormats.get(i).sampleMimeType)) { in init()
214 } else if (MimeTypes.isVideo(mFormats.get(i).sampleMimeType)) { in init()
366 if (MimeTypes.isAudio(mFormats.get(i).sampleMimeType)) { in release()
370 } else if (MimeTypes.isVideo(mFormats.get(i).sampleMimeType)) { in release()
462 && (MimeTypes.isVideo(mFormats.get(index).sampleMimeType) in doOpenWrite()
463 || MimeTypes.isAudio(mFormats.get(index).sampleMimeType)); in doOpenWrite()
559 && (MimeTypes.isVideo(mFormats.get(index).sampleMimeType) in doWrite()
560 || MimeTypes.isAudio( in doWrite()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DMpegTsDefaultAudioTrackRenderer.java36 import com.google.android.exoplayer.util.MimeTypes;
159 return mimeType.equals(MimeTypes.AUDIO_AC3) in handlesMimeType()
160 || mimeType.equals(MimeTypes.AUDIO_E_AC3) in handlesMimeType()
161 || mimeType.equals(MimeTypes.AUDIO_MPEG_L2) in handlesMimeType()
173 if (MimeTypes.isAudio(mimeType) && handlesMimeType(mimeType)) { in doPrepare()
473 if (MimeTypes.AUDIO_MPEG_L2.equalsIgnoreCase(mDecodingMime)) { in feedInputBuffer()
530 if (MimeTypes.AUDIO_MPEG_L2.equalsIgnoreCase(mDecodingMime)) { in processOutput()
DAudioTrackMonitor.java22 import com.google.android.exoplayer.util.MimeTypes;
69 mIsMp2 = MimeTypes.AUDIO_MPEG_L2.equalsIgnoreCase(mime); in setEncoding()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchChipViewManager.java36 import com.android.documentsui.base.MimeTypes;
81 private static final String[] DOCUMENTS_MIMETYPES = MimeTypes.getDocumentMimeTypeArray();
231 final boolean isMatched = MimeTypes.mimeMatches(acceptMimeTypes, mimeTypes); in initChipSets()
255 final boolean isMatched = MimeTypes.mimeMatches(acceptMimeTypes, mimeTypes); in updateChips()
381 chipIcon = IconUtils.loadMimeIcon(context, MimeTypes.GENERIC_TYPE); in bindChip()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java276 derivedMimeTypes = MimeTypes.getDocumentMimeTypeArray(); in deriveFields()
426 return IconUtils.loadMimeIcon(context, MimeTypes.IMAGE_MIME); in loadMimeTypeIcon()
428 return IconUtils.loadMimeIcon(context, MimeTypes.AUDIO_MIME); in loadMimeTypeIcon()
430 return IconUtils.loadMimeIcon(context, MimeTypes.VIDEO_MIME); in loadMimeTypeIcon()
432 return IconUtils.loadMimeIcon(context, MimeTypes.GENERIC_TYPE); in loadMimeTypeIcon()
DFilteringCursorWrapper.java59 if (rejectMimes != null && MimeTypes.mimeMatches(rejectMimes, mimeType)) { in FilteringCursorWrapper()
65 if (MimeTypes.mimeMatches(acceptMimes, mimeType)) { in FilteringCursorWrapper()
DMimeTypes.java26 public final class MimeTypes { class
28 private MimeTypes() { in MimeTypes() method in MimeTypes
DState.java152 if (!MimeTypes.mimeMatches(MimeTypes.IMAGE_MIME, mimeType)) { in isPhotoPicking()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersAccess.java26 import com.android.documentsui.base.MimeTypes;
124 MimeTypes.mimeMatches(root.derivedMimeTypes, state.acceptMimes) || in getMatchingRoots()
125 MimeTypes.mimeMatches(state.acceptMimes, root.derivedMimeTypes); in getMatchingRoots()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchChipViewManagerTest.java35 import com.android.documentsui.base.MimeTypes;
105 assertThat(MimeTypes.mimeMatches(TEST_MIME_TYPES, checkedMimeTypes[0])).isTrue(); in testGetCheckedChipMimeTypes_hasCorrectValue()
106 assertThat(MimeTypes.mimeMatches(TEST_MIME_TYPES, checkedMimeTypes[1])).isTrue(); in testGetCheckedChipMimeTypes_hasCorrectValue()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java45 import com.android.documentsui.base.MimeTypes;
179 || MimeTypes.mimeMatches(MimeTypes.VISUAL_MIMES, mimeType); in load()
DSelectionMetadata.java30 import com.android.documentsui.base.MimeTypes;
78 if (MimeTypes.isDirectoryType(mimeType)) { in onItemStateChanged()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDropBadgeView.java20 import com.android.documentsui.base.MimeTypes;
49 Drawable defaultIcon = IconUtils.loadMimeIcon(context, MimeTypes.GENERIC_TYPE); in DropBadgeView()
DDirectoryLoader.java45 import com.android.documentsui.base.MimeTypes;
62 {Document.MIME_TYPE_DIR, MimeTypes.IMAGE_MIME};
DDragAndDropManager.java35 import com.android.documentsui.base.MimeTypes;
198 IconUtils.loadMimeIcon(context, MimeTypes.GENERIC_TYPE)); in RuntimeDragAndDropManager()
DAbstractActionHandler.java54 import com.android.documentsui.base.MimeTypes;
392 if (MimeTypes.isApkType(doc.mimeType)) { in onDocumentOpened()
540 return MimeTypes.isApkType(doc.mimeType) || doc.isPartial(); in isManagedDownload()
/packages/apps/TV/tuner/src/com/google/android/exoplayer/
DMediaFormatUtil.java19 import com.google.android.exoplayer.util.MimeTypes;
57 MimeTypes.AUDIO_RAW.equals(mimeType) ? C.ENCODING_PCM_16BIT : MediaFormat.NO_VALUE; in createMediaFormat()
DMediaSoftwareCodecUtil.java24 import com.google.android.exoplayer.util.MimeTypes;
238 return MimeTypes.VIDEO_H264.equals(mimeType); in isSecurePlaybackSupported()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsSampleExtractor.java31 import com.google.android.exoplayer.util.MimeTypes;
138 if (MimeTypes.isVideo(mime) && mVideoTrackIndex == -1) { in prepare()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsSampleExtractor.java31 import com.google.android.exoplayer.util.MimeTypes;
138 if (MimeTypes.isVideo(mime) && mVideoTrackIndex == -1) { in prepare()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java59 import com.android.documentsui.base.MimeTypes;
384 intent.setType(MimeTypes.findCommonMimeType(mimeTypes)); in shareSelectedDocuments()