Home
last modified time | relevance | path

Searched refs:golden (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/nativehardware/jni/
DAHardwareBufferGLTest.cpp334 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/
DDecodeAccuracyTest.java289 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/
DPdfAnnotationsRenderScreenshotTests.java109 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/
DVirtualCameraUtils.java254 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()
DVirtualCameraCameraXTest.kt147 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>()
DVirtualCameraCaptureTest.java262 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/
DAndroid.bp34 // Holds golden sample files in assets for validation
Dgenerate_golden_sample_files.sh13 echo Generating golden sample files for parser validation
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DGradientTests.java214 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/
DVectorDrawableTest.java284 Bitmap golden = BitmapFactory.decodeResource(mResources, goldenImages[i]); in verifyVectorDrawables() local
285 DrawableTestUtils.compareImages(mResources.getString(resIds[i]), mBitmap, golden, in verifyVectorDrawables() local
DNinePatchDrawableTest.java690 final Bitmap golden = BitmapFactory.decodeResource(mResources, goldenResId); in compareOrSave() local
691 DrawableTestUtils.compareImages(densityDpi + " dpi", golden, bitmap, in compareOrSave()