Home
last modified time | relevance | path

Searched refs:ScreenPowerState (Results 1 – 25 of 27) sorted by relevance

12

/foundation/window/window_manager/test/systemtest/dms/
Ddisplay_power_test.cpp330 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF,
346 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_ON,
362 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::INVALID_STATE,
395 ScreenPowerState stateToSet = ScreenPowerState::POWER_ON;
398 ScreenPowerState stateGet = ScreenManager::GetInstance().GetScreenPower(defaultId_);
/foundation/window/window_manager/dm/test/unittest/
Ddisplay_power_unit_test.cpp44 static inline ScreenPowerState initialPowerState_;
243 EXPECT_CALL(m.Mock(), GetScreenPower(_)).Times(1).WillOnce(Return(ScreenPowerState::POWER_OFF));
247 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF,
251 ScreenPowerState state = ScreenManager::GetInstance().GetScreenPower(defaultId_);
252 ASSERT_EQ(state, ScreenPowerState::POWER_OFF);
/foundation/window/window_manager/dmserver/include/
Dabstract_screen_controller.h76 …bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason, bool needToNotify…
77 ScreenPowerState GetScreenPower(ScreenId dmsScreenId) const;
154 ScreenPowerState powerState_ { ScreenPowerState::INVALID_STATE };
Ddisplay_manager_proxy.h65 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
66 ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override;
Ddisplay_manager_interface.h125 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) = 0;
126 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId) = 0;
Ddisplay_manager_service.h82 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
83 ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override;
/foundation/window/window_manager/interfaces/innerkits/dm/
Dscreen_manager.h171 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
179 ScreenPowerState GetScreenPower(ScreenId screenId);
Ddm_common.h47 enum class ScreenPowerState : uint32_t { enum
/foundation/window/window_manager/window_scene/test/unittest/
Dscreen_session_manager_test.cpp89 ScreenPowerState state = ScreenPowerState::POWER_ON;
/foundation/window/window_manager/window_scene/session_manager/include/zidl/
Dscreen_session_manager_interface.h70 …virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override … in SetScreenPowerForAll()
71 …virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override { return ScreenPowerState::… in GetScreenPower()
Dscreen_session_manager_proxy.h53 … virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
54 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override;
/foundation/window/window_manager/test/common/mock/
Dmock_display_manager_adapter.h66 MOCK_METHOD2(SetScreenPowerForAll, bool(ScreenPowerState state, PowerStateChangeReason reason));
67 MOCK_METHOD1(GetScreenPower, ScreenPowerState(ScreenId dmsScreenId));
/foundation/window/window_manager/dm/include/
Ddisplay_manager_adapter.h98 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
99 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId);
/foundation/window/window_manager/dm/src/
Ddisplay_manager_adapter.cpp157 bool ScreenManagerAdapter::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reas… in SetScreenPowerForAll()
163 ScreenPowerState ScreenManagerAdapter::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
165 INIT_PROXY_CHECK_RETURN(ScreenPowerState::INVALID_STATE); in GetScreenPower()
Dscreen_manager.cpp528 bool ScreenManager::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) in SetScreenPowerForAll()
534 ScreenPowerState ScreenManager::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
/foundation/window/window_manager/window_scene/session_manager/src/zidl/
Dscreen_session_manager_proxy.cpp422 bool OHOS::Rosen::ScreenSessionManagerProxy::SetScreenPowerForAll(ScreenPowerState state, PowerStat… in SetScreenPowerForAll()
506 ScreenPowerState OHOS::Rosen::ScreenSessionManagerProxy::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
511 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
519 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
523 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
528 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
530 return static_cast<ScreenPowerState>(reply.ReadUint32()); in GetScreenPower()
Dscreen_session_manager_stub.cpp79 ScreenPowerState state = static_cast<ScreenPowerState>(data.ReadUint32()); in OnRemoteRequest()
/foundation/window/window_manager/dmserver/src/
Dabstract_screen_controller.cpp1348 bool AbstractScreenController::SetScreenPowerForAll(ScreenPowerState state, in SetScreenPowerForAll()
1360 case ScreenPowerState::POWER_ON: { in SetScreenPowerForAll()
1362 powerState_ = ScreenPowerState::POWER_ON; in SetScreenPowerForAll()
1365 case ScreenPowerState::POWER_OFF: { in SetScreenPowerForAll()
1367 powerState_ = ScreenPowerState::POWER_OFF; in SetScreenPowerForAll()
1397 state == ScreenPowerState::POWER_ON ? DisplayPowerEvent::DISPLAY_ON : in SetScreenPowerForAll()
1403 ScreenPowerState AbstractScreenController::GetScreenPower(ScreenId dmsScreenId) const in GetScreenPower()
1409 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
1414 …auto state = static_cast<ScreenPowerState>(RSInterfaces::GetInstance().GetScreenPowerStatus(rsId)); in GetScreenPower()
Ddisplay_manager_proxy.cpp622 bool DisplayManagerProxy::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reaso… in SetScreenPowerForAll()
647 ScreenPowerState DisplayManagerProxy::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
654 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
658 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
663 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
665 return static_cast<ScreenPowerState>(reply.ReadUint32()); in GetScreenPower()
Ddisplay_manager_stub.cpp153 ScreenPowerState state = static_cast<ScreenPowerState>(data.ReadUint32()); in OnRemoteRequest()
Ddisplay_manager_service.cpp437 bool DisplayManagerService::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason rea… in SetScreenPowerForAll()
447 ScreenPowerState DisplayManagerService::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
/foundation/window/window_manager/previewer/include/
Ddm_common.h53 enum class ScreenPowerState : uint32_t { enum
/foundation/window/window_manager/window_scene/session_manager/include/
Dscreen_session_manager.h77 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
78 ScreenPowerState GetScreenPower(ScreenId screenId) override;
/foundation/window/window_manager/dmserver/test/unittest/
Ddisplay_manager_service_test.cpp323 ScreenPowerState state = ScreenPowerState::POWER_ON;
/foundation/window/window_manager/window_scene/session_manager/src/
Dscreen_session_manager.cpp557 bool ScreenSessionManager::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reas… in SetScreenPowerForAll()
567 case ScreenPowerState::POWER_ON: { in SetScreenPowerForAll()
571 case ScreenPowerState::POWER_OFF: { in SetScreenPowerForAll()
585 …return NotifyDisplayPowerEvent(state == ScreenPowerState::POWER_ON ? DisplayPowerEvent::DISPLAY_ON… in SetScreenPowerForAll()
609 ScreenPowerState ScreenSessionManager::GetScreenPower(ScreenId screenId) in GetScreenPower()
611 …auto state = static_cast<ScreenPowerState>(RSInterfaces::GetInstance().GetScreenPowerStatus(screen… in GetScreenPower()

12