Home
last modified time | relevance | path

Searched refs:testFormat (Results 1 – 12 of 12) sorted by relevance

/cts/tests/media/jni/
DNativeMediaCommon.cpp58 bool isCSDIdentical(AMediaFormat* refFormat, AMediaFormat* testFormat) { in isCSDIdentical() argument
65 bool hasTestCSD = AMediaFormat_getBuffer(testFormat, name, &testCsd.first, &testCsd.second); in isCSDIdentical()
97 bool isFormatSimilar(AMediaFormat* refFormat, AMediaFormat* testFormat) { in isFormatSimilar() argument
103 AMediaFormat_getString(testFormat, AMEDIAFORMAT_KEY_MIME, &testMediaType); in isFormatSimilar()
110 AMediaFormat_getInt64(testFormat, AMEDIAFORMAT_KEY_DURATION, &testKeyDuration); in isFormatSimilar()
118 if (!isCSDIdentical(refFormat, testFormat)) return false; in isFormatSimilar()
125 AMediaFormat_getInt32(testFormat, AMEDIAFORMAT_KEY_SAMPLE_RATE, &testSampleRate); in isFormatSimilar()
132 AMediaFormat_getInt32(testFormat, AMEDIAFORMAT_KEY_CHANNEL_COUNT, &testNumChannels); in isFormatSimilar()
139 bool hasTestWidth = AMediaFormat_getInt32(testFormat, AMEDIAFORMAT_KEY_WIDTH, &testWidth); in isFormatSimilar()
145 AMediaFormat_getInt32(testFormat, AMEDIAFORMAT_KEY_HEIGHT, &testHeight); in isFormatSimilar()
DNativeMediaCommon.h75 bool isCSDIdentical(AMediaFormat* refFormat, AMediaFormat* testFormat);
76 bool isFormatSimilar(AMediaFormat* refFormat, AMediaFormat* testFormat);
DNativeExtractorTest.cpp82 AMediaFormat* testFormat = AMediaExtractor_getTrackFormat(testExtractor, testTrackID); in isMediaSimilar() local
83 if (!isFormatSimilar(refFormat, testFormat)) { in isMediaSimilar()
84 AMediaFormat_delete(testFormat); in isMediaSimilar()
166 AMediaFormat_delete(testFormat); in isMediaSimilar()
457 AMediaFormat* testFormat = AMediaExtractor_getFileFormat(testExtractor); in isFileFormatIdentical() local
458 if (refFormat && testFormat) { in isFileFormatIdentical()
463 AMediaFormat_getString(testFormat, AMEDIAFORMAT_KEY_MIME, &testMediaType); in isFileFormatIdentical()
472 if (testFormat) AMediaFormat_delete(testFormat); in isFileFormatIdentical()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPlayerListener.java178 protected final boolean isFormatSimilar(Format refFormat, Format testFormat) { in isFormatSimilar() argument
180 String testMediaType = testFormat.sampleMimeType; in isFormatSimilar()
183 if ((refFormat.channelCount != testFormat.channelCount) || (refFormat.sampleRate in isFormatSimilar()
184 != testFormat.sampleRate)) { in isFormatSimilar()
194 if (!refFormat.id.equals(testFormat.id)) { in isFormatSimilar()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCompareStreams.java92 private CompareStreams(RawResource refYuv, MediaFormat testFormat, ByteBuffer testBuffer, in CompareStreams() argument
95 super(findDecoderForFormat(testFormat), testFormat.getString(MediaFormat.KEY_MIME), null, in CompareStreams()
98 mStreamFormat = testFormat; in CompareStreams()
119 ArrayList<MediaCodec.BufferInfo> refBufferInfos, MediaFormat testFormat, in CompareStreams() argument
123 testFormat, testBuffer, testBufferInfos, allowRefResize, allowRefLoopBack); in CompareStreams()
/cts/tests/media/src/android/mediav2/cts/
DExtractorTest.java229 static boolean isCSDIdentical(MediaFormat refFormat, MediaFormat testFormat) { in isCSDIdentical() argument
234 boolean testHasCSD = testFormat.containsKey(csdKey); in isCSDIdentical()
245 ByteBuffer t = testFormat.getByteBuffer(csdKey); in isCSDIdentical()
257 static boolean isFormatSimilar(MediaFormat refFormat, MediaFormat testFormat) { in isFormatSimilar() argument
259 String testMediaType = testFormat.getString(MediaFormat.KEY_MIME); in isFormatSimilar()
263 testFormat.getLong(MediaFormat.KEY_DURATION)) { in isFormatSimilar()
266 testFormat.getLong(MediaFormat.KEY_DURATION)); in isFormatSimilar()
270 if (!isCSDIdentical(refFormat, testFormat)) return false; in isFormatSimilar()
273 testFormat.getInteger(MediaFormat.KEY_CHANNEL_COUNT)) return false; in isFormatSimilar()
275 testFormat.getInteger(MediaFormat.KEY_SAMPLE_RATE)) return false; in isFormatSimilar()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraExtensionCharacteristicsTest.java277 final int testFormat = ImageFormat.JPEG; in testExtensionLatencyRanges() local
289 List<Size> extensionSizes = chars.getExtensionSupportedSizes(extension, testFormat); in testExtensionLatencyRanges()
292 extension, sz, testFormat); in testExtensionLatencyRanges()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackTest.java1620 private void doTestPlayStaticData(String testName, int testFormat) throws Exception { in doTestPlayStaticData() argument
1651 TEST_LOOPS, testFormat, frequency, testSampleRate, in doTestPlayStaticData()
1661 double testSweep, int testLoops, int testFormat, double testFrequency, int testSr, in playOnceStaticData() argument
1669 * AudioFormat.getBytesPerSample(testFormat); in playOnceStaticData()
1673 testConf, testFormat, bufferSize, testMode); in playOnceStaticData()
1687 switch (testFormat) { in playOnceStaticData()
1773 private void doTestPlayStreamData(String testName, int testFormat) throws Exception { in doTestPlayStreamData() argument
1803 TEST_IS_LOW_RAM_DEVICE, testFormat, frequency, in doTestPlayStreamData()
1812 float testSweep, boolean isLowRamDevice, int testFormat, double testFrequency, in playOnceStreamData() argument
1822 testConf, testFormat); // in bytes in playOnceStreamData()
[all …]
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DNativeDecoderTest.java101 public void testFormat() throws Exception { in testFormat() method in NativeDecoderTest
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeVirtualDisplayWithCompositionTestImpl.java1493 MediaFormat testFormat = MediaFormat.createVideoFormat(mimeType, w, h); in isConcurrentEncodingDecodingSupported() local
1494 testFormat.setInteger(MediaFormat.KEY_BIT_RATE, bitRate); in isConcurrentEncodingDecodingSupported()
1495 testFormat.setInteger(MediaFormat.KEY_FRAME_RATE, 30); in isConcurrentEncodingDecodingSupported()
1496 if (mcl.findDecoderForFormat(testFormat) == null in isConcurrentEncodingDecodingSupported()
1497 || mcl.findEncoderForFormat(testFormat) == null) { in isConcurrentEncodingDecodingSupported()
/cts/tests/tests/nfc/src/android/nfc/tech/cts/
DNdefFormatableTest.java83 public void testFormat() throws Exception { in testFormat() method in NdefFormatableTest
/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java814 public void testFormat() { in testFormat() method in TimeTest