Home
last modified time | relevance | path

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

12

/ohos5.0/base/powermgr/display_manager/state_manager/service/native/src/
H A Dscreen_action.cpp58 …Rosen::ScreenPowerState powerState = Rosen::ScreenManagerLite::GetInstance().GetScreenPower(displa… in GetDisplayState()
61 case Rosen::ScreenPowerState::POWER_ON: in GetDisplayState()
64 case Rosen::ScreenPowerState::POWER_STAND_BY: in GetDisplayState()
67 case Rosen::ScreenPowerState::POWER_SUSPEND: in GetDisplayState()
70 case Rosen::ScreenPowerState::POWER_OFF: in GetDisplayState()
164 Rosen::ScreenPowerState status = Rosen::ScreenPowerState::INVALID_STATE; in SetDisplayPower()
167 status = Rosen::ScreenPowerState::POWER_ON; in SetDisplayPower()
170 status = Rosen::ScreenPowerState::POWER_STAND_BY; in SetDisplayPower()
173 status = Rosen::ScreenPowerState::POWER_SUSPEND; in SetDisplayPower()
176 status = Rosen::ScreenPowerState::POWER_OFF; in SetDisplayPower()
/ohos5.0/base/powermgr/display_manager/brightness_manager/src/
H A Dbrightness_action.cpp44 …Rosen::ScreenPowerState powerState = Rosen::ScreenManagerLite::GetInstance().GetScreenPower(mDispl… in GetDisplayState()
47 case Rosen::ScreenPowerState::POWER_ON: in GetDisplayState()
50 case Rosen::ScreenPowerState::POWER_STAND_BY: in GetDisplayState()
53 case Rosen::ScreenPowerState::POWER_SUSPEND: in GetDisplayState()
56 case Rosen::ScreenPowerState::POWER_OFF: in GetDisplayState()
/ohos5.0/foundation/window/window_manager/dm_lite/test/unittest/
H A Ddisplay_lite_power_unit_test.cpp37 static inline ScreenPowerState initialPowerState_;
149 ScreenPowerState state = ScreenPowerState{0};
163 EXPECT_CALL(m.Mock(), GetScreenPower(_)).Times(1).WillOnce(Return(ScreenPowerState::POWER_OFF));
167 bool ret = ScreenManagerLite::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF,
171 ScreenPowerState state = ScreenManagerLite::GetInstance().GetScreenPower(defaultId_);
172 ASSERT_EQ(state, ScreenPowerState::POWER_OFF);
H A Ddisplay_manager_lite_proxy_test.cpp351 ScreenPowerState state {0};
374 ScreenPowerState state {0};
398 … EXPECT_NE(ScreenPowerState::INVALID_STATE, displayManagerLiteProxy->GetScreenPower(dmsScreenId));
400 … EXPECT_EQ(ScreenPowerState::INVALID_STATE, displayManagerLiteProxy->GetScreenPower(dmsScreenId));
/ohos5.0/foundation/window/window_manager/interfaces/innerkits/dm_lite/
H A Dscreen_manager_lite.h99 …bool SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, PowerStateChangeReason rea…
108 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
116 ScreenPowerState GetScreenPower(ScreenId screenId);
/ohos5.0/foundation/window/window_manager/test/common/mock/
H A Dmock_display_manager_adapter_lite.h49 MOCK_METHOD3(SetSpecifiedScreenPower, bool(ScreenId screenId, ScreenPowerState state,
51 MOCK_METHOD2(SetScreenPowerForAll, bool(ScreenPowerState state, PowerStateChangeReason reason));
52 MOCK_METHOD1(GetScreenPower, ScreenPowerState(ScreenId dmsScreenId));
H A Dmock_display_manager_adapter.h69 MOCK_METHOD2(SetScreenPowerForAll, bool(ScreenPowerState state, PowerStateChangeReason reason));
70 MOCK_METHOD1(GetScreenPower, ScreenPowerState(ScreenId dmsScreenId));
/ohos5.0/foundation/window/window_manager/dm_lite/include/
H A Ddisplay_manager_lite_proxy.h66 virtual bool SetSpecifiedScreenPower(ScreenId, ScreenPowerState, PowerStateChangeReason);
67 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
68 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId);
H A Ddisplay_manager_adapter_lite.h87 …virtual bool SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, PowerStateChangeRe…
88 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
89 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId);
/ohos5.0/foundation/window/window_manager/dm_lite/src/
H A Ddisplay_manager_adapter_lite.cpp236 bool ScreenManagerAdapterLite::SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, in SetSpecifiedScreenPower()
244 bool ScreenManagerAdapterLite::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason … in SetScreenPowerForAll()
251 ScreenPowerState ScreenManagerAdapterLite::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
253 INIT_PROXY_CHECK_RETURN(ScreenPowerState::INVALID_STATE); in GetScreenPower()
H A Ddisplay_manager_lite_proxy.cpp432 bool DisplayManagerLiteProxy::SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, in SetSpecifiedScreenPower()
468 bool DisplayManagerLiteProxy::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason r… in SetScreenPowerForAll()
499 ScreenPowerState DisplayManagerLiteProxy::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
504 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
512 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
516 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
521 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
523 return static_cast<ScreenPowerState>(reply.ReadUint32()); in GetScreenPower()
H A Dscreen_manager_lite.cpp295 ScreenPowerState state, PowerStateChangeReason reason) in SetSpecifiedScreenPower()
301 bool ScreenManagerLite::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) in SetScreenPowerForAll()
307 ScreenPowerState ScreenManagerLite::GetScreenPower(ScreenId dmsScreenId) in GetScreenPower()
/ohos5.0/foundation/window/window_manager/test/systemtest/dms/
H A 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,
405 ScreenPowerState stateToSet = ScreenPowerState::POWER_ON;
408 ScreenPowerState stateGet = ScreenManager::GetInstance().GetScreenPower(defaultId_);
/ohos5.0/foundation/window/window_manager/dm/test/unittest/
H A 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);
/ohos5.0/foundation/window/window_manager/interfaces/innerkits/dm/
H A Dscreen_manager.h216 …bool SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, PowerStateChangeReason rea…
225 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
233 ScreenPowerState GetScreenPower(ScreenId screenId);
/ohos5.0/foundation/window/window_manager/dmserver/include/
H A Dabstract_screen_controller.h76 …bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason, bool needToNotify…
77 ScreenPowerState GetScreenPower(ScreenId dmsScreenId) const;
158 ScreenPowerState powerState_ { ScreenPowerState::INVALID_STATE };
H A Ddisplay_manager_proxy.h75 …bool SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, PowerStateChangeReason rea…
76 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
77 ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override;
H A Ddisplay_manager_service.h84 bool SetSpecifiedScreenPower(ScreenId, ScreenPowerState, PowerStateChangeReason) override;
85 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
86 ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override;
H A Ddisplay_manager_interface.h118 …virtual bool SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, PowerStateChangeRe…
119 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) = 0;
120 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId) = 0;
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/zidl/
H A Dscreen_session_manager_interface.h90 …virtual bool SetSpecifiedScreenPower(ScreenId, ScreenPowerState, PowerStateChangeReason) override … in SetSpecifiedScreenPower() argument
91 …virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override … in SetScreenPowerForAll()
92 …virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override { return ScreenPowerState::… in GetScreenPower()
H A Dscreen_session_manager_proxy.h65 … virtual bool SetSpecifiedScreenPower(ScreenId, ScreenPowerState, PowerStateChangeReason) override;
66 … virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
67 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId) override;
/ohos5.0/foundation/window/window_manager/dm/include/
H A Ddisplay_manager_adapter.h119 …virtual bool SetSpecifiedScreenPower(ScreenId screenId, ScreenPowerState state, PowerStateChangeRe…
120 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
121 virtual ScreenPowerState GetScreenPower(ScreenId dmsScreenId);
/ohos5.0/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_stub.cpp166 ScreenPowerState state = static_cast<ScreenPowerState>(data.ReadUint32()); in OnRemoteRequest()
172 ScreenPowerState state = static_cast<ScreenPowerState>(data.ReadUint32()); in OnRemoteRequest()
H A Dabstract_screen_controller.cpp1427 bool AbstractScreenController::SetScreenPowerForAll(ScreenPowerState state, in SetScreenPowerForAll()
1439 case ScreenPowerState::POWER_ON: { in SetScreenPowerForAll()
1441 powerState_ = ScreenPowerState::POWER_ON; in SetScreenPowerForAll()
1444 case ScreenPowerState::POWER_OFF: { in SetScreenPowerForAll()
1446 powerState_ = ScreenPowerState::POWER_OFF; in SetScreenPowerForAll()
1476 state == ScreenPowerState::POWER_ON ? DisplayPowerEvent::DISPLAY_ON : in SetScreenPowerForAll()
1482 ScreenPowerState AbstractScreenController::GetScreenPower(ScreenId dmsScreenId) const in GetScreenPower()
1501 return ScreenPowerState::INVALID_STATE; in GetScreenPower()
1505 …auto state = static_cast<ScreenPowerState>(RSInterfaces::GetInstance().GetScreenPowerStatus(rsId)); in GetScreenPower()
/ohos5.0/foundation/window/window_manager/dmserver/test/unittest/
H A Ddisplay_manager_service_test.cpp320 ScreenPowerState state = ScreenPowerState::POWER_ON;
332 ScreenPowerState result = dms_->GetScreenPower(dmsScreenId);
333 EXPECT_EQ(result, ScreenPowerState::INVALID_STATE);

12