Home
last modified time | relevance | path

Searched refs:expectedColor (Results 1 – 25 of 33) sorted by relevance

12

/external/skqp/tests/
DColorFilterTest.cpp80 SkColor expectedColor = color; in DEF_TEST() local
88 if (c != expectedColor) { in DEF_TEST()
89 expectedColor = 0; in DEF_TEST()
98 REPORTER_ASSERT(reporter, c == expectedColor); in DEF_TEST()
108 REPORTER_ASSERT(reporter, c2 == expectedColor); in DEF_TEST()
DApplyGammaTest.cpp54 uint32_t expectedColor = src & 0xff000000; in check_gamma() local
89 expectedColor |= expectedComponent << (c * 8); in check_gamma()
92 *expected = expectedColor; in check_gamma()
/external/skia/tests/
DColorFilterTest.cpp80 SkColor expectedColor = color; in DEF_TEST() local
88 if (c != expectedColor) { in DEF_TEST()
89 expectedColor = 0; in DEF_TEST()
98 REPORTER_ASSERT(reporter, c == expectedColor); in DEF_TEST()
108 REPORTER_ASSERT(reporter, c2 == expectedColor); in DEF_TEST()
DApplyGammaTest.cpp54 uint32_t expectedColor = src & 0xff000000; in check_gamma() local
89 expectedColor |= expectedComponent << (c * 8); in check_gamma()
92 *expected = expectedColor; in check_gamma()
DBackendAllocationTest.cpp223 SkColor4f expectedColor = get_expected_color(color, skColorType); in check_base_readbacks() local
251 check_solid_pixmap(reporter, expectedColor, actual, skColorType, in check_base_readbacks()
271 check_solid_pixmap(reporter, expectedColor, actual, skColorType, in check_base_readbacks()
301 SkColor4f expectedColor = get_expected_color(color, skColorType); in test_color_init() local
302 SkColor4f expectedColors[6] = { expectedColor, expectedColor, expectedColor, in test_color_init()
303 expectedColor, expectedColor, expectedColor }; in test_color_init()
DCompressedBackendAllocationTest.cpp111 const SkColor4f& expectedColor, in check_readback() argument
132 check_solid_pixmap(reporter, expectedColor, actual, in check_readback()
DTextBlobCacheTest.cpp200 SkColor expectedColor = expected.getColor(i, j); in compare_bitmaps() local
202 if (expectedColor != actualColor) { in compare_bitmaps()
/external/angle/src/tests/gl_tests/
DPointSpritesTest.cpp358 GLubyte expectedColor[4] = {0, 0, 0, 0}; in TEST_P() local
361 expectedColor[0] = 255; in TEST_P()
362 expectedColor[3] = 255; in TEST_P()
364 EXPECT_PIXEL_EQ(x, y, expectedColor[0], expectedColor[1], expectedColor[2], in TEST_P()
365 expectedColor[3]); in TEST_P()
DCopyTextureTest.cpp1689 auto testOutput = [this](GLuint texture, const GLColor &expectedColor) { in TEST_P() argument
1730 EXPECT_PIXEL_COLOR_NEAR(0, 0, expectedColor, 1.0); in TEST_P()
1737 const GLColor &expectedColor) { in TEST_P() argument
1750 testOutput(destTexture, expectedColor); in TEST_P()
1757 bool unmultiplyAlpha, const GLColor &expectedColor) { in TEST_P() argument
1771 testOutput(destTexture, expectedColor); in TEST_P()
1828 auto testOutput = [this](GLuint texture, const GLColor32F &expectedColor) { in TEST_P() argument
1869 EXPECT_PIXEL_COLOR32F_NEAR(0, 0, expectedColor, 0.05); in TEST_P()
1876 const GLColor32F &expectedColor) { in TEST_P() argument
1889 testOutput(destTexture, expectedColor); in TEST_P()
[all …]
DSixteenBppTextureTest.cpp352 GLColor expectedColor(rawColor); in TEST_P() local
376 EXPECT_COLOR_NEAR(expectedColor, actualColor, 20); in TEST_P()
393 EXPECT_COLOR_NEAR(expectedColor, actualColor, 20); in TEST_P()
DCopyTexture3DTest.cpp75 const GLColor &expectedColor) in testCopy() argument
188 EXPECT_COLOR_NEAR(expectedColor, actual, 1); in testCopy()
193 float expectedColorFloat[4] = {static_cast<float>(expectedColor.R) / 255, in testCopy()
194 static_cast<float>(expectedColor.G) / 255, in testCopy()
195 static_cast<float>(expectedColor.B) / 255, in testCopy()
196 static_cast<float>(expectedColor.A) / 255}; in testCopy()
208 expectedColor, in testCopy()
218 expectedColor, in testCopy()
DClearTest.cpp1257 GLColor expectedColor(color); in TEST_P() local
1261 EXPECT_NEAR(expectedColor.R, actualColor.R, 1); in TEST_P()
1262 EXPECT_NEAR(expectedColor.G, actualColor.G, 1); in TEST_P()
1263 EXPECT_NEAR(expectedColor.B, actualColor.B, 1); in TEST_P()
1264 EXPECT_NEAR(expectedColor.A, actualColor.A, 1); in TEST_P()
DRobustResourceInitTest.cpp1272 GLColor expectedColor = GLColor::transparentBlack; in TEST_P() local
1275 expectedColor = GLColor::yellow; in TEST_P()
1279 EXPECT_EQ(expectedColor, pixels[loc]) << " at [" << jj << ", " << ii << "]"; in TEST_P()
1753 const GLColor expectedColor = expectedData[offset]; in TEST_P() local
1757 EXPECT_NEAR(expectedColor.R, actualColor.R, 1) << " at (" << x << ", " << y << ")"; in TEST_P()
1758 EXPECT_NEAR(expectedColor.G, actualColor.G, 1) << " at (" << x << ", " << y << ")"; in TEST_P()
1759 EXPECT_NEAR(expectedColor.B, actualColor.B, 1) << " at (" << x << ", " << y << ")"; in TEST_P()
DReadPixelsTest.cpp516 angle::GLColor expectedColor(getColorValue(level, layer)); in verifyPBO() local
524 EXPECT_EQ(expectedColor, actualColor); in verifyPBO()
/external/deqp/modules/gles2/functional/
Des2fShaderFragDataTests.cpp64 …ingleColor (tcu::TestLog& log, const tcu::Surface& surface, tcu::RGBA expectedColor, tcu::RGBA thr… in compareSingleColor() argument
69 …log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << Tes… in compareSingleColor()
76 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
/external/deqp/external/openglcts/modules/common/
DglcLayoutLocationTests.cpp516 const tcu::RGBA expectedColor(255, 0, 0, 0); in iterate() local
518 if (pixel != expectedColor) in iterate()
521 << expectedColor.getRed() << ", " << expectedColor.getGreen() << ", " in iterate()
522 << expectedColor.getBlue() << ", " << expectedColor.getAlpha() << "], got [" in iterate()
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageMisalignedCubeTests.cpp256 const tcu::Vec4 expectedColor = tcu::Vec4(componentValue, componentValue, componentValue, 1.0f);; in iterate() local
258 const tcu::Vec4 delta = expectedColor - resultColor; in iterate()
269 const tcu::Vec4 expectedColor = tcu::Vec4(componentValue, componentValue, componentValue, 1.0f);; in iterate() local
271 const tcu::Vec4 delta = expectedColor - resultColor; in iterate()
/external/deqp/modules/gles3/functional/
Des3fShaderFragDataTests.cpp82 …ingleColor (tcu::TestLog& log, const tcu::Surface& surface, tcu::RGBA expectedColor, tcu::RGBA thr… in compareSingleColor() argument
87 …log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << Tes… in compareSingleColor()
94 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
/external/deqp/external/openglcts/modules/glesext/draw_buffers_indexed/
DesextcDrawBuffersIndexedColorMasks.hpp60 bool VerifyImg(const tcu::TextureLevel& textureLevel, tcu::RGBA expectedColor, tcu::RGBA epsilon);
DesextcDrawBuffersIndexedBlending.hpp63 bool VerifyImg(const tcu::TextureLevel& textureLevel, tcu::RGBA expectedColor, tcu::RGBA epsilon);
DesextcDrawBuffersIndexedBlending.cpp387 …awBuffersIndexedBlending::VerifyImg(const tcu::TextureLevel& textureLevel, tcu::RGBA expectedColor, in VerifyImg() argument
395 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) in VerifyImg()
397 m_testCtx.getLog() << tcu::TestLog::Message << "Expected value: " << expectedColor << "\n" in VerifyImg()
DesextcDrawBuffersIndexedColorMasks.cpp421 …BuffersIndexedColorMasks::VerifyImg(const tcu::TextureLevel& textureLevel, tcu::RGBA expectedColor, in VerifyImg() argument
431 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) in VerifyImg()
433 m_testCtx.getLog() << tcu::TestLog::Message << "Expected value: " << expectedColor << "\n" in VerifyImg()
/external/angle/src/tests/egl_tests/
DEGLIOSurfaceClientBufferTest.cpp272 GLColor expectedColor((mask & R) ? 1 : 0, (mask & G) ? 2 : 0, (mask & B) ? 3 : 0, in doSampleTest() local
274 EXPECT_PIXEL_COLOR_EQ(0, 0, expectedColor); in doSampleTest()
333 GLColor expectedColor(1, 2, 3, 4); in doBlitTest() local
334 EXPECT_PIXEL_COLOR_EQ(0, 0, expectedColor); in doBlitTest()
/external/deqp/external/openglcts/modules/glesext/texture_border_clamp/
DesextcTextureBorderClampSamplingTexture.cpp538 OutputType expectedColor; in iterate() local
544 expectedColor = m_test_configuration.get_expected_value(); in iterate()
549 expectedColor = m_test_configuration.get_expected_value(); in iterate()
551 expectedColor = m_test_configuration.get_expected_border_color(); in iterate()
557 if (!checkResult(expectedColor, m_test_configuration.get_expected_border_color(), i)) in iterate()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelinePushConstantTests.cpp969 tcu::Vec4 expectedColor = initColor; in setReferenceColor() local
980 expectedColor[componentNdx] += m_referenceData[colorNdx + componentNdx]; in setReferenceColor()
983expectedColor = tcu::min(tcu::mod(expectedColor, tcu::Vec4(2.0f)), 2.0f - tcu::mod(expectedColor, … in setReferenceColor()
987 m_vertices[vertexNdx].color.xyzw() = expectedColor; in setReferenceColor()

12