From 70d2ef6b34ed926466beca1552e03815346aac24 Mon Sep 17 00:00:00 2001 From: Peter Lin Date: Thu, 14 Dec 2023 05:43:25 +0000 Subject: [PATCH] [VTS] Update SetDisplayBrightness test item Ensure the primary display power on before run the SetDisplayBrightness test item. Bug: 313794734 Test: atest VtsHalGraphicsComposer3_TargetTest:PerInstance/ GraphicsComposerAidlCommandTest#SetDisplayBrightness/ 0_android_hardware_graphics_composer3_IComposer_default -- --abi arm64-v8a Change-Id: I94fb700704bcbd8543f2a608dd75b9e745e40e37 Merged-In: I94fb700704bcbd8543f2a608dd75b9e745e40e37 --- .../composer/aidl/vts/VtsHalGraphicsComposer3_TargetTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_TargetTest.cpp b/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_TargetTest.cpp index 18d36e4c14..323e35807d 100644 --- a/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_TargetTest.cpp +++ b/graphics/composer/aidl/vts/VtsHalGraphicsComposer3_TargetTest.cpp @@ -1554,6 +1554,7 @@ TEST_P(GraphicsComposerAidlCommandTest, SetLayerColorTransform) { } TEST_P(GraphicsComposerAidlCommandTest, SetDisplayBrightness) { + EXPECT_TRUE(mComposerClient->setPowerMode(getPrimaryDisplayId(), PowerMode::ON).isOk()); const auto& [status, capabilities] = mComposerClient->getDisplayCapabilities(getPrimaryDisplayId()); ASSERT_TRUE(status.isOk());