Home
last modified time | relevance | path

Searched refs:isEncoder (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/media/src/android/media/cts/
DMediaCodecListTest.java55 CodecType(String type, boolean isEncoder, MediaFormat sampleFormat) { in CodecType() argument
57 mIsEncoder = isEncoder; in CodecType()
81 AudioCodec(String mime, boolean isEncoder, int sampleRate) { in AudioCodec() argument
82 super(mime, isEncoder, MediaFormat.createAudioFormat( in AudioCodec()
88 VideoCodec(String mime, boolean isEncoder) { in VideoCodec() argument
90 super(mime, isEncoder, MediaFormat.createVideoFormat( in VideoCodec()
158 assertEquals(big.isEncoder(), tiny.isEncoder()); in assertEqualsOrSuperset()
182 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testComponentInstantiation()
215 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testGetCapabilities()
306 private boolean codecCanBeFound(boolean isEncoder, MediaFormat format) { in codecCanBeFound() argument
[all …]
DMediaCodecCapabilitiesTest.java323 String mime, boolean isEncoder, int profile, int level) { in supports() argument
326 if (isEncoder != info.isEncoder()) { in supports()
372 if (info.isEncoder()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats()
404 if (info.isEncoder()) { in testAllVideoDecodersAreAdaptive()
449 boolean isEncoder = info.isEncoder(); in testSecureCodecsAdvertiseSecurePlayback()
450 if (isEncoder || !info.getName().endsWith(".secure")) { in testSecureCodecsAdvertiseSecurePlayback()
472 boolean isEncoder = info.isEncoder(); in testAllNonTunneledVideoCodecsSupportFlexibleYUV()
499 format = createReasonableVideoFormat(caps, mime, isEncoder, 176, 144); in testAllNonTunneledVideoCodecsSupportFlexibleYUV()
505 isEncoder ? codec.CONFIGURE_FLAG_ENCODE : 0); in testAllNonTunneledVideoCodecsSupportFlexibleYUV()
507 isEncoder ? codec.getInputFormat() : codec.getOutputFormat(); in testAllNonTunneledVideoCodecsSupportFlexibleYUV()
[all …]
DMediaCodecTest.java136 private static MediaCodec createCodecByType(String type, boolean isEncoder) in createCodecByType() argument
138 if (isEncoder) { in createCodecByType()
154 private static boolean verifyException(MediaFormat format, boolean isEncoder) in verifyException() argument
157 if (!supportsCodec(mimeType, isEncoder)) { in verifyException()
158 Log.i(TAG, "No " + (isEncoder ? "encoder" : "decoder") in verifyException()
163 final boolean isVideoEncoder = isEncoder && mimeType.startsWith("video/"); in verifyException()
169 final String methodName = isEncoder ? "createEncoderByType" : "createDecoderByType"; in verifyException()
171 codec = createCodecByType(null, isEncoder); in verifyException()
176 codec = createCodecByType("foobarplan9", isEncoder); // invalid type in verifyException()
186 codec = createCodecByType(format.getString(MediaFormat.KEY_MIME), isEncoder); in verifyException()
[all …]
DResourceManagerTestActivityBase.java85 boolean isEncoder = false; in getTestCodecInfo()
89 if (info.isEncoder() != isEncoder) { in getTestCodecInfo()
DVpxCodecTestBase.java125 boolean isEncoder, in getVpxCodecProperties() argument
135 if (isEncoder != codecInfo.isEncoder()) { in getVpxCodecProperties()
181 + (isEncoder ? "encoder " : "decoder ") + "found for " + format); in getVpxCodecProperties()
DMediaCodecClearKeyPlayer.java422 if (info.isEncoder()) { in getSecureDecoderNameForMime()
DImageReaderDecoderTest.java323 if (info.isEncoder() in decoders()
DExtractDecodeEditEncodeMuxTest.java1217 if (!codecInfo.isEncoder()) { in selectCodec()
DVideoEncoderTest.java154 if (info.isEncoder()) { in playAll()
1193 if (!info.isEncoder() in encoders()
DMediaRecorderTest.java729 if (!info.isEncoder()) { in getCapsForPreferredCodecForMediaType()
DAdaptivePlaybackTest.java1430 if (codecInfo.isEncoder()) {
DDecoderTest.java2814 if (codecInfo.isEncoder()) {
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DMediaDeviceInfo.java47 store.addResult("encoder", info.isEncoder()); in collectDeviceInfo()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java200 boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in getCodecNames() argument
204 if (info.isEncoder() != isEncoder) { in getCodecNames()
249 int count, boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in verifyNumCodecs() argument
250 String desc = (isEncoder ? "encoders" : "decoders") + " for " in verifyNumCodecs()
256 String[] codecs = getCodecNames(isEncoder, isGoog, formats); in verifyNumCodecs()
474 if (encoder != info.isEncoder()) { in hasCodecForDomain()
495 if (encoder != info.isEncoder()) { in hasCodecForMime()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java614 if (info.isEncoder()) { in doStagefrightTestMediaCodec()