Home
last modified time | relevance | path

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

/cts/tests/tests/media/src/android/media/cts/
DMediaCodecCapabilitiesTest.java19 import android.cts.util.MediaUtils;
68 if (!MediaUtils.checkEncoder(MIMETYPE_VIDEO_AVC)) { in testH264EncoderProfileAndLevel()
86 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_AVC)) { in testH264DecoderProfileAndLevel()
103 if (!MediaUtils.checkEncoder(MIMETYPE_VIDEO_H263)) { in testH263EncoderProfileAndLevel()
114 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_H263)) { in testH263DecoderProfileAndLevel()
125 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_MPEG4)) { in testMpeg4DecoderProfileAndLevel()
140 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_HEVC)) { in testH265DecoderProfileAndLevel()
154 if (isTv() && MediaUtils.canDecodeVideo(MIMETYPE_VIDEO_HEVC, 3840, 2160, 30)) { in testH265DecoderProfileAndLevel()
167 MediaUtils.skipTest(TAG, "no test stream"); in testAvcBaseline1()
215 MediaUtils.skipTest(TAG, "fragmented mp4 not supported"); in testAvcHigh40()
[all …]
DStreamingMediaPlayerTest.java18 import android.cts.util.MediaUtils;
72 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video1()
84 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video2()
97 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video1()
109 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video2()
122 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video1()
134 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video2()
148 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHLS()
203 if (!MediaUtils.checkCodecsForPath(mContext, stream_url)) { in localHttpAudioStreamTest()
294 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testPlayHlsStream()
[all …]
DMediaMetadataRetrieverTest.java23 import android.cts.util.MediaUtils;
157 if (!MediaUtils.hasCodecForResourceAndDomain(getContext(), resId, "video/")) { in testThumbnail()
158 MediaUtils.skipTest("no video codecs for resource"); in testThumbnail()
DMediaPlayerTestBase.java22 import android.cts.util.MediaUtils;
149 if (!MediaUtils.hasCodecsForResource(mContext, resid)) { in loadResource()
173 return MediaUtils.check(loadResource(resid), "no decoder found"); in checkLoadResource()
304 return MediaUtils.check(isTv(), "not a TV"); in checkTv()
DVideoDecoderPerfTest.java25 import android.cts.util.MediaUtils;
104 if (!MediaUtils.supports(name, mime, width, height)) { in decode()
129 MediaUtils.getAchievableFrameRatesFor(name, mime, width, height); in decode()
131 MediaUtils.getErrorMessage(reportedRange, mMeasuredFps, mResultRawData); in decode()
288 double[] avgs = MediaUtils.calculateMovingAverage(frameTimeDiff, MOVING_AVERAGE_NUM); in doDecode()
292 double decStdev = MediaUtils.getStdev(avgs); in doDecode()
294 MediaUtils.logResults(mReportLog, testConfig, decMin, decMax, decAvg, decStdev); in doDecode()
301 return MediaUtils.verifyResults(name, mime, w, h, fps); in doDecode()
DMediaRecorderTest.java20 import android.cts.util.MediaUtils;
360 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordingAudioInRawFormats()
391 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderAudio()
407 MediaUtils.skipTest("no audio codecs or microphone"); in testOnInfoListener()
422 MediaUtils.skipTest("no audio codecs or microphone"); in testSetMaxDuration()
466 MediaUtils.skipTest("no microphone, camera, or codecs"); in testSetMaxFileSize()
498 MediaUtils.skipTest("no audio codecs or microphone"); in testOnErrorListener()
725 MediaUtils.skipTest("no codecs"); in testGetSurfaceApi()
740 MediaUtils.skipTest("no codecs"); in testPersistentSurfaceApi()
970 return MediaUtils.hasEncoder(MediaFormat.MIMETYPE_AUDIO_AMR_NB); in hasAmrNb()
[all …]
DDecoderTest.java25 import android.cts.util.MediaUtils;
167 if (MediaUtils.hasCodecsForResource(mContext, R.raw.monotestgsm)) { in testDecodeMonoGsm()
171 MediaUtils.skipTest("not mandatory"); in testDecodeMonoGsm()
207 MediaUtils.skipTest("no codec found"); in testBFrames()
218 if (!MediaUtils.canDecode(format)) { in testBFrames()
898 if (!MediaUtils.checkCodecForResource(mContext, testVideo, 0 /* track */)) { in testDecode()
946 assertTrue(MediaUtils.canDecodeVideo(MediaFormat.MIMETYPE_VIDEO_AVC, 1280, 720, 30)); in testH264Decode30fps1280x720Tv()
962 assertTrue(MediaUtils.canDecodeVideo(MediaFormat.MIMETYPE_VIDEO_AVC, 1280, 720, 60)); in testH264Decode60fps1280x720Tv()
978 assertTrue(MediaUtils.canDecodeVideo(MediaFormat.MIMETYPE_VIDEO_AVC, 1920, 1080, 30)); in testH264Decode30fps1920x1080Tv()
994 assertTrue(MediaUtils.canDecodeVideo(MediaFormat.MIMETYPE_VIDEO_AVC, 1920, 1080, 60)); in testH264Decode60fps1920x1080Tv()
[all …]
DNativeDecoderTest.java23 import android.cts.util.MediaUtils;
201 MediaUtils.skipTest("no decoders found"); in testDecoder()
206 if (!MediaUtils.hasCodecsForResource(mContext, res)) { in testDecoder()
402 MediaUtils.skipTest("no decoders found"); in testVideoPlayback()
407 if (!MediaUtils.checkCodecsForResource(mContext, res)) { in testVideoPlayback()
427 if (!MediaUtils.checkCodecsForResource(mContext, res)) { in testMuxer()
DMediaPlayerFlakyNetworkTest.java18 import android.cts.util.MediaUtils;
110 if (MediaUtils.hasCodecsForPath(mContext, "android.resource://" + PKG + "/" + video)) { in getSupportedVideos()
120 MediaUtils.skipTest("no codec found"); in doPlayStreams()
DMediaPlayerTest.java23 import android.cts.util.MediaUtils;
1377 MediaUtils.skipTest("no decoder found");
1520 MediaUtils.skipTest(LOG_TAG, "no microphone");
1523 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_AUDIO_AMR_NB)
1524 || !MediaUtils.checkEncoder(MediaFormat.MIMETYPE_AUDIO_AMR_NB)) {
1608 if (!MediaUtils.hasCodecsForResource(mContext, resid)) {
1661 if (!MediaUtils.hasCodecsForResource(mContext, resid)) {
1678 if (!MediaUtils.hasCodecsForResource(mContext, resid)) {
DVideoEncoderTest.java23 import android.cts.util.MediaUtils;
1521 MediaUtils.skipTest("no such encoder present"); in extreme()
1530 MediaUtils.skipTest("duplicate resolution extreme"); in extreme()
1537 MediaUtils.skipTest("no such encoder present"); in arbitrary()
1546 MediaUtils.skipTest("duplicate resolution"); in arbitrary()
1562 MediaUtils.skipTest("no such encoder present"); in specific()
1571 MediaUtils.skipTest("duplicate or unsupported resolution"); in specific()
1580 MediaUtils.skipTest("no such encoder present"); in detailed()
1591 MediaUtils.skipTest("unsupported resolution and rate"); in detailed()
1599 MediaUtils.skipTest("no such encoder present"); in support()
DMediaSyncTest.java23 import android.cts.util.MediaUtils;
580 mExtractor = MediaUtils.createMediaExtractorForMimeType( in setup()
587 if (!MediaUtils.hasDecoder(mimeType)) { in setup()
DImageReaderDecoderTest.java25 import android.cts.util.MediaUtils;
427 MediaUtils.skipTest("decoder does not any of the input files"); in decodeTest()
556 String fileName = DEBUG_FILE_NAME_BASE + MediaUtils.getTestName() in decodeFramesToImage()
DMediaCodecTest.java22 import android.cts.util.MediaUtils;
113 MediaUtils.skipTest(TAG, "cannot find any compatible device codecs"); in testException()
820 if (!MediaUtils.checkDecoderForFormat(mediaFormat)) { in testDecodeAfterFlush()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaTest.java20 import android.cts.util.MediaUtils;
60 if (!MediaUtils.checkDecoder(MIME_TYPE)) { in runPlayTest()
DMediaPlayerStressTest.java23 import android.cts.util.MediaUtils;
110 if (!MediaUtils.checkCodecsForPath(inst.getTargetContext(), mediaName)) { in doTestVideoPlayback()
/cts/suite/cts/deviceTests/videoperf/src/com/android/cts/videoperf/
DVideoEncoderDecoderTest.java19 import android.cts.util.MediaUtils;
538 double[] avgs = MediaUtils.calculateMovingAverage( in doTestByName()
542 double encAvg = MediaUtils.getAverage(mEncoderFrameTimeDiff[i]); in doTestByName()
543 double encStdev = MediaUtils.getStdev(avgs); in doTestByName()
548 MediaUtils.logResults(mReportLog, prefix, encMin, encMax, encAvg, encStdev); in doTestByName()
553 encTestPassed = MediaUtils.verifyResults( in doTestByName()
557 avgs = MediaUtils.calculateMovingAverage( in doTestByName()
561 double decAvg = MediaUtils.getAverage(mDecoderFrameTimeDiff[i]); in doTestByName()
562 double decStdev = MediaUtils.getStdev(avgs); in doTestByName()
565 MediaUtils.logResults(mReportLog, prefix, decMin, decMax, decAvg, decStdev); in doTestByName()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Video_ThumbnailsTest.java25 import android.cts.util.MediaUtils;
48 return MediaUtils.hasCodecForResourceAndDomain(mContext, R.raw.testvideo, "video/"); in hasCodec()
/cts/tests/tests/widget/src/android/widget/cts/
DVideoViewTest.java24 import android.cts.util.MediaUtils;
104 return MediaUtils.hasCodecsForResource(mActivity, R.raw.testvideo); in hasCodec()
/cts/libs/deviceutil/src/android/cts/util/
DMediaUtils.java43 public class MediaUtils { class