Home
last modified time | relevance | path

Searched refs:usePowerHintSession (Results 1 – 8 of 8) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_PowerHintTest.cpp34 ON_CALL(*mPowerAdvisor, usePowerHintSession()).WillByDefault(Return(true)); in TEST_F()
53 ON_CALL(*mPowerAdvisor, usePowerHintSession()).WillByDefault(Return(true)); in TEST_F()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerAdvisor.cpp191 bool PowerAdvisor::usePowerHintSession() { in usePowerHintSession() function in android::Hwc2::impl::PowerAdvisor
209 if (!mBootFinished || !usePowerHintSession()) { in sendHintSessionHint()
233 if (mHintSession == nullptr && !mHintSessionThreadIds.empty() && usePowerHintSession()) { in ensurePowerHintSessionRunning()
294 if (!mBootFinished || !usePowerHintSession()) { in updateTargetWorkDuration()
323 if (!mBootFinished || !sUseReportActualDuration || !usePowerHintSession()) { in reportActualWorkDuration()
435 if (!usePowerHintSession()) { in startPowerHintSession()
DPowerAdvisor.h61 virtual bool usePowerHintSession() = 0;
125 bool usePowerHintSession() override;
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DMockPowerAdvisor.h39 MOCK_METHOD(bool, usePowerHintSession, (), (override));
DDisplayTest.cpp172 EXPECT_CALL(mPowerAdvisor, usePowerHintSession()).WillRepeatedly(Return(false)); in DisplayTestCommon()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockPowerAdvisor.h37 MOCK_METHOD(bool, usePowerHintSession, (), (override));
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DDisplay.cpp421 return mPowerAdvisor != nullptr && mPowerAdvisor->usePowerHintSession(); in isPowerHintSessionEnabled()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp770 const bool hintSessionUsed = mPowerAdvisor->usePowerHintSession(); in bootFinished()
2649 mPowerHintSessionEnabled = mPowerAdvisor->usePowerHintSession() && activeDisplay && in commit()