Skip to content

Commit fc7df80

Browse files
committed
end2end: Add an Edid Builder [3/N]
EdidBuilder generates a valid, but synthetic EDID base block (block 0) for a requested screen resolution and refresh rate. It also allows embedding a product name string descriptor which can be used to identify the display later, as it is parsed out by SurfaceFlinger as part of the gui::StaticDisplayInfo data for a display. This will be used by the fake HWC3 implementation shortly, and will also be usedful eventually when the test later injects displays via vkms. Flag: TEST_ONLY Bug: 372735083 Test: atest surfaceflinger_end2end_tests Change-Id: I9e9eb0d13d5df0af5525511b07a2acaf5e06646a
1 parent 27a3529 commit fc7df80

File tree

4 files changed

+1167
-0
lines changed

4 files changed

+1167
-0
lines changed

services/surfaceflinger/tests/end2end/Android.bp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ cc_test {
3232
],
3333
srcs: [
3434
"main.cpp",
35+
36+
"test_framework/core/EdidBuilder.cpp",
3537
"test_framework/core/TestService.cpp",
3638
"test_framework/fake_hwc3/Hwc3Composer.cpp",
3739
"test_framework/fake_hwc3/Hwc3Controller.cpp",
3840
"test_framework/surfaceflinger/SFController.cpp",
3941

4042
// Internal tests
4143
"tests/internal/AsyncFunction_test.cpp",
44+
"tests/internal/EdidBuilder_test.cpp",
4245

4346
// SurfaceFlinger tests
4447
"tests/Placeholder_test.cpp",

0 commit comments

Comments
 (0)