Home
last modified time | relevance | path

Searched refs:ScreenManager (Results 1 – 20 of 20) sorted by relevance

/foundation/windowmanager/dm/test/systemtest/
Dscreen_manager_test.cpp66 class ScreenChangeListener : public ScreenManager::IScreenListener {
88 class ScreenGroupChangeListener : public ScreenManager::IScreenGroupListener {
164 std::vector<sptr<Screen>> allScreens = ScreenManager::GetInstance().GetAllScreens(); \
174 auto group = ScreenManager::GetInstance().GetScreenGroup(groupId); \
179 ScreenManager::GetInstance().RegisterScreenListener(screenListener); \
180 ScreenManager::GetInstance().RegisterScreenGroupListener(screenGroupChangeListener); \
183 auto virtualScreen = ScreenManager::GetInstance().GetScreenById(virtualScreenId); \
237 ScreenId virtualScreenId = ScreenManager::GetInstance().CreateVirtualScreen(defaultOption_);
239 ASSERT_EQ(DMError::DM_OK, ScreenManager::GetInstance().DestroyVirtualScreen(virtualScreenId));
252 ScreenId virtualScreenId = ScreenManager::GetInstance().CreateVirtualScreen(defaultOption_);
[all …]
Ddisplay_power_test.cpp327 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF,
343 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_ON,
359 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::INVALID_STATE,
393 …bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(stateToSet, PowerStateChangeReason::P…
395 ScreenPowerState stateGet = ScreenManager::GetInstance().GetScreenPower(defaultId_);
Dscreen_gamut_test.cpp38 auto screens = ScreenManager::GetInstance().GetAllScreens(); in SetUpTestCase()
Ddisplay_change_test.cpp87 defaultScreen_ = ScreenManager::GetInstance().GetScreenById(screenId); in SetUpTestCase()
/foundation/windowmanager/dm/src/
Dscreen_manager.cpp33 class ScreenManager::Impl : public RefBase {
37 static inline SingletonDelegator<ScreenManager> delegator;
62 class ScreenManager::Impl::ScreenManagerListener : public DisplayManagerAgentDefault {
142 WM_IMPLEMENT_SINGLE_INSTANCE(ScreenManager) in WM_IMPLEMENT_SINGLE_INSTANCE() argument
144 ScreenManager::ScreenManager() in WM_IMPLEMENT_SINGLE_INSTANCE()
149 ScreenManager::~ScreenManager() in ~ScreenManager()
153 ScreenManager::Impl::~Impl() in ~Impl()
168 sptr<Screen> ScreenManager::Impl::GetScreen(ScreenId screenId) in GetScreen()
179 sptr<Screen> ScreenManager::GetScreenById(ScreenId screenId) in GetScreenById()
184 sptr<ScreenGroup> ScreenManager::Impl::GetScreenGroup(ScreenId screenId) in GetScreenGroup()
[all …]
/foundation/distributedhardware/distributedscreen/services/screenservice/sourceservice/dscreenmgr/src/
Dscreen_manager_adapter.cpp52 uint64_t screenId = Rosen::ScreenManager::GetInstance().CreateVirtualScreen(option); in CreateVirtualScreen()
56 int32_t ScreenMgrAdapter::RegisterScreenGroupListener(sptr<Rosen::ScreenManager::IScreenGroupListen… in RegisterScreenGroupListener()
63 bool ret = Rosen::ScreenManager::GetInstance().RegisterScreenGroupListener(listener); in RegisterScreenGroupListener()
72 int32_t ScreenMgrAdapter::UnregisterScreenGroupListener(sptr<Rosen::ScreenManager::IScreenGroupList… in UnregisterScreenGroupListener()
79 bool ret = Rosen::ScreenManager::GetInstance().UnregisterScreenGroupListener(listener); in UnregisterScreenGroupListener()
93 Rosen::ScreenManager::GetInstance().RemoveVirtualScreenFromGroup(screenIds); in RemoveScreenFromGroup()
99 Rosen::DMError err = Rosen::ScreenManager::GetInstance().DestroyVirtualScreen(screenId); in RemoveVirtualScreen()
110 Rosen::ScreenManager::GetInstance().SetVirtualScreenSurface(screenId, surface); in SetImageSurface()
118 sptr<Rosen::Screen> screen = Rosen::ScreenManager::GetInstance().GetScreenById(screenId); in GetMapRelation()
/foundation/windowmanager/dm/test/unittest/
Dscreen_manager_test.cpp65 ScreenId id = ScreenManager::GetInstance().CreateVirtualScreen(wrongOption);
66 DMError ret = ScreenManager::GetInstance().DestroyVirtualScreen(id);
86 ScreenId id = ScreenManager::GetInstance().CreateVirtualScreen(defaultOption);
87 DMError ret = ScreenManager::GetInstance().DestroyVirtualScreen(id);
109 ScreenId vScreenId = ScreenManager::GetInstance().CreateVirtualScreen(defaultOption);
111 ScreenId expansionId = ScreenManager::GetInstance().MakeExpand(options);
113 DMError ret = ScreenManager::GetInstance().DestroyVirtualScreen(vScreenId);
127 ScreenId expansionId = ScreenManager::GetInstance().MakeExpand(options);
147 ScreenId id = ScreenManager::GetInstance().CreateVirtualScreen(defaultOption);
148 DMError surfaceRes = ScreenManager::GetInstance().SetVirtualScreenSurface(id, utils.psurface_);
[all …]
Dscreen_test.cpp56 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
72 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
88 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
103 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
118 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
133 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
148 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
163 auto screen = ScreenManager::GetInstance().GetScreenById(defaultScreenId_);
Ddisplay_power_unit_test.cpp58 initialPowerState_ = ScreenManager::GetInstance().GetScreenPower(defaultId_); in SetUp()
64ScreenManager::GetInstance().SetScreenPowerForAll(initialPowerState_, PowerStateChangeReason::POWE… in TearDown()
249 bool ret = ScreenManager::GetInstance().SetScreenPowerForAll(ScreenPowerState::POWER_OFF,
253 ScreenPowerState state = ScreenManager::GetInstance().GetScreenPower(defaultId_);
/foundation/windowmanager/interfaces/innerkits/dm/
Dscreen_manager.h27 class ScreenManager : public RefBase {
28 WM_DECLARE_SINGLE_INSTANCE_BASE(ScreenManager);
60 ScreenManager();
61 ~ScreenManager();
Dscreen_group.h32 friend class ScreenManager; variable
Dscreen.h61 friend class ScreenManager; variable
/foundation/windowmanager/snapshot/
Dsnapshot_virtual_screen.cpp39 auto defaultScreen = ScreenManager::GetInstance().GetScreenById(mainId); in InitOption()
63 ScreenId virtualScreenId = ScreenManager::GetInstance().CreateVirtualScreen(option); in main()
66 ScreenManager::GetInstance().MakeMirror(mainId, mirrorIds); in main()
94 ScreenManager::GetInstance().DestroyVirtualScreen(virtualScreenId); in main()
/foundation/windowmanager/wm/test/systemtest/
Dwindow_rotation_test.cpp38 class ScreenListener : public ScreenManager::IScreenListener {
111 ScreenManager::GetInstance().RegisterScreenListener(screenListener_); in SetUp()
121 ScreenManager::GetInstance().UnregisterScreenListener(screenListener_); in TearDown()
146 auto screen = ScreenManager::GetInstance().GetScreenById(screenId);
175 auto screen = ScreenManager::GetInstance().GetScreenById(screenId);
186 screen = ScreenManager::GetInstance().GetScreenById(screenId);
212 auto screen = ScreenManager::GetInstance().GetAllScreens()[0];
231 auto defaultScreen = ScreenManager::GetInstance().GetScreenById(defaultScreenId);
245 auto screen = ScreenManager::GetInstance().GetScreenById(screenId);
256 screen = ScreenManager::GetInstance().GetScreenById(screenId);
/foundation/distributedhardware/distributedscreen/services/screenservice/sourceservice/dscreenmgr/include/
Dscreen_manager_adapter.h35 int32_t RegisterScreenGroupListener(sptr<Rosen::ScreenManager::IScreenGroupListener> listener);
36 … int32_t UnregisterScreenGroupListener(sptr<Rosen::ScreenManager::IScreenGroupListener> listener);
Ddscreen_manager.h39 class DScreenGroupListener : public Rosen::ScreenManager::IScreenGroupListener {
/foundation/distributedhardware/distributedscreen/screenhandler/src/
Ddscreen_handler.cpp42 Rosen::ScreenManager::GetInstance().UnregisterScreenListener(screenListener_); in ~DScreenHandler()
51 bool ret = Rosen::ScreenManager::GetInstance().RegisterScreenListener(screenListener_); in Initialize()
64 sptr<Rosen::Screen> screen = Rosen::ScreenManager::GetInstance().GetScreenById(screenId); in OnConnect()
109 std::vector<sptr<Rosen::Screen>> screens = Rosen::ScreenManager::GetInstance().GetAllScreens(); in Query()
/foundation/windowmanager/interfaces/kits/napi/display_runtime/napi/
Djs_screen_manager.cpp91 … std::vector<sptr<Screen>> screens = SingletonContainer::Get<ScreenManager>().GetAllScreens(); in OnGetAllScreen()
148 SingletonContainer::Get<ScreenManager>().RegisterScreenListener(screenListener); in RegisterScreenListenerWithType()
169 sptr<ScreenManager::IScreenListener> thisListener(it->second); in UnregisterAllScreenListenerWithType()
170 SingletonContainer::Get<ScreenManager>().UnregisterScreenListener(thisListener); in UnregisterAllScreenListenerWithType()
189 sptr<ScreenManager::IScreenListener> thisListener(it->second); in UnRegisterScreenListenerWithType()
190 SingletonContainer::Get<ScreenManager>().UnregisterScreenListener(thisListener); in UnRegisterScreenListenerWithType()
292 … ScreenId id = SingletonContainer::Get<ScreenManager>().MakeMirror(mainScreenId, screenIds); in OnMakeMirror()
337 ScreenId id = SingletonContainer::Get<ScreenManager>().MakeExpand(options); in OnMakeExpand()
Djs_screen_listener.h27 class JsScreenListener : public ScreenManager::IScreenListener {
/foundation/distributedhardware/distributedscreen/screenhandler/include/
Ddscreen_handler.h26 class ScreenListener : public Rosen::ScreenManager::IScreenListener {