/cts/tests/media/jni/ |
D | NativeCodecUnitTest.cpp | 41 bool setupCodec(bool isAudio, bool isEncoder); 43 bool testConfigureCodecForIncompleteFormat(bool isAudio, bool isEncoder); 44 bool testConfigureCodecForBadFlags(bool isEncoder); 141 bool NativeCodecUnitTest::setupCodec(bool isAudio, bool isEncoder) { in setupCodec() argument 146 mCodec = isEncoder ? AMediaCodec_createEncoderByType(mime) in setupCodec() 164 void setUpDefaultFormatElementsList(std::vector<formatKey*>& vec, bool isAudio, bool isEncoder) { in setUpDefaultFormatElementsList() argument 169 if (isEncoder) { in setUpDefaultFormatElementsList() 176 if (isEncoder) { in setUpDefaultFormatElementsList() 204 bool NativeCodecUnitTest::testConfigureCodecForIncompleteFormat(bool isAudio, bool isEncoder) { in testConfigureCodecForIncompleteFormat() argument 206 mCodec = isEncoder ? AMediaCodec_createEncoderByType(mime) in testConfigureCodecForIncompleteFormat() [all …]
|
D | NativeCodecTestBase.h | 148 bool isEncoder); 151 bool isEncoder);
|
D | NativeCodecTestBase.cpp | 368 bool isEncoder) { in configureCodec() argument 373 isEncoder ? AMEDIACODEC_CONFIGURE_FLAG_ENCODE : 0), in configureCodec() 391 bool signalEOSWithLastFrame, bool isEncoder) { in reConfigureCodec() argument 393 return configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder); in reConfigureCodec()
|
D | NativeCodecDecoderTest.cpp | 47 bool isEncoder) override; 152 bool signalEOSWithLastFrame, bool isEncoder) { in configureCodec() argument 157 isEncoder ? AMEDIACODEC_CONFIGURE_FLAG_ENCODE : 0), in configureCodec()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecCapabilitiesTest.java | 360 String mime, boolean isEncoder, int profile, int level, in supports() argument 364 if (isEncoder != info.isEncoder()) { in supports() 415 if (info.isEncoder()) { in testHaveAdaptiveVideoDecoderForAllSupportedFormats() 447 if (info.isEncoder()) { in testAllVideoDecodersAreAdaptive() 492 boolean isEncoder = info.isEncoder(); in testSecureCodecsAdvertiseSecurePlayback() 493 if (isEncoder || !info.getName().endsWith(".secure")) { in testSecureCodecsAdvertiseSecurePlayback() 566 if (!info.isEncoder()) { in testAllAdvertisedVideoEncoderBitrateModes() 610 boolean isEncoder = info.isEncoder(); in testAllNonTunneledVideoCodecsSupportFlexibleYUV() 638 caps, mime, isEncoder, size.getWidth(), size.getHeight()); in testAllNonTunneledVideoCodecsSupportFlexibleYUV() 644 isEncoder ? codec.CONFIGURE_FLAG_ENCODE : 0); in testAllNonTunneledVideoCodecsSupportFlexibleYUV() [all …]
|
D | MediaCodecListTest.java | 67 CodecType(String type, boolean isEncoder, MediaFormat sampleFormat) { in CodecType() argument 69 mIsEncoder = isEncoder; in CodecType() 93 AudioCodec(String mime, boolean isEncoder, int sampleRate) { in AudioCodec() argument 94 super(mime, isEncoder, MediaFormat.createAudioFormat( in AudioCodec() 100 VideoCodec(String mime, boolean isEncoder) { in VideoCodec() argument 102 super(mime, isEncoder, MediaFormat.createVideoFormat( in VideoCodec() 174 assertEquals(big.isEncoder(), tiny.isEncoder()); in assertEqualsOrSuperset() 198 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testComponentInstantiation() 231 Log.d(TAG, " isEncoder = " + info.isEncoder()); in testGetCapabilities() 328 private boolean codecCanBeFound(boolean isEncoder, MediaFormat format) { in codecCanBeFound() argument [all …]
|
D | MediaCodecTest.java | 152 private static MediaCodec createCodecByType(String type, boolean isEncoder) in createCodecByType() argument 154 if (isEncoder) { in createCodecByType() 170 private static boolean verifyException(MediaFormat format, boolean isEncoder) in verifyException() argument 173 if (!supportsCodec(mimeType, isEncoder)) { in verifyException() 174 Log.i(TAG, "No " + (isEncoder ? "encoder" : "decoder") in verifyException() 179 final boolean isVideoEncoder = isEncoder && mimeType.startsWith("video/"); in verifyException() 185 final String methodName = isEncoder ? "createEncoderByType" : "createDecoderByType"; in verifyException() 187 codec = createCodecByType(null, isEncoder); in verifyException() 192 codec = createCodecByType("foobarplan9", isEncoder); // invalid type in verifyException() 202 codec = createCodecByType(format.getString(MediaFormat.KEY_MIME), isEncoder); in verifyException() [all …]
|
D | ResourceManagerTestActivityBase.java | 85 boolean isEncoder = false; in getTestCodecInfo() 89 if (info.isEncoder() != isEncoder) { in getTestCodecInfo()
|
D | VpxCodecTestBase.java | 121 boolean isEncoder, in getVpxCodecProperties() argument 131 if (isEncoder != codecInfo.isEncoder()) { in getVpxCodecProperties() 175 + (isEncoder ? "encoder " : "decoder ") + "found for " + format); in getVpxCodecProperties()
|
D | MediaCodecClearKeyPlayer.java | 453 if (info.isEncoder()) { in getSecureDecoderNameForMime()
|
D | HeifWriterTest.java | 233 if (!info.isEncoder() || !info.isHardwareAccelerated()) { in testHeicFallbackAvailable()
|
D | DecoderTestXheAac.java | 77 if (mediaCodecInfo.isEncoder()) { in initAacDecoderNames()
|
D | ImageReaderDecoderTest.java | 326 if (info.isEncoder() || info.isAlias() || !info.isVendor() != goog) { in decoders()
|
D | ExtractDecodeEditEncodeMuxTest.java | 1218 if (!codecInfo.isEncoder()) { in selectCodec()
|
D | VideoEncoderTest.java | 159 if (info.isEncoder()) { in playAll() 1198 if (!info.isEncoder() || !info.isVendor() != goog) { in encoders()
|
D | MediaRecorderTest.java | 806 if (!info.isEncoder()) { in getCapsForPreferredCodecForMediaType()
|
D | DecoderTest.java | 302 if (!codecInfo.isEncoder() && isMimeTypeSupported(codecInfo, mimeType)) { in getDecoderMediaCodecInfoList() 3306 if (codecInfo.isEncoder()) {
|
/cts/tests/media/src/android/mediav2/cts/ |
D | CodecTestBase.java | 537 List<Object[]> exhaustiveArgsList, boolean isEncoder) { in prepareParamList() argument 543 if (codecInfo.isEncoder() != isEncoder) continue; in prepareParamList() 556 if (isEncoder && hasCamera() && !mimes.contains(MediaFormat.MIMETYPE_VIDEO_AVC) && in prepareParamList() 596 boolean isEncoder) { in configureCodec() argument 603 isEncoder ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0); in configureCodec() 605 mCodec.configure(format, mSurface, isEncoder ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0, in configureCodec() 628 boolean isEncoder) { in reConfigureCodec() argument 632 configureCodec(format, isAsync, signalEOSWithLastFrame, isEncoder); in reConfigureCodec() 738 String[] features, boolean isEncoder) { in selectCodecs() argument 743 if (codecInfo.isEncoder() != isEncoder) continue; in selectCodecs()
|
D | CodecUnitTest.java | 107 boolean isEncoder) throws IOException { in testConfigureCodecForIncompleteFormat() argument 109 if (isEncoder) { in testConfigureCodecForIncompleteFormat() 119 isEncoder ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0); in testConfigureCodecForIncompleteFormat() 130 isEncoder ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0); in testConfigureCodecForIncompleteFormat() 138 void testConfigureCodecForBadFlags(boolean isEncoder) throws IOException { in testConfigureCodecForBadFlags() argument 141 if (isEncoder) { in testConfigureCodecForBadFlags() 148 isEncoder ? 0 : MediaCodec.CONFIGURE_FLAG_ENCODE); in testConfigureCodecForBadFlags() 2036 for (boolean isEncoder : boolStates) { in testConfigureCodecForIncompleteFormat() 2040 ", isEncoder " + isEncoder, in testConfigureCodecForIncompleteFormat() 2041 nativeTestConfigureCodecForIncompleteFormat(isAudio, isEncoder)); in testConfigureCodecForIncompleteFormat() [all …]
|
D | EncoderColorAspectsTest.java | 121 if (!codecInfo.isEncoder()) continue; in input()
|
D | CodecEncoderSurfaceTest.java | 123 if (!codecInfo.isEncoder()) continue; in input()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 209 boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in getCodecNames() argument 216 if (info.isEncoder() != isEncoder) { in getCodecNames() 272 int count, boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in verifyNumCodecs() argument 273 String desc = (isEncoder ? "encoders" : "decoders") + " for " in verifyNumCodecs() 279 String[] codecs = getCodecNames(isEncoder, isGoog, formats); in verifyNumCodecs() 572 if (encoder != info.isEncoder()) { in hasCodecForDomain() 593 if (encoder != info.isEncoder()) { in hasCodecForMime() 806 if (info.isEncoder() == encode && info.isHardwareAccelerated()) { in hasHardwareCodec()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 208 boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in getCodecNames() argument 212 if (info.isEncoder() != isEncoder) { in getCodecNames() 268 int count, boolean isEncoder, Boolean isGoog, MediaFormat... formats) { in verifyNumCodecs() argument 269 String desc = (isEncoder ? "encoders" : "decoders") + " for " in verifyNumCodecs() 275 String[] codecs = getCodecNames(isEncoder, isGoog, formats); in verifyNumCodecs() 493 if (encoder != info.isEncoder()) { in hasCodecForDomain() 514 if (encoder != info.isEncoder()) { in hasCodecForMime()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | MediaDeviceInfo.java | 53 store.addResult("encoder", info.isEncoder()); in collectDeviceInfo()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 1942 if (info.isEncoder()) { in doStagefrightTestMediaCodec() 2309 if (info.isEncoder()) { in doStagefrightTestRawBlob() 2429 if (info.isEncoder()) { in doStagefrightTestRawBlob()
|