/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | AImageDecoderTest.kt | 97 decoder, info, _ -> in <lambda>() method 98 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE in <lambda>() 105 decoder.setTargetSize(targetWidth, targetHeight) in <lambda>() 135 private fun setCrop(decoder: Long, rect: Rect): Int = with(rect) { in <lambda>() 136 nSetCrop(decoder, left, top, right, bottom) in <lambda>() 166 val decoder = nCreateFromAsset(asset) in <lambda>() constant 169 assertEquals(nSetTargetSize(decoder, targetWidth, targetHeight), in <lambda>() 175 assertEquals(setCrop(decoder, this), ANDROID_IMAGE_DECODER_SUCCESS) in <lambda>() 183 nDecode(decoder, testBm, ANDROID_IMAGE_DECODER_SUCCESS) in <lambda>() 195 when (val result = nAdvanceFrame(decoder)) { in <lambda>() [all …]
|
D | AnimatedImageDrawableTest.kt | 56 decoder, info, source -> in <lambda>() method 58 decoder.allocator = ImageDecoder.ALLOCATOR_SOFTWARE in <lambda>() 168 decoder, info, source -> in <lambda>() method 169 decoder.setCrop(Rect(100, 0, 145, 55)) in <lambda>() 178 decoder, info, source -> in <lambda>() method 179 decoder.setPostProcessor { in <lambda>()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_AImageDecoderTest.cpp | 185 AImageDecoder* decoder = reinterpret_cast<AImageDecoder*>(imageDecoderPtr); in testInfo() local 186 ASSERT_NE(decoder, nullptr); in testInfo() 187 DecoderDeleter decoderDeleter(decoder, AImageDecoder_delete); in testInfo() 189 const AImageDecoderHeaderInfo* info = AImageDecoder_getHeaderInfo(decoder); in testInfo() 225 AImageDecoder* decoder = nullptr; in createFromAsset() local 226 int result = AImageDecoder_createFromAAsset(reinterpret_cast<AAsset*>(asset), &decoder); in createFromAsset() 227 if (ANDROID_IMAGE_DECODER_SUCCESS != result || !decoder) { in createFromAsset() 230 return reinterpret_cast<jlong>(decoder); in createFromAsset() 234 AImageDecoder* decoder = nullptr; in createFromFd() local 235 int result = AImageDecoder_createFromFd(fd, &decoder); in createFromFd() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-9362/ |
D | poc.cpp | 28 spatialDec decoder; in main() local 29 memset(&decoder, 0x0, sizeof(spatialDec)); in main() 31 decoder.numOttBoxes = MAX_NUM_OTT; in main() 35 decoder.pConfigCurrent = &pConfigCurrent; in main() 38 decoder.ottCLDidxPrev = (SCHAR **)&ottCLDidxPrev; in main() 41 decoder.smgTime = &smgTime; in main() 44 decoder.smgData = (UCHAR **)&smgData; in main() 48 decoder.smoothState = &smoothState; in main() 50 decoder.arbitraryDownmix = 0; in main() 51 (decoder.concealInfo).concealState = SpatialDecConcealState_Ok; in main() [all …]
|
/cts/tests/tests/uirendering/jni/ |
D | android_uirendering_cts_AImageDecoderTest.cpp | 95 AImageDecoder* decoder = nullptr; in createFromAsset() local 96 int result = AImageDecoder_createFromAAsset(reinterpret_cast<AAsset*>(asset), &decoder); in createFromAsset() 97 if (ANDROID_IMAGE_DECODER_SUCCESS != result || !decoder) { in createFromAsset() 101 return reinterpret_cast<jlong>(decoder); in createFromAsset() 104 static jint getWidth(JNIEnv*, jobject, jlong decoder) { in getWidth() argument 105 const auto* info = AImageDecoder_getHeaderInfo(reinterpret_cast<AImageDecoder*>(decoder)); in getWidth() 109 static jint getHeight(JNIEnv*, jobject, jlong decoder) { in getHeight() argument 110 const auto* info = AImageDecoder_getHeaderInfo(reinterpret_cast<AImageDecoder*>(decoder)); in getHeight() 114 static void deleteDecoder(JNIEnv*, jobject, jlong decoder) { in deleteDecoder() argument 115 AImageDecoder_delete(reinterpret_cast<AImageDecoder*>(decoder)); in deleteDecoder() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0689/ |
D | poc.cpp | 27 void operator()(AImageDecoder *decoder) const { AImageDecoder_delete(decoder); } in operator ()() 33 AImageDecoder *decoder = nullptr; in makeDecoder() local 34 int result = AImageDecoder_createFromBuffer(data, size, &decoder); in makeDecoder() 38 return DecoderPointer(decoder); in makeDecoder() 53 DecoderPointer decoder = makeDecoder(buffer.data(), size); in main() local 54 FAIL_CHECK(decoder); in main() 55 const AImageDecoderHeaderInfo *info = AImageDecoder_getHeaderInfo(decoder.get()); in main() 59 size_t stride = AImageDecoder_getMinimumStride(decoder.get()); in main() 64 int32_t result = AImageDecoder_decodeImage(decoder.get(), pixels.data(), stride, pixelSize); in main()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapRegionDecoderTest.java | 154 BitmapRegionDecoder decoder = in testNewInstanceInputStream() local 156 assertEquals(WIDTHS[i], decoder.getWidth()); in testNewInstanceInputStream() 157 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceInputStream() 174 BitmapRegionDecoder decoder = BitmapRegionDecoder in testNewInstanceByteArray() local 176 assertEquals(WIDTHS[i], decoder.getWidth()); in testNewInstanceByteArray() 177 assertEquals(HEIGHTS[i], decoder.getHeight()); in testNewInstanceByteArray() 218 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1); in testDecodeRegionInputStream() local 223 compareRegionByRegion(decoder, opts, MSE_MARGIN_WEB_P_CONFIG_RGB_565, in testDecodeRegionInputStream() 226 compareRegionByRegion(decoder, opts, MSE_MARGIN, wholeImage); in testDecodeRegionInputStream() 246 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is1); in testDecodeRegionInputStreamInBitmap() local [all …]
|
D | ImageDecoderTest.java | 269 Bitmap bm = ImageDecoder.decodeBitmap(src, (decoder, info, source) -> { in testDecode10BitHeif() 270 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in testDecode10BitHeif() 289 Bitmap bm = ImageDecoder.decodeBitmap(src, (decoder, info, source) -> { in testDecode10BitHeifWithLowRam() 290 decoder.setMemorySizePolicy(ImageDecoder.MEMORY_POLICY_LOW_RAM); in testDecode10BitHeifWithLowRam() 291 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in testDecode10BitHeifWithLowRam() 315 Drawable d = ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testUris() 316 decoder.setOnPartialImageListener((e) -> { in testUris() 343 ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testInfo() 403 ImageDecoder.decodeBitmap(src, (decoder, info, s) -> decoder.setAllocator(15)); in testSetBogusAllocator() 421 ImageDecoder.decodeDrawable(src, (decoder, info, s) -> { in testGetAllocator() [all …]
|
D | AImageDecoderTest.java | 290 return ImageDecoder.decodeBitmap(src, (decoder, info, source) -> { in decode() 292 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in decode() 293 decoder.setUnpremultipliedRequired(unpremul); in decode() 345 return ImageDecoder.decodeBitmap(src, (decoder, info, source) -> { in decode() 347 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); in decode() 350 decoder.setMemorySizePolicy(ImageDecoder.MEMORY_POLICY_LOW_RAM); in decode() 353 decoder.setDecodeAsAlphaMaskEnabled(true); in decode() 551 return ImageDecoder.decodeBitmap(src, (decoder, info, source) -> { 553 decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE); 554 decoder.setTargetSampleSize(sampleSize); [all …]
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecoderTestAacFormat.java | 17 package android.media.decoder.cts; 31 import android.media.decoder.cts.DecoderTest.AudioParameter; 175 MediaCodec decoder; in decodeUpdateFormat() local 177 decoder = MediaCodec.createDecoderByType(mime); in decodeUpdateFormat() 179 decoder = MediaCodec.createByCodecName(decoderName); in decodeUpdateFormat() 188 decoder.configure(configFormat, null /* surface */, null /* crypto */, 0 /* flags */); in decodeUpdateFormat() 190 decoder.start(); in decodeUpdateFormat() 191 ByteBuffer[] codecInputBuffers = decoder.getInputBuffers(); in decodeUpdateFormat() 192 ByteBuffer[] codecOutputBuffers = decoder.getOutputBuffers(); in decodeUpdateFormat() 208 int inputBufIndex = decoder.dequeueInputBuffer(kTimeOutUs); in decodeUpdateFormat() [all …]
|
D | DecodeAccuracyTestActivity.java | 16 package android.media.decoder.cts; 18 import android.media.decoder.cts.R;
|
D | ImageReaderDecoderTest.java | 17 package android.media.decoder.cts; 139 for (String decoder: decoders) { in input() 140 if (TestArgs.shouldSkipCodec(decoder)) { in input() 148 argsList.add(new Object[]{mime, decoder, asset, MODE_IMAGE, id + "_image"}); in input() 150 argsList.add(new Object[]{mime, decoder, asset, MODE_IMAGEREADER, in input() 434 MediaCodec decoder, MediaExtractor extractor, MediaFormat mediaFormat, in decodeFramesToImage() argument 444 decoder.configure(mediaFormat, mReaderSurface, null /* crypto */, 0 /* flags */); in decodeFramesToImage() 447 decoder.configure(mediaFormat, null /* surface */, null /* crypto */, 0 /* flags */); in decodeFramesToImage() 450 decoder.start(); in decodeFramesToImage() 451 decoderInputBuffers = decoder.getInputBuffers(); in decodeFramesToImage() [all …]
|
D | WorkDir.java | 17 package android.media.decoder.cts;
|
D | DecodeAccuracyTestBase.java | 16 package android.media.decoder.cts; 35 import android.media.decoder.cts.R; 155 private MediaCodec decoder; field in DecodeAccuracyTestBase.SimplePlayer 308 final ByteBuffer[] inputBufferArray = decoder.getInputBuffers(); in queueDecoderInputBuffer() 309 final int inputBufferIndex = decoder.dequeueInputBuffer(DEQUEUE_TIMEOUT_US); in queueDecoderInputBuffer() 314 inputBuffer = decoder.getInputBuffer(inputBufferIndex); in queueDecoderInputBuffer() 318 decoder.queueInputBuffer( in queueDecoderInputBuffer() 336 final int decoderStatus = decoder.dequeueOutputBuffer(info, DEQUEUE_TIMEOUT_US); in dequeueDecoderOutputBuffer() 350 outputBuffer = decoder.getOutputBuffers()[decoderStatus]; in dequeueDecoderOutputBuffer() 352 outputBuffer = decoder.getOutputBuffer(decoderStatus); in dequeueDecoderOutputBuffer() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-30351/src/android/security/cts/CVE_2021_30351/ |
D | MainActivity.java | 33 MediaCodec decoder = null; field in MainActivity 53 decoder = MediaCodec.createByCodecName("OMX.qti.audio.decoder.alac.sw"); in onCreate() 80 decoder.configure(mediaFormat, null, null, 0); in onCreate() 81 decoder.start(); in onCreate() 105 ByteBuffer[] codecInputBuffers = decoder.getInputBuffers(); in onCreate() 106 int inputBufIndex = decoder.dequeueInputBuffer(0); in onCreate() 111 decoder.queueInputBuffer(inputBufIndex, offset, length, 0, 0); in onCreate()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | DecodeEditEncodeTest.java | 138 for (String decoder : decoderNames) { in prepareParamList() 139 if (TestArgs.shouldSkipCodec(decoder)) { in prepareParamList() 151 testArgs[1] = decoder; in prepareParamList() 183 public DecodeEditEncodeTest(String encoder, String decoder, String mimeType, int width, in DecodeEditEncodeTest() argument 189 mDecoderName = decoder; in DecodeEditEncodeTest() 462 MediaCodec decoder = null; in editVideoFile() local 496 decoder = MediaCodec.createByCodecName(mDecoderName); in editVideoFile() 502 decoder.configure(inputFormat, outputSurface.getSurface(), null, 0); in editVideoFile() 503 decoder.start(); in editVideoFile() 506 inputFormat = decoder.getInputFormat(); in editVideoFile() [all …]
|
D | EncodeDecodeTest.java | 144 for (String decoder : decoderNames) { in prepareParamList() 145 if (TestArgs.shouldSkipCodec(decoder)) { in prepareParamList() 153 MediaUtils.supports(decoder, format)) { in prepareParamList() 156 testArgs[1] = decoder; in prepareParamList() 193 public EncodeDecodeTest(String encoder, String decoder, String mimeType, int width, int height, in EncodeDecodeTest() argument 199 mDecoderName = decoder; in EncodeDecodeTest() 307 MediaCodec decoder = null; in encodeDecodeVideoFromBuffer() local 336 decoder = MediaCodec.createByCodecName(mDecoderName); in encodeDecodeVideoFromBuffer() 337 if (VERBOSE) Log.d(TAG, "got decoder: " + decoder.getName()); in encodeDecodeVideoFromBuffer() 339 doEncodeDecodeVideoFromBuffer(encoder, colorFormat, decoder, toSurface); in encodeDecodeVideoFromBuffer() [all …]
|
D | EncodeVirtualDisplayTest.java | 257 MediaCodec decoder = null; in encodeVirtualDisplayTest() local 273 decoder = MediaCodec.createDecoderByType(mMediaType); in encodeVirtualDisplayTest() 276 decoder.configure(decoderFormat, outputSurface.getSurface(), null, 0); in encodeVirtualDisplayTest() 277 decoder.start(); in encodeVirtualDisplayTest() 285 doTestEncodeVirtual(encoder, decoder, outputSurface); in encodeVirtualDisplayTest() 304 if (decoder != null) { in encodeVirtualDisplayTest() 305 decoder.stop(); in encodeVirtualDisplayTest() 306 decoder.release(); in encodeVirtualDisplayTest() 314 private void doTestEncodeVirtual(MediaCodec encoder, MediaCodec decoder, in doTestEncodeVirtual() argument 318 ByteBuffer[] decoderInputBuffers = decoder.getInputBuffers(); in doTestEncodeVirtual() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-39804/ |
D | poc.cpp | 51 AImageDecoder *decoder; in main() local 52 if (AImageDecoder_createFromBuffer(buffer.data(), size, &decoder) == in main() 54 AImageDecoder_delete(decoder); in main() 57 FAIL_CHECK(decoder); in main()
|
/cts/tests/media/jni/ |
D | NativeCodecDecoderTest.cpp | 55 bool decodeToMemory(const char* decoder, AMediaFormat* format, int frameLimit, 62 bool testSimpleDecode(const char* decoder, const char* testFile, const char* refFile, 64 bool testFlush(const char* decoder, const char* testFile, int colorFormat); 65 bool testOnlyEos(const char* decoder, const char* testFile, int colorFormat); 66 bool testSimpleDecodeQueueCSD(const char* decoder, const char* testFile, int colorFormat); 281 bool CodecDecoderTest::decodeToMemory(const char* decoder, AMediaFormat* format, int frameLimit, in decodeToMemory() argument 286 mCodec = AMediaCodec_createCodecByName(decoder); in decodeToMemory() 288 ALOGE("unable to create codec %s", decoder); in decodeToMemory() 303 bool CodecDecoderTest::testSimpleDecode(const char* decoder, const char* testFile, in testSimpleDecode() argument 320 decoder, testFile, (isAsync ? "async" : "sync"), in testSimpleDecode() [all …]
|
/cts/tests/video/ |
D | README.md | 3 1. Testing video encoder/decoder performance by running encoding/decoding without displaying the ra… 4 2. Testing key operating rate for Hardware video encoder/decoder.
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 974 private MediaCodec decoder=null; field in RVCVXCheckAnalyzer.VideoDecoderForOpenCV 1038 decoder.stop(); in stop() 1047 if (decoder!=null) { in teardown() 1048 decoder.release(); in teardown() 1049 decoder = null; in teardown() 1081 decoder = MediaCodec.createDecoderByType(mime); in setup() 1092 decoder.configure(format, surface.getSurface(), null, 0); in setup() 1097 if (decoder == null) { in setup() 1116 decoder.start(); in run() 1118 ByteBuffer[] inputBuffers = decoder.getInputBuffers(); in run() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 301 String decoder = sMCL.findDecoderForFormat(format); in getDecoder() local 302 if (decoder != null) { in getDecoder() 304 return MediaCodec.createByCodecName(decoder); in getDecoder() 326 String decoder = sMCL.findDecoderForFormat(format); in canDecode() local 328 if (decoder == null) { in canDecode() 344 rate + " fps with " + decoder); in canDecode() 359 if (mci2.getName().equals(decoder)) { in canDecode() 367 if (!mci.getName().equals(decoder)) { in canDecode() 368 Log.e(TAG, "did not find expected " + decoder); in canDecode() 392 decoder, mime, width, height, rate); in canDecode() [all …]
|
/cts/tests/video/src/android/video/cts/ |
D | CodecDecoderPerformanceTest.java | 103 for (String decoder : listOfDecoders) { in input() 107 argsList.add(new Object[]{decoder, fileName, keyPriority, in input()
|
/cts/tests/tests/media/ |
D | copy_all_media.sh | 25 ./decoder/copy_media.sh $@ || exit 1
|