Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_SetPowerModeInternalTest.cpp32 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE =
33 IComposerClient::PowerMode::DOZE;
34 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE_SUSPEND =
35 IComposerClient::PowerMode::DOZE_SUSPEND;
49 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE =
50 IComposerClient::PowerMode::ON;
51 static constexpr IComposerClient::PowerMode ACTUAL_POWER_MODE_FOR_DOZE_SUSPEND =
52 IComposerClient::PowerMode::ON;
124 template <PowerMode initialPowerMode, PowerMode targetPowerMode>
132 struct TransitionOffToOnVariant : public TransitionVariantCommon<PowerMode::OFF, PowerMode::ON> {
[all …]
DRefreshRateStatsTest.cpp28 using android::hardware::graphics::composer::hal::PowerMode;
40 mRefreshRateStats = std::make_unique<RefreshRateStats>(mTimeStats, fps, PowerMode::OFF); in resetStats()
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()
DSchedulerTest.cpp162 constexpr hal::PowerMode kPowerModeOn = hal::PowerMode::ON; in TEST_F()
229 constexpr hal::PowerMode kPowerModeOn = hal::PowerMode::ON; in TEST_F()
DSurfaceFlinger_PowerHintTest.cpp81 .setPowerMode(hal::PowerMode::ON) in SetUp()
98 .setPowerMode(hal::PowerMode::ON) in SetUp()
155 mDisplay->setPowerMode(hal::PowerMode::DOZE); in TEST_F()
DTestableSurfaceFlinger.h254 hal::PowerMode::OFF);
417 hal::PowerMode mode) NO_THREAD_SAFETY_ANALYSIS { in setPowerModeInternal()
598 static constexpr hal::PowerMode DEFAULT_POWER_MODE = hal::PowerMode::ON;
641 auto& setPowerMode(hal::PowerMode mode) { in setPowerMode()
731 hal::PowerMode mPowerMode = DEFAULT_POWER_MODE;
748 mCreationArgs.initialPowerMode = hal::PowerMode::ON; in FakeDisplayDeviceInjector()
801 auto& setPowerMode(std::optional<hal::PowerMode> mode) { in setPowerMode()
DSurfaceFlinger_OnInitializeDisplaysTest.cpp79 EXPECT_EQ(PowerMode::ON, displayDevice->getPowerMode()); in TEST_F()
DTimeStatsTest.cpp56 using PowerMode = hardware::graphics::composer::V2_4::IComposerClient::PowerMode; typedef
527 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
549 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
565 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::ON)); in TEST_F()
571 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::OFF)); in TEST_F()
589 mTimeStats->setPowerMode(PowerMode::OFF); in TEST_F()
592 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
623 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
858 ASSERT_NO_FATAL_FAILURE(mTimeStats->setPowerMode(PowerMode::ON)); in TEST_F()
890 mTimeStats->setPowerMode(PowerMode::ON); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DRefreshRateStats.h47 using PowerMode = android::hardware::graphics::composer::hal::PowerMode; variable
51 RefreshRateStats(TimeStats& timeStats, Fps currentRefreshRate, PowerMode currentPowerMode) in RefreshRateStats()
56 void setPowerMode(PowerMode mode) { in setPowerMode()
121 if (mCurrentPowerMode == PowerMode::ON) { in flushTime()
150 PowerMode mCurrentPowerMode;
DVSyncReactor.h52 void setDisplayPowerMode(hal::PowerMode powerMode) final;
78 hal::PowerMode mDisplayPowerMode GUARDED_BY(mMutex) = hal::PowerMode::ON;
DVSyncReactor.cpp149 if (mDisplayPowerMode == hal::PowerMode::DOZE || in periodConfirmed()
150 mDisplayPowerMode == hal::PowerMode::DOZE_SUSPEND) { in periodConfirmed()
214 void VSyncReactor::setDisplayPowerMode(hal::PowerMode powerMode) { in setDisplayPowerMode()
DVsyncController.h81 virtual void setDisplayPowerMode(hal::PowerMode powerMode) = 0;
DScheduler.h189 void setDisplayPowerMode(hal::PowerMode powerMode);
328 hal::PowerMode displayPowerMode = hal::PowerMode::ON;
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHal.h69 using PowerMode = IComposerClient::PowerMode; variable
180 inline std::string to_string(hardware::graphics::composer::hal::PowerMode mode) { in to_string()
182 case hardware::graphics::composer::hal::PowerMode::OFF: in to_string()
184 case hardware::graphics::composer::hal::PowerMode::DOZE: in to_string()
186 case hardware::graphics::composer::hal::PowerMode::ON: in to_string()
188 case hardware::graphics::composer::hal::PowerMode::DOZE_SUSPEND: in to_string()
190 case hardware::graphics::composer::hal::PowerMode::ON_SUSPEND: in to_string()
DHWComposer.cpp547 status_t HWComposer::setPowerMode(PhysicalDisplayId displayId, hal::PowerMode mode) { in setPowerMode()
550 if (mode == hal::PowerMode::OFF) { in setPowerMode()
557 case hal::PowerMode::OFF: in setPowerMode()
558 case hal::PowerMode::ON: in setPowerMode()
568 case hal::PowerMode::DOZE: in setPowerMode()
569 case hal::PowerMode::DOZE_SUSPEND: in setPowerMode()
579 mode = hal::PowerMode::ON; in setPowerMode()
/frameworks/native/services/surfaceflinger/TimeStats/
DTimeStats.h180 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) = 0;
190 using PowerMode = android::hardware::graphics::composer::V2_4::IComposerClient::PowerMode; variable
224 PowerMode powerMode = PowerMode::OFF;
283 hardware::graphics::composer::V2_4::IComposerClient::PowerMode powerMode) override;
DTimeStats.cpp374 if (mPowerTime.powerMode == PowerMode::ON) { in recordFrameDuration()
891 case PowerMode::ON: in flushPowerTimeLocked()
894 case PowerMode::OFF: in flushPowerTimeLocked()
895 case PowerMode::DOZE: in flushPowerTimeLocked()
896 case PowerMode::DOZE_SUSPEND: in flushPowerTimeLocked()
897 case PowerMode::ON_SUSPEND: in flushPowerTimeLocked()
905 void TimeStats::setPowerMode(PowerMode powerMode) { in setPowerMode()
993 if (mPowerTime.powerMode != PowerMode::ON) { in setPresentFenceGlobal()
/frameworks/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_scheduler_fuzzer.cpp33 using hardware::graphics::composer::hal::PowerMode;
41 constexpr PowerMode kPowerModes[] = {PowerMode::ON, PowerMode::DOZE, PowerMode::OFF,
42 PowerMode::DOZE_SUSPEND, PowerMode::ON_SUSPEND};
377 PowerMode::OFF); in fuzzRefreshRateConfigs()
Dsurfaceflinger_displayhardware_fuzzer.cpp94 static constexpr hal::PowerMode kPowerModes[] = {hal::PowerMode::OFF, hal::PowerMode::DOZE,
95 hal::PowerMode::DOZE_SUSPEND, hal::PowerMode::ON,
96 hal::PowerMode::ON_SUSPEND};
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp175 void DisplayDevice::setPowerMode(hal::PowerMode mode) { in setPowerMode()
176 if (mode == hal::PowerMode::OFF || mode == hal::PowerMode::ON) { in setPowerMode()
188 *mPowerMode != hal::PowerMode::OFF); in setPowerMode()
195 std::optional<hal::PowerMode> DisplayDevice::getPowerMode() const { in getPowerMode()
200 return mPowerMode && *mPowerMode != hal::PowerMode::OFF; in isPoweredOn()
DDisplayDevice.h184 std::optional<hardware::graphics::composer::hal::PowerMode> getPowerMode() const;
185 void setPowerMode(hardware::graphics::composer::hal::PowerMode mode);
285 std::optional<hardware::graphics::composer::hal::PowerMode> mPowerMode;
369 std::optional<hardware::graphics::composer::hal::PowerMode> initialPowerMode;
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockVsyncController.h34 MOCK_METHOD(void, setDisplayPowerMode, (hal::PowerMode), (override));
DMockTimeStats.h60 void(hardware::graphics::composer::V2_4::IComposerClient::PowerMode));
/frameworks/native/services/vr/hardware_composer/impl/
Dvr_hwc.h102 IComposerClient::PowerMode power_mode;
168 IComposerClient::PowerMode power_mode() const { return power_mode_; } in power_mode()
169 void set_power_mode(IComposerClient::PowerMode mode) { power_mode_ = mode; } in set_power_mode()
199 IComposerClient::PowerMode power_mode_;
300 IComposerClient::PowerMode mode) override;
Dvr_hwc.cpp1009 IComposerClient::PowerMode mode) { in setPowerMode_2_2()
1022 if (mode < IComposerClient::PowerMode::OFF || in setPowerMode_2_2()
1023 mode > IComposerClient::PowerMode::DOZE_SUSPEND) { in setPowerMode_2_2()
1027 if (!dozeSupported && (mode == IComposerClient::PowerMode::DOZE || in setPowerMode_2_2()
1028 mode == IComposerClient::PowerMode::DOZE_SUSPEND)) { in setPowerMode_2_2()
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
Dparcelable_composer_frame.cpp84 frame_.power_mode = static_cast<IComposerClient::PowerMode>(value); in readFromParcel()

12