/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | session_display_power_controller.cpp | 33 if (!ScreenSessionManager::GetInstance().IsMultiScreenCollaboration()) { in SetDisplayStateToOn() 34 ScreenSessionManager::GetInstance().NotifyDisplayPowerEvent(DisplayPowerEvent::DISPLAY_ON, in SetDisplayStateToOn() 36 ScreenSessionManager::GetInstance().BlockScreenOnByCV(); in SetDisplayStateToOn() 51 if (!ScreenSessionManager::GetInstance().IsMultiScreenCollaboration()) { in SetDisplayState() 60 … ScreenSessionManager::GetInstance().NotifyDisplayStateChanged(DISPLAY_ID_INVALID, in SetDisplayState() 73 … ScreenSessionManager::GetInstance().NotifyDisplayStateChanged(DISPLAY_ID_INVALID, in SetDisplayState() 85 ScreenSessionManager::GetInstance().NotifyDisplayStateChanged(DISPLAY_ID_INVALID, state); in SetDisplayState() 91 if (!ScreenSessionManager::GetInstance().IsPreBrightAuthFail()) { in WaitScreenOffNotify() 93 ScreenSessionManager::GetInstance().BlockScreenOffByCV(); in WaitScreenOffNotify() 96 if (ScreenSessionManager::GetInstance().IsScreenLockSuspend()) { in WaitScreenOffNotify() [all …]
|
H A D | screen_session_manager.cpp | 127 ScreenSessionManager::ScreenSessionManager() in ScreenSessionManager() function in OHOS::Rosen::ScreenSessionManager 241 void ScreenSessionManager::FixPowerStatus() in FixPowerStatus() 249 void ScreenSessionManager::Init() in Init() 289 void ScreenSessionManager::OnStart() in OnStart() 295 sptr<ScreenSessionManager> dms(this); in OnStart() 433 void ScreenSessionManager::ConfigureDpi() in ConfigureDpi() 1494 bool ScreenSessionManager::WakeUpEnd() in WakeUpEnd() 1539 bool ScreenSessionManager::SuspendEnd() in SuspendEnd() 4763 bool ScreenSessionManager::IsFoldable() in IsFoldable() 4781 bool ScreenSessionManager::IsCaptured() in IsCaptured() [all …]
|
H A D | multi_screen_manager.cpp | 36 …sptr<ScreenSession> defaultSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in FilterPhysicalAndVirtualScreen() 43 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(screenId); in FilterPhysicalAndVirtualScreen() 67 auto mainScreen = ScreenSessionManager::GetInstance().GetScreenSession(mainScreenId); in VirtualScreenMirrorSwitch() 72 DMError ret = ScreenSessionManager::GetInstance().SetMirror(mainScreenId, screenIds); in VirtualScreenMirrorSwitch() 77 …if (ScreenSessionManager::GetInstance().GetAbstractScreenGroup(mainScreen->groupSmsId_) == nullptr… in VirtualScreenMirrorSwitch() 89 …sptr<ScreenSession> defaultSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in PhysicalScreenMirrorSwitch() 99 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(physicalScreenId); in PhysicalScreenMirrorSwitch() 123 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(physicalScreenId); in PhysicalScreenUniqueSwitch() 154 group = ScreenSessionManager::GetInstance().AddToGroupLocked(screenSession, true); in VirtualScreenUniqueSwitch() 165 ScreenSessionManager::GetInstance().ChangeScreenGroup(group, screenIds, startPoints, in VirtualScreenUniqueSwitch() [all …]
|
H A D | screen_session_dumper.cpp | 265 auto foldStatus = ScreenSessionManager::GetInstance().GetFoldStatus(); in DumpFoldStatus() 293 bool isTentMode = ScreenSessionManager::GetInstance().GetTentMode(); in DumpTentMode() 309 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(id); in DumpScreenSessionById() 341 auto screenSession = ScreenSessionManager::GetInstance().GetScreenSession(id); in DumpRsInfoById() 417 sptr<CutoutInfo> cutoutInfo = ScreenSessionManager::GetInstance().GetCutoutInfo(id); in DumpCutoutInfoById() 456 auto screenInfo = ScreenSessionManager::GetInstance().GetScreenInfoById(id); in DumpScreenInfoById() 622 ScreenSessionManager::GetInstance().SetFoldDisplayMode(displayMode); in SetFoldDisplayMode() 641 ScreenSessionManager::GetInstance().SetFoldStatusLocked(lockDisplayStatus); in SetFoldStatusLocked() 648 ScreenSessionManager::GetInstance().OnTentModeChanged(true); in SetEnterOrExitTentMode() 650 ScreenSessionManager::GetInstance().OnTentModeChanged(false); in SetEnterOrExitTentMode() [all …]
|
H A D | screen_cutout_controller.cpp | 51 … sptr<DisplayInfo> displayInfo = ScreenSessionManager::GetInstance().GetDisplayInfoById(displayId); in ConvertBoundaryRectsByRotation() 58 …ScreenProperty screenProperty = ScreenSessionManager::GetInstance().GetScreenProperty(displayInfo-… in ConvertBoundaryRectsByRotation() 65 if (ScreenSessionManager::GetInstance().IsFoldable() && in ConvertBoundaryRectsByRotation() 66 (ScreenSessionManager::GetInstance().GetFoldDisplayMode() == FoldDisplayMode::MAIN)) { in ConvertBoundaryRectsByRotation() 179 … sptr<DisplayInfo> displayInfo = ScreenSessionManager::GetInstance().GetDisplayInfoById(displayId); in CalcWaterfallRects() 255 sptr<DisplayInfo> displayInfo = ScreenSessionManager::GetInstance().GetDefaultDisplayInfo(); in CalculateCurvedCompression() 314 … sptr<DisplayInfo> displayInfo = ScreenSessionManager::GetInstance().GetDisplayInfoById(displayId); in GetCurrentDisplayRotation() 325 sptr<DisplayInfo> displayInfo = ScreenSessionManager::GetInstance().GetDefaultDisplayInfo(); in ProcessRotationMapping()
|
H A D | screen_rotation_property.cpp | 30 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in HandleSensorEventInput() 72 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); in HandleHoverStatusEventInput()
|
H A D | screen_tent_property.cpp | 24 ScreenSessionManager::GetInstance().OnTentModeChanged(isTentMode); in HandleSensorEventInput()
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/fold_screen_controller/ |
H A D | single_display_pocket_fold_policy.cpp | 118 ScreenSessionManager::GetInstance().NotifyDisplayModeChanged(displayMode); in ChangeScreenDisplayMode() 294 bool ifTentMode = ScreenSessionManager::GetInstance().GetTentMode(); in ChangeScreenDisplayModeToMainWhenFoldScreenOff() 325 ScreenSessionManager::GetInstance().ForceSkipScreenOffAnimation(); in ChangeScreenDisplayModeToMain() 395 if (ScreenSessionManager::GetInstance().TryToCancelScreenOff()) { in ChangeScreenDisplayModeToFull() 405 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ChangeScreenDisplayModePower() 522 ScreenSessionManager::GetInstance().SetCoordinationFlag(true); in ChangeScreenDisplayModeToCoordination() 529 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ChangeScreenDisplayModeToCoordination() 545 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in CloseCoordinationScreen() 554 ScreenSessionManager::GetInstance().SetCoordinationFlag(false); in CloseCoordinationScreen() 559 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ExitCoordination() [all …]
|
H A D | dual_display_fold_policy.cpp | 116 …sptr<ScreenSession> screenSession = ScreenSessionManager::GetInstance().GetScreenSession(screenId); in ChangeScreenDisplayMode() 152 ScreenSessionManager::GetInstance().NotifyDisplayModeChanged(displayMode); in ChangeScreenDisplayMode() 283 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ChangeScreenDisplayModeInner() 294 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ChangeScreenDisplayModeInner() 318 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ChangeScreenDisplayModeToCoordination() 319 ScreenSessionManager::GetInstance().SetScreenPower(ScreenPowerStatus::POWER_STATUS_ON, in ChangeScreenDisplayModeToCoordination() 331 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ChangeScreenDisplayModeToCoordination() 332 ScreenSessionManager::GetInstance().SetScreenPowerForFold(SCREEN_ID_SUB, in ChangeScreenDisplayModeToCoordination() 344 screenProperty_ = ScreenSessionManager::GetInstance().GetPhyScreenProperty(screenId); in ChangeScreenDisplayModeOnBootAnimation() 385 ScreenSessionManager::GetInstance().SetScreenPowerForFold(SCREEN_ID_SUB, in ExitCoordination() [all …]
|
H A D | single_display_fold_policy.cpp | 78 … ScreenSessionManager::GetInstance().TriggerDisplayModeUpdate(lastCachedisplayMode_.load()); in SetdisplayModeChangeStatus() 93 …sptr<ScreenSession> screenSession = ScreenSessionManager::GetInstance().GetScreenSession(SCREEN_ID… in ChangeScreenDisplayMode() 132 ScreenSessionManager::GetInstance().NotifyDisplayModeChanged(displayMode); in ChangeScreenDisplayMode() 293 ScreenSessionManager::GetInstance().ForceSkipScreenOffAnimation(); in ChangeScreenDisplayModeToMain() 362 if (ScreenSessionManager::GetInstance().TryToCancelScreenOff()) { in ChangeScreenDisplayModeToFull() 372 ScreenSessionManager::GetInstance().SetKeyguardDrawnDoneFlag(false); in ChangeScreenDisplayModePower() 373 ScreenSessionManager::GetInstance().SetScreenPowerForFold(screenId, screenPowerStatus); in ChangeScreenDisplayModePower() 380 screenProperty_ = ScreenSessionManager::GetInstance().GetPhyScreenProperty(screenId); in SendPropertyChangeResult() 387 ScreenSessionManager::GetInstance().NotifyDisplayChanged(screenSession->ConvertToDisplayInfo(), in SendPropertyChangeResult() 394 screenProperty_ = ScreenSessionManager::GetInstance().GetPhyScreenProperty(SCREEN_ID_MAIN); in ChangeScreenDisplayModeToMainOnBootAnimation() [all …]
|
H A D | fold_screen_sensor_manager.cpp | 159 ScreenSessionManager::GetInstance().NotifyFoldAngleChanged(foldAngles); in notifyFoldAngleChanged()
|
/ohos5.0/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | multi_screen_manager_test.cpp | 95 ScreenSessionManager::GetInstance().screenSessionMap_[mainScreenId] = session; 111 ScreenSessionManager::GetInstance().screenSessionMap_[mainScreenId] = session; 116 ScreenSessionManager::GetInstance().smsScreenGroupMap_[mainScreenId] = sessiongroup; 142 ScreenSessionManager::GetInstance().screenSessionMap_[ 143 ScreenSessionManager::GetInstance().defaultScreenId_] = session; 157 ScreenSessionManager::GetInstance().screenSessionMap_[ 158 ScreenSessionManager::GetInstance().defaultScreenId_] = session; 160 ScreenSessionManager::GetInstance().screenSessionMap_[1002] = session1; 186 ScreenSessionManager::GetInstance().screenSessionMap_[ 189 ScreenSessionManager::GetInstance().screenSessionMap_[
|
H A D | screen_rotation_property_test.cpp | 70 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession(); 86 auto screenSession = ScreenSessionManager::GetInstance().GetDefaultScreenSession();
|
H A D | screen_session_manager_test.cpp | 45 static sptr<ScreenSessionManager> ssm_; 52 sptr<ScreenSessionManager> ScreenSessionManagerTest::ssm_ = nullptr; 56 ssm_ = new ScreenSessionManager(); in SetUpTestCase() 797 ScreenSessionManager::ScreenIdManager sim; 817 ScreenSessionManager::ScreenIdManager sim; 1026 ScreenSessionManager::ScreenIdManager sim; 1233 ScreenSessionManager::GetInstance().UpdateScreenRotationProperty(1, bounds, rotation, 1236 ASSERT_NE(screenSession, ScreenSessionManager::GetInstance().InitAndGetScreen(2)); 2151 ScreenSessionManager* ssm = new ScreenSessionManager(); 2188 ScreenSessionManager* ssm = new ScreenSessionManager(); [all …]
|
H A D | dual_display_fold_policy_test.cpp | 39 static ScreenSessionManager& ssm_; 42 ScreenSessionManager& DualDisplayFoldPolicyTest::ssm_ = ScreenSessionManager::GetInstance();
|
H A D | fold_screen_controller_test.cpp | 36 static ScreenSessionManager& ssm_; 39 ScreenSessionManager& FoldScreenControllerTest::ssm_ = ScreenSessionManager::GetInstance();
|
H A D | single_display_pocket_fold_policy_test.cpp | 403 EXPECT_EQ(ScreenSessionManager::GetInstance().isCoordinationFlag_, true); 420 EXPECT_EQ(ScreenSessionManager::GetInstance().isCoordinationFlag_, false);
|
H A D | screen_scene_config_test.cpp | 355 if ((ScreenSessionManager::GetInstance().GetCurvedCompressionArea() == 0) && 383 if (ScreenSessionManager::GetInstance().IsFoldable()) {
|
H A D | screen_session_test.cpp | 1107 IScreenChangeListener* screenChangeListener = new ScreenSessionManager(); 1972 if (ScreenSessionManager::GetInstance().IsFoldable()) { 1980 if (ScreenSessionManager::GetInstance().IsFoldable()) { 1988 if (ScreenSessionManager::GetInstance().IsFoldable()) { 1996 if (ScreenSessionManager::GetInstance().IsFoldable()) {
|
H A D | screen_session_dumper_test.cpp | 442 bool tentMode = ScreenSessionManager::GetInstance().GetTentMode();
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/fold_screen_controller/sensor_fold_state_manager/ |
H A D | sensor_fold_state_manager.cpp | 69 ScreenSessionManager::GetInstance().NotifyFoldStatusChanged(mState_); in HandleSensorChange() 116 ScreenSessionManager::GetInstance().ReportFoldStatusToScb(screenFoldInfo); in NotifyReportFoldStatusToScb()
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/include/ |
H A D | screen_session_manager.h | 42 class ScreenSessionManager : public SystemAbility, public ScreenSessionManagerStub, public IScreenC… 43 DECLARE_SYSTEM_ABILITY(ScreenSessionManager) 44 WM_DECLARE_SINGLE_INSTANCE_BASE(ScreenSessionManager) 320 ScreenSessionManager(); 321 virtual ~ScreenSessionManager() = default; 531 ScreenSessionManager::GetInstance().ScbClientDeathCallback(scbPid_); in OnRemoteDied()
|