Lines Matching defs:node

45 WMError WindowSystemEffect::SetCornerRadius(const sptr<WindowNode>& node, bool needCheckAnimation)
48 if (winRoot == nullptr || node == nullptr) {
53 if (needCheckAnimation && RemoteAnimation::IsRemoteAnimationEnabledAndFirst(node->GetDisplayId()) &&
54 node->stateMachine_.IsShowAnimationPlaying()) {
59 if (!IsAppMainOrSubOrFloatingWindow(node)) {
62 auto vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDisplayId());
68 node->GetWindowId(), node->GetWindowMode(), vpr, fullscreenRadius, splitRadius, floatRadius);
73 auto surfaceNode = node->leashWinSurfaceNode_ != nullptr ? node->leashWinSurfaceNode_ : node->surfaceNode_;
78 if (WindowHelper::IsFullScreenWindow(node->GetWindowMode())) {
80 } else if (WindowHelper::IsSplitWindowMode(node->GetWindowMode())) {
82 } else if (WindowHelper::IsFloatingWindow(node->GetWindowMode())) {
88 bool WindowSystemEffect::IsAppMainOrSubOrFloatingWindow(const sptr<WindowNode>& node)
90 if (WindowHelper::IsAppWindow(node->GetWindowType())) {
98 if (WindowHelper::IsAppFloatingWindow(node->GetWindowType()) &&
99 winRoot->FindMainWindowWithToken(node->abilityToken_)) {
102 WLOGFD("not appWindow or app floating window, id: %{public}u!", node->GetWindowId());
106 WMError WindowSystemEffect::SetWindowShadow(const sptr<WindowNode>& node)
109 if (winRoot == nullptr || node == nullptr) {
113 if (!IsAppMainOrSubOrFloatingWindow(node)) {
121 WLOGFD("shadow elevation and radius are both 0.0, id: %{public}u", node->GetWindowId());
125 auto surfaceNode = node->leashWinSurfaceNode_ != nullptr ? node->leashWinSurfaceNode_ : node->surfaceNode_;
131 auto& shadow = node->isFocused_ ? windowSystemEffectConfig_.focusedShadow_ :
135 if (!WindowHelper::IsFloatingWindow(node->GetWindowMode())) {
142 WLOGFD("[WEffect]close shadow id: %{public}u", node->GetWindowId());
153 node->GetWindowId(), static_cast<int32_t>(node->isFocused_), shadow.elevation_);
156 auto vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDisplayId());
169 WMError WindowSystemEffect::SetWindowEffect(const sptr<WindowNode>& node, bool needCheckAnimation)
172 if (node == nullptr) {
173 WLOGFE("window node is null");
176 SetCornerRadius(node, needCheckAnimation);
177 SetWindowShadow(node);