Home
last modified time | relevance | path

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

1234

/cts/tests/tests/media/codec/src/android/media/codec/cts/
DMediaCodecCapabilitiesTest.java51 import com.android.compatibility.common.util.MediaUtils;
102 if (!MediaUtils.checkEncoder(MIMETYPE_VIDEO_AVC)) { in testH264EncoderProfileAndLevel()
122 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_AVC)) { in testH264DecoderProfileAndLevel()
144 if (!MediaUtils.checkEncoder(MIMETYPE_VIDEO_H263)) { in testH263EncoderProfileAndLevel()
157 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_H263)) { in testH263DecoderProfileAndLevel()
170 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_MPEG4)) { in testMpeg4DecoderProfileAndLevel()
187 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_HEVC)) { in testH265DecoderProfileAndLevel()
201 if (isTv() && MediaUtils.canDecodeVideo(MIMETYPE_VIDEO_HEVC, 3840, 2160, 30)) { in testH265DecoderProfileAndLevel()
211 if (isTv() && MediaUtils.hasHardwareCodec(MIMETYPE_VIDEO_VP9, /* encode = */ false)) { in testVp9DecoderCapabilitiesOnTv()
213 assertTrue(MediaUtils.canDecodeVideo(MIMETYPE_VIDEO_VP9, 1920, 1080, 60 /* fps */, in testVp9DecoderCapabilitiesOnTv()
[all …]
DMediaCodecBlockModelTest.java47 import com.android.compatibility.common.util.MediaUtils;
102 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortVideo()
123 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortAudio()
144 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testEncodeShortAudio()
158 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testEncodeShortVideo()
173 String[] codecs = MediaUtils.getDecoderNames(true /* isGoog */, mediaFormat); in runDecodeShortAudio()
228 String[] codecs = MediaUtils.getEncoderNames(true /* isGoog */, mediaFormat); in runEncodeShortAudio()
287 String[] codecs = MediaUtils.getEncoderNames(true /* isGoog */, mediaFormat); in runEncodeShortVideo()
/cts/tests/tests/media/player/src/android/media/player/cts/
DStreamingMediaPlayerTest.java38 import com.android.compatibility.common.util.MediaUtils;
115 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video1()
124 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video2()
133 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video1()
142 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video2()
151 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video1()
160 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video2()
170 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHLS()
179 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsWithHeadersCookies()
206 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsSampleAes_bbb_audio_only_overridable()
[all …]
DMediaPlayerSurfaceStubActivity.java29 import com.android.compatibility.common.util.MediaUtils;
89 MediaUtils.hasCodecsForResource(FILE_PATH)); in playVideo()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaMetadataRetrieverTest.java61 import com.android.compatibility.common.util.MediaUtils;
516 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testGenreParsing()
659 if (!MediaUtils.hasCodecForResourceAndDomain(mInpPrefix + res, "video/")) { in testThumbnail()
660 MediaUtils.skipTest("no video codecs for resource: " + mInpPrefix + res); in testThumbnail()
744 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailVP9Hdr()
752 MediaUtils.skipTest("No supported HDR display type"); in testThumbnailVP9Hdr()
761 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailAV1Hdr()
769 MediaUtils.skipTest("No supported HDR display type"); in testThumbnailAV1Hdr()
778 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailHDR10()
788 if (!MediaUtils.hasCodecForResourceAndDomain(mInpPrefix + res, "video/")) { in testThumbnailWithRotation()
[all …]
DThumbnailUtilsTest.java36 import com.android.compatibility.common.util.MediaUtils;
175 if (!MediaUtils.hasDecoder(MIMETYPE_VIDEO_HEVC)) { in testCreateImageThumbnail_HEICSample()
176 MediaUtils.skipTest("no video decoders for resource"); in testCreateImageThumbnail_HEICSample()
188 if (!MediaUtils.check(mIsAtLeastS, "test needs Android 12")) return; in testCreateImageThumbnailAvif()
189 if (!MediaUtils.canDecodeVideo(MIMETYPE_VIDEO_AV1, 1920, 1080, 30)) { in testCreateImageThumbnailAvif()
190 MediaUtils.skipTest("No AV1 codec for 1080p"); in testCreateImageThumbnailAvif()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaPerfUtils.java79 MediaUtils.getVideoCapabilities(codecName, mime) in addPerformanceHeadersToLog()
95 DeviceReportLog log, MediaUtils.Stats durationsUsStats, String message) { in addPerformanceStatsToLog()
97 MediaUtils.Stats frameAvgUsStats = in addPerformanceStatsToLog()
104 MediaUtils.Stats timeAvgUsStats = in addPerformanceStatsToLog()
120 DeviceReportLog log, MediaUtils.Stats statsUs, String prefix, String message) { in logPerformanceStats()
163 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates()
216 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in areAchievableFrameRates()
/cts/tests/tests/media/encoder/src/android/media/encoder/cts/
DVideoEncoderCapabilitiesTest.java26 import com.android.compatibility.common.util.MediaUtils;
102 MediaUtils.canEncode(format)); in testEncoderAvailability()
105 MediaUtils.canEncode(format)); in testEncoderAvailability()
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderValidationTest.java39 import com.android.compatibility.common.util.MediaUtils;
161 MediaUtils.isTv() ? CODEC_ANY : CODEC_OPTIONAL}, in input()
179 MediaUtils.isTv() ? CODEC_ANY : CODEC_OPTIONAL}, in input()
183 MediaUtils.isTv() ? CODEC_ANY : CODEC_OPTIONAL}, in input()
212 MediaUtils.isTv() ? CODEC_ANY : CODEC_OPTIONAL}, in input()
215 MediaUtils.isTv() ? CODEC_ANY : CODEC_OPTIONAL}, in input()
218 MediaUtils.isTv() ? CODEC_ANY : CODEC_OPTIONAL}, in input()
227 MediaUtils.isTv() ? CODEC_HW : CODEC_OPTIONAL}, in input()
230 MediaUtils.isTv() ? CODEC_HW : CODEC_OPTIONAL}, in input()
239 MediaUtils.isTv() ? CODEC_ANY : CODEC_OPTIONAL}, in input()
[all …]
DCodecListTest.java29 import com.android.compatibility.common.util.MediaUtils;
71 if (MediaUtils.hasCamera()) { in testCddRequiredCodecsAvailability()
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/
DMediaRecorderTest.java78 import com.android.compatibility.common.util.MediaUtils;
266 MediaUtils.skipTest("no camera"); in testRecorderCamera()
337 MediaUtils.skipTest("no camera"); in testRecorderMPEG2TS()
341 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderMPEG2TS()
585 MediaUtils.skipTest("no camera"); in testRecorderVideo()
611 MediaUtils.skipTest("no camera"); in testSetOutputFile()
664 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordingAudioInRawFormats()
695 MediaUtils.skipTest("no audio codecs or microphone"); in testGetActiveMicrophones()
734 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordAudioFromAudioSourceUnprocessed()
762 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderAudio()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyVideoSourceActivity.java25 import com.android.compatibility.common.util.MediaUtils;
50 mCanPlayVideo = MediaUtils.hasCodecsForResource(this, R.raw.colorgrid_video); in onCreate()
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecodeAccuracyTest.java35 import com.android.compatibility.common.util.MediaUtils;
189 MediaUtils.getTrackFormatForResource(INP_PREFIX + file, "video"); in input()
194 String[] componentNames = MediaUtils.getDecoderNamesForMime(mediaType); in input()
196 if (!MediaUtils.supports(componentName, mediaFormat)) { in input()
264 if (!MediaUtils.canDecodeVideo(vf.getMimeType(), vf.getWidth(), vf.getHeight(), 30)) { in runTest()
265 MediaUtils.skipTest(TAG, "No supported codec is found."); in runTest()
DVideoDecoderPerfTest.java41 import com.android.compatibility.common.util.MediaUtils;
108 String[] decoders = MediaUtils.getDecoderNamesForMime(mediaType); in prepareParamList()
199 if (MediaUtils.onFrankenDevice()) { in decode()
221 if (error != null && MediaUtils.onFrankenDevice()) { in decode()
402 MediaUtils.Stats stats = new MediaUtils.Stats(frameTimeUsDiff); in doDecode()
412 formats[i] = MediaUtils.getTrackFormatForResource(mInpPrefix + resources[i], "video/"); in getVideoTrackFormats()
421 if (MediaUtils.supports(decoderName, formats[i])) { in perf()
DNativeDecoderTest.java39 import com.android.compatibility.common.util.MediaUtils;
133 MediaUtils.skipTest("no decoders found"); in testDataSource()
146 MediaUtils.skipTest("no decoders found"); in testDataSourceAudioOnly()
156 MediaUtils.skipTest("no decoders found"); in testDataSourceWithCallback()
167 if (!MediaUtils.hasCodecsForResource(mInpPrefix + res)) { in testDecoder()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaTestBase.java29 import com.android.compatibility.common.util.MediaUtils;
87 return MediaUtils.check(isTv(), "not a TV"); in checkTv()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaTest.java25 import com.android.compatibility.common.util.MediaUtils;
60 if (!MediaUtils.canDecode(format)) { in runPlayTest()
/cts/tests/video/src/android/video/cts/
DCodecInfo.java24 import com.android.compatibility.common.util.MediaUtils;
82 MediaUtils.setMaxEncoderFrameAndBitrates(cap.getVideoCapabilities(), format, maxFps); in getSupportedFormatInfo()
DHevcVp9ClaimsPerformanceTest.java28 import com.android.compatibility.common.util.MediaUtils;
78 if (MediaUtils.isTv()) { in input()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecTestBase.java57 import com.android.compatibility.common.util.MediaUtils;
571 if (!MediaUtils.hasCamera()) return false; in isHDRCaptureSupported()
802 if (MediaUtils.hasAudioOutput() && needAudio) { in compileRequiredMediaTypeList()
811 if (MediaUtils.isHandheld() || MediaUtils.isTablet() || MediaUtils.isTv() in compileRequiredMediaTypeList()
812 || MediaUtils.isAutomotive()) { in compileRequiredMediaTypeList()
824 if (MediaUtils.isHandheld() || MediaUtils.isTablet()) { in compileRequiredMediaTypeList()
837 if (MediaUtils.isTv() && needVideo) { in compileRequiredMediaTypeList()
846 if (MediaUtils.hasMicrophone() && needAudio) { in compileRequiredMediaTypeList()
853 if (MediaUtils.isHandheld() || MediaUtils.isTablet() || MediaUtils.isTv() in compileRequiredMediaTypeList()
854 || MediaUtils.isAutomotive()) { in compileRequiredMediaTypeList()
[all …]
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DMediaDrmExtractorTest.java32 import com.android.compatibility.common.util.MediaUtils;
82 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testGetDrmInitData()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatchContentFrameRateTest.java34 import com.android.compatibility.common.util.MediaUtils;
65 || MediaUtils.onCuttlefish()); in setUp()
DSetFrameRateTest.java35 import com.android.compatibility.common.util.MediaUtils;
67 || MediaUtils.onCuttlefish()); in setUp()
/cts/tests/tests/display/src/android/display/cts/
DHdrConversionDisabledTest.java39 import com.android.compatibility.common.util.MediaUtils;
79 || MediaUtils.onCuttlefish()); in setUp()
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java36 import com.android.compatibility.common.util.MediaUtils;
151 MediaFormat format = MediaUtils.getTrackFormatForPath(null, fullPath, "video"); in run()
199 String[] decoders = MediaUtils.getDecoderNamesForMime(mime); in run()
206 ps.println(MediaUtils.supports(name, format)); in run()
263 for (String name : MediaUtils.getDecoderNames(v, format)) { in getDecodersForPath()
336 return MediaUtils.verifyDecoder(decoder, ex, frameChecksums); in verifyBitstream()

1234