/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 | StreamingMediaPlayerTest.java | 33 import com.android.compatibility.common.util.MediaUtils; 130 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video1() 139 …if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_H263, MediaFormat.MIMETYPE_AUDIO_AMR_NB)) { in testHTTP_H263_AMR_Video2() 148 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video1() 157 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_MPEG4)) { in testHTTP_MPEG4SP_AAC_Video2() 166 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video1() 175 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHTTP_H264Base_AAC_Video2() 185 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHLS() 195 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsWithHeadersCookies() 223 if (!MediaUtils.checkDecoder(MediaFormat.MIMETYPE_VIDEO_AVC)) { in testHlsSampleAes_bbb_audio_only_overridable() [all …]
|
D | MediaMetadataRetrieverTest.java | 49 import com.android.compatibility.common.util.MediaUtils; 393 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testGenreParsing() 522 if (!MediaUtils.hasCodecForResourceAndDomain(getContext(), resId, "video/")) { in testThumbnail() 523 MediaUtils.skipTest("no video codecs for resource"); in testThumbnail() 602 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailVP9Hdr() 608 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailAV1Hdr() 614 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testThumbnailHDR10() 622 if (!MediaUtils.hasCodecForResourceAndDomain(getContext(), resId, "video/")) { in testThumbnailWithRotation() 623 MediaUtils.skipTest("no video codecs for resource"); in testThumbnailWithRotation() 689 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testGetFrameAtTimePreviousSyncEditList() [all …]
|
D | MediaRecorderTest.java | 60 import com.android.compatibility.common.util.MediaUtils; 239 MediaUtils.skipTest("no camera"); in testRecorderCamera() 309 MediaUtils.skipTest("no camera"); in testRecorderMPEG2TS() 313 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderMPEG2TS() 552 MediaUtils.skipTest("no camera"); in testRecorderVideo() 577 MediaUtils.skipTest("no camera"); in testSetOutputFile() 609 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordingAudioInRawFormats() 639 MediaUtils.skipTest("no audio codecs or microphone"); in testGetActiveMicrophones() 677 MediaUtils.skipTest("no audio codecs or microphone"); in testRecordAudioFromAudioSourceUnprocessed() 703 MediaUtils.skipTest("no audio codecs or microphone"); in testRecorderAudio() [all …]
|
D | MediaCodecBlockModelTest.java | 43 import com.android.compatibility.common.util.MediaUtils; 91 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortVideo() 108 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortEncryptedVideo() 123 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testDecodeShortAudio() 142 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testEncodeShortAudio() 154 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testEncodeShortVideo() 165 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testFormatChange() 558 String[] codecs = MediaUtils.getDecoderNames(true /* isGoog */, mediaFormat); in runDecodeShortVideo() 621 String[] codecs = MediaUtils.getDecoderNames(true /* isGoog */, mediaFormat); in runDecodeShortAudio() 673 String[] codecs = MediaUtils.getEncoderNames(true /* isGoog */, mediaFormat); in runEncodeShortAudio() [all …]
|
D | MediaPlayerTestBase.java | 28 import com.android.compatibility.common.util.MediaUtils; 105 if (!MediaUtils.hasCodecsForResource(mContext, resid)) { in loadResource() 129 return MediaUtils.check(loadResource(resid), "no decoder found"); in checkLoadResource() 341 return MediaUtils.check(isTv(), "not a TV"); in checkTv()
|
D | DecoderTest.java | 51 import com.android.compatibility.common.util.MediaUtils; 230 if (MediaUtils.hasCodecsForResource(mContext, R.raw.monotestgsm)) { in testDecodeMonoGsm() 234 MediaUtils.skipTest("not mandatory"); in testDecodeMonoGsm() 282 if (!MediaUtils.check(mIsAtLeastR, "test invalid before Android 11")) return; in verifyChannelsAndRates() 404 MediaUtils.skipTest("no codec found"); in testBFrames() 415 if (!MediaUtils.canDecode(format)) { in testBFrames() 593 MediaFormat format = MediaUtils.getTrackFormatForResource(mContext, res, "video"); in testColorAspects() 597 for (String decoderName: MediaUtils.getDecoderNames(mimeFormat)) { in testColorAspects() 598 if (!MediaUtils.supports(decoderName, format)) { in testColorAspects() 599 MediaUtils.skipTest(decoderName + " cannot play resource " + res); in testColorAspects() [all …]
|
D | DecoderConformanceTest.java | 33 import com.android.compatibility.common.util.MediaUtils; 157 if (MediaUtils.verifyDecoder(mDecoder, mExtractor, frameMD5Sums)) { in decodeTestVector() 170 String[] decoderNames = MediaUtils.getDecoderNames(isGoog, format); in decodeTestVectors()
|
D | MediaExtractorTest.java | 44 import com.android.compatibility.common.util.MediaUtils; 166 if (MediaUtils.hasDecoder(MIMETYPE_VIDEO_DOLBY_VISION)) { in testDolbyVisionMediaExtractorProfileDvheDtr() 197 if (MediaUtils.hasDecoder(MIMETYPE_VIDEO_DOLBY_VISION)) { in testDolbyVisionMediaExtractorProfileDvheStn() 211 MediaUtils.skipTest("Device does not provide a Dolby Vision decoder"); in testDolbyVisionMediaExtractorProfileDvheStn() 235 if (MediaUtils.hasDecoder(MIMETYPE_VIDEO_DOLBY_VISION)) { in testDolbyVisionMediaExtractorProfileDvheSt() 282 if (MediaUtils.hasDecoder(MIMETYPE_VIDEO_DOLBY_VISION)) { in testDolbyVisionMediaExtractorProfileDvavSe() 314 if (MediaUtils.hasDecoder(MIMETYPE_VIDEO_DOLBY_VISION)) { in testDolbyVisionMediaExtractorProfileDvav1() 329 MediaUtils.skipTest("Device does not provide a Dolby Vision decoder"); in testDolbyVisionMediaExtractorProfileDvav1() 354 if (MediaUtils.hasDecoder(MIMETYPE_VIDEO_DOLBY_VISION)) { in testDolbyVisionMediaExtractorProfileDvav1_2() 382 if (!MediaUtils.check(mIsAtLeastR, "test needs Android 11")) return; in testGetDrmInitData()
|
D | DecodeAccuracyTest.java | 32 import com.android.compatibility.common.util.MediaUtils; 211 if (!MediaUtils.canDecodeVideo(vf.getMimeType(), vf.getWidth(), vf.getHeight(), 30)) { in runTest() 212 MediaUtils.skipTest(TAG, "No supported codec is found."); in runTest()
|
D | VideoDecoderPerfTest.java | 39 import com.android.compatibility.common.util.MediaUtils; 332 MediaUtils.Stats stats = new MediaUtils.Stats(frameTimeUsDiff); in doDecode() 341 formats[i] = MediaUtils.getTrackFormatForResource(mContext, resources[i], "video/"); in getVideoTrackFormats() 348 MediaUtils.verifyNumCodecs(numGoog, false /* isEncoder */, true /* isGoog */, formats); in count() 349 MediaUtils.verifyNumCodecs(numOther, false /* isEncoder */, false /* isGoog */, formats); in count() 354 String[] decoders = MediaUtils.getDecoderNames(isGoog, formats); in perf() 357 MediaUtils.skipTest("No " + kind + " decoders for " + Arrays.toString(formats)); in perf() 368 if (MediaUtils.supports(decoderName, formats[i])) { in perf()
|
D | RoutingTest.java | 47 import com.android.compatibility.common.util.MediaUtils; 810 || !MediaUtils.hasEncoder(MediaFormat.MIMETYPE_AUDIO_AAC)) { in test_mediaRecorder_preferredDevice() 811 MediaUtils.skipTest("no audio codecs or microphone"); in test_mediaRecorder_preferredDevice() 846 || !MediaUtils.hasEncoder(MediaFormat.MIMETYPE_AUDIO_AAC)) { in test_mediaRecorder_getRoutedDeviceId() 847 MediaUtils.skipTest("no audio codecs or microphone"); in test_mediaRecorder_getRoutedDeviceId() 863 || !MediaUtils.hasEncoder(MediaFormat.MIMETYPE_AUDIO_AAC)) { in test_mediaRecorder_RoutingListener() 864 MediaUtils.skipTest("no audio codecs or microphone"); in test_mediaRecorder_RoutingListener()
|
D | MediaPlayerFlakyNetworkTest.java | 27 import com.android.compatibility.common.util.MediaUtils; 106 if (MediaUtils.hasCodecsForPath(mContext, "android.resource://" + PKG + "/" + video)) { in getSupportedVideos() 116 MediaUtils.skipTest("no codec found"); in doPlayStreams()
|
D | MediaMuxerTest.java | 35 import com.android.compatibility.common.util.MediaUtils; 84 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testDualAudioTrack() 93 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testDualVideoAndAudioTrack() 455 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsAudioBVideoStartOffsetAudioVideo() 470 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsAudioBVideoStartOffsetNegativeAudioVideo() 485 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsAudioBVideoStartOffsetAudio() 500 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetAudio() 515 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetVideo() 530 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetVideoAudio() 545 if (!MediaUtils.check(mAndroid11, "test needs Android 11")) return; in testTimestampsStartOffsetAudioVideo() [all …]
|
D | NativeDecoderTest.java | 39 import com.android.compatibility.common.util.MediaUtils; 342 MediaUtils.skipTest("no decoders found"); in testDecoder() 350 MediaUtils.skipTest("no decoders found"); in testDataSource() 362 MediaUtils.skipTest("no decoders found"); in testDataSourceAudioOnly() 370 MediaUtils.skipTest("no decoders found"); in testDataSourceWithCallback() 379 if (!MediaUtils.hasCodecsForResource(mContext, res)) { in testDecoder() 577 MediaUtils.skipTest("no decoders found"); in testVideoPlayback() 582 if (!MediaUtils.checkCodecsForResource(mContext, res)) { in testVideoPlayback() 645 if (!MediaUtils.checkCodecsForResource(mContext, res)) { in testMuxer()
|
D | HeifWriterTest.java | 59 import com.android.compatibility.common.util.MediaUtils; 241 if (!MediaUtils.hasEncoder(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC)) { in testHeicFallbackAvailable() 242 MediaUtils.skipTest("HEIC full-frame image encoder is not supported on this device"); in testHeicFallbackAvailable() 271 return MediaUtils.hasEncoder(MediaFormat.MIMETYPE_VIDEO_HEVC) in canEncodeHeic() 272 || MediaUtils.hasEncoder(MediaFormat.MIMETYPE_IMAGE_ANDROID_HEIC); in canEncodeHeic() 277 MediaUtils.skipTest("heic encoding is not supported on this device"); in doTestForVariousNumberImages()
|
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()
|
/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()
|
/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/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()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | MediaServerCrashTest.java | 30 import com.android.compatibility.common.util.MediaUtils; 126 if (!MediaUtils.convertDmToFl(mContext, dmStream, flFile)) { in checkIfMediaServerDiedForDrm()
|