Home
last modified time | relevance | path

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

1234

/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/testing/util/
DCompareUtils.java9 public static boolean verifyPixelWithThreshold(int color, int expectedColor, int threshold) { in verifyPixelWithThreshold() argument
11 Math.abs(Color.red(color) - Color.red(expectedColor)) in verifyPixelWithThreshold()
12 + Math.abs(Color.green(color) - Color.green(expectedColor)) in verifyPixelWithThreshold()
13 + Math.abs(Color.blue(color) - Color.blue(expectedColor)); in verifyPixelWithThreshold()
/external/skia/tests/graphite/
DImageOriginTest.cpp105 SkColor4f expectedColor = ((y < kHalfSize) == resultTopColorOnTop) ? kTopColor in test_draw() local
108 color == expectedColor, in test_draw()
113 expectedColor.fR, expectedColor.fG, expectedColor.fB, expectedColor.fA, in test_draw()
DImageProviderTest.cpp170 const SkColor4f& expectedColor) { in check_img() argument
210 expectedColor.fR, expectedColor.fG, expectedColor.fB, expectedColor.fA, in check_img()
211 expectedColor.fR-diffs[0], expectedColor.fG-diffs[1], in check_img()
212 expectedColor.fB-diffs[2], expectedColor.fA-diffs[3]); in check_img()
215 CheckSolidPixels(expectedColor, pm, kTol, error); in check_img()
DMutableImagesTest.cpp125 const SkColor4f& expectedColor) { in checkResult() argument
141 expectedColor.fR, expectedColor.fG, expectedColor.fB, expectedColor.fA, in checkResult()
146 CheckSolidPixels(expectedColor, fReadbackPM, kTol, error); in checkResult()
DImageWrapTextureMipmapsTest.cpp74 SkColor expectedColor; in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS() member
158 REPORTER_ASSERT(reporter, readContext.color == testCase.expectedColor); in DEF_CONDITIONAL_GRAPHITE_TEST_FOR_ALL_CONTEXTS()
/external/skia/tests/
DColorFilterTest.cpp83 SkColor expectedColor = color; in DEF_TEST() local
91 if (c != expectedColor) { in DEF_TEST()
92 expectedColor = 0; in DEF_TEST()
101 REPORTER_ASSERT(reporter, c == expectedColor); in DEF_TEST()
111 REPORTER_ASSERT(reporter, c2 == expectedColor); in DEF_TEST()
DApplyGammaTest.cpp65 uint32_t expectedColor = src & 0xff000000; in check_gamma() local
100 expectedColor |= expectedComponent << (c * 8); in check_gamma()
103 *expected = expectedColor; in check_gamma()
DBackendAllocationTest.cpp315 SkColor4f expectedColor = get_expected_color(color, colorType); in check_base_readbacks() local
363 check_solid_pixmap(reporter, expectedColor, actual, colorType, label, name.c_str()); in check_base_readbacks()
386 SkColor4f expectedColor = get_expected_color(testColor, colorType); in test_color_init() local
387 SkColor4f expectedColors[6] = {expectedColor, expectedColor, expectedColor, in test_color_init()
388 expectedColor, expectedColor, expectedColor}; in test_color_init()
/external/angle/src/tests/gl_tests/
DPointSpritesTest.cpp337 GLubyte expectedColor[4] = {0, 0, 0, 0}; in TEST_P() local
340 expectedColor[0] = 255; in TEST_P()
341 expectedColor[3] = 255; in TEST_P()
343 EXPECT_PIXEL_EQ(x, y, expectedColor[0], expectedColor[1], expectedColor[2], in TEST_P()
344 expectedColor[3]); in TEST_P()
DS3TCTextureSizesTest.cpp146 GLColor expectedColor; in TEST_P() member
169 EXPECT_PIXEL_COLOR_EQ(0, 0, level.expectedColor) << " failed on level " << i; in TEST_P()
195 GLColor expectedColor; in TEST_P() member
217 EXPECT_PIXEL_COLOR_EQ(0, 0, level.expectedColor) << " failed on level " << i; in TEST_P()
DCopyTextureTest.cpp2082 auto testOutput = [this](GLuint texture, const GLColor &expectedColor) { in TEST_P() argument
2123 EXPECT_PIXEL_COLOR_NEAR(0, 0, expectedColor, 1.0); in TEST_P()
2130 const GLColor &expectedColor) { in TEST_P() argument
2143 testOutput(destTexture, expectedColor); in TEST_P()
2150 bool unmultiplyAlpha, const GLColor &expectedColor) { in TEST_P() argument
2164 testOutput(destTexture, expectedColor); in TEST_P()
2219 auto testOutput = [this](GLuint texture, const GLColor32F &expectedColor) { in TEST_P() argument
2260 EXPECT_PIXEL_COLOR32F_NEAR(0, 0, expectedColor, 0.05); in TEST_P()
2267 const GLColor32F &expectedColor) { in TEST_P() argument
2280 testOutput(destTexture, expectedColor); in TEST_P()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/
DBitmapTestUtil.java150 int expectedColor = expected.getPixel(x, y); in getAveragePixelAbsoluteDifferenceArgb8888() local
152 int alphaDifference = abs(Color.alpha(actualColor) - Color.alpha(expectedColor)); in getAveragePixelAbsoluteDifferenceArgb8888()
153 int redDifference = abs(Color.red(actualColor) - Color.red(expectedColor)); in getAveragePixelAbsoluteDifferenceArgb8888()
154 int blueDifference = abs(Color.blue(actualColor) - Color.blue(expectedColor)); in getAveragePixelAbsoluteDifferenceArgb8888()
155 int greenDifference = abs(Color.green(actualColor) - Color.green(expectedColor)); in getAveragePixelAbsoluteDifferenceArgb8888()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/
DFrameEditorDataProcessingTest.java215 int expectedColor = expected.getPixel(x, y); in getAveragePixelAbsoluteDifferenceArgb8888() local
220 abs(((color >> 24) & 0xFF) - ((expectedColor >> 24) & 0xFF))); in getAveragePixelAbsoluteDifferenceArgb8888()
224 abs(((color >> 16) & 0xFF) - ((expectedColor >> 16) & 0xFF))); in getAveragePixelAbsoluteDifferenceArgb8888()
228 abs(((color >> 8) & 0xFF) - ((expectedColor >> 8) & 0xFF))); in getAveragePixelAbsoluteDifferenceArgb8888()
230 max(maximumAbsoluteDifference, abs((color & 0xFF) - (expectedColor & 0xFF))); in getAveragePixelAbsoluteDifferenceArgb8888()
/external/deqp/modules/gles2/functional/
Des2fShaderFragDataTests.cpp64 …ic bool compareSingleColor(tcu::TestLog &log, const tcu::Surface &surface, tcu::RGBA expectedColor, in compareSingleColor() argument
70 …log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << Tes… in compareSingleColor()
77 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/testing/bitmapverifiers/
DPerPixelBitmapVerifier.java92 int expectedColor = getExpectedColor(x, y); in verifyPixel() local
93 return CompareUtils.verifyPixelWithThreshold(observedColor, expectedColor, colorTolerance); in verifyPixel()
/external/angle/src/tests/egl_tests/
DEGLBufferAgeTest.cpp334 angle::GLColor expectedColor = GLColor::black; in TEST_P() local
342 expectedColor = kColorSet[i - age]; in TEST_P()
343 EXPECT_PIXEL_COLOR_EQ(1, 1, expectedColor); in TEST_P()
415 angle::GLColor expectedColor = kColorSet[i - age]; in TEST_P() local
416 EXPECT_PIXEL_COLOR_EQ(1, 1, expectedColor); in TEST_P()
484 angle::GLColor expectedColor = kColorSet[i - age]; in TEST_P() local
485 EXPECT_PIXEL_COLOR_EQ(1, 1, expectedColor); in TEST_P()
/external/deqp/external/openglcts/modules/common/
DglcLayoutLocationTests.cpp519 const tcu::RGBA expectedColor(255, 0, 0, 0); in iterate() local
521 if (pixel != expectedColor) in iterate()
524 << expectedColor.getRed() << ", " << expectedColor.getGreen() << ", " in iterate()
525 … << expectedColor.getBlue() << ", " << expectedColor.getAlpha() << "], got [" in iterate()
/external/deqp/modules/gles3/functional/
Des3fShaderFragDataTests.cpp82 …ic bool compareSingleColor(tcu::TestLog &log, const tcu::Surface &surface, tcu::RGBA expectedColor, in compareSingleColor() argument
88 …log << TestLog::Message << "Expecting " << expectedColor << " with threshold " << threshold << Tes… in compareSingleColor()
95 const bool isOk = compareThreshold(resultColor, expectedColor, threshold); in compareSingleColor()
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageMisalignedCubeTests.cpp281 … const tcu::Vec4 expectedColor = tcu::Vec4(componentValue, componentValue, componentValue, 1.0f); in iterate() local
283 const tcu::Vec4 delta = expectedColor - resultColor; in iterate()
295 … const tcu::Vec4 expectedColor = tcu::Vec4(componentValue, componentValue, componentValue, 1.0f); in iterate() local
297 const tcu::Vec4 delta = expectedColor - resultColor; in iterate()
/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.cpp385 …awBuffersIndexedBlending::VerifyImg(const tcu::TextureLevel &textureLevel, tcu::RGBA expectedColor, in VerifyImg() argument
393 if (!tcu::compareThreshold(pixel, expectedColor, epsilon)) in VerifyImg()
395 … 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/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineLogicOpTests.cpp463 tcu::UVec4 expectedColor(0u, 0u, 0u, 0u); // Overwritten below. in verifyImage() local
471expectedColor[c] = calcOpResult(m_params.logicOp, m_params.quadColor[c], m_params.fbColor[c]); in verifyImage()
472 expectedColor[c] &= m_channelMask; in verifyImage()
477 referenceAccess.setPixel(expectedColor, x, y); in verifyImage()
/external/deqp/external/vulkancts/modules/vulkan/robustness/
DvktRobustness1VertexAccessTests.cpp123 static const auto expectedColor = Vec4(0.25f, 0.0f, 0.75f, 1.0f); // Expected color input variable
128 {expectedColor, unusedColor};
130 {expectedColor, unusedColor, Vec4(0.0f), Vec4(0.0f, 0.0f, 0.0f, 1.0f)};
222 color0[0] = expectedColor; in __anon366749bd0302()
268 3u, 3u, {expectedColor}, {5, 6, 9, 10}, in __anon366749bd0602()
313 3u, 3u, {expectedColor}, invalidIndices, in __anon366749bd0902()
360 3u, 3u, {expectedColor}, invalidIndices, in __anon366749bd0c02()

1234