/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-1988/ |
D | poc.cpp | 30 int decode(sk_sp<SkData> bytes, uint8_t sampleSize) { in decode() argument 36 auto size = codec->getSampledDimensions(sampleSize); in decode() 44 options.fSampleSize = sampleSize; in decode()
|
/cts/tests/tests/graphics/jni/ |
D | MediaTestHelpers.cpp | 144 ssize_t sampleSize = in processOneInputBuffer() local 146 ASSERT(sampleSize >= 0); in processOneInputBuffer() 149 MEDIA_CALL(AMediaCodec_queueInputBuffer(mCodec, bufferIndex, 0, sampleSize, in processOneInputBuffer()
|
D | android_graphics_cts_AImageDecoderTest.cpp | 744 int sampleSize; member 750 jobject jbitmap, jint sampleSize) { in testComputeSampledSize() argument 768 int result = AImageDecoder_computeSampledSize(p.decoder, p.sampleSize, p.width, p.height); in testComputeSampledSize() 782 int result = AImageDecoder_computeSampledSize(p.decoder, p.sampleSize, p.width, p.height); in testComputeSampledSize() 785 p.sampleSize, origWidth, origHeight); in testComputeSampledSize() 801 int result = AImageDecoder_computeSampledSize(decoder, sampleSize, &width, &height); in testComputeSampledSize() 806 origWidth, origHeight, sampleSize, width, height, jInfo.width, jInfo.height); in testComputeSampledSize() 816 ASSERT_LT(width, origWidth / sampleSize + sampleSize); in testComputeSampledSize() 817 ASSERT_LT(height, origHeight / sampleSize + sampleSize); in testComputeSampledSize()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecoderTestAacFormat.java | 161 int sampleSize = in decodeUpdateFormat() local 166 if (sampleSize < 0) { in decodeUpdateFormat() 169 sampleSize = 0; in decodeUpdateFormat() 177 sampleSize, in decodeUpdateFormat()
|
D | CodecState.java | 225 int sampleSize = in feedInputBuffer() local 232 if (sampleSize <= 0) { in feedInputBuffer() 233 Log.d(TAG, "sampleSize: " + sampleSize + " trackIndex:" + trackIndex + in feedInputBuffer() 254 index, 0 /* offset */, sampleSize, sampleTime, 0 /* flags */); in feedInputBuffer()
|
D | DecoderTestAacDrc.java | 628 int sampleSize = in decodeToMemory() local 633 if (sampleSize < 0 && eossample > 0) { in decodeToMemory() 636 if (sampleSize < 0) { in decodeToMemory() 639 sampleSize = 0; in decodeToMemory() 650 sampleSize, in decodeToMemory()
|
D | VideoDecoderPerfTest.java | 190 int sampleSize = 0; in doDecode() local 194 while ((sampleSize = extractor.readSampleData(tmpBuf, 0 /* offset */)) > 0) { in doDecode() 195 if (totalMemory + sampleSize > MAX_SIZE_SAMPLES_IN_MEMORY_BYTES) { in doDecode() 201 ByteBuffer copied = ByteBuffer.allocate(sampleSize); in doDecode() 209 totalMemory += sampleSize; in doDecode() 256 int sampleSize = sample.first.remaining(); in doDecode() local 271 sampleSize, in doDecode()
|
D | ImageReaderDecoderTest.java | 503 int sampleSize = in decodeFramesToImage() local 507 + inputBufIndex + "/" + sampleSize); in decodeFramesToImage() 511 if (sampleSize < 0) { in decodeFramesToImage() 514 sampleSize = 0; in decodeFramesToImage() 522 sampleSize, in decodeFramesToImage()
|
D | NativeDecoderTest.java | 445 int sampleSize = ex.readSampleData(buf, 0); in getDecodedData() local 446 Log.i("@@@@", "read " + sampleSize + " @ " + ex.getSampleTime()); in getDecodedData() 447 if (sampleSize < 0) { in getDecodedData() 448 sampleSize = 0; in getDecodedData() 455 codec[t].queueInputBuffer(bufidx, 0, sampleSize, presentationTimeUs, in getDecodedData()
|
D | DecoderTest.java | 1916 int sampleSize = 1921 if (sampleSize < 0 && eossample > 0) { 1924 if (sampleSize < 0) { 1927 sampleSize = 0; 1938 sampleSize, 2885 int sampleSize = 2887 assertEquals("end of stream should match extractor.advance()", sampleSize >= 0, 2897 if (sampleSize < 0) { 2902 -1, sampleSize); 2905 sampleSize = 0; // required otherwise queueInputBuffer [all …]
|
D | AdaptivePlaybackTest.java | 1370 int sampleSize = extractor.readSampleData(readBuf, 0 /* offset */); 1372 if (sampleSize < 0) { 1375 readBuf.position(0).limit(sampleSize); 1377 sampleSize += csd.capacity(); 1380 if (maxInputSize < sampleSize) { 1381 maxInputSize = sampleSize; 1384 ByteBuffer buf = ByteBuffer.allocate(sampleSize); 1391 Log.i(TAG, "frame-" + ix + "[" + sampleSize + "]");
|
D | DecoderTestXheAac.java | 1359 int sampleSize = 1364 if (sampleSize < 0 && eossample > 0) { 1368 if (sampleSize < 0) { 1371 sampleSize = 0; 1383 sampleSize,
|
D | DecodeAccuracyTestBase.java | 309 final int sampleSize = extractor.readSampleData(inputBuffer, 0); in queueDecoderInputBuffer() local 310 if (sampleSize > 0) { in queueDecoderInputBuffer() 312 inputBufferIndex, 0, sampleSize, extractor.getSampleTime(), 0); in queueDecoderInputBuffer()
|
D | MediaCodecTest.java | 2386 final int sampleSize = useFloat ? 4 : 2; in PcmAudioBufferStream() local 2387 final int sizeInBytes = samples * sampleSize; in PcmAudioBufferStream()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native_media_decoder_source.cpp | 144 int sampleSize = AMediaExtractor_readSampleData(mEx.get(), buf, bufsize); in run() local 146 if (sampleSize < 0) { in run() 156 AMediaCodec_queueInputBuffer(mDec.get(), bufidx, 0, sampleSize, timeStampUs, flags); in run()
|
D | native-media-jni.cpp | 306 ssize_t sampleSize = AMediaExtractor_getSampleSize(ex); in testExtractor() local 307 if (n < 0 || n != sampleSize) { in testExtractor() 557 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local 558 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 559 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 560 sampleSize = 0; in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 567 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() 722 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() local 723 ALOGV("read %d", sampleSize); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() 724 if (sampleSize < 0) { in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() [all …]
|
D | native-mediadrm-jni.cpp | 394 int sampleSize = AMediaExtractor_readSampleData(extractor, buf, bufsize); in fillDecoder() local 395 if (sampleSize < 0) { in fillDecoder() 396 sampleSize = 0; in fillDecoder() 413 codec, bufferIndex, 0, sampleSize, in fillDecoder()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | AImageDecoderTest.java | 525 private Bitmap decodeSampled(String name, ImageDecoder.Source src, int sampleSize) { 530 decoder.setTargetSampleSize(sampleSize); 534 + sampleSize + ") with " + e); 541 public void testDecodeSampled(ImageDecoderTest.AssetRecord record, int sampleSize) { 544 Bitmap bm = decodeSampled(record.name, src, sampleSize); 555 public void testDecodeResourceSampled(ImageDecoderTest.Record record, int sampleSize) 560 Bitmap bm = decodeSampled(name, src, sampleSize); 574 public void testComputeSampledSize(ImageDecoderTest.Record record, int sampleSize) 583 Bitmap bm = decodeSampled(name, src, sampleSize); 589 nTestComputeSampledSize(aimagedecoder, bm, sampleSize); [all …]
|
D | BitmapRegionDecoderTest.java | 374 int sampleSize = SAMPLESIZES[j]; in testInBitmapReuse() local 375 defaultOpts.inSampleSize = sampleSize; in testInBitmapReuse() 376 reuseOpts.inSampleSize = sampleSize; in testInBitmapReuse() 380 assertEquals(0, TILE_SIZE % sampleSize); in testInBitmapReuse() 381 int scaledDim = TILE_SIZE / sampleSize; in testInBitmapReuse()
|
D | ImageDecoderTest.java | 732 private void checkSampleSize(String name, int originalDimension, int sampleSize, int result) { in checkSampleSize() argument 733 if (originalDimension % sampleSize == 0) { in checkSampleSize() 734 assertEquals("Mismatch for " + name + ": " + originalDimension + " / " + sampleSize in checkSampleSize() 735 + " != " + result, originalDimension / sampleSize, result); in checkSampleSize() 736 } else if (originalDimension <= sampleSize) { in checkSampleSize() 740 int size = result * sampleSize; in checkSampleSize() 742 + sampleSize + " = " + result, in checkSampleSize() 743 Math.abs(size - originalDimension) < sampleSize); in checkSampleSize() 751 for (int sampleSize : new int[] { 2, 3, 4, 8, 32 }) { in testSampleSize() 755 decoder.setTargetSampleSize(sampleSize); in testSampleSize() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | SoundPlayerObject.java | 155 final int sampleSize = in run() local 158 if (sampleSize < 0) { in run() 166 inputEosSignalled ? 0 : sampleSize, presentationTimeUs, in run()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorUnitTest.java | 654 int sampleSize = (int) extractor.getSampleSize(); in testIfInvalidOffsetIsRejectedByReadSampleData() local 656 extractor.readSampleData(byteBuffer, MAX_SAMPLE_SIZE - sampleSize + 1); in testIfInvalidOffsetIsRejectedByReadSampleData()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 1194 int sampleSize = ex.readSampleData(buffer, 0); in verifyDecoder() local 1195 if (sampleSize < 0) { in verifyDecoder() 1200 decoder.queueInputBuffer(inIdx, 0, sampleSize, ex.getSampleTime(), 0); in verifyDecoder()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 1117 int sampleSize = extractor.readSampleData(buffer, 0); in run() local 1118 if (sampleSize < 0) { in run() 1128 decoder.queueInputBuffer(inIndex, 0, sampleSize, frameTimestamp, 0); in run()
|