Home
last modified time | relevance | path

Searched refs:checkPixel (Results 1 – 14 of 14) sorted by relevance

/frameworks/native/libs/gui/tests/
DSurfaceTextureGL_test.cpp63 EXPECT_TRUE(checkPixel( 0, 0, 255, 127, 255, 255, 3)); in TEST_F()
64 EXPECT_TRUE(checkPixel(63, 0, 0, 133, 0, 255, 3)); in TEST_F()
65 EXPECT_TRUE(checkPixel(63, 65, 0, 133, 0, 255, 3)); in TEST_F()
66 EXPECT_TRUE(checkPixel( 0, 65, 255, 127, 255, 255, 3)); in TEST_F()
68 EXPECT_TRUE(checkPixel(22, 44, 255, 127, 255, 255, 3)); in TEST_F()
69 EXPECT_TRUE(checkPixel(45, 52, 255, 127, 255, 255, 3)); in TEST_F()
70 EXPECT_TRUE(checkPixel(52, 51, 98, 255, 73, 255, 3)); in TEST_F()
71 EXPECT_TRUE(checkPixel( 7, 31, 155, 0, 118, 255, 3)); in TEST_F()
72 EXPECT_TRUE(checkPixel(31, 9, 107, 24, 87, 255, 3)); in TEST_F()
73 EXPECT_TRUE(checkPixel(29, 35, 255, 127, 255, 255, 3)); in TEST_F()
[all …]
DSurfaceTextureGLToGL_test.cpp135 EXPECT_TRUE(checkPixel( 0, 0, 153, 153, 153, 153)); in TEST_F()
136 EXPECT_TRUE(checkPixel(63, 0, 153, 153, 153, 153)); in TEST_F()
137 EXPECT_TRUE(checkPixel(63, 63, 153, 153, 153, 153)); in TEST_F()
138 EXPECT_TRUE(checkPixel( 0, 63, 153, 153, 153, 153)); in TEST_F()
140 EXPECT_TRUE(checkPixel( 4, 7, 255, 0, 0, 255)); in TEST_F()
141 EXPECT_TRUE(checkPixel(25, 51, 0, 255, 0, 255)); in TEST_F()
142 EXPECT_TRUE(checkPixel(40, 19, 0, 0, 255, 255)); in TEST_F()
143 EXPECT_TRUE(checkPixel(29, 51, 153, 153, 153, 153)); in TEST_F()
144 EXPECT_TRUE(checkPixel( 5, 32, 153, 153, 153, 153)); in TEST_F()
145 EXPECT_TRUE(checkPixel(13, 8, 153, 153, 153, 153)); in TEST_F()
[all …]
DCpuConsumer_test.cpp167 void checkPixel(const CpuConsumer::LockedBuffer &buf, in checkPixel() function
316 checkPixel(buf, 0, 0, 191); in checkGreyscaleBuffer()
317 checkPixel(buf, 1, 0, 191); in checkGreyscaleBuffer()
318 checkPixel(buf, 0, 1, 191); in checkGreyscaleBuffer()
319 checkPixel(buf, 1, 1, 191); in checkGreyscaleBuffer()
322 checkPixel(buf, blockWidth, 0, 63); in checkGreyscaleBuffer()
323 checkPixel(buf, blockWidth + 1, 0, 63); in checkGreyscaleBuffer()
324 checkPixel(buf, blockWidth, 1, 63); in checkGreyscaleBuffer()
325 checkPixel(buf, blockWidth + 1, 1, 63); in checkGreyscaleBuffer()
328 checkPixel(buf, 0, blockHeight, 63); in checkGreyscaleBuffer()
[all …]
DSurfaceTextureFBO_test.cpp83 EXPECT_TRUE(checkPixel( 24, 39, 255, 0, 0, 255)); in TEST_F()
88 EXPECT_TRUE(checkPixel( 24, 39, 0, 255, 0, 255)); in TEST_F()
DSurfaceTextureMultiContextGL_test.cpp175 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
208 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
240 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
337 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
376 ASSERT_TRUE(checkPixel( 0, 0, 35, 35, 35, 35)); in TEST_F()
DGLTest.h55 ::testing::AssertionResult checkPixel(int x, int y,
DMultiTextureConsumer_test.cpp122 EXPECT_TRUE(checkPixel(i*16 + 8, 8, i*16, i*16, i*16, i*16, 0)); in TEST_F()
DGLTest.cpp169 ::testing::AssertionResult GLTest::checkPixel(int x, int y, in checkPixel() function in android::GLTest
/frameworks/native/services/surfaceflinger/tests/
DRelativeZ_test.cpp80 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F()
95 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
129 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
147 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
172 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F()
185 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
195 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F()
206 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F()
DLayerUpdate_test.cpp384 mCapture->checkPixel(0, 0, 0, 254, 0); in TEST_F()
412 mCapture->checkPixel(64, 64, 111, 111, 111); in TEST_F()
429 mCapture->checkPixel(64, 64, 111, 111, 111); in TEST_F()
444 mCapture->checkPixel(64, 64, 200, 200, 200); in TEST_F()
455 mCapture->checkPixel(64, 64, 195, 63, 63); in TEST_F()
535 mCapture->checkPixel(10, 10, 63, 195, 63); in TEST_F()
545 mCapture->checkPixel(74, 74, 63, 195, 63); in TEST_F()
559 mCapture->checkPixel(64, 64, 50, 50, 50); in TEST_F()
579 mCapture->checkPixel(10, 10, 255, 255, 255); in TEST_F()
DScreenCapture_test.cpp339 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F()
366 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F()
367 mCapture->checkPixel(0, 0, 200, 200, 200); in TEST_F()
406 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F()
407 mCapture->checkPixel(0, 0, 200, 200, 200); in TEST_F()
557 mCapture->checkPixel(5, 5, 50, 50, 50); in TEST_F()
595 mCapture->checkPixel(0, 0, 50, 50, 50); in TEST_F()
596 mCapture->checkPixel(4, 4, 50, 50, 50); in TEST_F()
631 mCapture->checkPixel(30, 30, 0, 0, 0); in TEST_F()
672 mCapture->checkPixel(30, 30, 0, 0, 0); in TEST_F()
[all …]
DEffectLayer_test.cpp173 shot->checkPixel(0, y, /* r = */ 0, /* g = */ 0, /* b = */ 255); in TEST_F()
181 shot->checkPixel(canvasSize - 1, y, 255, 0, 0); in TEST_F()
DLayerTypeAndRenderTypeTransaction_test.cpp647 shot->checkPixel(0, y, /* r = */ 0, /* g = */ 0, /* b = */ 255); in TEST_P()
655 shot->checkPixel(canvasSize - 1, y, 255, 0, 0); in TEST_P()
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h165 void checkPixel(uint32_t x, uint32_t y, uint8_t r, uint8_t g, uint8_t b) { in checkPixel() function
186 void expectFGColor(uint32_t x, uint32_t y) { checkPixel(x, y, 195, 63, 63); } in expectFGColor()
188 void expectBGColor(uint32_t x, uint32_t y) { checkPixel(x, y, 63, 63, 195); } in expectBGColor()
190 void expectChildColor(uint32_t x, uint32_t y) { checkPixel(x, y, 200, 200, 200); } in expectChildColor()