/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RegionSamplingTest.cpp | 41 static int constexpr kHeight = 29; member 43 std::array<uint32_t, kHeight * kStride> buffer; 44 Rect const whole_area{0, 0, kWidth, kHeight}; 49 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 55 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 60 auto const halfway_down = kHeight >> 1; in TEST_F() 66 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, partial_region), in TEST_F() 77 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 84 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 90 [n = 0]() mutable { return (n++ > (kStride * kHeight >> 1)) ? kBlack : kWhite; }); in TEST_F() [all …]
|
/frameworks/av/media/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 454 constexpr uint32_t kHeight = 240; in TEST_F() local 456 allocateGraphic(kWidth, kHeight); in TEST_F() 459 C2Rect rect(kWidth, kHeight); in TEST_F() 476 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x12); in TEST_F() 477 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), uInfo, u, 0x34); in TEST_F() 478 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), vInfo, v, 0x56); in TEST_F() 494 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x1… in TEST_F() 495 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), uInfo, u, 0x3… in TEST_F() 496 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), vInfo, v, 0x5… in TEST_F() 497 ASSERT_TRUE(verifyPlane({ kWidth, kHeight / 4 }, yInfo, y, 0)); in TEST_F() [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 29 constexpr int32_t kHeight = 2160; in TEST() local 35 format->setInt32("height", kHeight); in TEST() 46 kWidth, kHeight, HAL_PIXEL_FORMAT_YCbCr_420_888, in TEST() 65 auto releaseBuffer = [&buffers, &clientBuffers, kWidth, kHeight](int index) { in TEST() 75 ASSERT_EQ(kHeight, block.height()); in TEST()
|
/frameworks/native/libs/vr/libbufferhub/ |
D | buffer_hub-test.cpp | 37 const int kHeight = 480; variable 58 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 108 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 176 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 209 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 253 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 316 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 325 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 342 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() 361 kWidth, kHeight, kFormat, kUsage, sizeof(uint64_t)); in TEST_F() [all …]
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | VirtualTouchpadEvdev.cpp | 28 static constexpr int32_t kHeight = 0x10000; variable 73 touchpad.injector->ConfigureMultiTouchXY(0, 0, kWidth - 1, kHeight - 1); in Attach() 98 int32_t device_y = y * kHeight; in Touch()
|
/frameworks/native/libs/gui/tests/ |
D | BufferItemConsumer_test.cpp | 28 static constexpr int kHeight = 100; variable 79 status_t ret = mProducer->dequeueBuffer(&slot, &outFence, kWidth, kHeight, 0, 0, in DequeueBuffer()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxDec.cpp | 842 constexpr size_t kHeight = 64; in outputBuffer() local 843 for (; i < mHeight; i += kHeight) { in outputBuffer() 847 width = mWidth, height = std::min(mHeight - i, kHeight)] { in outputBuffer() 853 srcY += srcYStride / 2 * kHeight; in outputBuffer() 854 srcU += srcUStride / 2 * (kHeight / 2); in outputBuffer() 855 srcV += srcVStride / 2 * (kHeight / 2); in outputBuffer() 856 dst += dstYStride * kHeight; in outputBuffer()
|