Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab3195bf authored by Valerie Hau's avatar Valerie Hau
Browse files

Setting PowerMode to ON after SetPowerModeVariations

SetVsyncEnabled failure after SetPowerModeVariations on
sailfish
Test: ./VtsHalGraphicsComposerV2_1TargetTest on sailfish

Change-Id: I118988c4ac2b70978267b7c08f20861f4728ff8f
parent a7e85796
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -576,14 +576,6 @@ TEST_F(GraphicsComposerHidlTest, SetPowerModeVariations) {
        ASSERT_NO_FATAL_FAILURE(mComposerClient->setPowerMode(mPrimaryDisplay, mode));
    }

    modes.clear();

    modes.push_back(IComposerClient::PowerMode::ON);
    modes.push_back(IComposerClient::PowerMode::ON);
    for (auto mode : modes) {
        ASSERT_NO_FATAL_FAILURE(mComposerClient->setPowerMode(mPrimaryDisplay, mode));
    }

    modes.clear();
    if (mComposerClient->getDozeSupport(mPrimaryDisplay)) {
        modes.push_back(IComposerClient::PowerMode::DOZE);
@@ -602,6 +594,14 @@ TEST_F(GraphicsComposerHidlTest, SetPowerModeVariations) {
            ASSERT_NO_FATAL_FAILURE(mComposerClient->setPowerMode(mPrimaryDisplay, mode));
        }
    }

    modes.clear();

    modes.push_back(IComposerClient::PowerMode::ON);
    modes.push_back(IComposerClient::PowerMode::ON);
    for (auto mode : modes) {
        ASSERT_NO_FATAL_FAILURE(mComposerClient->setPowerMode(mPrimaryDisplay, mode));
    }
}

/**