/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_FoldableTest.cpp | 33 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 …]
|
D | SurfaceFlinger_SetPowerModeInternalTest.cpp | 41 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 …]
|
D | SurfaceFlinger_InitializeDisplaysTest.cpp | 26 struct InitializeDisplaysTest : DualDisplayTransactionTest<hal::PowerMode::OFF, hal::PowerMode::OFF, 60 EXPECT_EQ(PowerMode::ON, getDisplayDevice(token).getPowerMode()); in TEST_F()
|
D | SurfaceFlinger_DisplayModeSwitching.cpp | 97 .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 …]
|
D | DualDisplayTransactionTest.h | 23 template <hal::PowerMode kInnerDisplayPowerMode, hal::PowerMode kOuterDisplayPowerMode,
|
D | RefreshRateStatsTest.cpp | 28 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()
|
D | CommitAndCompositeTest.h | 44 .setPowerMode(hal::PowerMode::ON) in SetUp() 61 .setPowerMode(hal::PowerMode::ON) in SetUp()
|
D | SchedulerTest.cpp | 168 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 …]
|
D | ActiveDisplayRotationFlagsTest.cpp | 29 : DualDisplayTransactionTest<hal::PowerMode::ON, hal::PowerMode::OFF> {
|
D | TestableScheduler.h | 112 void setDisplayPowerMode(PhysicalDisplayId displayId, hal::PowerMode powerMode) { in setDisplayPowerMode() 126 std::optional<hal::PowerMode> getDisplayPowerMode(PhysicalDisplayId id) { in getDisplayPowerMode()
|
D | SurfaceFlinger_PowerHintTest.cpp | 55 mDisplay->setPowerMode(hal::PowerMode::DOZE); in TEST_F()
|
D | DisplayTransactionTestHelpers.h | 79 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) {
|
D | TimeStatsTest.cpp | 59 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/ |
D | RefreshRateStats.h | 48 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;
|
D | VSyncReactor.h | 54 void setDisplayPowerMode(hal::PowerMode powerMode) final; 81 hal::PowerMode mDisplayPowerMode GUARDED_BY(mMutex) = hal::PowerMode::ON;
|
D | VSyncReactor.cpp | 158 if (mDisplayPowerMode == hal::PowerMode::DOZE || in periodConfirmed() 159 mDisplayPowerMode == hal::PowerMode::DOZE_SUSPEND) { in periodConfirmed() 230 void VSyncReactor::setDisplayPowerMode(hal::PowerMode powerMode) { in setDisplayPowerMode()
|
D | Scheduler.h | 243 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;
|
D | VsyncController.h | 84 virtual void setDisplayPowerMode(hal::PowerMode powerMode) = 0;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | Hal.h | 74 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/ |
D | DisplayDevice.h | 173 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};
|
D | DisplayDevice.cpp | 170 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/ |
D | TimeStats.h | 179 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;
|
D | TimeStats.cpp | 376 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/ |
D | MockVsyncController.h | 34 MOCK_METHOD(void, setDisplayPowerMode, (hal::PowerMode), (override));
|
D | MockTimeStats.h | 59 void(hardware::graphics::composer::V2_4::IComposerClient::PowerMode));
|