/foundation/window/window_manager/window_scene/screen_session_manager_client/src/ |
H A D | screen_session_manager_client.cpp | 120 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_CLIENT); in OnScreenConnectionChanged() local 123 screenSessionMap_.emplace(screenId, screenSession); in OnScreenConnectionChanged() 125 screenSession->SetIsExtend(isExtend); in OnScreenConnectionChanged() 127 screenConnectionListener_->OnScreenConnected(screenSession); in OnScreenConnectionChanged() 130 screenSession->SetScreenSceneDpi(config.property.GetDensity()); in OnScreenConnectionChanged() 132 screenSession->Connect(); in OnScreenConnectionChanged() 136 auto screenSession = GetScreenSession(screenId); in OnScreenConnectionChanged() local 137 if (!screenSession) { in OnScreenConnectionChanged() 138 WLOGFE("screenSession is null"); in OnScreenConnectionChanged() 141 screenSession in OnScreenConnectionChanged() 153 auto screenSession = GetScreenSession(mainScreenId); OnScreenExtendChanged() local 176 auto screenSession = GetScreenSession(screenId); OnPropertyChanged() local 192 auto screenSession = screenSessionMap_.begin()->second; OnPowerStatusChanged() local 202 auto screenSession = GetScreenSession(screenId); OnSensorRotationChanged() local 212 auto screenSession = GetScreenSession(screenId); OnHoverStatusChanged() local 222 auto screenSession = GetScreenSession(screenId); OnScreenOrientationChanged() local 232 auto screenSession = GetScreenSession(screenId); OnScreenRotationLockedChanged() local 317 auto screenSession = GetScreenSession(screenId); UpdateScreenRotationProperty() local 330 auto screenSession = GetScreenSession(screenId); SetDisplayNodeScreenId() local 452 sptr<ScreenSession> screenSession = iter.second; SwitchUserCallback() local 488 auto screenSession = GetScreenSession(screenId); GetScreenSnapshot() local 536 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetVirtualPixelRatioSystem() local [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_session_test.cpp | 59 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_CLIENT); in HWTEST_F() local 60 EXPECT_NE(nullptr, screenSession); in HWTEST_F() 75 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); in HWTEST_F() local 76 EXPECT_NE(nullptr, screenSession); in HWTEST_F() 91 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_MIRROR); in HWTEST_F() local 92 EXPECT_NE(nullptr, screenSession); in HWTEST_F() 107 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_REAL); in HWTEST_F() local 108 EXPECT_NE(nullptr, screenSession); in HWTEST_F() 123 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::INVALID); in HWTEST_F() local 124 EXPECT_NE(nullptr, screenSession); in HWTEST_F() 143 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 165 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 185 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 207 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 227 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 247 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 267 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 289 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 310 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 354 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 374 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 396 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 423 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 447 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 471 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 491 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 511 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 531 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 551 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 578 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 604 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 628 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 656 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 677 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 698 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 723 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 748 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 776 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 801 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 826 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 847 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 869 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 891 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 912 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 936 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 956 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 978 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 998 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 1018 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local 2227 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_VIRTUAL); HWTEST_F() local [all...] |
H A D | multi_screen_manager_test.cpp | 266 * @tc.desc: screenSession != nullptr 284 * @tc.desc: screenSession != nullptr 302 * @tc.desc: screenSession != nullptr 325 sptr<ScreenSession> screenSession =new ScreenSession(); in HWTEST_F() local 327 DMError ret = MultiScreenManager::GetInstance().VirtualScreenUniqueSwitch(screenSession, screenIds); in HWTEST_F() 338 sptr<ScreenSession> screenSession =nullptr; in HWTEST_F() local 340 DMError ret = MultiScreenManager::GetInstance().VirtualScreenUniqueSwitch(screenSession, screenIds); in HWTEST_F() 351 sptr<ScreenSession> screenSession =nullptr; in HWTEST_F() local 353 DMError ret = MultiScreenManager::GetInstance().VirtualScreenUniqueSwitch(screenSession, screenIds); in HWTEST_F() 364 sptr<ScreenSession> screenSession in HWTEST_F() local 377 sptr<ScreenSession> screenSession =nullptr; HWTEST_F() local 390 sptr<ScreenSession> screenSession =nullptr; HWTEST_F() local 403 sptr<ScreenSession> screenSession =nullptr; HWTEST_F() local 416 sptr<ScreenSession> screenSession =nullptr; HWTEST_F() local 429 sptr<ScreenSession> screenSession =nullptr; HWTEST_F() local 442 sptr<ScreenSession> screenSession =nullptr; HWTEST_F() local 455 sptr<ScreenSession> screenSession = new ScreenSession(); HWTEST_F() local 468 sptr<ScreenSession> screenSession = new ScreenSession(); HWTEST_F() local [all...] |
H A D | screen_session_manager_test.cpp | 907 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); in HWTEST_F() local 908 ssm_->screenSessionMap_[id] = screenSession; in HWTEST_F() 921 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); in HWTEST_F() local 922 ssm_->screenSessionMap_[id] = screenSession; in HWTEST_F() 936 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); in HWTEST_F() local 937 ssm_->screenSessionMap_[id] = screenSession; in HWTEST_F() 950 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); in HWTEST_F() local 951 ssm_->screenSessionMap_[id] = screenSession; in HWTEST_F() 967 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); in HWTEST_F() local 968 ssm_->screenSessionMap_[id] = screenSession; in HWTEST_F() 1056 sptr<ScreenSession> screenSession = HWTEST_F() local 1078 sptr<ScreenSession> screenSession = HWTEST_F() local 1099 sptr<ScreenSession> screenSession = HWTEST_F() local 1122 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession("GetDefaultDisplayInfo", screenId, rsid, 0); HWTEST_F() local 1356 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(screenId, ScreenProperty(), 0); HWTEST_F() local 1376 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 1413 sptr<ScreenSession> screenSession = HWTEST_F() local 1535 sptr<ScreenSession> screenSession = nullptr; HWTEST_F() local 1583 sptr<ScreenSession> screenSession =new (std::nothrow) ScreenSession(); HWTEST_F() local 1619 sptr<ScreenSession> screenSession; HWTEST_F() local 1646 sptr<ScreenSession> screenSession =new (std::nothrow) ScreenSession(); HWTEST_F() local 1707 sptr<ScreenSession> screenSession =new (std::nothrow) ScreenSession(); HWTEST_F() local 1727 sptr<ScreenSession> screenSession =new (std::nothrow) ScreenSession(); HWTEST_F() local 1746 sptr<ScreenSession> screenSession =new (std::nothrow) ScreenSession(); HWTEST_F() local 1764 sptr<ScreenSession> screenSession = HWTEST_F() local 1806 sptr<ScreenSession> screenSession =new (std::nothrow) ScreenSession(); HWTEST_F() local 1823 sptr<ScreenSession> screenSession = HWTEST_F() local 1845 sptr<ScreenSession> screenSession = HWTEST_F() local 1862 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 1890 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(); HWTEST_F() local 2009 sptr<ScreenSession> screenSession = new ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2026 sptr<ScreenSession> screenSession = new ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2043 sptr<ScreenSession> screenSession = new ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2056 sptr<ScreenSession> screenSession = new ScreenSession(); HWTEST_F() local 2071 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2088 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2105 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2121 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2137 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2153 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2169 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2185 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2201 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2217 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2233 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2249 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2274 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(id, ScreenProperty(), 0); HWTEST_F() local 2384 sptr<ScreenSession> screenSession = new ScreenSession(); HWTEST_F() local 2628 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(screenId, ScreenProperty(), 0); HWTEST_F() local 2645 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(screenId, ScreenProperty(), 0); HWTEST_F() local 2731 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(screenId, ScreenProperty(), 0); HWTEST_F() local 2759 sptr<ScreenSession> screenSession = new (std::nothrow) ScreenSession(screenId, ScreenProperty(), 0); HWTEST_F() local [all...] |
H A D | screen_rotation_property_test.cpp | 70 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in HWTEST_F() local 71 ASSERT_EQ(screenSession, nullptr); in HWTEST_F() 86 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in HWTEST_F() local 87 ASSERT_EQ(screenSession, nullptr); in HWTEST_F()
|
H A D | single_display_fold_policy_test.cpp | 291 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 294 policy.ChangeScreenDisplayModeToMain(screenSession); in HWTEST_F() 297 policy.ChangeScreenDisplayModeToMain(screenSession); in HWTEST_F() 311 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 314 policy.ChangeScreenDisplayModeToFull(screenSession); in HWTEST_F() 317 policy.ChangeScreenDisplayModeToFull(screenSession); in HWTEST_F() 344 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 348 policy.SendPropertyChangeResult(screenSession, screenId, reason); in HWTEST_F() 362 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 364 policy.ChangeScreenDisplayModeToMainOnBootAnimation(screenSession); in HWTEST_F() 378 sptr<ScreenSession> screenSession = new ScreenSession; HWTEST_F() local 394 sptr<ScreenSession> screenSession = new ScreenSession; HWTEST_F() local 411 sptr<ScreenSession> screenSession = new ScreenSession; HWTEST_F() local 428 sptr<ScreenSession> screenSession = new ScreenSession; HWTEST_F() local [all...] |
H A D | screen_session_manager_client_test.cpp | 95 sptr<ScreenSession> screenSession = nullptr; in HWTEST_F() local 96 screenSession = screenSessionManagerClient_->GetScreenSession(screenId); in HWTEST_F() 97 EXPECT_EQ(screenSession, nullptr); in HWTEST_F() 99 screenSession = new ScreenSession(0, ScreenProperty(), 0); in HWTEST_F() 100 screenSessionManagerClient_->screenSessionMap_.emplace(screenId, screenSession); in HWTEST_F() 103 EXPECT_EQ(screenSession2, screenSession); in HWTEST_F() 106 screenSession = screenSessionManagerClient_->GetScreenSession(screenId); in HWTEST_F() 107 EXPECT_EQ(screenSession, nullptr); in HWTEST_F() 127 sptr<ScreenSession> screenSession = screenSessionManagerClient_->GetScreenSession(screenId); in HWTEST_F() local 128 EXPECT_NE(screenSession, nullpt in HWTEST_F() 145 sptr<ScreenSession> screenSession = screenSessionManagerClient_->GetScreenSession(screenId); HWTEST_F() local 260 sptr<ScreenSession> screenSession = new ScreenSession(0, ScreenProperty(), 0); HWTEST_F() local 280 sptr<ScreenSession> screenSession = new ScreenSession(screenId, ScreenProperty(), 0); HWTEST_F() local 411 sptr<ScreenSession> screenSession = new ScreenSession(0, ScreenProperty(), 0); HWTEST_F() local 1056 sptr<ScreenSession> screenSession = nullptr; HWTEST_F() local 1205 sptr<ScreenSession> screenSession = new ScreenSession(0, ScreenProperty(), 0); HWTEST_F() local 1225 sptr<ScreenSession> screenSession = new ScreenSession(screenId, ScreenProperty(), 0); HWTEST_F() local 1266 sptr<ScreenSession> screenSession = new ScreenSession(0, ScreenProperty(), 0); HWTEST_F() local [all...] |
H A D | dual_display_fold_policy_test.cpp | 217 sptr<ScreenSession> screenSession = new ScreenSession(); in HWTEST_F() local 220 dualDisplayFoldPolicy.ChangeScreenDisplayModeInner(screenSession, offScreenId, onScreenId); in HWTEST_F() 321 sptr<ScreenSession> screenSession = new ScreenSession(); in HWTEST_F() local 325 dualDisplayFoldPolicy.ChangeScreenDisplayModeOnBootAnimation(screenSession, screenId); in HWTEST_F() 338 sptr<ScreenSession> screenSession = new ScreenSession(); in HWTEST_F() local 342 dualDisplayFoldPolicy.ChangeScreenDisplayModeOnBootAnimation(screenSession, screenId); in HWTEST_F() 355 sptr<ScreenSession> screenSession = new ScreenSession(); in HWTEST_F() local 372 sptr<ScreenSession> screenSession = new ScreenSession(); in HWTEST_F() local 387 sptr<ScreenSession> screenSession = new ScreenSession(); in HWTEST_F() local 402 sptr<ScreenSession> screenSession in HWTEST_F() local 417 sptr<ScreenSession> screenSession = new ScreenSession(); HWTEST_F() local 432 sptr<ScreenSession> screenSession = new ScreenSession(); HWTEST_F() local 447 sptr<ScreenSession> screenSession = new ScreenSession(); HWTEST_F() local [all...] |
H A D | single_display_pocket_fold_policy_test.cpp | 296 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 299 policy.ChangeScreenDisplayModeToMain(screenSession); in HWTEST_F() 302 policy.ChangeScreenDisplayModeToMain(screenSession); in HWTEST_F() 316 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 319 policy.ChangeScreenDisplayModeToFull(screenSession); in HWTEST_F() 322 policy.ChangeScreenDisplayModeToFull(screenSession); in HWTEST_F() 349 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 353 policy.SendPropertyChangeResult(screenSession, screenId, reason); in HWTEST_F() 367 sptr<ScreenSession> screenSession = new ScreenSession; in HWTEST_F() local 369 policy.ChangeScreenDisplayModeToMainOnBootAnimation(screenSession); in HWTEST_F() 383 sptr<ScreenSession> screenSession = new ScreenSession; HWTEST_F() local 431 sptr<ScreenSession> screenSession = new ScreenSession; HWTEST_F() local [all...] |
/foundation/window/window_manager/window_scene/screen_session_manager/src/fold_screen_controller/ |
H A D | single_display_pocket_fold_policy.cpp | 96 sptr<ScreenSession> screenSession = ScreenSessionManager::GetInstance().GetScreenSession(SCREEN_ID_FULL); in ChangeScreenDisplayMode() local 97 if (screenSession == nullptr) { in ChangeScreenDisplayMode() 98 TLOGE(WmsLogTag::DMS, "default screenSession is null"); in ChangeScreenDisplayMode() 111 ChangeScreenDisplayModeProc(screenSession, displayMode); in ChangeScreenDisplayMode() 120 void SingleDisplayPocketFoldPolicy::ChangeScreenDisplayModeProc(sptr<ScreenSession> screenSession, in ChangeScreenDisplayModeProc() argument 128 ChangeScreenDisplayModeToMain(screenSession); in ChangeScreenDisplayModeProc() 135 ChangeScreenDisplayModeToFull(screenSession); in ChangeScreenDisplayModeProc() 259 void SingleDisplayPocketFoldPolicy::ChangeScreenDisplayModeToMainWhenFoldScreenOn(sptr<ScreenSession> screenSession) in ChangeScreenDisplayModeToMainWhenFoldScreenOn() argument 279 SendPropertyChangeResult(screenSession, SCREEN_ID_MAIN, ScreenPropertyChangeReason::FOLD_SCREEN_FOLDING); in ChangeScreenDisplayModeToMainWhenFoldScreenOn() 282 void SingleDisplayPocketFoldPolicy::ChangeScreenDisplayModeToMainWhenFoldScreenOff(sptr<ScreenSession> screenSession) in ChangeScreenDisplayModeToMainWhenFoldScreenOff() argument 310 ChangeScreenDisplayModeToMain(sptr<ScreenSession> screenSession) ChangeScreenDisplayModeToMain() argument 327 ChangeScreenDisplayModeToFull(sptr<ScreenSession> screenSession) ChangeScreenDisplayModeToFull() argument 384 SendPropertyChangeResult(sptr<ScreenSession> screenSession, ScreenId screenId, ScreenPropertyChangeReason reason) SendPropertyChangeResult() argument 399 ChangeScreenDisplayModeToMainOnBootAnimation(sptr<ScreenSession> screenSession) ChangeScreenDisplayModeToMainOnBootAnimation() argument 412 ChangeScreenDisplayModeToFullOnBootAnimation(sptr<ScreenSession> screenSession) ChangeScreenDisplayModeToFullOnBootAnimation() argument 469 sptr<ScreenSession> screenSession = ScreenSessionManager::GetInstance().GetScreenSession(screenId); AddOrRemoveDisplayNodeToTree() local [all...] |
H A D | single_display_fold_policy.cpp | 93 sptr<ScreenSession> screenSession = ScreenSessionManager::GetInstance().GetScreenSession(SCREEN_ID_FULL); in ChangeScreenDisplayMode() local 94 if (screenSession == nullptr) { in ChangeScreenDisplayMode() 95 TLOGE(WmsLogTag::DMS, "default screenSession is null"); in ChangeScreenDisplayMode() 112 ChangeScreenDisplayModeToMain(screenSession); in ChangeScreenDisplayMode() 116 ChangeScreenDisplayModeToFull(screenSession); in ChangeScreenDisplayMode() 235 void SingleDisplayFoldPolicy::ChangeScreenDisplayModeToMain(sptr<ScreenSession> screenSession) in ChangeScreenDisplayModeToMain() argument 238 ChangeScreenDisplayModeToMainOnBootAnimation(screenSession); in ChangeScreenDisplayModeToMain() 263 SendPropertyChangeResult(screenSession, SCREEN_ID_MAIN, ScreenPropertyChangeReason::FOLD_SCREEN_FOLDING); in ChangeScreenDisplayModeToMain() 274 SendPropertyChangeResult(screenSession, SCREEN_ID_MAIN, ScreenPropertyChangeReason::FOLD_SCREEN_FOLDING); in ChangeScreenDisplayModeToMain() 287 void SingleDisplayFoldPolicy::ChangeScreenDisplayModeToFull(sptr<ScreenSession> screenSession) in ChangeScreenDisplayModeToFull() argument 343 SendPropertyChangeResult(sptr<ScreenSession> screenSession, ScreenId screenId, ScreenPropertyChangeReason reason) SendPropertyChangeResult() argument 358 ChangeScreenDisplayModeToMainOnBootAnimation(sptr<ScreenSession> screenSession) ChangeScreenDisplayModeToMainOnBootAnimation() argument 371 ChangeScreenDisplayModeToFullOnBootAnimation(sptr<ScreenSession> screenSession) ChangeScreenDisplayModeToFullOnBootAnimation() argument [all...] |
H A D | dual_display_fold_policy.cpp | 119 sptr<ScreenSession> screenSession = ScreenSessionManager::GetInstance().GetScreenSession(screenId); in ChangeScreenDisplayMode() local 120 if (screenSession == nullptr) { in ChangeScreenDisplayMode() 121 TLOGE(WmsLogTag::DMS, "default screenSession is null"); in ChangeScreenDisplayMode() 134 ChangeScreenDisplayModeProc(screenSession, displayMode); in ChangeScreenDisplayMode() 146 void DualDisplayFoldPolicy::ChangeScreenDisplayModeProc(sptr<ScreenSession> screenSession, in ChangeScreenDisplayModeProc() argument 151 ChangeScreenDisplayModeInner(screenSession, SCREEN_ID_MAIN, SCREEN_ID_SUB); in ChangeScreenDisplayModeProc() 155 ChangeScreenDisplayModeInner(screenSession, SCREEN_ID_SUB, SCREEN_ID_MAIN); in ChangeScreenDisplayModeProc() 217 sptr<ScreenSession> screenSession = nullptr; in TriggerScreenDisplayModeUpdate() local 219 screenSession = ScreenSessionManager::GetInstance().GetScreenSession(SCREEN_ID_SUB); in TriggerScreenDisplayModeUpdate() 221 screenSession in TriggerScreenDisplayModeUpdate() 308 ChangeScreenDisplayModeInner(sptr<ScreenSession> screenSession, ScreenId offScreenId, ScreenId onScreenId) ChangeScreenDisplayModeInner() argument 395 ChangeScreenDisplayModeOnBootAnimation(sptr<ScreenSession> screenSession, ScreenId screenId) ChangeScreenDisplayModeOnBootAnimation() argument 419 sptr<ScreenSession> screenSession = ScreenSessionManager::GetInstance().GetScreenSession(screenId); AddOrRemoveDisplayNodeToTree() local [all...] |
/foundation/window/window_manager/window_scene/screen_session_manager/include/fold_screen_controller/ |
H A D | single_display_pocket_fold_policy.h | 41 void ChangeScreenDisplayModeToMain(sptr<ScreenSession> screenSession); 42 void ChangeScreenDisplayModeToFull(sptr<ScreenSession> screenSession); 44 void ChangeScreenDisplayModeProc(sptr<ScreenSession> screenSession, FoldDisplayMode displayMode); 45 void ChangeScreenDisplayModeToMainWhenFoldScreenOn(sptr<ScreenSession> screenSession); 46 void ChangeScreenDisplayModeToMainWhenFoldScreenOff(sptr<ScreenSession> screenSession); 47 void ChangeScreenDisplayModeToMainOnBootAnimation(sptr<ScreenSession> screenSession); 48 void ChangeScreenDisplayModeToFullOnBootAnimation(sptr<ScreenSession> screenSession); 54 void SendPropertyChangeResult(sptr<ScreenSession> screenSession, ScreenId screenId,
|
H A D | single_display_fold_policy.h | 40 void ChangeScreenDisplayModeToMain(sptr<ScreenSession> screenSession); 41 void ChangeScreenDisplayModeToFull(sptr<ScreenSession> screenSession); 42 void ChangeScreenDisplayModeToMainOnBootAnimation(sptr<ScreenSession> screenSession); 43 void ChangeScreenDisplayModeToFullOnBootAnimation(sptr<ScreenSession> screenSession); 49 void SendPropertyChangeResult(sptr<ScreenSession> screenSession, ScreenId screenId,
|
H A D | dual_display_fold_policy.h | 42 void ChangeScreenDisplayModeInner(sptr<ScreenSession> screenSession, ScreenId offScreenId, ScreenId onScreenId); 43 void ChangeScreenDisplayModeOnBootAnimation(sptr<ScreenSession> screenSession, ScreenId screenId); 45 void ChangeScreenDisplayModeProc(sptr<ScreenSession> screenSession, FoldDisplayMode displayMode);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/screen/ |
H A D | screen_model.cpp | 27 auto screenSession = Rosen::ScreenSessionManagerClient::GetInstance().GetScreenSession(screenId); in Create() local 28 if (screenSession == nullptr) { in Create() 29 LOGE("screenSession is nullptr"); in Create() 35 ACE_SCOPED_TRACE("Create[%s][self:%d][%" PRIu64 "]", V2::SCREEN_ETS_TAG, nodeId, screenSession->GetScreenId()); in Create() 37 [&screenSession]() { return AceType::MakeRefPtr<ScreenPattern>(screenSession); }); in Create()
|
H A D | screen_node.cpp | 27 auto screenSession = pattern->GetScreenSession(); in TouchTest() local 28 CHECK_NULL_RETURN(screenSession, testResult); in TouchTest() 30 if (screenSession->GetScreenId() != targetDisplayId) { in TouchTest()
|
/foundation/window/window_manager/window_scene/screen_session_manager/src/ |
H A D | screen_rotation_property.cpp | 30 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in HandleSensorEventInput() local 31 if (!screenSession) { in HandleSensorEventInput() 32 TLOGW(WmsLogTag::DMS, "screenSession is null, sensor rotation status handle failed"); in HandleSensorEventInput() 35 screenSession->HandleSensorRotation(ConvertDeviceToFloat(deviceRotation)); in HandleSensorEventInput() 72 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in HandleHoverStatusEventInput() local 73 if (!screenSession) { in HandleHoverStatusEventInput() 74 TLOGW(WmsLogTag::DMS, "screenSession is null, sensor rotation status handle failed"); in HandleHoverStatusEventInput() 77 screenSession->HandleHoverStatusChange(static_cast<int32_t>(hoverStatus)); in HandleHoverStatusEventInput()
|
H A D | screen_session_manager.cpp | 540 auto screenSession = GetScreenSession(screenId); in OnVirtualScreenChange() local 541 if (!screenSession) { in OnVirtualScreenChange() 542 TLOGE(WmsLogTag::DMS, "screenSession is nullptr"); in OnVirtualScreenChange() 548 screenSession->GetRSScreenId(), screenSession->GetName(), screenSession->GetIsExtend()); in OnVirtualScreenChange() 555 screenSession->GetRSScreenId(), screenSession->GetName(), screenSession->GetIsExtend()); in OnVirtualScreenChange() 597 auto screenSession in OnScreenChange() local 669 IsScreenRestored(sptr<ScreenSession> screenSession) IsScreenRestored() argument 754 RecoverMultiScreenInfoFromData(sptr<ScreenSession> screenSession) RecoverMultiScreenInfoFromData() argument 781 HandleScreenConnectEvent(sptr<ScreenSession> screenSession, ScreenId screenId, ScreenEvent screenEvent) HandleScreenConnectEvent() argument 813 HandleScreenDisconnectEvent(sptr<ScreenSession> screenSession, ScreenId screenId, ScreenEvent screenEvent) HandleScreenDisconnectEvent() argument 852 sptr<ScreenSession> screenSession = GetScreenSession(defaultScreenId_); OnHgmRefreshRateChange() local 883 HookDisplayInfoByUid(sptr<DisplayInfo> displayInfo, const sptr<ScreenSession>& screenSession) HookDisplayInfoByUid() argument 923 sptr<ScreenSession> screenSession = GetScreenSession(defaultScreenId_); GetDefaultDisplayInfo() local 946 auto screenSession = sessionIt.second; GetDisplayInfoById() local 972 auto screenSession = sessionIt.second; GetDisplayInfoByScreen() local 997 auto screenSession = sessionIt.second; GetAllDisplayIds() local 1022 auto screenSession = GetScreenSession(screenId); GetScreenInfoById() local 1042 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetScreenActiveMode() local 1139 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetVirtualPixelRatio() local 1195 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetResolution() local 1234 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetDensityInCurResolution() local 1251 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetScreenColorGamut() local 1272 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetScreenColorGamut() local 1287 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetScreenGamutMap() local 1308 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetScreenGamutMap() local 1328 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetScreenColorTransform() local 1339 sptr<ScreenSession> screenSession = nullptr; CreatePhysicalMirrorSessionInner() local 1396 sptr<ScreenSession> screenSession = nullptr; GetScreenSessionInner() local 1485 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetOrCreateScreenSession() local 1678 auto screenSession = sessionIt.second; GetInternalScreenId() local 1709 auto screenSession = sessionIt.second; SetScreenPowerById() local 1760 auto screenSession = sessionIt.second; SetMultiScreenStatus() local 1834 sptr<ScreenSession> screenSession = GetScreenSession(screenId); UpdateDisplayState() local 2280 const auto& screenSession = sessionIt.second; SetDpiFromSettingData() local 2391 sptr<ScreenSession> screenSession = GetDefaultScreenSession(); IsScreenRotationLocked() local 2408 sptr<ScreenSession> screenSession = GetDefaultScreenSession(); SetScreenRotationLocked() local 2425 sptr<ScreenSession> screenSession = GetDefaultScreenSession(); SetScreenRotationLockedFromJs() local 2435 NotifyAndPublishEvent(sptr<DisplayInfo> displayInfo, ScreenId screenId, sptr<ScreenSession> screenSession) NotifyAndPublishEvent() argument 2461 sptr<ScreenSession> screenSession = GetScreenSession(screenId); UpdateScreenRotationProperty() local 2545 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetOrientation() local 2561 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetRotation() local 2691 sptr<ScreenSession> screenSession = GetScreenSession(screenId); NotifyDisplayPowerEvent() local 2770 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetPixelFormat() local 2790 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetPixelFormat() local 2820 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetScreenHDRFormat() local 2839 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetScreenHDRFormat() local 2854 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetSupportedColorSpaces() local 2869 sptr<ScreenSession> screenSession = GetScreenSession(screenId); GetScreenColorSpace() local 2889 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetScreenColorSpace() local 2948 auto screenSession = InitVirtualScreen(smsScreenId, rsId, option); CreateVirtualScreen() local 2987 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetVirtualScreenSurface() local 3015 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetVirtualMirrorScreenScaleMode() local 3040 sptr<ScreenSession> screenSession = GetScreenSession(screenId); SetVirtualMirrorScreenCanvasRotation() local 3070 sptr<ScreenSession> screenSession = GetScreenSession(screenId); ResizeVirtualScreen() local 3365 auto screenSession = GetScreenSession(screenId); SetVirtualScreenRefreshRate() local 3440 auto screenSession = GetScreenSession(screenId); MakeUniqueScreen() local 3650 sptr<ScreenSession> screenSession = InitVirtualScreen() local 3674 InitAbstractScreenModesInfo(sptr<ScreenSession>& screenSession) InitAbstractScreenModesInfo() argument 3722 sptr<ScreenSession> screenSession = InitAndGetScreen() local 4041 auto screenSession = sessionIt.second; GetScreenSnapshot() local 4135 auto screenSession = GetScreenSession(screenId); GetSnapshotByPicker() local 4345 auto screenSession = GetScreenSession(id); SetScreenPrivacyState() local 4368 auto screenSession = GetScreenSession(id); SetPrivacyStateByDisplayId() local 4391 auto screenSession = GetScreenSession(id); SetScreenPrivacyWindowList() local 4424 auto screenSession = GetScreenSession(id); HasPrivateWindow() local 4530 SetDisplayBoundary(const sptr<ScreenSession> screenSession) SetDisplayBoundary() argument 4576 auto screenSession = sessionIt.second; DumpAllScreensInfo() local 4958 sptr<ScreenSession> screenSession = GetDefaultScreenSession(); NotifyFoldStatusChanged() local 5211 sptr<ScreenSession> screenSession = GetDefaultScreenSession(); ScbStatusRecoveryWhenSwitchUser() local 5391 auto screenSession = GetScreenSession(screenId); GetScreenProperty() local 5402 auto screenSession = GetScreenSession(screenId); GetDisplayNode() local 5479 auto screenSession = GetScreenSession(displayInfo->GetScreenId()); GetAvailableArea() local 5495 auto screenSession = GetScreenSession(screenId); UpdateAvailableArea() local 5521 sptr<ScreenSession> screenSession = GetDefaultScreenSession(); NotifyFoldToExpandCompletion() local 5568 sptr<ScreenSession> screenSession = GetScreenSession(GetDefaultScreenId()); ProxyForFreeze() local 5579 NotifyUnfreezedAgents(const int32_t& pid, const std::set<int32_t>& unfreezedPidList, const std::set<DisplayManagerAgentType>& pidAgentTypes, const sptr<ScreenSession>& screenSession) NotifyUnfreezedAgents() argument 5621 NotifyUnfreezed(const std::set<int32_t>& unfreezedPidList, const sptr<ScreenSession>& screenSession) NotifyUnfreezed() argument 5865 auto screenSession = sessionIt.second; MultiScreenModeChange() local 5962 auto screenSession = GetScreenSession(id); SetVirtualScreenMaxRefreshRate() local [all...] |
H A D | screen_session_dumper.cpp | 285 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(id); in DumpScreenSessionById() local 286 if (screenSession == nullptr) { in DumpScreenSessionById() 287 TLOGE(WmsLogTag::DMS, "screenSession nullptr. screen id: %{public}" PRIu64"", id); in DumpScreenSessionById() 291 << screenSession->GetName() << std::endl; in DumpScreenSessionById() 293 << screenSession->GetRSScreenId() << std::endl; in DumpScreenSessionById() 294 sptr<SupportedScreenModes> activeModes = screenSession->GetActiveScreenMode(); in DumpScreenSessionById() 301 << static_cast<int32_t>(screenSession->GetSourceMode()) << std::endl; in DumpScreenSessionById() 303 << static_cast<int32_t>(screenSession->GetScreenCombination()) << std::endl; in DumpScreenSessionById() 305 << static_cast<int32_t>(screenSession->GetOrientation()) << std::endl; in DumpScreenSessionById() 307 << static_cast<int32_t>(screenSession in DumpScreenSessionById() 319 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(id); DumpRsInfoById() local 358 DumpRsInfoById01(sptr<ScreenSession> screenSession) DumpRsInfoById01() argument 660 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); SetHoverStatusChange() local [all...] |
H A D | multi_screen_manager.cpp | 48 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(screenId); in FilterPhysicalAndVirtualScreen() local 49 if (screenSession == nullptr) { in FilterPhysicalAndVirtualScreen() 52 if (screenSession->GetScreenId() == defaultScreenId) { in FilterPhysicalAndVirtualScreen() 55 if (screenSession->GetMirrorScreenType() == MirrorScreenType::PHYSICAL_MIRROR) { in FilterPhysicalAndVirtualScreen() 57 } else if (screenSession->GetMirrorScreenType() == MirrorScreenType::VIRTUAL_MIRROR) { in FilterPhysicalAndVirtualScreen() 104 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(physicalScreenId); in PhysicalScreenMirrorSwitch() local 105 if (screenSession == nullptr) { in PhysicalScreenMirrorSwitch() 109 std::shared_ptr<RSDisplayNode> displayNode = screenSession->GetDisplayNode(); in PhysicalScreenMirrorSwitch() 113 screenSession->ReleaseDisplayNode(); in PhysicalScreenMirrorSwitch() 114 RSDisplayNodeConfig config = { screenSession in PhysicalScreenMirrorSwitch() 128 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(physicalScreenId); PhysicalScreenUniqueSwitch() local 147 VirtualScreenUniqueSwitch(sptr<ScreenSession> screenSession, const std::vector<ScreenId>& screenIds) VirtualScreenUniqueSwitch() argument [all...] |
/foundation/window/window_manager/window_scene/interfaces/kits/napi/screen_session_manager/ |
H A D | js_screen_session.cpp | 44 napi_value JsScreenSession::Create(napi_env env, const sptr<ScreenSession>& screenSession) in Create() argument 54 auto jsScreenSession = std::make_unique<JsScreenSession>(env, screenSession); in Create() 57 CreateJsValue(env, static_cast<int64_t>(screenSession->GetScreenId()))); in Create() 59 CreateJsValue(env, static_cast<std::string>(screenSession->GetName()))); in Create() 60 napi_set_named_property(env, objValue, "isExtend", CreateJsValue(env, screenSession->GetIsExtend())); in Create() 78 JsScreenSession::JsScreenSession(napi_env env, const sptr<ScreenSession>& screenSession) in JsScreenSession() argument 79 : env_(env), screenSession_(screenSession) in JsScreenSession() 87 WLOGFE("[NAPI]screenScene or screenSession is nullptr"); in JsScreenSession() 344 auto screenSession = screenSessionWeak.promote(); in CallJsCallback() 345 if (screenSession in CallJsCallback() [all...] |
H A D | js_screen_session.h | 29 JsScreenSession(napi_env env, const sptr<ScreenSession>& screenSession); 32 static napi_value Create(napi_env env, const sptr<ScreenSession>& screenSession);
|
H A D | js_screen_session_manager.h | 39 void OnScreenConnected(const sptr<ScreenSession>& screenSession) override; 40 void OnScreenDisconnected(const sptr<ScreenSession>& screenSession) override;
|
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scene_session_dirty_manager_test2.cpp | 406 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_CLIENT); in HWTEST_F() local 407 ScreenSessionManagerClient::GetInstance().screenSessionMap_.insert(std::make_pair(screenId, screenSession)); in HWTEST_F() 443 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_CLIENT); in HWTEST_F() local 444 // set screenSession touchenable_ true in HWTEST_F() 445 screenSession->touchEnabled_.store(false); in HWTEST_F() 447 ScreenSessionManagerClient::GetInstance().screenSessionMap_.insert(std::make_pair(screenId, screenSession)); in HWTEST_F() 484 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_CLIENT); in HWTEST_F() local 485 screenSession->touchEnabled_.store(true); in HWTEST_F() 486 ScreenSessionManagerClient::GetInstance().screenSessionMap_.insert(std::make_pair(screenId, screenSession)); in HWTEST_F() 522 sptr<ScreenSession> screenSession in HWTEST_F() local 559 sptr<ScreenSession> screenSession = new ScreenSession(config, ScreenSessionReason::CREATE_SESSION_FOR_CLIENT); HWTEST_F() local [all...] |