Home
last modified time | relevance | path

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

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunkIoHelper.java31 import com.google.android.exoplayer.util.MimeTypes;
197 if (MimeTypes.isAudio(mMediaFormats.get(i).mimeType)) { in init()
199 } else if (MimeTypes.isVideo(mMediaFormats.get(i).mimeType)) { in init()
305 if (MimeTypes.isAudio(mMediaFormats.get(i).mimeType)) { in release()
307 } else if (MimeTypes.isVideo(mMediaFormats.get(i).mimeType)) { in release()
389 && (MimeTypes.isVideo(mMediaFormats.get(index).mimeType) in doOpenWrite()
390 || MimeTypes.isAudio(mMediaFormats.get(index).mimeType)); in doOpenWrite()
491 && (MimeTypes.isVideo(mMediaFormats.get(index).mimeType) in doWrite()
492 || MimeTypes.isAudio( in doWrite()
/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.java33 import com.android.documentsui.base.MimeTypes;
77 if (!MimeTypes.mimeMatches(Document.MIME_TYPE_DIR, docMimeType)) { in updateModel()
DPickActivity.java53 import com.android.documentsui.base.MimeTypes;
315 boolean visualMimes = MimeTypes.mimeMatches( in refreshDirectory()
316 MimeTypes.VISUAL_MIMES, mState.acceptMimes); in refreshDirectory()
/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()
471 if (MimeTypes.AUDIO_MPEG_L2.equalsIgnoreCase(mDecodingMime)) { in feedInputBuffer()
528 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.java24 import com.android.documentsui.base.MimeTypes;
125 MimeTypes.mimeMatches(root.derivedMimeTypes, state.acceptMimes) || in getMatchingRoots()
126 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;
89 assertThat(MimeTypes.mimeMatches(TEST_MIME_TYPES, checkedMimeTypes[0])).isTrue(); in testGetCheckedChipMimeTypes_HasCorrectValue()
90 assertThat(MimeTypes.mimeMatches(TEST_MIME_TYPES, checkedMimeTypes[1])).isTrue(); in testGetCheckedChipMimeTypes_HasCorrectValue()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java368 return IconUtils.loadMimeIcon(context, MimeTypes.IMAGE_MIME); in loadMimeTypeIcon()
370 return IconUtils.loadMimeIcon(context, MimeTypes.AUDIO_MIME); in loadMimeTypeIcon()
372 return IconUtils.loadMimeIcon(context, MimeTypes.VIDEO_MIME); in loadMimeTypeIcon()
374 return IconUtils.loadMimeIcon(context, MimeTypes.GENERIC_TYPE); in loadMimeTypeIcon()
DMimeTypes.java23 public final class MimeTypes { class
25 private MimeTypes() {} in MimeTypes() method in MimeTypes
DFilteringCursorWrapper.java58 if (rejectMimes != null && MimeTypes.mimeMatches(rejectMimes, mimeType)) { in FilteringCursorWrapper()
64 if (MimeTypes.mimeMatches(acceptMimes, mimeType)) { in FilteringCursorWrapper()
DState.java139 if (!MimeTypes.mimeMatches(MimeTypes.IMAGE_MIME, mimeType)) { in isPhotoPicking()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java44 import com.android.documentsui.base.MimeTypes;
164 || 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.java46 import com.android.documentsui.base.MimeTypes;
60 {Document.MIME_TYPE_DIR, MimeTypes.IMAGE_MIME};
DDragAndDropManager.java34 import com.android.documentsui.base.MimeTypes;
190 IconUtils.loadMimeIcon(context, MimeTypes.GENERIC_TYPE)); in RuntimeDragAndDropManager()
DIconUtils.java25 import com.android.documentsui.base.MimeTypes;
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DVideoRendererExoV2.java27 import com.google.android.exoplayer2.util.MimeTypes;
114 MimeTypes.VIDEO_MPEG2.equals(format.sampleMimeType) in onInputFormatChanged()
/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/DocumentsUI/src/com/android/documentsui/queries/
DSearchChipViewManager.java34 import com.android.documentsui.base.MimeTypes;
188 final boolean isMatched = MimeTypes.mimeMatches(acceptMimeTypes, mimeTypes); in initChipSets()
212 final boolean isMatched = MimeTypes.mimeMatches(acceptMimeTypes, mimeTypes); in updateChips()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java61 import com.android.documentsui.base.MimeTypes;
380 intent.setType(MimeTypes.findCommonMimeType(mimeTypes)); in shareSelectedDocuments()
568 if (MimeTypes.isApkType(doc.mimeType)) { in onDocumentPicked()
715 return MimeTypes.isApkType(doc.mimeType) in isManagedDownload()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsSampleExtractor.java29 import com.google.android.exoplayer.util.MimeTypes;
123 if (MimeTypes.isVideo(mime) && mVideoTrackIndex == -1) { in prepare()