/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferGLTest.cpp | 334 void CheckGoldenPixel(int x, int y, const std::array<T, 4>& golden, in CheckGoldenPixel() argument 337 EXPECT_EQ(golden, actual) << "Pixel doesn't match at X=" << x << ", Y=" << y; in CheckGoldenPixel() 367 bool GetGoldenColor(const GoldenColor& golden, uint32_t format, int32_t max_err, in GetGoldenColor() argument 378 switch (golden) { in GetGoldenColor() 401 if (golden == kRed50 || golden == kRed50Srgb) { in GetGoldenColor() 411 if ((golden == kRed50 || golden == kRed50Alpha100) && in GetGoldenColor() 440 void GetGoldenColor(const GoldenColor& golden, uint32_t format, in GetGoldenColor() argument 443 GetGoldenColor(golden, format, 0, golden_pixel_out, &ignore); in GetGoldenColor() 447 void GetGoldenColor(const GoldenColor& golden, std::array<float, 4>* golden_pixel_out) { in GetGoldenColor() argument 451 switch (golden) { in GetGoldenColor() [all …]
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecodeAccuracyTest.java | 289 final int golden = getGoldenId(vf.getDescription(), vf.getOriginalSize()); in runTest() local 290 assertTrue("No golden found.", golden != 0); in runTest() 292 validateResult(vf, videoViewFactory.getVideoViewSnapshot(), golden, decoderName); in runTest() 308 final Bitmap golden = getHelper().generateBitmapFromImageResourceId(goldenId); in validateResult() local 320 result, golden, ignorePixels, videoFormat.getOriginalWidth(), in validateResult()
|
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/ |
D | PdfAnnotationsRenderScreenshotTests.java | 109 Bitmap golden = BitmapFactory.decodeResource(mContext.getResources(), goldenRes, in renderAndCompare() local 114 assertScreenshotsAreEqual(golden, output, testName, LOCAL_DIRECTORY); in renderAndCompare()
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraUtils.java | 254 static void assertImagesSimilar(Bitmap generated, Bitmap golden, String prefix) { in assertImagesSimilar() argument 255 assertImagesSimilar(generated, golden, prefix, BITMAP_MAX_DIFF); in assertImagesSimilar() 263 static void assertImagesSimilar(Bitmap generated, Bitmap golden, String prefix, in assertImagesSimilar() argument 267 double actual = BitmapUtils.calcDifferenceMetric(generated, golden); in assertImagesSimilar() 274 writeImageToDisk(prefix + "_golden", golden); in assertImagesSimilar()
|
D | VirtualCameraCameraXTest.kt | 147 val golden = loadBitmapFromRaw(R.raw.golden_camerax_virtual_camera) in <lambda>() constant 153 canvas.drawBitmap(golden, 0f, 0f, null) in <lambda>() 171 golden, in <lambda>()
|
D | VirtualCameraCaptureTest.java | 262 Bitmap golden = loadBitmapFromRaw(R.raw.golden_test_video); in virtualCamera_renderFromMediaCodec() local 263 assertImagesSimilar(bitmap, golden, "media_codec_virtual_camera"); in virtualCamera_renderFromMediaCodec()
|
/cts/tools/release-parser/tests/ |
D | Android.bp | 34 // Holds golden sample files in assets for validation
|
D | generate_golden_sample_files.sh | 13 echo Generating golden sample files for parser validation
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | GradientTests.java | 214 Bitmap golden = createRadialGradientGoldenBitmap(); in testRadialGradientWithFocalPointMatchesRegularRadialGradient() local 235 new GoldenImageVerifier(golden, new MSSIMComparer(0.99f))); in testRadialGradientWithFocalPointMatchesRegularRadialGradient()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | VectorDrawableTest.java | 284 Bitmap golden = BitmapFactory.decodeResource(mResources, goldenImages[i]); in verifyVectorDrawables() local 285 DrawableTestUtils.compareImages(mResources.getString(resIds[i]), mBitmap, golden, in verifyVectorDrawables() local
|
D | NinePatchDrawableTest.java | 690 final Bitmap golden = BitmapFactory.decodeResource(mResources, goldenResId); in compareOrSave() local 691 DrawableTestUtils.compareImages(densityDpi + " dpi", golden, bitmap, in compareOrSave()
|