Home
last modified time | relevance | path

Searched refs:WindowNode (Results 1 - 25 of 66) sorted by relevance

123

/foundation/window/window_manager/wmserver/src/
H A Dwindow_node.cpp23 constexpr HiviewDFX::HiLogLabel LABEL = {LOG_CORE, HILOG_DOMAIN_WINDOW, "WindowNode"};
26 WindowNode::~WindowNode() in ~WindowNode()
28 WLOGI("~WindowNode id:%{public}u", GetWindowId()); in ~WindowNode()
31 void WindowNode::SetDisplayId(DisplayId displayId) in SetDisplayId()
36 void WindowNode::SetEntireWindowTouchHotArea(const Rect& rect) in SetEntireWindowTouchHotArea()
41 void WindowNode::SetEntireWindowPointerHotArea(const Rect& rect) in SetEntireWindowPointerHotArea()
46 void WindowNode::SetWindowRect(const Rect& rect) in SetWindowRect()
51 void WindowNode::SetDecorEnable(bool decorEnable) in SetDecorEnable()
56 void WindowNode
[all...]
H A Dwindow_node_container.cpp109 auto counter = [&windowNumber, &windowType](sptr<WindowNode>& windowNode) { in GetWindowCountByType()
123 auto counter = [&windowNumber](sptr<WindowNode>& windowNode) { in GetMainFloatingWindowCount()
136 WMError WindowNodeContainer::AddWindowNodeOnWindowTree(sptr<WindowNode>& node, const sptr<WindowNode>& parentNode) in AddWindowNodeOnWindowTree()
138 sptr<WindowNode> root = FindRoot(node->GetWindowType()); in AddWindowNodeOnWindowTree()
180 WMError WindowNodeContainer::ShowStartingWindow(sptr<WindowNode>& node) in ShowStartingWindow()
200 WMError WindowNodeContainer::IsTileRectSatisfiedWithSizeLimits(sptr<WindowNode>& node) in IsTileRectSatisfiedWithSizeLimits()
216 void WindowNodeContainer::LayoutWhenAddWindowNode(sptr<WindowNode>& node, bool afterAnimation) in LayoutWhenAddWindowNode()
244 WMError WindowNodeContainer::AddWindowNode(sptr<WindowNode>& node, sptr<WindowNode>
[all...]
H A Dminimize_app.cpp28 std::map<MinimizeReason, std::vector<wptr<WindowNode>>> MinimizeApp::needMinimizeAppNodes_;
31 void MinimizeApp::AddNeedMinimizeApp(const sptr<WindowNode>& node, MinimizeReason reason) in AddNeedMinimizeApp()
41 wptr<WindowNode> weakNode(node); in AddNeedMinimizeApp()
45 [windowId](wptr<WindowNode> srcNode) { in AddNeedMinimizeApp()
61 std::vector<wptr<WindowNode>> MinimizeApp::GetNeedMinimizeAppNodesWithReason(MinimizeReason reason) in GetNeedMinimizeAppNodesWithReason()
64 std::vector<wptr<WindowNode>> needMinimizeAppNodes; in GetNeedMinimizeAppNodesWithReason()
97 sptr<WindowNode> MinimizeApp::GetRecoverdNodeFromMinimizeList() in GetRecoverdNodeFromMinimizeList()
112 bool MinimizeApp::IsNodeNeedMinimize(const sptr<WindowNode>& node) in IsNodeNeedMinimize()
127 bool MinimizeApp::IsNodeNeedMinimizeWithReason(const sptr<WindowNode>& node, MinimizeReason reason) in IsNodeNeedMinimizeWithReason()
/foundation/window/window_manager/wmserver/include/
H A Dwindow_node_container.h36 using WindowNodeOperationFunc = std::function<bool(sptr<WindowNode>)>; // return true indicates to stop traverse
41 WMError ShowStartingWindow(sptr<WindowNode>& node);
42 WMError AddWindowNode(sptr<WindowNode>& node, sptr<WindowNode>& parentNode, bool afterAnimation = false);
43 WMError RemoveWindowNode(sptr<WindowNode>& node, bool fromAnimation = false);
44 WMError HandleRemoveWindow(sptr<WindowNode>& node);
45 WMError UpdateWindowNode(sptr<WindowNode>& node, WindowUpdateReason reason);
46 WMError DestroyWindowNode(sptr<WindowNode>& node, std::vector<uint32_t>& windowIds);
59 void HandleKeepScreenOn(const sptr<WindowNode>& node, bool requireLock);
60 AvoidArea GetAvoidAreaByType(const sptr<WindowNode>
[all...]
H A Dremote_animation.h48 static bool CheckTransition(sptr<WindowTransitionInfo> srcInfo, const sptr<WindowNode>& srcNode,
49 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& dstNode);
51 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& srcNode, const sptr<WindowNode>& dstNode);
54 const sptr<WindowNode>& srcNode, const sptr<WindowNode>& dstNode);
55 static WMError NotifyAnimationMinimize(sptr<WindowTransitionInfo> srcInfo, const sptr<WindowNode>& srcNode);
56 static WMError NotifyAnimationClose(sptr<WindowTransitionInfo> srcInfo, const sptr<WindowNode>& srcNode,
59 sptr<WindowTransitionInfo> dstInfo, const sptr<WindowNode>& srcNode,
60 const sptr<WindowNode>
[all...]
H A Dwindow_pair.h103 bool StatusSupprtedWhenRecentUpdate(sptr<WindowNode>& node);
109 void UpdateIfSplitRelated(sptr<WindowNode>& node);
116 void HandleRemoveWindow(sptr<WindowNode>& node);
124 sptr<WindowNode> Find(sptr<WindowNode>& node);
131 sptr<WindowNode> GetDividerWindow() const;
145 std::vector<sptr<WindowNode>> GetOrderedPair(sptr<WindowNode>& node);
152 std::vector<sptr<WindowNode>> GetPairedWindows();
228 bool IsSplitRelated(sptr<WindowNode>
[all...]
H A Dwindow_layout_policy_cascade.h38 void PerformWindowLayout(const sptr<WindowNode>& node, WindowUpdateType updateType) override;
39 void GetMaximizeRect(const sptr<WindowNode>& node, Rect& maxRect) override;
48 void SetInitialDividerRect(const sptr<WindowNode>& node, DisplayId displayId);
50 void SetDefaultCascadeRect(const sptr<WindowNode>& node);
52 Rect GetCurCascadeRect(const sptr<WindowNode>& node) const;
55 void UpdateDividerPosition(const sptr<WindowNode>& node) const;
62 void LayoutDivider(const sptr<WindowNode>& node, WindowUpdateType type);
64 void UpdateLayoutRect(const sptr<WindowNode>& node) override;
65 void ComputeDecoratedRequestRect(const sptr<WindowNode>& node) const;
66 void ApplyWindowRectConstraints(const sptr<WindowNode>
[all...]
H A Davoid_area_controller.h45 void UpdateAvoidAreaListener(sptr<WindowNode>& windowNode, bool isRegisterListener);
46 void ProcessWindowChange(const sptr<WindowNode>& windowNode, AvoidControlType avoidType,
47 const std::function<bool(sptr<WindowNode>)>& checkFunc);
48 AvoidArea GetAvoidAreaByType(const sptr<WindowNode>& node, AvoidAreaType avoidAreaType) const;
51 void AddOrRemoveOverlayWindowIfNeed(const sptr<WindowNode>& overlayNode, bool isAdding);
52 void AddOrRemoveKeyboard(const sptr<WindowNode>& keyboardNode, bool isAdding);
53 void UpdateOverlayWindowIfNeed(const sptr<WindowNode>& node,
54 const std::function<bool(sptr<WindowNode>)>& checkFunc);
55 AvoidPosType CalculateOverlayRect(const sptr<WindowNode>& node,
56 const sptr<WindowNode>
[all...]
H A Dwindow_root.h44 sptr<WindowNode> GetWindowNode(uint32_t windowId) const;
45 sptr<WindowNode> GetWindowNodeByMissionId(uint32_t missionId) const;
46 void GetBackgroundNodesByScreenId(ScreenId screenGroupId, std::vector<sptr<WindowNode>>& windowNodes);
47 void GetForegroundNodes(std::vector<sptr<WindowNode>>& windowNodes);
49 sptr<WindowNode> FindWallpaperWindow();
50 WMError SaveWindow(const sptr<WindowNode>& node);
51 void AddDeathRecipient(sptr<WindowNode> node);
52 sptr<WindowNode> FindWindowNodeWithToken(const sptr<IRemoteObject>& token) const;
53 WMError AddWindowNode(uint32_t parentId, sptr<WindowNode>& node, bool fromStartingWin = false);
57 bool IsVerticalDisplay(sptr<WindowNode>
[all...]
H A Dwindow_layout_policy.h32 std::map<WindowRootNodeType, std::unique_ptr<std::vector<sptr<WindowNode>>>>>;
47 virtual void PerformWindowLayout(const sptr<WindowNode>& node, WindowUpdateType type) = 0;
55 virtual bool IsTileRectSatisfiedWithSizeLimits(const sptr<WindowNode>& node);
59 void NotifyClientAndAnimation(const sptr<WindowNode>& node, const Rect& winRect, WindowSizeChangeReason reason);
63 static void CalcAndSetNodeHotZone(const Rect& winRect, const sptr<WindowNode>& node);
64 virtual void GetMaximizeRect(const sptr<WindowNode>& node, Rect& maxRect);
70 virtual void UpdateLayoutRect(const sptr<WindowNode>& node) = 0;
72 void LayoutWindowNode(const sptr<WindowNode>& node);
73 void LayoutWindowNodesByRootType(const std::vector<sptr<WindowNode>>& nodeVec);
74 void FixWindowRectWithinDisplay(const sptr<WindowNode>
[all...]
H A Dwindow_layout_policy_tile.h36 bool IsTileRectSatisfiedWithSizeLimits(const sptr<WindowNode>& node) override;
37 void PerformWindowLayout(const sptr<WindowNode>& node, WindowUpdateType type) override;
51 void RefreshTileQueue(DisplayId displayId, std::vector<sptr<WindowNode>>& needMinimizeNodes,
52 std::vector<sptr<WindowNode>>& needRecoverNodes);
53 void PushBackNodeInTileQueue(const sptr<WindowNode>& node, DisplayId displayId);
54 void RemoveNodeFromTileQueue(const sptr<WindowNode>& node);
60 void UpdateLayoutRect(const sptr<WindowNode>& node) override;
61 bool IsWindowAlreadyInTileQueue(const sptr<WindowNode>& node);
66 std::map<DisplayId, std::deque<sptr<WindowNode>>> foregroundNodesMap_;
H A Ddisplay_group_controller.h33 using SysBarNodeMap = std::unordered_map<WindowType, sptr<WindowNode>>;
45 void PreProcessWindowNode(const sptr<WindowNode>& node, WindowUpdateType type);
46 void PostProcessWindowNode(const sptr<WindowNode>& node);
63 std::vector<sptr<WindowNode>>* GetWindowNodesByDisplayIdAndRootType(DisplayId displayId, WindowRootNodeType type);
64 void AddWindowNodeOnWindowTree(sptr<WindowNode>& node, WindowRootNodeType rootType);
69 void MoveCrossNodeToTargetDisplay(const sptr<WindowNode>& node, DisplayId targetDisplayId);
70 void MoveNotCrossNodeToDefaultDisplay(const sptr<WindowNode>& node, DisplayId displayId);
71 void UpdateWindowDisplayIdIfNeeded(const sptr<WindowNode>& node);
72 void UpdateWindowShowingDisplays(const sptr<WindowNode>& node);
73 void UpdateWindowDisplayId(const sptr<WindowNode>
[all...]
H A Dstarting_window.h36 static sptr<WindowNode> CreateWindowNode(const sptr<WindowTransitionInfo>& info, uint32_t winId);
37 static void HandleClientWindowCreate(sptr<WindowNode>& node, sptr<IWindow>& window,
40 static WMError DrawStartingWindow(sptr<WindowNode>& node, std::shared_ptr<Media::PixelMap> pixelMap,
42 static void AddNodeOnRSTree(sptr<WindowNode>& node, bool isMultiDisplay);
43 static void ReleaseStartWinSurfaceNode(sptr<WindowNode>& node);
50 static WMError CreateLeashAndStartingSurfaceNode(sptr<WindowNode>& node);
51 static WMError SetStartingWindowAnimation(wptr<WindowNode> weak);
59 static void UpdateRSTree(sptr<WindowNode>& node, bool isMultiDisplay);
H A Dminimize_app.h46 static void AddNeedMinimizeApp(const sptr<WindowNode>& node, MinimizeReason reason);
51 static bool IsNodeNeedMinimize(const sptr<WindowNode>& node);
52 static std::vector<wptr<WindowNode>> GetNeedMinimizeAppNodesWithReason(MinimizeReason reason);
53 static sptr<WindowNode> GetRecoverdNodeFromMinimizeList();
54 static bool IsNodeNeedMinimizeWithReason(const sptr<WindowNode>& node, MinimizeReason reason);
66 static std::map<MinimizeReason, std::vector<wptr<WindowNode>>> needMinimizeAppNodes_;
H A Ddisplay_zoom_controller.h36 void ClearZoomTransform(std::vector<sptr<WindowNode>> nodes);
46 void ClearZoomTransformInner(sptr<WindowNode> node);
49 Transform CalcuAnimateZoomTrans(sptr<WindowNode> node);
50 Transform CalcuZoomTransByZoomInfo(sptr<WindowNode> node);
51 Transform CalcuZoomTrans(sptr<WindowNode> node, const DisplayZoomInfo& zoomInfo);
52 void UpdateClientAndSurfaceZoomInfo(sptr<WindowNode> node, const Transform& zoomTrans);
53 void HandleUpdateWindowZoomInfo(sptr<WindowNode> node);
H A Dwindow_controller.h96 void UpdateWindowAnimation(const sptr<WindowNode>& node);
99 void StopBootAnimationIfNeed(const sptr<WindowNode>& node);
107 void ResizeSoftInputCallingWindowIfNeed(const sptr<WindowNode>& node);
109 void HandleTurnScreenOn(const sptr<WindowNode>& node);
110 WMError UpdateTouchHotAreas(const sptr<WindowNode>& node, const std::vector<Rect>& rects);
112 void NotifyTouchOutside(const sptr<WindowNode>& node);
113 uint32_t GetEmbedNodeId(const std::vector<sptr<WindowNode>>& windowNodes, const sptr<WindowNode>& node);
114 void NotifyWindowPropertyChanged(const sptr<WindowNode>& node);
115 WMError GetFocusWindowNode(DisplayId displayId, sptr<WindowNode>
[all...]
/foundation/window/window_manager/wmserver/test/unittest/
H A Dminimize_app_test.cpp64 sptr<WindowNode> node1 = new WindowNode(CreateWindowProperty(1)); in HWTEST_F()
65 sptr<WindowNode> node2 = new WindowNode(CreateWindowProperty(2)); in HWTEST_F()
66 sptr<WindowNode> node3 = new WindowNode(CreateWindowProperty(3)); in HWTEST_F()
67 sptr<WindowNode> node4 = new WindowNode(CreateWindowProperty(4)); in HWTEST_F()
68 sptr<WindowNode> node5 = new WindowNode(CreateWindowPropert in HWTEST_F()
[all...]
H A Ddisplay_group_controller_test.cpp113 std::vector<sptr<WindowNode>>* rootNodeVectorPtr = in HWTEST_F()
126 std::vector<sptr<WindowNode>>* rootNodeVectorPtr = in HWTEST_F()
138 sptr<WindowNode> node1 = new WindowNode(); in HWTEST_F()
169 sptr<WindowNode> node1 = new WindowNode(); in HWTEST_F()
172 sptr<WindowNode> child = new WindowNode(); in HWTEST_F()
177 std::vector<sptr<WindowNode>>* rootApp = displayGroupController_->GetWindowNodesByDisplayIdAndRootType( in HWTEST_F()
190 sptr<WindowNode> node in HWTEST_F()
[all...]
H A Dwindow_node_container_test.cpp108 sptr<WindowNode> parentNode = new WindowNode(parentProperty, nullptr, nullptr); in HWTEST_F()
113 sptr<WindowNode> subNode = new WindowNode(subProperty, nullptr, nullptr); in HWTEST_F()
128 sptr<WindowNode> parentNode = new WindowNode(parentProperty, nullptr, nullptr); in HWTEST_F()
132 sptr<WindowNode> subNode = new WindowNode(subProperty, nullptr, nullptr); in HWTEST_F()
146 sptr<WindowNode> subNode = new WindowNode(subPropert in HWTEST_F()
[all...]
H A Dwindow_pair_test.cpp73 sptr<WindowNode> node0 = new WindowNode(property); in HWTEST_F()
96 sptr<WindowNode> node0 = new WindowNode(property); in HWTEST_F()
112 windowPair->primary_ = new WindowNode(); in HWTEST_F()
130 sptr<WindowNode> node1 = new WindowNode(property1); in HWTEST_F()
132 sptr<WindowNode> node2 = new WindowNode(property2); in HWTEST_F()
151 sptr<WindowNode> node in HWTEST_F()
[all...]
H A Dwindow_root_test.cpp84 sptr<WindowNode> windowNode; in HWTEST_F()
86 windowNode = new WindowNode(property); in HWTEST_F()
88 sptr<WindowNode> node = windowRoot_->GetWindowForDumpAceHelpInfo(); in HWTEST_F()
94 windowNode = new WindowNode(property); in HWTEST_F()
102 windowNode = new WindowNode(property); in HWTEST_F()
110 windowNode = new WindowNode(property); in HWTEST_F()
172 std::vector<sptr<WindowNode>> windowNodes; in HWTEST_F()
176 sptr<WindowNode> windowNode1 = new WindowNode(property); in HWTEST_F()
179 sptr<WindowNode> windowNode in HWTEST_F()
[all...]
H A Dwindow_node_test.cpp177 sptr<WindowNode> windowNode2 = new WindowNode(property); in HWTEST_F()
199 sptr<WindowNode> windowNode = new WindowNode(property, iWindow, surfaceNode); in HWTEST_F()
221 WindowNode* windowNode = new WindowNode(property, iWindow, surfaceNode, pid, uid); in HWTEST_F()
241 WindowNode* windowNode = new WindowNode(property); in HWTEST_F()
261 sptr<WindowNode> windowNode = new WindowNode(propert in HWTEST_F()
[all...]
H A Dwindow_controller_test.cpp41 static sptr<WindowNode> node_;
48 sptr<WindowNode> WindowControllerTest::node_ = nullptr;
161 sptr<WindowNode> srcNode = StartingWindow::CreateWindowNode(srcInfo, 102); // 102 is windowId in HWTEST_F()
167 sptr<WindowNode> dstNode = StartingWindow::CreateWindowNode(dstInfo, 103); // 103 is windowId in HWTEST_F()
232 sptr<WindowNode> windowNode; in HWTEST_F()
260 sptr<WindowNode> windowNode = new WindowNode(property2); in HWTEST_F()
264 sptr<WindowNode> windowNode2 = new WindowNode(property3); in HWTEST_F()
316 sptr<WindowNode> node in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dwindow_node.cpp26 std::map<int32_t, WeakPtr<WindowNode>> g_windowNodeMap;
29 WindowNode::WindowNode(const std::string& tag, in WindowNode() function in OHOS::Ace::NG::WindowNode
36 WindowNode::~WindowNode() in ~WindowNode()
41 RefPtr<WindowNode> WindowNode::GetOrCreateWindowNode(const std::string& tag, in GetOrCreateWindowNode()
44 auto windowNode = ElementRegister::GetInstance()->GetSpecificItemById<WindowNode>(nodeId); in GetOrCreateWindowNode()
69 windowNode = AceType::MakeRefPtr<WindowNode>(tag, nodeId, sessionId, pattern, false); in GetOrCreateWindowNode()
76 g_windowNodeMap.emplace(sessionId, WeakPtr<WindowNode>(windowNod in GetOrCreateWindowNode()
[all...]
H A Dwindow_node.h24 class ACE_EXPORT WindowNode : public FrameNode { class
25 DECLARE_ACE_TYPE(WindowNode, FrameNode);
28 WindowNode(const std::string& tag,
30 ~WindowNode() override;
32 static RefPtr<WindowNode> GetOrCreateWindowNode(const std::string& tag,

Completed in 16 milliseconds

123