/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecCapabilitiesTest.java | 45 import com.android.compatibility.common.util.MediaUtils; 88 if (!MediaUtils.checkEncoder(MIMETYPE_VIDEO_AVC)) { in testH264EncoderProfileAndLevel() 106 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_AVC)) { in testH264DecoderProfileAndLevel() 123 if (!MediaUtils.checkEncoder(MIMETYPE_VIDEO_H263)) { in testH263EncoderProfileAndLevel() 134 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_H263)) { in testH263DecoderProfileAndLevel() 145 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_MPEG4)) { in testMpeg4DecoderProfileAndLevel() 160 if (!MediaUtils.checkDecoder(MIMETYPE_VIDEO_HEVC)) { in testH265DecoderProfileAndLevel() 174 if (isTv() && MediaUtils.canDecodeVideo(MIMETYPE_VIDEO_HEVC, 3840, 2160, 30)) { in testH265DecoderProfileAndLevel() 182 if (isTv() && MediaUtils.hasHardwareCodec(MIMETYPE_VIDEO_VP9, /* encode = */ false)) { in testVp9DecoderCapabilitiesOnTv() 184 assertTrue(MediaUtils.canDecodeVideo(MIMETYPE_VIDEO_VP9, 1920, 1080, 60 /* fps */, in testVp9DecoderCapabilitiesOnTv() [all …]
|
D | MediaMetadataRetrieverTest.java | 49 import com.android.compatibility.common.util.MediaUtils; 442 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testGenreParsing() 574 if (!MediaUtils.hasCodecForResourceAndDomain(res, "video/")) { in testThumbnail() 575 MediaUtils.skipTest("no video codecs for resource"); in testThumbnail() 652 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailVP9Hdr() 660 MediaUtils.skipTest("No supported HDR display type"); in testThumbnailVP9Hdr() 668 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailAV1Hdr() 676 MediaUtils.skipTest("No supported HDR display type"); in testThumbnailAV1Hdr() 684 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailHDR10() 694 if (!MediaUtils.hasCodecForResourceAndDomain(res, "video/")) { in testThumbnailWithRotation() [all …]
|
D | StreamingMediaPlayerTest.java | 33 import com.android.compatibility.common.util.MediaUtils; 131 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video1() 140 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video2() 149 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video1() 158 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video2() 167 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video1() 176 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video2() 186 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHLS() 196 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsWithHeadersCookies() 224 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsSampleAes_bbb_audio_only_overridable() [all …]
|
D | ThumbnailUtilsTest.java | 39 import com.android.compatibility.common.util.MediaUtils; 172 if (!MediaUtils.hasDecoder(MIMETYPE_VIDEO_HEVC)) { in testCreateImageThumbnail_HEICSample() 173 MediaUtils.skipTest("no video decoders for resource"); in testCreateImageThumbnail_HEICSample() 185 if (!MediaUtils.check(mIsAtLeastS, "test needs Android 12")) return; in testCreateImageThumbnailAvif() 186 if (!MediaUtils.canDecodeVideo("AV1", 1920, 1080, 30)) { in testCreateImageThumbnailAvif() 187 MediaUtils.skipTest("No AV1 codec for 1080p"); in testCreateImageThumbnailAvif()
|
D | MediaRecorderTest.java | 64 import com.android.compatibility.common.util.MediaUtils; 244 MediaUtils.skipTest("no camera"); in testRecorderCamera() 314 MediaUtils.skipTest("no camera"); in testRecorderMPEG2TS() 318 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderMPEG2TS() 557 MediaUtils.skipTest("no camera"); in testRecorderVideo() 582 MediaUtils.skipTest("no camera"); in testSetOutputFile() 630 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordingAudioInRawFormats() 660 MediaUtils.skipTest("no audio codecs or microphone"); in testGetActiveMicrophones() 698 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordAudioFromAudioSourceUnprocessed() 724 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderAudio() [all …]
|
D | VideoDecoderPerfTest.java | 35 import com.android.compatibility.common.util.MediaUtils; 99 if (MediaUtils.onFrankenDevice()) { in decode() 119 if ((MediaUtils.onFrankenDevice() || mSkipRateChecking) && error != null) { in decode() 295 MediaUtils.Stats stats = new MediaUtils.Stats(frameTimeUsDiff); in doDecode() 305 formats[i] = MediaUtils.getTrackFormatForResource(mInpPrefix + resources[i], "video/"); in getVideoTrackFormats() 312 MediaUtils.verifyNumCodecs(numGoog, false /* isEncoder */, true /* isGoog */, formats); in count() 313 MediaUtils.verifyNumCodecs(numOther, false /* isEncoder */, false /* isGoog */, formats); in count() 318 String[] decoders = MediaUtils.getDecoderNames(isGoog, formats); in perf() 321 MediaUtils.skipTest("No " + kind + " decoders for " + Arrays.toString(formats)); in perf() 332 if (MediaUtils.supports(decoderName, formats[i])) { in perf()
|
D | MediaCodecBlockModelTest.java | 44 import com.android.compatibility.common.util.MediaUtils; 106 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortVideo() 123 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortEncryptedVideo() 138 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortAudio() 157 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testEncodeShortAudio() 169 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testEncodeShortVideo() 180 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testFormatChange() 190 MediaUtils.skipTest("skipped"); in testFormatChange() 584 String[] codecs = MediaUtils.getDecoderNames(true /* isGoog */, mediaFormat); in runDecodeShortVideo() 647 String[] codecs = MediaUtils.getDecoderNames(true /* isGoog */, mediaFormat); in runDecodeShortAudio() [all …]
|
D | MediaPlayerTestBase.java | 28 import com.android.compatibility.common.util.MediaUtils; 116 if (!MediaUtils.hasCodecsForResource(mInpPrefix + res)) { in loadResource() 140 return MediaUtils.check(loadResource(res), "no decoder found"); in checkLoadResource() 352 return MediaUtils.check(isTv(), "not a TV"); in checkTv()
|
D | DecoderConformanceTest.java | 32 import com.android.compatibility.common.util.MediaUtils; 170 if (MediaUtils.verifyDecoder(mDecoder, mExtractor, frameMD5Sums)) { in decodeTestVector() 183 String[] decoderNames = MediaUtils.getDecoderNames(isGoog, format); in decodeTestVectors()
|
D | DecodeAccuracyTest.java | 33 import com.android.compatibility.common.util.MediaUtils; 223 if (!MediaUtils.canDecodeVideo(vf.getMimeType(), vf.getWidth(), vf.getHeight(), 30)) { in runTest() 224 MediaUtils.skipTest(TAG, "No supported codec is found."); in runTest()
|
D | RoutingTest.java | 48 import com.android.compatibility.common.util.MediaUtils; 835 || !MediaUtils.hasEncoder(MediaFormat.MIMETYPE_AUDIO_AAC)) { in test_mediaRecorder_preferredDevice() 836 MediaUtils.skipTest("no audio codecs or microphone"); in test_mediaRecorder_preferredDevice() 871 || !MediaUtils.hasEncoder(MediaFormat.MIMETYPE_AUDIO_AAC)) { in test_mediaRecorder_getRoutedDeviceId() 872 MediaUtils.skipTest("no audio codecs or microphone"); in test_mediaRecorder_getRoutedDeviceId() 888 || !MediaUtils.hasEncoder(MediaFormat.MIMETYPE_AUDIO_AAC)) { in test_mediaRecorder_RoutingListener() 889 MediaUtils.skipTest("no audio codecs or microphone"); in test_mediaRecorder_RoutingListener()
|
D | MediaPlayerFlakyNetworkTest.java | 27 import com.android.compatibility.common.util.MediaUtils; 108 if (MediaUtils.hasCodecsForPath(mContext, mInpPrefix + video)) { in getSupportedVideos() 118 MediaUtils.skipTest("no codec found"); in doPlayStreams()
|
D | MediaMuxerTest.java | 32 import com.android.compatibility.common.util.MediaUtils; 96 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in SKIP_testDualAudioTrack() 107 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in SKIP_testDualVideoAndAudioTrack() 483 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsAudioBVideoStartOffsetAudioVideo() 498 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsAudioBVideoStartOffsetNegativeAudioVideo() 513 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsAudioBVideoStartOffsetAudio() 528 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetAudio() 543 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetVideo() 558 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetVideoAudio() 573 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetAudioVideo() [all …]
|
D | DecoderTestAacFormat.java | 38 import com.android.compatibility.common.util.MediaUtils; 69 if (!MediaUtils.check(sIsAndroidRAndAbove, "M-chan downmix fixed in Android R")) in testHeAacM4aMultichannelDownmix()
|
D | NativeDecoderTest.java | 39 import com.android.compatibility.common.util.MediaUtils; 357 MediaUtils.skipTest("no decoders found"); in SKIP_testDecoder() 366 MediaUtils.skipTest("no decoders found"); in testDataSource() 378 MediaUtils.skipTest("no decoders found"); in testDataSourceAudioOnly() 387 MediaUtils.skipTest("no decoders found"); in testDataSourceWithCallback() 398 if (!MediaUtils.hasCodecsForResource(mInpPrefix + res)) { in testDecoder() 598 MediaUtils.skipTest("no decoders found"); in SKIP_testVideoPlayback() 604 if (!MediaUtils.checkCodecsForResource(mInpPrefix + res)) { in testVideoPlayback() 674 if (!MediaUtils.checkCodecsForResource(mInpPrefix + res)) { in testMuxer()
|
D | HeifWriterTest.java | 60 import com.android.compatibility.common.util.MediaUtils; 247 if (!MediaUtils.hasEncoder(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC)) { in testHeicFallbackAvailable() 248 MediaUtils.skipTest("HEIC full-frame image encoder is not supported on this device"); in testHeicFallbackAvailable() 277 return MediaUtils.hasEncoder(MediaFormat.MIMETYPE_VIDEO_HEVC) in canEncodeHeic() 278 || MediaUtils.hasEncoder(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC); in canEncodeHeic() 283 MediaUtils.skipTest("heic encoding is not supported on this device"); in doTestForVariousNumberImages()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaPerfUtils.java | 77 MediaUtils.getVideoCapabilities(codecName, mime) in addPerformanceHeadersToLog() 93 DeviceReportLog log, MediaUtils.Stats durationsUsStats, String message) { in addPerformanceStatsToLog() 95 MediaUtils.Stats frameAvgUsStats = in addPerformanceStatsToLog() 102 MediaUtils.Stats timeAvgUsStats = in addPerformanceStatsToLog() 118 DeviceReportLog log, MediaUtils.Stats statsUs, String prefix, String message) { in logPerformanceStats() 152 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates() 191 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in areAchievableFrameRates()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyVideoSourceActivity.java | 25 import com.android.compatibility.common.util.MediaUtils; 50 mCanPlayVideo = MediaUtils.hasCodecsForResource(this, R.raw.colorgrid_video); in onCreate()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | NativeMediaTest.java | 27 import com.android.compatibility.common.util.MediaUtils; 61 if (!MediaUtils.canDecode(format)) { in runPlayTest()
|
D | MediaPlayerStressTest.java | 20 import com.android.compatibility.common.util.MediaUtils; 158 if (!MediaUtils.checkDecoderForFormat(format)) { in doTestVideoPlayback()
|
/cts/tests/video/src/android/video/cts/ |
D | CodecInfo.java | 19 import com.android.compatibility.common.util.MediaUtils; 85 MediaUtils.setMaxEncoderFrameAndBitrates(cap.getVideoCapabilities(), format, maxFps); in getSupportedFormatInfo()
|
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/ |
D | MediaBitstreamsDeviceSideTest.java | 36 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()
|
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/ |
D | MediaPreparerAppTest.java | 25 import com.android.compatibility.common.util.MediaUtils; 104 supported &= MediaUtils.checkDecoderForFormat(format); in testGetResolutions()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaServerCrashTest.java | 30 import com.android.compatibility.common.util.MediaUtils; 127 if (!MediaUtils.convertDmToFl(mContext, dmStream, flFile)) { in checkIfMediaServerDiedForDrm()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | HeifWriterTest.java | 49 import com.android.compatibility.common.util.MediaUtils; 95 MediaUtils.skipTest("heic encoding is not supported on this device"); in testHeif() 233 return MediaUtils.hasEncoder(MediaFormat.MIMETYPE_VIDEO_HEVC) in canEncodeHeic() 234 || MediaUtils.hasEncoder(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC); in canEncodeHeic()
|