/foundation/window/window_manager/wmserver/include/ |
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 displayId) const; [all …]
|
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, SysBarTintMap> sysBarTintMaps_; [all …]
|
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, std::vector<std::vector<Rect>>> presetRectsMap_; [all …]
|
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>& disp… 51 void ProcessDisplayVprChange(DisplayId displayId); 53 virtual void SetSplitDividerWindowRects(std::map<DisplayId, Rect> dividerWindowRects) {}; in SetSplitDividerWindowRects() argument 54 virtual Rect GetDividerRect(DisplayId displayId) const; 58 void SetSplitRatioPoints(DisplayId displayId, const std::vector<int32_t>& splitRatioPoints); 71 void LayoutWindowTree(DisplayId displayId); 79 AvoidPosType GetAvoidPosType(const Rect& rect, DisplayId displayId) const; [all …]
|
D | window_root.h | 41 sptr<WindowNodeContainer> GetOrCreateWindowNodeContainer(DisplayId displayId); 42 sptr<WindowNodeContainer> GetWindowNodeContainer(DisplayId displayId); 43 …sptr<WindowNodeContainer> CreateWindowNodeContainer(DisplayId defaultDisplayId, sptr<DisplayInfo> … 57 bool IsForbidDockSliceMove(DisplayId displayId) const; 58 bool IsDockSliceInExitSplitModeArea(DisplayId displayId) const; 59 void ExitSplitMode(DisplayId displayId); 69 void MinimizeAllAppWindows(DisplayId displayId); 71 WMError SetWindowLayoutMode(DisplayId displayId, WindowLayoutMode mode); 74 void ProcessDisplayChange(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, 75 const std::map<DisplayId, sptr<DisplayInfo>>& displayInfoMap, DisplayStateChangeType type); [all …]
|
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 displayId, WindowUpdateType type, bool layoutByDivider = false); [all …]
|
D | window_node_container.h | 62 std::unordered_map<WindowType, SystemBarProperty> GetExpectImmersiveProperty(DisplayId id, 66 bool IsForbidDockSliceMove(DisplayId displayId) const; 67 bool IsDockSliceInExitSplitModeArea(DisplayId displayId) const; 68 void ExitSplitMode(DisplayId displayId); 70 bool IsVerticalDisplay(DisplayId displayId) const; 75 void MinimizeAllAppWindows(DisplayId displayId); 85 void NotifySystemBarTints(std::vector<DisplayId> displayIdVec); 89 WMError SwitchLayoutPolicy(WindowLayoutMode mode, DisplayId displayId, bool reorder = false); 97 void GetModeChangeHotZones(DisplayId displayId, 101 bool AddNodeOnRSTree(sptr<WindowNode>& node, DisplayId displayId, DisplayId parentDisplayId, [all …]
|
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_;
|
D | drag_controller.h | 45 sptr<WindowNode> GetHitWindow(DisplayId id, const PointInfo point); 78 void HandleDisplayLimitRectChange(const std::map<DisplayId, Rect>& limitRectMap); 88 void ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY); 91 …void HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sou… 92 …void HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sou… 95 bool CheckWindowRect(DisplayId displayId, float vpr, const Rect& rect); 96 void CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY); 104 std::map<DisplayId, Rect> limitRectMap_;
|
D | window_controller.h | 54 void NotifyDisplayStateChange(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, 55 const std::map<DisplayId, sptr<DisplayInfo>>& displayInfoMap, DisplayStateChangeType type); 59 void MinimizeAllAppWindows(DisplayId displayId); 66 WMError GetModeChangeHotZones(DisplayId displayId, 73 void OnScreenshot(DisplayId displayId); 93 void FlushWindowInfoWithDisplayId(DisplayId displayId); 95 void ProcessDisplayChange(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, 96 const std::map<DisplayId, sptr<DisplayInfo>>& displayInfoMap, DisplayStateChangeType type); 113 WMError GetFocusWindowNode(DisplayId displayId, sptr<WindowNode>& windowNode); 114 void SetDefaultDisplayInfo(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo); [all …]
|
/foundation/window/window_manager/dmserver/include/ |
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 = … 45 …void UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId, std::shared_ptr<RSSurfaceNode>& … 48 …DMError SetOrientationFromWindow(DisplayId displayId, Orientation orientation, bool withAnimation … 49 …bool SetRotationFromWindow(DisplayId displayId, Rotation targetRotation, bool withAnimation = true… [all …]
|
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( 70 DisplayId GetDefaultDisplayId(); [all …]
|
D | display_manager_service.h | 57 sptr<DisplayInfo> GetDisplayInfoById(DisplayId displayId) override; 59 sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) override; 64 …std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) o… 65 DMError HasPrivateWindow(DisplayId id, bool& hasPrivateWindow) override; 85 …void UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId, std::shared_ptr<RSSurfaceNode>& … 87 DMError AddSurfaceNodeToDisplay(DisplayId displayId, 89 …DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId, std::shared_ptr<RSSurfaceNode>& surfaceN… 90 DisplayState GetDisplayState(DisplayId displayId) override; 92 bool SetFreeze(std::vector<DisplayId> displayIds, bool isFreeze) override; 105 std::vector<DisplayId> GetAllDisplayIds() override; [all …]
|
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); 64 std::map<DisplayId, std::vector<std::string>> svgPaths_; 70 std::map<DisplayId, std::vector<DMRect>> boundingRects_;
|
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, 68 std::vector<DisplayId> GetAllDisplayIds() override; 69 DisplayState GetDisplayState(DisplayId displayId) override; 70 sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) override; 72 bool SetFreeze(std::vector<DisplayId> displayIds, bool isFreeze) override; 83 DMError AddSurfaceNodeToDisplay(DisplayId displayId, 85 DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId,
|
D | display_manager_interface.h | 95 virtual sptr<DisplayInfo> GetDisplayInfoById(DisplayId displayId) = 0; 97 virtual DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow) = 0; 104 virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, 128 virtual DisplayState GetDisplayState(DisplayId displayId) = 0; 129 virtual std::vector<DisplayId> GetAllDisplayIds() = 0; 130 virtual sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) = 0; 132 virtual bool SetFreeze(std::vector<DisplayId> displayIds, bool isFreeze) = 0; 145 virtual DMError AddSurfaceNodeToDisplay(DisplayId displayId, 147 virtual DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId,
|
/foundation/window/window_manager/wmserver/src/ |
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 change… 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 displayId) const in GetDisplayStateChangeType() [all …]
|
D | display_group_controller.cpp | 28 void DisplayGroupController::InitNewDisplay(DisplayId displayId) in InitNewDisplay() 58 …ptr<WindowNode>>* DisplayGroupController::GetWindowNodesByDisplayIdAndRootType(DisplayId displayId, in GetWindowNodesByDisplayIdAndRootType() 110 void DisplayGroupController::ProcessCrossNodes(DisplayId defaultDisplayId, DisplayStateChangeType t… 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 dis… in ChangeToRectInDisplayGroup() 237 std::vector<DisplayId> curShowingDisplays = { node->GetDisplayId() }; in ChangeToRectInDisplayGroup() 245 std::vector<DisplayId> curShowingDisplays = { node->GetDisplayId() }; in PreProcessWindowNode() 292 void DisplayGroupController::UpdateWindowDisplayId(const sptr<WindowNode>& node, DisplayId newDispl… in UpdateWindowDisplayId() [all …]
|
/foundation/window/window_manager/interfaces/innerkits/dm/ |
D | display_manager.h | 39 virtual void OnCreate(DisplayId) = 0; 44 virtual void OnDestroy(DisplayId) = 0; 49 virtual void OnChange(DisplayId) = 0; 104 DisplayId GetDefaultDisplayId(); 126 sptr<Display> GetDisplayById(DisplayId displayId); 141 std::vector<DisplayId> GetAllDisplayIds(); 150 DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow); 159 …std::shared_ptr<Media::PixelMap> GetScreenshot(DisplayId displayId, DmErrorCode* errorCode = nullp… 170 std::shared_ptr<Media::PixelMap> GetScreenshot(DisplayId displayId, const Media::Rect &rect, 219 DisplayState GetDisplayState(DisplayId displayId); [all …]
|
/foundation/window/window_manager/dmserver/src/ |
D | display_manager_service_inner.cpp | 30 DisplayId DisplayManagerServiceInner::GetDefaultDisplayId() const in WM_IMPLEMENT_SINGLE_INSTANCE() 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 displayI… in GetScreenModesByDisplayId() 121 std::shared_ptr<Media::PixelMap> DisplayManagerServiceInner::GetDisplaySnapshot(DisplayId displayId, in GetDisplaySnapshot() 132 DMError DisplayManagerServiceInner::SetOrientationFromWindow(DisplayId displayId, Orientation orien… in SetOrientationFromWindow() 143 bool DisplayManagerServiceInner::SetRotationFromWindow(DisplayId displayId, Rotation targetRotation… in SetRotationFromWindow() [all …]
|
/foundation/window/window_manager/wmserver/test/unittest/ |
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>>& displayInfosM… in AddTestDisplayInfo() argument 69 DisplayId displayId1 = 1; in AddTestDisplayInfo() 81 DisplayId displayId2 = 2; in AddTestDisplayInfo() 128 DisplayId displayId = 0; 140 DisplayId displayId = 3; 174 DisplayId displayId = 0; 186 DisplayId displayId = 3; 198 DisplayId displayId = 0; [all …]
|
/foundation/barrierfree/accessibility/services/test/mock/ |
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* er… 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/window/window_manager/test/fuzztest/dms/displaymanager_fuzzer/ |
D | displaymanager_fuzzer.cpp | 25 virtual void OnCreate(DisplayId) override in OnCreate() argument 28 virtual void OnDestroy(DisplayId) override in OnDestroy() argument 31 virtual void OnChange(DisplayId) override in OnChange() argument 69 DisplayId displayId; in DisplayFuzzTest() 82 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in DisplayFuzzTest() 107 DisplayId displayId; in GetScreenshotFuzzTest() 116 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in GetScreenshotFuzzTest() 128 DisplayId displayId; in DisplayPowerFuzzTest() 148 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in DisplayPowerFuzzTest() 175 if (data == nullptr || size < sizeof(DisplayId) * 10) { in FreezeFuzzTest() [all …]
|
/foundation/window/window_manager/dm/include/ |
D | display_manager_adapter.h | 61 virtual std::vector<DisplayId> GetAllDisplayIds(); 62 …virtual std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* erro… 63 virtual DMError HasPrivateWindow(DisplayId displayId, bool& hasPrivateWindow); 69 virtual DisplayState GetDisplayState(DisplayId displayId); 71 virtual bool SetFreeze(std::vector<DisplayId> displayIds, bool isFreeze); 72 virtual sptr<DisplayInfo> GetDisplayInfo(DisplayId displayId); 73 virtual sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId); 74 …virtual DMError AddSurfaceNodeToDisplay(DisplayId displayId, std::shared_ptr<class RSSurfaceNode>&… 75 virtual DMError RemoveSurfaceNodeFromDisplay(DisplayId displayId,
|
/foundation/window/window_manager/utils/include/ |
D | display_change_listener.h | 39 virtual void OnDisplayStateChange(DisplayId defaultDisplayId, sptr<DisplayInfo> info, 40 … const std::map<DisplayId, sptr<DisplayInfo>>& displayInfoMap, DisplayStateChangeType type) = 0; 41 virtual void OnScreenshot(DisplayId displayId) = 0;
|