Home
last modified time | relevance | path

Searched refs:PowerMode (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_FoldableTest.cpp33 struct FoldableTest : DualDisplayTransactionTest<hal::PowerMode::OFF, hal::PowerMode::OFF,
41 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
46 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
49 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::OFF); in TEST_F()
50 mFlinger.setPowerModeInternal(mOuterDisplay, PowerMode::ON); in TEST_F()
54 mFlinger.setPowerModeInternal(mOuterDisplay, PowerMode::OFF); in TEST_F()
55 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
60 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
64 mFlinger.setPowerModeInternal(mOuterDisplay, PowerMode::ON); in TEST_F()
77 mFlinger.setPowerModeInternal(mInnerDisplay, PowerMode::ON); in TEST_F()
[all …]
DSurfaceFlinger_SetPowerModeInternalTest.cpp41 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE =
42 IComposerClient::PowerMode::DOZE;
43 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE_SUSPEND =
44 IComposerClient::PowerMode::DOZE_SUSPEND;
58 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE =
59 IComposerClient::PowerMode::ON;
60 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE_SUSPEND =
61 IComposerClient::PowerMode::ON;
127 template <PowerMode initialPowerMode, PowerMode targetPowerMode>
135 struct TransitionOffToOnVariant : public TransitionVariantCommon<PowerMode::OFF, PowerMode::ON> {
[all …]
DSurfaceFlinger_InitializeDisplaysTest.cpp26 struct InitializeDisplaysTest : DualDisplayTransactionTest<hal::PowerMode::OFF, hal::PowerMode::OFF,
60 EXPECT_EQ(PowerMode::ON, getDisplayDevice(token).getPowerMode()); in TEST_F()
DSurfaceFlinger_DisplayModeSwitching.cpp97 .setPowerMode(hal::PowerMode::OFF) in injectOuterDisplay()
102 injector.setPowerMode(hal::PowerMode::OFF); in injectOuterDisplay()
376 mFlinger.setPowerModeInternal(outerDisplay, hal::PowerMode::OFF); in TEST_F()
377 mFlinger.setPowerModeInternal(innerDisplay, hal::PowerMode::ON); in TEST_F()
409 mFlinger.setPowerModeInternal(innerDisplay, hal::PowerMode::OFF); in TEST_F()
410 mFlinger.setPowerModeInternal(outerDisplay, hal::PowerMode::ON); in TEST_F()
449 mFlinger.setPowerModeInternal(innerDisplay, hal::PowerMode::ON); in TEST_F()
450 mFlinger.setPowerModeInternal(outerDisplay, hal::PowerMode::ON); in TEST_F()
495 mFlinger.setPowerModeInternal(mDisplay, hal::PowerMode::OFF); in TEST_F()
527 mFlinger.setPowerModeInternal(innerDisplay, hal::PowerMode::ON); in TEST_F()
[all …]
DDualDisplayTransactionTest.h23 template <hal::PowerMode kInnerDisplayPowerMode, hal::PowerMode kOuterDisplayPowerMode,
DRefreshRateStatsTest.cpp28 using android::hardware::graphics::composer::hal::PowerMode;
80 mRefreshRateStats->setPowerMode(PowerMode::ON); in TEST_F()
89 mRefreshRateStats->setPowerMode(PowerMode::DOZE); in TEST_F()
128 mRefreshRateStats->setPowerMode(PowerMode::ON); in TEST_F()
166 mRefreshRateStats->setPowerMode(PowerMode::DOZE); in TEST_F()
DCommitAndCompositeTest.h44 .setPowerMode(hal::PowerMode::ON) in SetUp()
61 .setPowerMode(hal::PowerMode::ON) in SetUp()
DSchedulerTest.cpp168 constexpr hal::PowerMode kPowerModeOn = hal::PowerMode::ON; in TEST_F()
232 constexpr hal::PowerMode kPowerModeOn = hal::PowerMode::ON; in TEST_F()
356 mScheduler->setDisplayPowerMode(kDisplayId1, hal::PowerMode::ON); in TEST_F()
357 mScheduler->setDisplayPowerMode(kDisplayId2, hal::PowerMode::ON); in TEST_F()
421 mScheduler->setDisplayPowerMode(kDisplayId3, hal::PowerMode::ON); in TEST_F()
636 mScheduler->setDisplayPowerMode(kDisplayId1, hal::PowerMode::ON); in TEST_F()
637 mScheduler->setDisplayPowerMode(kDisplayId2, hal::PowerMode::ON); in TEST_F()
652 mScheduler->setDisplayPowerMode(kDisplayId1, hal::PowerMode::ON); in TEST_F()
669 mScheduler->setDisplayPowerMode(kDisplayId1, hal::PowerMode::ON); in TEST_F()
674 ASSERT_EQ(hal::PowerMode::OFF, mScheduler->getDisplayPowerMode(kDisplayId2)); in TEST_F()
[all …]
DActiveDisplayRotationFlagsTest.cpp29 : DualDisplayTransactionTest<hal::PowerMode::ON, hal::PowerMode::OFF> {
DTestableScheduler.h112 void setDisplayPowerMode(PhysicalDisplayId displayId, hal::PowerMode powerMode) { in setDisplayPowerMode()
126 std::optional<hal::PowerMode> getDisplayPowerMode(PhysicalDisplayId id) { in getDisplayPowerMode()
DSurfaceFlinger_PowerHintTest.cpp55 mDisplay->setPowerMode(hal::PowerMode::DOZE); in TEST_F()
DDisplayTransactionTestHelpers.h79 using hal::PowerMode;
357 template <hal::PowerMode kPowerMode = hal::PowerMode::ON>
376 template <hal::PowerMode kPowerMode = hal::PowerMode::ON, bool kExpectSetPowerModeOnce = true>
379 if constexpr (kPowerMode == hal::PowerMode::ON) {
DTimeStatsTest.cpp59 using PowerMode = hardware::graphics::composer::V2_4::IComposerClient::PowerMode; typedef
530 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
552 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
568 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::ON)); in TEST_F()
574 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::OFF)); in TEST_F()
592 mTimeStats->setPowerMode(PowerMode::OFF); in TEST_F()
595 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
626 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
901 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::ON)); in TEST_F()
933 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h48 using PowerMode = android::hardware::graphics::composer::hal::PowerMode; variable
55 mCurrentPowerMode(PowerMode::OFF) {} in RefreshRateStats()
57 void setPowerMode(PowerMode mode) { in setPowerMode()
126 if (mCurrentPowerMode == PowerMode::ON) { in flushTime()
160 PowerMode mCurrentPowerMode;
DVSyncReactor.h54 void setDisplayPowerMode(hal::PowerMode powerMode) final;
81 hal::PowerMode mDisplayPowerMode GUARDED_BY(mMutex) = hal::PowerMode::ON;
DVSyncReactor.cpp158 if (mDisplayPowerMode == hal::PowerMode::DOZE || in periodConfirmed()
159 mDisplayPowerMode == hal::PowerMode::DOZE_SUSPEND) { in periodConfirmed()
230 void VSyncReactor::setDisplayPowerMode(hal::PowerMode powerMode) { in setDisplayPowerMode()
DScheduler.h243 void setDisplayPowerMode(PhysicalDisplayId, hal::PowerMode) REQUIRES(kMainThreadContext);
246 void setActiveDisplayPowerModeForRefreshRateStats(hal::PowerMode) REQUIRES(kMainThreadContext);
524 hal::PowerMode powerMode = hal::PowerMode::OFF;
581 hal::PowerMode displayPowerMode = hal::PowerMode::ON;
DVsyncController.h84 virtual void setDisplayPowerMode(hal::PowerMode powerMode) = 0;
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHal.h74 using PowerMode = IComposerClient::PowerMode; variable
220 inline std::string to_string(hardware::graphics::composer::hal::PowerMode mode) { in to_string()
222 case hardware::graphics::composer::hal::PowerMode::OFF: in to_string()
224 case hardware::graphics::composer::hal::PowerMode::DOZE: in to_string()
226 case hardware::graphics::composer::hal::PowerMode::ON: in to_string()
228 case hardware::graphics::composer::hal::PowerMode::DOZE_SUSPEND: in to_string()
230 case hardware::graphics::composer::hal::PowerMode::ON_SUSPEND: in to_string()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h173 hardware::graphics::composer::hal::PowerMode getPowerMode() const;
174 void setPowerMode(hardware::graphics::composer::hal::PowerMode);
233 TracedOrdinal<hardware::graphics::composer::hal::PowerMode> mPowerMode;
317 hardware::graphics::composer::hal::PowerMode initialPowerMode{
318 hardware::graphics::composer::hal::PowerMode::OFF};
DDisplayDevice.cpp170 void DisplayDevice::setPowerMode(hal::PowerMode mode) { in setPowerMode()
172 if (mode == hal::PowerMode::OFF || mode == hal::PowerMode::ON) { in setPowerMode()
195 hal::PowerMode DisplayDevice::getPowerMode() const { in getPowerMode()
200 return mPowerMode != hal::PowerMode::OFF; in isPoweredOn()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h179 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) = 0;
189 using PowerMode = android::hardware::graphics::composer::V2_4::IComposerClient::PowerMode; variable
224 PowerMode powerMode = PowerMode::OFF;
282 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) override;
DTimeStats.cpp376 if (mPowerTime.powerMode == PowerMode::ON) { in recordFrameDuration()
900 case PowerMode::ON: in flushPowerTimeLocked()
903 case PowerMode::OFF: in flushPowerTimeLocked()
904 case PowerMode::DOZE: in flushPowerTimeLocked()
905 case PowerMode::DOZE_SUSPEND: in flushPowerTimeLocked()
906 case PowerMode::ON_SUSPEND: in flushPowerTimeLocked()
914 void TimeStats::setPowerMode(PowerMode powerMode) { in setPowerMode()
1002 if (mPowerTime.powerMode != PowerMode::ON) { in setPresentFenceGlobal()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVsyncController.h34 MOCK_METHOD(void, setDisplayPowerMode, (hal::PowerMode), (override));
DMockTimeStats.h59 void(hardware::graphics::composer::V2_4::IComposerClient::PowerMode));

12