/foundation/window/window_manager/wmserver/include/ |
H A D | display_group_info.h | 33 void RemoveDisplayInfo(DisplayId displayId); 36 void SetDisplayRotation(DisplayId displayId, Rotation rotation); 37 void SetDisplayOrientation(DisplayId displayId, DisplayOrientation orientation); 38 void SetDisplayStateChangeType(DisplayId displayId, DisplayStateChangeType changeType); 39 void SetDisplayVirtualPixelRatio(DisplayId displayId, float vpr); 40 void SetDisplayRect(DisplayId displayId, Rect displayRect); 41 void SetDefaultDisplayId(DisplayId defaultDisplayId); 43 Rotation GetDisplayRotation(DisplayId displayId) const; 44 DisplayStateChangeType GetDisplayStateChangeType(DisplayId displayId) const; 45 float GetDisplayVirtualPixelRatio(DisplayId displayI [all...] |
H A D | display_group_controller.h | 43 void InitNewDisplay(DisplayId displayId); 47 void ProcessDisplayCreate(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, 48 const std::map<DisplayId, Rect>& displayRectMap); 49 void ProcessDisplayDestroy(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, 50 const std::map<DisplayId, Rect>& displayRectMap, 52 void ProcessDisplayChange(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, 53 const std::map<DisplayId, Rect>& displayRectMap, 55 sptr<WindowPair> GetWindowPairByDisplayId(DisplayId displayId); 59 std::map<DisplayId, SysBarNodeMap> sysBarNodeMaps_; 60 std::map<DisplayId, SysBarTintMa [all...] |
H A D | window_layout_policy_tile.h | 43 void InitTileRects(DisplayId displayId); 44 uint32_t GetMaxTileWinNum(DisplayId displayId) const; 49 void InitTileQueue(DisplayId displayId); 50 void LayoutTileQueue(DisplayId displayId); 51 void RefreshTileQueue(DisplayId displayId, std::vector<sptr<WindowNode>>& needMinimizeNodes, 53 void PushBackNodeInTileQueue(const sptr<WindowNode>& node, DisplayId displayId); 59 void ApplyPresetRectForTileWindows(DisplayId displayId); 62 bool IsValidTileQueueAndPresetRects(DisplayId displayId); 64 std::map<DisplayId, uint32_t> maxTileWinNumMap_; 65 std::map<DisplayId, st [all...] |
H A D | window_layout_policy.h | 31 using DisplayGroupWindowTree = std::map<DisplayId, 48 void ProcessDisplayCreate(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 49 void ProcessDisplayDestroy(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 50 void ProcessDisplaySizeChangeOrRotation(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 51 void ProcessDisplayVprChange(DisplayId displayId); 53 virtual void SetSplitDividerWindowRects(std::map<DisplayId, Rect> dividerWindowRects) {}; in SetSplitDividerWindowRects() 54 virtual Rect GetDividerRect(DisplayId displayI in SetSplitDividerWindowRects() [all...] |
H A D | window_root.h | 41 sptr<WindowNodeContainer> GetOrCreateWindowNodeContainer(DisplayId displayId); 42 sptr<WindowNodeContainer> GetWindowNodeContainer(DisplayId displayId); 43 sptr<WindowNodeContainer> CreateWindowNodeContainer(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo); 58 bool IsForbidDockSliceMove(DisplayId displayId) const; 59 bool IsDockSliceInExitSplitModeArea(DisplayId displayId) const; 60 void ExitSplitMode(DisplayId displayId); 70 void MinimizeAllAppWindows(DisplayId displayId); 72 WMError SetWindowLayoutMode(DisplayId displayId, WindowLayoutMode mode); 75 void ProcessDisplayChange(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, 76 const std::map<DisplayId, spt [all...] |
H A D | window_layout_policy_cascade.h | 36 Rect GetDividerRect(DisplayId displayId) const override; 37 void SetSplitDividerWindowRects(std::map<DisplayId, Rect> dividerWindowRects) override; 46 void InitSplitRects(DisplayId displayId); 47 void SetSplitRectByDivider(const Rect& divRect, DisplayId displayId); 48 void SetInitialDividerRect(const sptr<WindowNode>& node, DisplayId displayId); 49 void InitCascadeRect(DisplayId displayId); 51 Rect StepCascadeRect(Rect rect, DisplayId displayId) const; 56 void LimitDividerInDisplayRegion(Rect& rect, DisplayId displayId) const; 57 void LimitDividerPositionBySplitRatio(DisplayId displayId, Rect& winRect) const; 63 void LayoutSplitNodes(DisplayId displayI [all...] |
H A D | freeze_controller.h | 32 bool FreezeDisplay(DisplayId displayId); 33 bool UnfreezeDisplay(DisplayId displayId); 36 sptr<Window> CreateCoverWindow(DisplayId displayId); 37 std::map<DisplayId, sptr<Window>> coverWindowMap_;
|
H A D | window_node_container.h | 63 std::unordered_map<WindowType, SystemBarProperty> GetExpectImmersiveProperty(DisplayId id, 67 bool IsForbidDockSliceMove(DisplayId displayId) const; 68 bool IsDockSliceInExitSplitModeArea(DisplayId displayId) const; 69 void ExitSplitMode(DisplayId displayId); 71 bool IsVerticalDisplay(DisplayId displayId) const; 76 void MinimizeAllAppWindows(DisplayId displayId); 86 void NotifySystemBarTints(std::vector<DisplayId> displayIdVec); 90 WMError SwitchLayoutPolicy(WindowLayoutMode mode, DisplayId displayId, bool reorder = false); 98 void GetModeChangeHotZones(DisplayId displayId, 102 bool AddNodeOnRSTree(sptr<WindowNode>& node, DisplayId displayI [all...] |
H A D | drag_controller.h | 47 sptr<WindowNode> GetHitWindow(DisplayId id, const PointInfo point); 81 void HandleDisplayLimitRectChange(const std::map<DisplayId, Rect>& limitRectMap); 92 void ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY); 95 void HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sourceType); 96 void HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sourceType); 99 bool CheckWindowRect(DisplayId displayId, float vpr, const Rect& rect); 100 void CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY); 110 std::map<DisplayId, Rect> limitRectMap_;
|
/foundation/window/window_manager/dmserver/include/ |
H A D | display_manager_service_inner.h | 37 DisplayId GetDefaultDisplayId() const;
39 sptr<DisplayInfo> GetDisplayById(DisplayId displayId) const;
40 std::vector<DisplayId> GetAllDisplayIds() const;
41 sptr<ScreenInfo> GetScreenInfoByDisplayId(DisplayId displayId) const;
42 ScreenId GetScreenGroupIdByDisplayId(DisplayId displayId) const;
43 sptr<SupportedScreenModes> GetScreenModesByDisplayId(DisplayId displayId) const;
44 std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode = nullptr) const;
45 void UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId, std::shared_ptr<RSSurfaceNode>& surfaceNode,
48 DMError SetOrientationFromWindow(DisplayId displayI [all...] |
H A D | abstract_display_controller.h | 33 using DisplayStateChangeListener = std::function<void(DisplayId, sptr<DisplayInfo>,
34 const std::map<DisplayId, sptr<DisplayInfo>>&, DisplayStateChangeType)>;
44 std::shared_ptr<Media::PixelMap> GetScreenSnapshot(DisplayId displayId);
45 sptr<AbstractDisplay> GetAbstractDisplay(DisplayId displayId) const;
47 std::vector<DisplayId> GetAllDisplayIds() const;
48 void SetFreeze(std::vector<DisplayId> displayIds, bool isFreeze);
63 std::map<DisplayId, sptr<DisplayInfo>> GetAllDisplayInfoOfGroup(sptr<DisplayInfo> info);
64 DisplayId ProcessNormalScreenDisconnected(
66 DisplayId ProcessExpandScreenDisconnected(
71 DisplayId GetDefaultDisplayI [all...] |
H A D | display_cutout_controller.h | 41 void SetCutoutSvgPath(DisplayId displayId, const std::string& svgPath); 42 sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId); 57 void CheckBoundingRectsBoundary(DisplayId displayId, std::vector<DMRect>& boundingRects); 60 void TransferBoundingRectsByRotation(DisplayId displayId, std::vector<DMRect>& boundingRects); 68 std::map<DisplayId, std::vector<std::string>> svgPaths_; 74 std::map<DisplayId, std::vector<DMRect>> boundingRects_;
|
H A D | display_manager_service.h | 58 sptr<DisplayInfo> GetDisplayInfoById(DisplayId displayId) override;
60 sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) override;
65 std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) override;
66 DMError HasPrivateWindow(DisplayId id, bool& hasPrivateWindow) override;
87 void UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId, std::shared_ptr<RSSurfaceNode>& surfaceNode,
89 DMError AddSurfaceNodeToDisplay(DisplayId displayId,
91 DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId, std::shared_ptr<RSSurfaceNode>& surfaceNode) override;
92 DisplayState GetDisplayState(DisplayId displayId) override;
97 bool SetFreeze(std::vector<DisplayId> displayId [all...] |
H A D | display_manager_proxy.h | 35 sptr<DisplayInfo> GetDisplayInfoById(DisplayId displayId) override;
37 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow) override;
44 std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId,
80 std::vector<DisplayId> GetAllDisplayIds() override;
81 DisplayState GetDisplayState(DisplayId displayId) override;
82 sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) override;
84 bool SetFreeze(std::vector<DisplayId> displayIds, bool isFreeze) override;
97 DMError AddSurfaceNodeToDisplay(DisplayId displayId,
99 DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId,
|
/foundation/window/window_manager/dmserver/test/unittest/ |
H A D | display_power_controller_test.cpp | 65 dpc_ = new DisplayPowerController(mutex_, [](DisplayId, sptr<DisplayInfo>, in HWTEST_F() 66 const std::map<DisplayId, sptr<DisplayInfo>>&, DisplayStateChangeType) {}); in HWTEST_F() 80 dpc_ = new DisplayPowerController(mutex_, [](DisplayId, sptr<DisplayInfo>, in HWTEST_F() 81 const std::map<DisplayId, sptr<DisplayInfo>>&, DisplayStateChangeType) {}); in HWTEST_F() 95 dpc_ = new DisplayPowerController(mutex_, [](DisplayId, sptr<DisplayInfo>, in HWTEST_F() 96 const std::map<DisplayId, sptr<DisplayInfo>>&, DisplayStateChangeType) {}); in HWTEST_F() 110 dpc_ = new DisplayPowerController(mutex_, [](DisplayId, sptr<DisplayInfo>, in HWTEST_F() 111 const std::map<DisplayId, sptr<DisplayInfo>>&, DisplayStateChangeType) {}); in HWTEST_F() 125 dpc_ = new DisplayPowerController(mutex_, [](DisplayId, sptr<DisplayInfo>, in HWTEST_F() 126 const std::map<DisplayId, spt in HWTEST_F() [all...] |
/foundation/window/window_manager/wmserver/src/ |
H A D | display_group_info.cpp | 36 DisplayId displayId = displayInfo->GetDisplayId(); in AddDisplayInfo() 44 void DisplayGroupInfo::RemoveDisplayInfo(DisplayId displayId) in RemoveDisplayInfo() 72 void DisplayGroupInfo::SetDisplayRotation(DisplayId displayId, Rotation rotation) in SetDisplayRotation() 81 void DisplayGroupInfo::SetDisplayOrientation(DisplayId displayId, DisplayOrientation orientation) in SetDisplayOrientation() 90 void DisplayGroupInfo::SetDisplayStateChangeType(DisplayId displayId, DisplayStateChangeType changeType) in SetDisplayStateChangeType() 99 void DisplayGroupInfo::SetDisplayVirtualPixelRatio(DisplayId displayId, float vpr) in SetDisplayVirtualPixelRatio() 108 void DisplayGroupInfo::SetDisplayRect(DisplayId displayId, Rect displayRect) in SetDisplayRect() 121 void DisplayGroupInfo::SetDefaultDisplayId(DisplayId defaultDisplayId) in SetDefaultDisplayId() 126 Rotation DisplayGroupInfo::GetDisplayRotation(DisplayId displayId) const in GetDisplayRotation() 136 DisplayStateChangeType DisplayGroupInfo::GetDisplayStateChangeType(DisplayId displayI [all...] |
H A D | display_group_controller.cpp | 28 void DisplayGroupController::InitNewDisplay(DisplayId displayId) in InitNewDisplay() 58 std::vector<sptr<WindowNode>>* DisplayGroupController::GetWindowNodesByDisplayIdAndRootType(DisplayId displayId, in GetWindowNodesByDisplayIdAndRootType() 110 void DisplayGroupController::ProcessCrossNodes(DisplayId defaultDisplayId, DisplayStateChangeType type) in ProcessCrossNodes() 121 DisplayId newDisplayId; in ProcessCrossNodes() 151 auto showingDisplays = std::vector<DisplayId>(); in UpdateWindowShowingDisplays() 187 DisplayId newDisplayId = node->GetDisplayId(); in UpdateWindowDisplayIdIfNeeded() 229 void DisplayGroupController::ChangeToRectInDisplayGroup(const sptr<WindowNode>& node, DisplayId displayId) in ChangeToRectInDisplayGroup() 243 std::vector<DisplayId> curShowingDisplays = { node->GetDisplayId() }; in ChangeToRectInDisplayGroup() 251 std::vector<DisplayId> curShowingDisplays = { node->GetDisplayId() }; in PreProcessWindowNode() 298 void DisplayGroupController::UpdateWindowDisplayId(const sptr<WindowNode>& node, DisplayId newDisplayI [all...] |
/foundation/window/window_manager/dmserver/src/ |
H A D | display_manager_service_inner.cpp | 30 DisplayId DisplayManagerServiceInner::GetDefaultDisplayId() const
in GetDefaultDisplayId() 40 sptr<DisplayInfo> DisplayManagerServiceInner::GetDisplayById(DisplayId displayId) const
in GetDisplayById() 54 std::vector<DisplayId> DisplayManagerServiceInner::GetAllDisplayIds() const
in GetAllDisplayIds() 79 void DisplayManagerServiceInner::UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId,
in UpdateRSTree() 85 sptr<ScreenInfo> DisplayManagerServiceInner::GetScreenInfoByDisplayId(DisplayId displayId) const
in GetScreenInfoByDisplayId() 95 ScreenId DisplayManagerServiceInner::GetScreenGroupIdByDisplayId(DisplayId displayId) const
in GetScreenGroupIdByDisplayId() 105 sptr<SupportedScreenModes> DisplayManagerServiceInner::GetScreenModesByDisplayId(DisplayId displayId) const
in GetScreenModesByDisplayId() 121 std::shared_ptr<Media::PixelMap> DisplayManagerServiceInner::GetDisplaySnapshot(DisplayId displayId,
in GetDisplaySnapshot() 132 DMError DisplayManagerServiceInner::SetOrientationFromWindow(DisplayId displayI [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | session_display_power_controller_test.cpp | 66 SessionDisplayPowerController controller(mutex_, [](DisplayId id, sptr<DisplayInfo> info, const std::map<DisplayId, in HWTEST_F() 85 [](DisplayId id, sptr<DisplayInfo> info, const std::map<DisplayId, in HWTEST_F() 99 SessionDisplayPowerController controller(mutex_, [](DisplayId id, sptr<DisplayInfo> info, const std::map<DisplayId, in HWTEST_F() 121 SessionDisplayPowerController controller(mutex_, [](DisplayId id, sptr<DisplayInfo> info, const std::map<DisplayId, in HWTEST_F() 136 SessionDisplayPowerController controller(mutex_, [](DisplayId id, sptr<DisplayInfo> info, const std::map<DisplayId, in HWTEST_F() [all...] |
/foundation/window/window_manager/wmserver/test/unittest/ |
H A D | display_group_info_test.cpp | 35 void AddTestDisplayInfo(std::map<DisplayId, sptr<DisplayInfo>>& displayInfosMap_); 51 DisplayId displayId = 0; in SetUp() 66 void DisplayGroupInfoTest::AddTestDisplayInfo(std::map<DisplayId, sptr<DisplayInfo>>& displayInfosMap_) in AddTestDisplayInfo() 69 DisplayId displayId1 = 1; in AddTestDisplayInfo() 81 DisplayId displayId2 = 2; in AddTestDisplayInfo() 128 DisplayId displayId = 0; in HWTEST_F() 140 DisplayId displayId = 3; in HWTEST_F() 174 DisplayId displayId = 0; in HWTEST_F() 186 DisplayId displayId = 3; in HWTEST_F() 198 DisplayId displayI in HWTEST_F() [all...] |
/foundation/window/window_manager/interfaces/innerkits/dm_lite/ |
H A D | display_manager_lite.h | 37 virtual void OnCreate(DisplayId) = 0;
42 virtual void OnDestroy(DisplayId) = 0;
47 virtual void OnChange(DisplayId) = 0;
159 sptr<DisplayLite> GetDisplayById(DisplayId displayId);
227 DisplayState GetDisplayState(DisplayId displayId);
258 DisplayId GetDefaultDisplayId();
265 std::vector<DisplayId> GetAllDisplayIds();
|
/foundation/window/window_manager/interfaces/innerkits/dm/ |
H A D | display_manager.h | 42 virtual void OnCreate(DisplayId) = 0;
47 virtual void OnDestroy(DisplayId) = 0;
52 virtual void OnChange(DisplayId) = 0;
84 virtual void OnPrivateWindowListChange([[maybe_unused]]DisplayId displayId,
in OnPrivateWindowListChange() 169 DisplayId GetDefaultDisplayId();
191 sptr<Display> GetDisplayById(DisplayId displayId);
206 std::vector<DisplayId> GetAllDisplayIds();
215 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow);
224 std::shared_ptr<Media::PixelMap> GetScreenshot(DisplayId displayId, DmErrorCode* errorCode = nullptr);
245 std::shared_ptr<Media::PixelMap> GetScreenshot(DisplayId displayI [all...] |
/foundation/window/window_manager/wm/include/ |
H A D | window_display_change_adapter.h | 31 void OnCreate(DisplayId displayId) override; 32 void OnDestroy(DisplayId displayId) override; 33 void OnChange(DisplayId displayId) override; 36 DisplayId displayId, float density, DisplayOrientation orientation) override; 44 DisplayId displayId_ { 0 };
|
/foundation/barrierfree/accessibility/services/test/mock/ |
H A D | mock_display_manager.cpp | 53 DisplayId DisplayManager::GetDefaultDisplayId() in GetDefaultDisplayId() 55 DisplayId id {0}; in GetDefaultDisplayId() 59 sptr<Display> DisplayManager::GetDisplayById(DisplayId displayId) in GetDisplayById() 65 std::shared_ptr<Media::PixelMap> DisplayManager::GetScreenshot(DisplayId displayId, DmErrorCode* errorCode) in GetScreenshot() 70 std::shared_ptr<Media::PixelMap> DisplayManager::GetScreenshot(DisplayId displayId, in GetScreenshot() 81 std::vector<DisplayId> DisplayManager::GetAllDisplayIds() in GetAllDisplayIds() 83 std::vector<DisplayId> res = {}; in GetAllDisplayIds() 138 DisplayState DisplayManager::GetDisplayState(DisplayId displayId) in GetDisplayState()
|
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/ |
H A D | configuration_utils.h | 66 void InitDisplayConfig(Rosen::DisplayId displayId, std::shared_ptr<Configuration> configuration, 77 void UpdateDisplayConfig(Rosen::DisplayId displayId, std::shared_ptr<Configuration> configuration, 90 std::shared_ptr<ResourceManager> resourceManager, Rosen::DisplayId displayId, float density, 104 std::shared_ptr<ResourceManager> resourceManager, Rosen::DisplayId displayId, float density, 108 bool GetDisplayConfig(Rosen::DisplayId displayId, float &density, std::string &directionStr);
|