1717#undef LOG_TAG
1818#define LOG_TAG " LibSurfaceFlingerUnittests"
1919
20+ #include < com_android_graphics_surfaceflinger_flags.h>
21+ #include < common/test/FlagUtils.h>
2022#include " DisplayTransactionTestHelpers.h"
2123
2224#include < gmock/gmock.h>
2325#include < gtest/gtest.h>
2426
27+ using namespace com ::android::graphics::surfaceflinger;
28+
2529namespace android {
2630namespace {
2731
@@ -453,6 +457,7 @@ TEST_F(SetPowerModeInternalTest, transitionsDisplayFromOnToUnknownPrimaryDisplay
453457}
454458
455459TEST_F (SetPowerModeInternalTest, transitionsDisplayFromOffToOnExternalDisplay) {
460+ SET_FLAG_FOR_TEST (flags::multithreaded_present, true );
456461 transitionDisplayCommon<ExternalDisplayPowerCase<TransitionOffToOnVariant>>();
457462}
458463
@@ -461,6 +466,7 @@ TEST_F(SetPowerModeInternalTest, transitionsDisplayFromOffToDozeSuspendExternalD
461466}
462467
463468TEST_F (SetPowerModeInternalTest, transitionsDisplayFromOnToOffExternalDisplay) {
469+ SET_FLAG_FOR_TEST (flags::multithreaded_present, true );
464470 transitionDisplayCommon<ExternalDisplayPowerCase<TransitionOnToOffVariant>>();
465471}
466472
@@ -473,6 +479,7 @@ TEST_F(SetPowerModeInternalTest, transitionsDisplayFromOnToDozeExternalDisplay)
473479}
474480
475481TEST_F (SetPowerModeInternalTest, transitionsDisplayFromDozeSuspendToDozeExternalDisplay) {
482+ SET_FLAG_FOR_TEST (flags::multithreaded_present, true );
476483 transitionDisplayCommon<ExternalDisplayPowerCase<TransitionDozeSuspendToDozeVariant>>();
477484}
478485
@@ -481,10 +488,12 @@ TEST_F(SetPowerModeInternalTest, transitionsDisplayFromDozeToOnExternalDisplay)
481488}
482489
483490TEST_F (SetPowerModeInternalTest, transitionsDisplayFromDozeSuspendToOnExternalDisplay) {
491+ SET_FLAG_FOR_TEST (flags::multithreaded_present, true );
484492 transitionDisplayCommon<ExternalDisplayPowerCase<TransitionDozeSuspendToOnVariant>>();
485493}
486494
487495TEST_F (SetPowerModeInternalTest, transitionsDisplayFromOnToDozeSuspendExternalDisplay) {
496+ SET_FLAG_FOR_TEST (flags::multithreaded_present, true );
488497 transitionDisplayCommon<ExternalDisplayPowerCase<TransitionOnToDozeSuspendVariant>>();
489498}
490499
0 commit comments