Home
last modified time | relevance | path

Searched refs:SetScreenPowerForAll (Results 1 - 25 of 36) sorted by relevance

12

/foundation/window/window_manager/dm_lite/test/unittest/
H A Ddisplay_lite_power_unit_test.cpp57 ScreenManagerLite::GetInstance().SetScreenPowerForAll(initialPowerState_, PowerStateChangeReason::POWER_BUTTON); in TearDown()
157 * @tc.desc: Call SetScreenPowerForAll with valid value and check the GetScreenPower return value
164 EXPECT_CALL(m.Mock(), SetScreenPowerForAll(_, PowerStateChangeReason::POWER_BUTTON)) in HWTEST_F()
167 bool ret = ScreenManagerLite::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF, in HWTEST_F()
/foundation/window/window_manager/interfaces/innerkits/dm_lite/
H A Dscreen_manager_lite.h82 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
/foundation/window/window_manager/test/common/mock/
H A Dmock_display_manager_adapter_lite.h51 MOCK_METHOD2(SetScreenPowerForAll, bool(ScreenPowerState state, PowerStateChangeReason reason));
H A Dmock_display_manager_adapter.h70 MOCK_METHOD2(SetScreenPowerForAll, bool(ScreenPowerState state, PowerStateChangeReason reason));
/foundation/window/window_manager/dm/test/unittest/
H A Ddisplay_power_unit_test.cpp64 ScreenManager::GetInstance().SetScreenPowerForAll(initialPowerState_, PowerStateChangeReason::POWER_BUTTON); in TearDown()
237 * @tc.desc: Call SetScreenPowerForAll with valid value and check the GetScreenPower return value
244 EXPECT_CALL(m.Mock(), SetScreenPowerForAll(_, PowerStateChangeReason::POWER_BUTTON)) in HWTEST_F()
247 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF, in HWTEST_F()
/foundation/window/window_manager/test/systemtest/dms/
H A Ddisplay_power_test.cpp325 * @tc.desc: Call SetScreenPowerForAll OFF and check the OnDisplayPowerEvent callback is called
330 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF, in HWTEST_F()
341 * @tc.desc: Call SetScreenPowerForAll ON and check the OnDisplayPowerEvent callback is called
346 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_ON, in HWTEST_F()
357 * @tc.desc: Call SetScreenPowerForAll with an invalid value and check the return value
362 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::INVALID_STATE, in HWTEST_F()
400 * @tc.desc: Call SetScreenPowerForAll ON and check the GetScreenPower return value
406 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(stateToSet, PowerStateChangeReason::POWER_BUTTON); in HWTEST_F()
/foundation/window/window_manager/dm_lite/src/
H A Ddisplay_manager_adapter_lite.cpp249 bool ScreenManagerAdapterLite::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) in SetScreenPowerForAll() function in OHOS::Rosen::ScreenManagerAdapterLite
253 return displayManagerServiceProxy_->SetScreenPowerForAll(state, reason); in SetScreenPowerForAll()
H A Dscreen_manager_lite.cpp206 bool ScreenManagerLite::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) in SetScreenPowerForAll() function in OHOS::Rosen::ScreenManagerLite
209 return SingletonContainer::Get<ScreenManagerAdapterLite>().SetScreenPowerForAll(state, reason); in SetScreenPowerForAll()
/foundation/window/window_manager/dm_lite/include/
H A Ddisplay_manager_lite_proxy.h68 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
H A Ddisplay_manager_adapter_lite.h89 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dscreen_session_manager_test.cpp539 * @tc.name: SetScreenPowerForAll
540 * @tc.desc: SetScreenPowerForAll test
543 HWTEST_F(ScreenSessionManagerTest, SetScreenPowerForAll, Function | SmallTest | Level3) in HWTEST_F()
560 ASSERT_EQ(true, ssm_->SetScreenPowerForAll(state, reason)); in HWTEST_F()
563 ASSERT_EQ(true, ssm_->SetScreenPowerForAll(state, reason)); in HWTEST_F()
566 ASSERT_EQ(true, ssm_->SetScreenPowerForAll(state, reason)); in HWTEST_F()
569 ASSERT_EQ(true, ssm_->SetScreenPowerForAll(state, reason)); in HWTEST_F()
572 ASSERT_EQ(true, ssm_->SetScreenPowerForAll(state, reason)); in HWTEST_F()
576 ASSERT_EQ(true, ssm_->SetScreenPowerForAll(state, reason)); in HWTEST_F()
579 ASSERT_EQ(true, ssm_->SetScreenPowerForAll(stat in HWTEST_F()
[all...]
/foundation/window/window_manager/interfaces/innerkits/dm/
H A Dscreen_manager.h246 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
/foundation/window/window_manager/dmserver/include/
H A Ddisplay_manager_proxy.h76 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
H A Dabstract_screen_controller.h76 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason, bool needToNotify = true);
H A Ddisplay_manager_service.h84 bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;
H A Ddisplay_manager_interface.h124 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) = 0;
/foundation/window/window_manager/dmserver/test/unittest/
H A Dabstract_screen_controller_test.cpp883 HWTEST_F(AbstractScreenControllerTest, SetScreenPowerForAll, Function | SmallTest | Level3) in HWTEST_F()
885 ASSERT_EQ(false, absController_->SetScreenPowerForAll(ScreenPowerState::POWER_ON, in HWTEST_F()
893 ASSERT_EQ(false, absController_->SetScreenPowerForAll(ScreenPowerState::INVALID_STATE, in HWTEST_F()
896 ASSERT_EQ(false, absController_->SetScreenPowerForAll(ScreenPowerState::POWER_OFF, in HWTEST_F()
H A Ddisplay_manager_proxy_test.cpp713 * @tc.name: SetScreenPowerForAll
714 * @tc.desc: test DisplayManagerProxy::SetScreenPowerForAll
717 HWTEST_F(DisplayManagerProxyTest, SetScreenPowerForAll, Function | SmallTest | Level1) in HWTEST_F()
725 auto result1 = proxy1.SetScreenPowerForAll(state, reason); in HWTEST_F()
729 auto result2 = proxy1.SetScreenPowerForAll(state, reason); in HWTEST_F()
/foundation/window/window_manager/dmserver/src/
H A Ddisplay_manager_service.cpp444 bool DisplayManagerService::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) in SetScreenPowerForAll() function in OHOS::Rosen::DisplayManagerService
446 WLOGFI("[UL_POWER]SetScreenPowerForAll"); in SetScreenPowerForAll()
451 return abstractScreenController_->SetScreenPowerForAll(state, reason); in SetScreenPowerForAll()
/foundation/window/window_manager/dm/src/
H A Ddisplay_manager_adapter.cpp279 bool ScreenManagerAdapter::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) in SetScreenPowerForAll() function in OHOS::Rosen::ScreenManagerAdapter
282 return displayManagerServiceProxy_->SetScreenPowerForAll(state, reason); in SetScreenPowerForAll()
H A Dscreen_manager.cpp611 bool ScreenManager::SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) in SetScreenPowerForAll() function in OHOS::Rosen::ScreenManager
614 return SingletonContainer::Get<ScreenManagerAdapter>().SetScreenPowerForAll(state, reason); in SetScreenPowerForAll()
/foundation/window/window_manager/dm/include/
H A Ddisplay_manager_adapter.h116 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason);
/foundation/window/window_manager/test/fuzztest/dms/screenmanager_fuzzer/
H A Dscreenmanager_fuzzer.cpp84 screenManager.SetScreenPowerForAll(static_cast<ScreenPowerState>(screenPowerState), in ScreenPowerFuzzTest()
/foundation/window/window_manager/window_scene/screen_session_manager/include/zidl/
H A Dscreen_session_manager_interface.h96 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override { return false; }
H A Dscreen_session_manager_proxy.h68 virtual bool SetScreenPowerForAll(ScreenPowerState state, PowerStateChangeReason reason) override;

Completed in 23 milliseconds

12