Home
last modified time | relevance | path

Searched refs:refBuffer (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioMetadataTest.java315 ByteBuffer refBuffer = ByteBuffer.allocate(BYTE_BUFFER_REFERENCE.length); in testCompatibilityR() local
316 refBuffer.put(BYTE_BUFFER_REFERENCE); in testCompatibilityR()
317 refBuffer.position(0); in testCompatibilityR()
318 assertEquals(buffer, refBuffer); in testCompatibilityR()
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderTest.java124 ByteBuffer refBuffer; in readAudioReferenceFile() local
128 refBuffer = ByteBuffer.allocate(length); in readAudioReferenceFile()
129 refBuffer.order(ByteOrder.LITTLE_ENDIAN); in readAudioReferenceFile()
130 fileChannel.read(refBuffer); in readAudioReferenceFile()
132 return refBuffer; in readAudioReferenceFile()
DExtractorTest.java287 ByteBuffer refBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in isMediaSimilar() local
328 int refSz = refExtractor.readSampleData(refBuffer, 0); in isMediaSimilar()
364 if (!testBuffer.equals(refBuffer)) { in isMediaSimilar()
1419 final ByteBuffer refBuffer = cdtb.getOutputManager().getBuffer();
1422 ByteBuffer testBuffer = ByteBuffer.allocate(refBuffer.limit());
1431 assertEquals(log + "Output mismatch", 0, refBuffer.compareTo(testBuffer));
DMuxerTest.java298 byte[] refBuffer = new byte[MAX_SAMPLE_SIZE]; in isSubsetOf()
322 mBuff.get(refBuffer, 0, thisInfo.size); in isSubsetOf()
327 if (refBuffer[count] != testBuffer[count]) { in isSubsetOf()
/cts/tests/media/jni/
DNativeExtractorTest.cpp68 auto refBuffer = new uint8_t[maxSampleSize]; in isMediaSimilar() local
105 AMediaExtractor_readSampleData(refExtractor, refBuffer, maxSampleSize); in isMediaSimilar()
134 if (memcmp(refBuffer, testBuffer, refSz)) { in isMediaSimilar()
175 delete[] refBuffer; in isMediaSimilar()
/cts/tests/media/common/src/android/mediav2/common/cts/
DCompareStreams.java118 public CompareStreams(MediaFormat refFormat, ByteBuffer refBuffer, in CompareStreams() argument
122 this(new DecodeStreamToYuv(refFormat, refBuffer, refBufferInfos).getDecodedYuv(), in CompareStreams()