/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 | 460 constexpr uint32_t kHeight = 240; in TEST_F() local 462 allocateGraphic(kWidth, kHeight); in TEST_F() 465 C2Rect rect(kWidth, kHeight); in TEST_F() 482 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x12); in TEST_F() 483 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), uInfo, u, 0x34); in TEST_F() 484 fillPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), vInfo, v, 0x56); in TEST_F() 500 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), yInfo, y, 0x1… in TEST_F() 501 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), uInfo, u, 0x3… in TEST_F() 502 …ASSERT_TRUE(verifyPlane(C2Rect(kWidth / 2, kHeight / 2).at(kWidth / 4, kHeight / 4), vInfo, v, 0x5… in TEST_F() 503 ASSERT_TRUE(verifyPlane({ kWidth, kHeight / 4 }, yInfo, y, 0)); in TEST_F() [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 43 constexpr int32_t kHeight = 2160; in TEST() local 46 GetRawGraphicOutputBuffers(kWidth, kHeight); in TEST() 56 kWidth, kHeight, HAL_PIXEL_FORMAT_YCbCr_420_888, in TEST() 75 auto releaseBuffer = [&buffers, &clientBuffers, kWidth, kHeight](int index) { in TEST() 85 ASSERT_EQ(kHeight, block.height()); in TEST() 111 constexpr int32_t kHeight = 240; in TEST() local 114 GetRawGraphicOutputBuffers(kWidth, kHeight); in TEST() 124 constexpr int32_t kHeight = 240; in TEST() local 167 format->setInt32(KEY_HEIGHT, kHeight); in TEST() 180 kWidth, kHeight, pixelFormat, in TEST() [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/av/media/codecs/m4v_h263/fuzzer/ |
D | mpeg4_h263_enc_fuzzer.cpp | 30 constexpr int kHeight[] = {96, 144, 288, 576, 1152}; variable 32 constexpr size_t kHeightNum = std::size(kHeight); 96 mFrameHeight = kHeight[data[IDX_HT_BYTE_1] % kHeightNum]; in initEncoder()
|
/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 | 774 constexpr size_t kHeight = 64; in outputBuffer() local 775 for (; i < mHeight; i += kHeight) { in outputBuffer() 779 width = mWidth, height = std::min(mHeight - i, kHeight), in outputBuffer() 788 srcY += srcYStride / 2 * kHeight; in outputBuffer() 789 srcU += srcUStride / 2 * (kHeight / 2); in outputBuffer() 790 srcV += srcVStride / 2 * (kHeight / 2); in outputBuffer() 791 dstY += dstYStride * kHeight; in outputBuffer()
|