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

Commit 467d88e1 authored by Valerie Hau's avatar Valerie Hau Committed by Android (Google) Code Review
Browse files

Merge "Setting PowerMode to ON after SetPowerModeVariations"

parents d7aca459 ab3195bf
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));
    }
}

/**