Home
last modified time | relevance | path

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

12

/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()
217 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()
85 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video2()
98 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video1()
111 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video2()
124 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video1()
137 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video2()
151 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHLS()
206 if (!MediaUtils.checkCodecsForPath(mContext, stream_url)) { in localHttpAudioStreamTest()
297 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testPlayHlsStream()
[all …]
DMediaRecorderTest.java19 import android.cts.util.MediaUtils;
410 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordingAudioInRawFormats()
453 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderAudio()
469 MediaUtils.skipTest("no audio codecs or microphone"); in testOnInfoListener()
484 MediaUtils.skipTest("no audio codecs or microphone"); in testSetMaxDuration()
528 MediaUtils.skipTest("no microphone, camera, or codecs"); in testSetMaxFileSize()
560 MediaUtils.skipTest("no audio codecs or microphone"); in testOnErrorListener()
787 MediaUtils.skipTest("no codecs"); in testGetSurfaceApi()
802 MediaUtils.skipTest("no codecs"); in testPersistentSurfaceApi()
940 MediaUtils.skipTest("no codecs"); in testRecordFromSurface()
[all …]
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()
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()
DVideoDecoderPerfTest.java25 import android.cts.util.MediaUtils;
256 MediaUtils.Stats stats = new MediaUtils.Stats(frameTimeUsDiff); in doDecode()
265 formats[i] = MediaUtils.getTrackFormatForResource(mContext, resources[i], "video/"); in getVideoTrackFormats()
272 MediaUtils.verifyNumCodecs(numGoog, false /* isEncoder */, true /* isGoog */, formats); in count()
273 MediaUtils.verifyNumCodecs(numOther, false /* isEncoder */, false /* isGoog */, formats); in count()
278 String[] decoders = MediaUtils.getDecoderNames(isGoog, formats); in perf()
281 MediaUtils.skipTest("No " + kind + " decoders for " + Arrays.toString(formats)); in perf()
292 if (MediaUtils.supports(decoderName, formats[i])) { in perf()
DDecoderTest.java25 import android.cts.util.MediaUtils;
183 if (MediaUtils.hasCodecsForResource(mContext, R.raw.monotestgsm)) { in testDecodeMonoGsm()
187 MediaUtils.skipTest("not mandatory"); in testDecodeMonoGsm()
231 MediaUtils.skipTest("no codec found"); in testBFrames()
242 if (!MediaUtils.canDecode(format)) { in testBFrames()
321 MediaFormat format = MediaUtils.getTrackFormatForResource(mContext, res, "video"); in testColorAspects()
325 for (String decoderName: MediaUtils.getDecoderNames(mimeFormat)) { in testColorAspects()
326 if (!MediaUtils.supports(decoderName, format)) { in testColorAspects()
327 MediaUtils.skipTest(decoderName + " cannot play resource " + res); in testColorAspects()
1526 if (!MediaUtils.checkCodecForResource(mContext, testVideo, 0 /* track */)) {
[all …]
DMediaPlayerFlakyNetworkTest.java18 import android.cts.util.MediaUtils;
101 if (MediaUtils.hasCodecsForPath(mContext, "android.resource://" + PKG + "/" + video)) { in getSupportedVideos()
111 MediaUtils.skipTest("no codec found"); in doPlayStreams()
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()
469 if (!MediaUtils.checkCodecsForResource(mContext, res)) { in testMuxer()
DEncoderTest.java22 import android.cts.util.MediaUtils;
148 String[] componentNames = MediaUtils.getEncoderNames(formats); in testEncoderWithFormats()
150 MediaUtils.skipTest("no encoders found for " + Arrays.toString(formats)); in testEncoderWithFormats()
DVideoEncoderTest.java23 import android.cts.util.MediaUtils;
264 MediaUtils.setMaxEncoderFrameAndBitrates(encCaps, outFmt, 30); in initCodecsAndConfigureEncoder()
1699 MediaUtils.skipTest("no such encoder present"); in extreme()
1708 MediaUtils.skipTest("duplicate resolution extreme"); in extreme()
1715 MediaUtils.skipTest("no such encoder present"); in arbitrary()
1724 MediaUtils.skipTest("duplicate resolution"); in arbitrary()
1740 MediaUtils.skipTest("no such encoder present"); in specific()
1749 MediaUtils.skipTest("duplicate or unsupported resolution"); in specific()
1757 MediaUtils.skipTest("no such encoder present"); in intraRefresh()
1766 MediaUtils.skipTest("intra-refresh unsupported"); in intraRefresh()
[all …]
DDecoderConformanceTest.java24 import android.cts.util.MediaUtils;
246 String[] decoderNames = MediaUtils.getDecoderNames(isGoog, format); in decodeTestVectors()
DMediaPlayerTest.java23 import android.cts.util.MediaUtils;
1816 MediaUtils.skipTest("no decoder found");
1858 MediaUtils.skipTest(LOG_TAG, "no decoder found");
1970 MediaUtils.skipTest(LOG_TAG, "no microphone"); in testRecordAndPlay()
1973 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_AUDIO_AMR_NB) in testRecordAndPlay()
1974 || !MediaUtils.checkEncoder(MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testRecordAndPlay()
2058 if (!MediaUtils.hasCodecsForResource(mContext, resid)) { in testPlaybackFromAMediaDataSource()
2111 if (!MediaUtils.hasCodecsForResource(mContext, resid)) { in testPlaybackFailsIfMediaDataSourceThrows()
2128 if (!MediaUtils.hasCodecsForResource(mContext, resid)) { in testPlaybackFailsIfMediaDataSourceReturnsAnError()
DMediaSyncTest.java24 import android.cts.util.MediaUtils;
640 mExtractor = MediaUtils.createMediaExtractorForMimeType( in setup()
647 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;
115 MediaUtils.skipTest(TAG, "cannot find any compatible device codecs"); in testException()
474 if (!MediaUtils.checkEncoder(mime)) { in testReleaseAfterFlush()
890 if (!MediaUtils.checkDecoderForFormat(mediaFormat)) { in testDecodeAfterFlush()
DEncodeDecodeTest.java19 import android.cts.util.MediaUtils;
348 if (!MediaUtils.hasEncoder(mMimeType)) { in shouldSkip()
356 if (!MediaUtils.checkEncoderForFormat(format)) { in shouldSkip()
/cts/libs/deviceutil/src/android/cts/util/
DMediaPerfUtils.java82 DeviceReportLog log, MediaUtils.Stats durationsUsStats, String message) { in addPerformanceStatsToLog()
84 MediaUtils.Stats frameAvgUsStats = in addPerformanceStatsToLog()
91 MediaUtils.Stats timeAvgUsStats = in addPerformanceStatsToLog()
107 DeviceReportLog log, MediaUtils.Stats statsUs, String prefix, String message) { in logPerformanceStats()
141 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyVideoSourceActivity.java20 import android.cts.util.MediaUtils;
49 mCanPlayVideo = MediaUtils.hasCodecsForResource(this, R.raw.colorgrid_video); in onCreate()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaTest.java20 import android.cts.util.MediaUtils;
60 if (!MediaUtils.canDecode(format)) { in runPlayTest()
DMediaPlayerStressTest.java22 import android.cts.util.MediaUtils;
109 if (!MediaUtils.checkCodecsForPath(inst.getTargetContext(), mediaName)) { in doTestVideoPlayback()
/cts/tests/video/src/android/video/cts/
DCodecInfo.java19 import android.cts.util.MediaUtils;
85 MediaUtils.setMaxEncoderFrameAndBitrates(cap.getVideoCapabilities(), format, maxFps); in getSupportedFormatInfo()
DVideoEncoderDecoderTest.java20 import android.cts.util.MediaUtils;
171 MediaUtils.verifyNumCodecs(numGoog, true /* isEncoder */, true /* isGoog */, format); in count()
172 MediaUtils.verifyNumCodecs(numOther, true /* isEncoder */, false /* isGoog */, format); in count()
574 String[] encoderNames = MediaUtils.getEncoderNames(isGoog, format); in doTest()
577 MediaUtils.skipTest("No " + kind + " encoders for " + format); in doTest()
599 decoderNames = MediaUtils.getDecoderNames(format); in doTest()
601 MediaUtils.skipTest("No decoders for " + format); in doTest()
756 log, new MediaUtils.Stats(frameTimeUsDiff), message); in logPerformanceResults()
/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()

12