/frameworks/native/libs/gui/tests/ |
D | SurfaceTextureGL_test.cpp | 63 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 …]
|
D | SurfaceTextureGLToGL_test.cpp | 135 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 …]
|
D | CpuConsumer_test.cpp | 167 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 …]
|
D | SurfaceTextureFBO_test.cpp | 83 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()
|
D | SurfaceTextureMultiContextGL_test.cpp | 175 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()
|
D | GLTest.h | 55 ::testing::AssertionResult checkPixel(int x, int y,
|
D | MultiTextureConsumer_test.cpp | 122 EXPECT_TRUE(checkPixel(i*16 + 8, 8, i*16, i*16, i*16, i*16, 0)); in TEST_F()
|
D | GLTest.cpp | 177 ::testing::AssertionResult GLTest::checkPixel(int x, int y, in checkPixel() function in android::GLTest
|
/frameworks/native/services/surfaceflinger/tests/ |
D | RelativeZ_test.cpp | 78 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F() 93 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 127 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 145 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 170 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F() 183 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 193 sc->checkPixel(1, 1, Color::GREEN.r, Color::GREEN.g, Color::GREEN.b); in TEST_F() 204 sc->checkPixel(1, 1, Color::BLUE.r, Color::BLUE.g, Color::BLUE.b); in TEST_F()
|
D | LayerUpdate_test.cpp | 382 mCapture->checkPixel(0, 0, 0, 254, 0); in TEST_F() 410 mCapture->checkPixel(64, 64, 111, 111, 111); in TEST_F() 427 mCapture->checkPixel(64, 64, 111, 111, 111); in TEST_F() 442 mCapture->checkPixel(64, 64, 200, 200, 200); in TEST_F() 453 mCapture->checkPixel(64, 64, 195, 63, 63); in TEST_F() 533 mCapture->checkPixel(10, 10, 63, 195, 63); in TEST_F() 543 mCapture->checkPixel(74, 74, 63, 195, 63); in TEST_F() 557 mCapture->checkPixel(64, 64, 50, 50, 50); in TEST_F() 577 mCapture->checkPixel(10, 10, 255, 255, 255); in TEST_F()
|
D | ScreenCapture_test.cpp | 192 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F() 219 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F() 220 mCapture->checkPixel(0, 0, 200, 200, 200); in TEST_F() 251 mCapture->checkPixel(10, 10, 0, 0, 0); in TEST_F() 252 mCapture->checkPixel(0, 0, 200, 200, 200); in TEST_F() 402 mCapture->checkPixel(5, 5, 50, 50, 50); in TEST_F() 440 mCapture->checkPixel(0, 0, 50, 50, 50); in TEST_F() 441 mCapture->checkPixel(4, 4, 50, 50, 50); in TEST_F() 476 mCapture->checkPixel(30, 30, 0, 0, 0); in TEST_F() 517 mCapture->checkPixel(30, 30, 0, 0, 0); in TEST_F() [all …]
|
D | EffectLayer_test.cpp | 166 shot->checkPixel(0, y, /* r = */ 0, /* g = */ 0, /* b = */ 255); in TEST_F() 174 shot->checkPixel(canvasSize - 1, y, 0, 255, 0); in TEST_F()
|
D | LayerTypeAndRenderTypeTransaction_test.cpp | 647 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/ |
D | ScreenshotUtils.h | 156 void checkPixel(uint32_t x, uint32_t y, uint8_t r, uint8_t g, uint8_t b) { in checkPixel() function 177 void expectFGColor(uint32_t x, uint32_t y) { checkPixel(x, y, 195, 63, 63); } in expectFGColor() 179 void expectBGColor(uint32_t x, uint32_t y) { checkPixel(x, y, 63, 63, 195); } in expectBGColor() 181 void expectChildColor(uint32_t x, uint32_t y) { checkPixel(x, y, 200, 200, 200); } in expectChildColor()
|