Lines Matching refs:sptr

36 using WindowNodeOperationFunc = std::function<bool(sptr<WindowNode>)>; // return true indicates to stop traverse
39 WindowNodeContainer(const sptr<DisplayInfo>& displayInfo, ScreenId displayGroupId);
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>& node, AvoidAreaType avoidAreaType) const;
61 WMError MinimizeStructuredAppWindowsExceptSelf(const sptr<WindowNode>& node);
62 void TraverseContainer(std::vector<sptr<WindowNode>>& windowNodes) const;
64 sptr<WindowNode>& triggerWindow) const;
72 WMError RaiseZOrderForAppWindow(sptr<WindowNode>& node, sptr<WindowNode>& parentNode);
73 sptr<WindowNode> GetNextFocusableWindow(uint32_t windowId) const;
74 sptr<WindowNode> GetNextRotatableWindow(uint32_t windowId) const;
75 sptr<WindowNode> GetNextActiveWindow(uint32_t windowId) const;
83 void SetSurfaceNodeVisible(sptr<WindowNode>& node, int32_t topPriority, bool visible);
84 void SetBelowScreenlockVisible(sptr<WindowNode>& node, bool visible);
89 WMError SetWindowMode(sptr<WindowNode>& node, WindowMode dstMode);
91 void RaiseSplitRelatedWindowToTop(sptr<WindowNode>& node);
94 void UpdateSizeChangeReason(sptr<WindowNode>& node, WindowSizeChangeReason reason);
95 void DropShowWhenLockedWindowIfNeeded(const sptr<WindowNode>& node);
102 bool AddNodeOnRSTree(sptr<WindowNode>& node, DisplayId displayId, DisplayId parentDisplayId,
105 bool RemoveNodeFromRSTree(sptr<WindowNode>& node, DisplayId displayId, DisplayId parentDisplayId,
107 bool AddAppSurfaceNodeOnRSTree(sptr<WindowNode>& node);
109 sptr<WindowLayoutPolicy> GetLayoutPolicy() const;
110 sptr<AvoidAreaController> GetAvoidController() const;
111 sptr<DisplayGroupController> GetDisplayGroupController() const;
112 sptr<WindowNode> GetRootNode(WindowRootNodeType type) const;
113 void NotifyDockWindowStateChanged(sptr<WindowNode>& node, bool isEnable);
115 void UpdateCameraFloatWindowStatus(const sptr<WindowNode>& node, bool isShowing);
116 void UpdateAvoidAreaListener(sptr<WindowNode>& windowNode, bool haveAvoidAreaListener);
121 WMError IsTileRectSatisfiedWithSizeLimits(sptr<WindowNode>& node);
123 sptr<WindowNode> GetDeskTopWindow();
128 void LayoutWhenAddWindowNode(sptr<WindowNode>& node, bool afterAnimation = false);
132 void SetDisplayOrientationFromWindow(sptr<WindowNode>& node, bool withAnimation);
140 void TraverseWindowNode(sptr<WindowNode>& root, std::vector<sptr<WindowNode>>& windowNodes) const;
141 sptr<WindowNode> FindRoot(WindowType type) const;
142 sptr<WindowNode> FindWindowNodeById(uint32_t id) const;
145 void NotifyIfAvoidAreaChanged(const sptr<WindowNode>& node, const AvoidControlType avoidType) const;
148 void NotifyIfKeyboardRegionChanged(const sptr<WindowNode>& node, const AvoidControlType avoidType) const;
150 void UpdateWindowTree(sptr<WindowNode>& node);
151 void UpdateWindowState(sptr<WindowNode> node, int32_t topPriority, WindowState state);
152 void HandleKeepScreenOn(const sptr<WindowNode>& node, WindowState state);
153 bool IsTopWindow(uint32_t windowId, sptr<WindowNode>& rootNode) const;
154 sptr<WindowNode> FindDividerNode() const;
155 void RaiseWindowToTop(uint32_t windowId, std::vector<sptr<WindowNode>>& windowNodes);
156 bool IsAboveSystemBarNode(sptr<WindowNode> node) const;
157 bool IsSplitImmersiveNode(sptr<WindowNode> node) const;
158 bool TraverseFromTopToBottom(sptr<WindowNode> node, const WindowNodeOperationFunc& func) const;
159 bool TraverseFromBottomToTop(sptr<WindowNode> node, const WindowNodeOperationFunc& func) const;
160 void RaiseOrderedWindowToTop(std::vector<sptr<WindowNode>>& orderedNodes,
161 std::vector<sptr<WindowNode>>& windowNodes);
164 void RaiseInputMethodWindowPriorityIfNeeded(const sptr<WindowNode>& node) const;
165 void ReZOrderShowWhenLockedWindowIfNeeded(const sptr<WindowNode>& node);
166 void RaiseShowWhenLockedWindowIfNeeded(const sptr<WindowNode>& node);
169 WMError AddWindowNodeOnWindowTree(sptr<WindowNode>& node, const sptr<WindowNode>& parentNode);
170 void RemoveWindowNodeFromWindowTree(sptr<WindowNode>& node);
171 void UpdateRSTreeWhenShowingDisplaysChange(sptr<WindowNode>& node,
173 bool CheckWindowNodeWhetherInWindowTree(const sptr<WindowNode>& node) const;
174 void UpdateModeSupportInfoWhenKeyguardChange(const sptr<WindowNode>& node, bool up);
175 void RemoveFromRsTreeWhenRemoveWindowNode(sptr<WindowNode>& node, bool fromAnimation);
176 void UpdateSizeChangeReason(sptr<WindowNode>& node, WindowMode srcMode, WindowMode dstMode);
179 void ResetMainFloatingWindowPriorityIfNeeded(sptr<WindowNode>& node);
180 void ResetWindowZOrderPriorityWhenSetMode(sptr<WindowNode>& node,
182 void ResetAllMainFloatingWindowZOrder(sptr<WindowNode>& rootNode);
183 void HandleRemoveWindowDisplayOrientation(sptr<WindowNode>& node, bool fromAnimation);
187 void JudgeToReportSystemBarInfo(const sptr<WindowNode> window,
207 sptr<WindowZorderPolicy> zorderPolicy_ = new WindowZorderPolicy();
208 std::unordered_map<WindowLayoutMode, sptr<WindowLayoutPolicy>> layoutPolicies_;
214 sptr<WindowNode> belowAppWindowNode_ = new WindowNode();
215 sptr<WindowNode> appWindowNode_ = new WindowNode();
216 sptr<WindowNode> aboveAppWindowNode_ = new WindowNode();
217 sptr<WindowLayoutPolicy> layoutPolicy_;
218 sptr<AvoidAreaController> avoidController_;
219 sptr<DisplayGroupController> displayGroupController_;