/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RegionSamplingTest.cpp | 37 static int constexpr kHeight = 29; member 39 std::array<uint32_t, kHeight * kStride> buffer; 40 Rect const whole_area{0, 0, kWidth, kHeight}; 45 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 51 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 56 auto const halfway_down = kHeight >> 1; in TEST_F() 62 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, partial_region), in TEST_F() 72 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 80 EXPECT_THAT(sampleArea(buffer.data(), kWidth, kHeight, kStride, kOrientation, whole_area), in TEST_F() 86 [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/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/libs/ui/tests/ |
D | BufferHubBuffer_test.cpp | 49 const int kHeight = 480; variable 53 const AHardwareBuffer_Desc kDesc = {kWidth, kHeight, kLayerCount, kFormat, 106 b1 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, kUserMetadataSize); in CreateTwoClientsOfABuffer() 130 auto b2 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() 137 auto b3 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() 144 auto b1 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() 154 auto b1 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() 212 auto b1 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() 435 BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() 457 BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F()
|
/frameworks/native/services/bufferhub/tests/ |
D | BufferNode_test.cpp | 20 const uint32_t kHeight = 480; variable 30 new BufferNode(kWidth, kHeight, kLayerCount, kFormat, kUsage, kUserMetadataSize); in SetUp()
|
/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 | 823 constexpr size_t kHeight = 64; in outputBuffer() local 824 for (; i < mHeight; i += kHeight) { in outputBuffer() 828 width = mWidth, height = std::min(mHeight - i, kHeight)] { in outputBuffer() 834 srcY += srcYStride / 2 * kHeight; in outputBuffer() 835 srcU += srcUStride / 2 * (kHeight / 2); in outputBuffer() 836 srcV += srcVStride / 2 * (kHeight / 2); in outputBuffer() 837 dst += dstYStride * kHeight; in outputBuffer()
|