/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_SetPowerModeInternalTest.cpp | 32 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 …]
|
D | RefreshRateStatsTest.cpp | 28 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()
|
D | SchedulerTest.cpp | 162 constexpr hal::PowerMode kPowerModeOn = hal::PowerMode::ON; in TEST_F() 229 constexpr hal::PowerMode kPowerModeOn = hal::PowerMode::ON; in TEST_F()
|
D | SurfaceFlinger_PowerHintTest.cpp | 81 .setPowerMode(hal::PowerMode::ON) in SetUp() 98 .setPowerMode(hal::PowerMode::ON) in SetUp() 155 mDisplay->setPowerMode(hal::PowerMode::DOZE); in TEST_F()
|
D | TestableSurfaceFlinger.h | 254 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()
|
D | SurfaceFlinger_OnInitializeDisplaysTest.cpp | 79 EXPECT_EQ(PowerMode::ON, displayDevice->getPowerMode()); in TEST_F()
|
D | TimeStatsTest.cpp | 56 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/ |
D | RefreshRateStats.h | 47 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;
|
D | VSyncReactor.h | 52 void setDisplayPowerMode(hal::PowerMode powerMode) final; 78 hal::PowerMode mDisplayPowerMode GUARDED_BY(mMutex) = hal::PowerMode::ON;
|
D | VSyncReactor.cpp | 149 if (mDisplayPowerMode == hal::PowerMode::DOZE || in periodConfirmed() 150 mDisplayPowerMode == hal::PowerMode::DOZE_SUSPEND) { in periodConfirmed() 214 void VSyncReactor::setDisplayPowerMode(hal::PowerMode powerMode) { in setDisplayPowerMode()
|
D | VsyncController.h | 81 virtual void setDisplayPowerMode(hal::PowerMode powerMode) = 0;
|
D | Scheduler.h | 189 void setDisplayPowerMode(hal::PowerMode powerMode); 328 hal::PowerMode displayPowerMode = hal::PowerMode::ON;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | Hal.h | 69 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()
|
D | HWComposer.cpp | 547 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/ |
D | TimeStats.h | 180 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;
|
D | TimeStats.cpp | 374 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/ |
D | surfaceflinger_scheduler_fuzzer.cpp | 33 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()
|
D | surfaceflinger_displayhardware_fuzzer.cpp | 94 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/ |
D | DisplayDevice.cpp | 175 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()
|
D | DisplayDevice.h | 184 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/ |
D | MockVsyncController.h | 34 MOCK_METHOD(void, setDisplayPowerMode, (hal::PowerMode), (override));
|
D | MockTimeStats.h | 60 void(hardware::graphics::composer::V2_4::IComposerClient::PowerMode));
|
/frameworks/native/services/vr/hardware_composer/impl/ |
D | vr_hwc.h | 102 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;
|
D | vr_hwc.cpp | 1009 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/ |
D | parcelable_composer_frame.cpp | 84 frame_.power_mode = static_cast<IComposerClient::PowerMode>(value); in readFromParcel()
|