Home
last modified time | relevance | path

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

12

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DFileSampleExtractor.java33 import com.google.android.exoplayer2.util.MimeTypes;
116 Format videoFormat = Iterables.find(formats, f -> MimeTypes.isVideo(f.sampleMimeType)); in handlePrepare()
121 MimeTypes.APPLICATION_CEA708, in handlePrepare()
165 MimeTypes.AUDIO_RAW.equals(mimeType) ? C.ENCODING_PCM_16BIT : Format.NO_VALUE; in createFormat()
166 if (MimeTypes.isAudio(mimeType)) { in createFormat()
180 } else if(MimeTypes.isVideo(mimeType)) { in createFormat()
194 } else if(MimeTypes.isText(mimeType)) { in createFormat()
DMpegTsSampleExtractor.java34 import com.google.android.exoplayer2.util.MimeTypes;
254 if (MimeTypes.isVideo(mime) && mVideoTrackIndex == -1) { in onPrepared()
261 } else if (MimeTypes.APPLICATION_CEA708.equals(mime)) { in onPrepared()
/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;
344 boolean visualMimes = MimeTypes.mimeMatches( in refreshDirectory()
345 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()
369 if (MimeTypes.isAudio(mFormats.get(i).sampleMimeType)) { in release()
373 } else if (MimeTypes.isVideo(mFormats.get(i).sampleMimeType)) { in release()
465 && (MimeTypes.isVideo(mFormats.get(index).sampleMimeType) in doOpenWrite()
466 || MimeTypes.isAudio(mFormats.get(index).sampleMimeType)); in doOpenWrite()
562 && (MimeTypes.isVideo(mFormats.get(index).sampleMimeType) in doWrite()
563 || 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/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/src/com/android/documentsui/queries/
DSearchChipViewManager.java37 import com.android.documentsui.base.MimeTypes;
83 private static final String[] DOCUMENTS_MIMETYPES = MimeTypes.getDocumentMimeTypeArray();
235 final boolean isMatched = MimeTypes.mimeMatches(acceptMimeTypes, mimeTypes); in initChipSets()
259 final boolean isMatched = MimeTypes.mimeMatches(acceptMimeTypes, mimeTypes); in updateChips()
385 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.java58 if (rejectMimes != null && MimeTypes.mimeMatches(rejectMimes, mimeType)) { in filterMimes()
61 return MimeTypes.mimeMatches(acceptMimes, mimeType); in filterMimes()
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/tests/unit/com/android/documentsui/queries/
DSearchChipViewManagerTest.java35 import com.android.documentsui.base.MimeTypes;
120 assertThat(MimeTypes.mimeMatches(TEST_MIME_TYPES, checkedMimeTypes[0])).isTrue(); in testGetCheckedChipMimeTypes_hasCorrectValue()
121 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;
61 {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;
394 if (MimeTypes.isApkType(doc.mimeType)) { in onDocumentOpened()
542 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/exoplayer/
DMpegTsSampleExtractor.java31 import com.google.android.exoplayer.util.MimeTypes;
138 if (MimeTypes.isVideo(mime) && mVideoTrackIndex == -1) { in prepare()

12