Home
last modified time | relevance | path

Searched refs:windowNode (Results 1 – 25 of 28) sorted by relevance

12

/ohos5.0/foundation/window/window_manager/wmserver/test/unittest/
H A Dwindow_node_test.cpp200 ASSERT_NE(nullptr, windowNode);
223 ASSERT_NE(nullptr, windowNode);
243 ASSERT_NE(nullptr, windowNode);
246 windowNode->SetDisplayId(1);
262 ASSERT_NE(nullptr, windowNode);
289 ASSERT_NE(nullptr, windowNode);
318 ASSERT_NE(nullptr, windowNode);
346 ASSERT_NE(nullptr, windowNode);
370 ASSERT_NE(nullptr, windowNode);
540 windowNode->SetCallingPid(1);
[all …]
H A Dwindow_controller_test.cpp232 sptr<WindowNode> windowNode; variable
574 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
1387 windowNode->SetCallingPid(2048);
1419 windowNode->SetCallingPid(1024);
1448 windowNode->SetCallingPid(1024);
1475 windowNode->SetCallingPid(2048);
1504 windowNode->SetCallingPid(2048);
1613 ASSERT_NE(nullptr, windowNode);
1615 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
1653 ASSERT_NE(nullptr, windowNode);
[all …]
H A Dwindow_root_test.cpp84 sptr<WindowNode> windowNode; variable
557 ASSERT_NE(windowNode, nullptr);
1291 windowNode->SetDisplayId(0);
1293 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetDisplayId(), windowNode));
1294 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
1445 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
1471 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
1485 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
1527 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
1750 windowRoot_->windowNodeMap_.insert(std::make_pair(windowNode->GetWindowId(), windowNode));
[all …]
H A Dwindow_system_effect_test.cpp100 sptr<WindowNode> windowNode = nullptr; variable
101 ASSERT_EQ(WMError::WM_ERROR_NULLPTR, WindowSystemEffect::SetWindowEffect(windowNode));
143 sptr<WindowNode> windowNode = nullptr; variable
144 ASSERT_EQ(WMError::WM_ERROR_NULLPTR, WindowSystemEffect::SetWindowShadow(windowNode));
H A Dinput_window_monitor_test.cpp124 sptr<WindowNode> windowNode = new WindowNode(); variable
128 input_monitor_->TransformWindowRects(windowNode, areaRect, touchHotAreas, pointerHotAreas);
H A Dstarting_window_test.cpp455 sptr<WindowNode> windowNode = nullptr; variable
456 ASSERT_EQ(WMError::WM_ERROR_NULLPTR, StartingWindow::SetStartingWindowAnimation(windowNode));
H A Davoid_area_controller_test.cpp412 [](sptr<WindowNode> windowNode) { return true; }); in __anonb8cde9350302() argument
422 [](sptr<WindowNode> windowNode) { return true; }); in __anonb8cde9350402() argument
/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dwindow_group_mgr.cpp75 if (!windowNode) { in MoveMissionsToBackground()
78 windowNodes.emplace_back(windowNode); in MoveMissionsToBackground()
85 for (auto windowNode : windowNodes) { in MoveMissionsToBackground() local
88 backupWindowModes_[windowNode->GetWindowId()] = windowNode->GetWindowMode(); in MoveMissionsToBackground()
90 "mode: %{public}d ", windowNode->GetWindowId(), windowNode->abilityInfo_.missionId_, in MoveMissionsToBackground()
91 (windowNode == nullptr ? "NUll" : windowNode->GetWindowName().c_str()), in MoveMissionsToBackground()
92 windowNode->zOrder_, windowNode->GetWindowMode()); in MoveMissionsToBackground()
115 if (windowNode == nullptr || windowNode->GetWindowToken() == nullptr) { in MoveMissionToForeground()
136 windowNode->GetWindowId(), windowNode->abilityInfo_.missionId_, in MoveMissionToForeground()
137 (windowNode == nullptr ? "NUll" : windowNode->GetWindowName().c_str()), in MoveMissionToForeground()
[all …]
H A Dinput_window_monitor.cpp48 if (windowNode == nullptr) { in UpdateInputWindow()
56 DisplayId displayId = windowNode->GetDisplayId(); in UpdateInputWindow()
151 windowNode->ComputeTransform(); in TransformWindowRects()
170 for (const auto& windowNode: windowNodes) { in TraverseWindowNodes() local
180 for (const auto& windowNode: windowNodes) { in TraverseWindowNodes() local
182 …WLOGI("skip node[id:%{public}u, type:%{public}d]", windowNode->GetWindowId(), windowNode->GetWindo… in TraverseWindowNodes()
188 windowNode->GetTouchHotAreas(touchHotAreas); in TraverseWindowNodes()
189 windowNode->GetPointerHotAreas(pointerHotAreas); in TraverseWindowNodes()
190 Rect areaRect = windowNode->GetWindowRect(); in TraverseWindowNodes()
197 .uid = windowNode->GetCallingUid(), in TraverseWindowNodes()
[all …]
H A Dwindow_dumper.cpp94 for (auto& windowNode : windowNodes) { in DumpScreenGroupWindowInfo() local
101 if (windowNode == nullptr) { in DumpScreenGroupWindowInfo()
106 AppendWindowNodeInfo(windowNode, zOrder, oss); in DumpScreenGroupWindowInfo()
114 void WindowDumper::AppendWindowNodeInfo(const sptr<WindowNode>& windowNode, int zOrder, std::ostrin… in AppendWindowNodeInfo() argument
116 Rect rect = windowNode->GetWindowRect(); in AppendWindowNodeInfo()
117 const std::string& windowName = windowNode->GetWindowName().size() <= WINDOW_NAME_MAX_LENGTH ? in AppendWindowNodeInfo()
118 windowNode->GetWindowName() : windowNode->GetWindowName().substr(0, WINDOW_NAME_MAX_LENGTH); in AppendWindowNodeInfo()
122 …<< std::left << std::setw(8) << windowNode->GetCallingPid() // 8… in AppendWindowNodeInfo()
123 …<< std::left << std::setw(6) << windowNode->GetWindowId() // 6… in AppendWindowNodeInfo()
124 …<< std::left << std::setw(5) << static_cast<uint32_t>(windowNode->GetWindowType()) // 5… in AppendWindowNodeInfo()
[all …]
H A Dwindow_controller.cpp185 windowNode = thisWindowNode; in GetFocusWindowNode()
192 sptr<WindowNode> windowNode; in GetFocusWindowInfo() local
203 sptr<WindowNode> windowNode; in GetFocusWindowInfo() local
381 if (!windowNode) { in GetNavigationBarHeight()
597 if (windowNode == nullptr) { in RemoveWindowNode()
610 nodes.emplace_back(windowNode); in RemoveWindowNode()
1774 if (windowNode == nullptr || windowNode->GetWindowToken() == nullptr || in NotifyTouchOutside()
1780 …WLOGFD("notify %{public}s id %{public}d", windowNode->GetWindowName().c_str(), windowNode->GetWind… in NotifyTouchOutside()
1794 for (auto& windowNode : windowNodes) { in GetEmbedNodeId() local
1795 if (windowNode == nullptr) { in GetEmbedNodeId()
[all …]
H A Davoid_area_controller.cpp30 void AvoidAreaController::UpdateAvoidAreaListener(sptr<WindowNode>& windowNode, bool isRegisterList… in UpdateAvoidAreaListener() argument
33 if (windowNode == nullptr) { in UpdateAvoidAreaListener()
38 avoidAreaListenerNodes_.insert(windowNode); in UpdateAvoidAreaListener()
40 lastUpdatedAvoidArea_.erase(windowNode->GetWindowId()); in UpdateAvoidAreaListener()
41 avoidAreaListenerNodes_.erase(windowNode); in UpdateAvoidAreaListener()
45 void AvoidAreaController::ProcessWindowChange(const sptr<WindowNode>& windowNode, AvoidControlType … in ProcessWindowChange() argument
52 if (windowNode == nullptr || windowNode->GetWindowToken() == nullptr) { in ProcessWindowChange()
59 … AddOrRemoveOverlayWindowIfNeed(windowNode, avoidType == AvoidControlType::AVOID_NODE_ADD); in ProcessWindowChange()
62 UpdateOverlayWindowIfNeed(windowNode, checkFunc); in ProcessWindowChange()
H A Dremote_animation.cpp705 auto target = CreateWindowAnimationTarget(nullptr, windowNode); in GetWindowAnimationTargets()
715 const sptr<WindowNode>& windowNode) in CreateWindowAnimationTarget() argument
717 if (windowNode == nullptr) { in CreateWindowAnimationTarget()
737 windowAnimationTarget->windowId_ = windowNode->GetWindowId(); in CreateWindowAnimationTarget()
738 windowAnimationTarget->displayId_ = windowNode->GetDisplayId(); in CreateWindowAnimationTarget()
740 … if (WindowHelper::IsAppWindow(windowNode->GetWindowType()) && windowNode->leashWinSurfaceNode_) { in CreateWindowAnimationTarget()
743 windowAnimationTarget->surfaceNode_ = windowNode->surfaceNode_; in CreateWindowAnimationTarget()
747 windowNode->GetWindowId(), windowNode->GetWindowType()); in CreateWindowAnimationTarget()
751 auto rect = windowNode->GetWindowRect(); in CreateWindowAnimationTarget()
756 …displayInfo->GetDisplayOrientation(), windowNode->GetWindowMode(), windowNode->GetWindowFlags())) { in CreateWindowAnimationTarget()
[all …]
H A Dwindow_root.cpp302 windowNode->GetWindowId(), static_cast<uint32_t>(windowNode->GetWindowType())); in MinimizeTargetWindows()
365 if (windowNode == nullptr) { in FillUnreliableWindowInfo()
376 info->zOrder_ = windowNode->zOrder_; in FillUnreliableWindowInfo()
396 if (windowNode == nullptr) { in GetUnreliableWindowInfo()
406 if (!windowNode->currentVisibility_) { in GetUnreliableWindowInfo()
412 curWindowId, windowNode->GetWindowType(), windowNode->currentVisibility_); in GetUnreliableWindowInfo()
566 if (windowNode == nullptr) { in ToggleShownStateForAllAppWindows()
1548 if (windowNode == nullptr || !windowNode->currentVisibility_) { in FocusFaultDetection()
1655 auto& windowNode = elem.second; in MoveNotShowingWindowToDefaultDisplay() local
1656 if (windowNode->GetDisplayId() == displayId && !windowNode->currentVisibility_) { in MoveNotShowingWindowToDefaultDisplay()
[all …]
H A Dwindow_node_container.cpp110 if (windowNode->GetWindowType() == windowType && !windowNode->startingWindowShown_) { in GetWindowCountByType()
127 !windowNode->startingWindowShown_) { in GetMainFloatingWindowCount()
570 windowNode->GetWindowId(), windowNode->priority_); in ResetMainFloatingWindowPriorityIfNeeded()
576 windowNode->GetWindowId(), windowNode->priority_); in ResetMainFloatingWindowPriorityIfNeeded()
2600 for (auto& windowNode : windowNodes) { in RemoveSingleUserWindowNodes() local
2604windowNode->GetWindowName().c_str(), windowNode->GetWindowId(), windowNode->GetCallingUid()); in RemoveSingleUserWindowNodes()
2608windowNode->GetWindowName().c_str(), windowNode->GetWindowId(), windowNode->GetCallingUid()); in RemoveSingleUserWindowNodes()
2610 if (windowNode->GetWindowToken()) { in RemoveSingleUserWindowNodes()
2611 if (windowNode->surfaceNode_ != nullptr) { in RemoveSingleUserWindowNodes()
2643 for (auto& windowNode : windowNodes) { in SetWindowPairFrameGravity() local
[all …]
H A Ddrag_controller.cpp128 for (auto windowNode : windowNodes) { in GetHitWindow() local
129 if (windowNode->GetWindowType() >= WindowType::WINDOW_TYPE_PANEL) { in GetHitWindow()
132 if (WindowHelper::IsPointInTargetRect(point.x, point.y, windowNode->GetWindowRect())) { in GetHitWindow()
133 return windowNode; in GetHitWindow()
141 sptr<WindowNode> windowNode = windowRoot_->GetWindowNode(windowId); in GetHitPoint() local
142 …if (windowNode == nullptr || windowNode->GetWindowType() != WindowType::WINDOW_TYPE_DRAGGING_EFFEC… in GetHitPoint()
146 sptr<WindowProperty> property = windowNode->GetWindowProperty(); in GetHitPoint()
H A Ddisplay_zoom_controller.cpp155 for (auto& windowNode: windowNodes) { in UpdateWindowZoomInfo() local
156 HandleUpdateWindowZoomInfo(windowNode); in UpdateWindowZoomInfo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dwindow_node.cpp51 auto windowNode = ElementRegister::GetInstance()->GetSpecificItemById<WindowNode>(nodeId); in GetOrCreateWindowNode() local
52 if (windowNode) { in GetOrCreateWindowNode()
53 if (windowNode->GetTag() == tag) { in GetOrCreateWindowNode()
54 return windowNode; in GetOrCreateWindowNode()
57 auto parent = windowNode->GetParent(); in GetOrCreateWindowNode()
59 parent->RemoveChild(windowNode); in GetOrCreateWindowNode()
85 windowNode = AceType::MakeRefPtr<WindowNode>(tag, nodeId, sessionId, pattern, false, screenId); in GetOrCreateWindowNode()
86 windowNode->InitializePatternAndContext(); in GetOrCreateWindowNode()
87 bool added = ElementRegister::GetInstance()->AddUINode(windowNode); in GetOrCreateWindowNode()
92 g_windowNodeMap[screenId][sessionId] = WeakPtr<WindowNode>(windowNode); in GetOrCreateWindowNode()
[all …]
H A Dwindow_scene_model.cpp84 …auto windowNode = WindowNode::GetOrCreateWindowNode(V2::WINDOW_SCENE_ETS_TAG, nodeId, persistentId, in Create() local
86 if (windowNode == nullptr) { in Create()
91 stack->Push(windowNode); in Create()
94 if (windowNode->GetHitTestMode() == HitTestMode::HTMDEFAULT) { in Create()
95 windowNode->SetHitTestMode(HitTestMode::HTMBLOCK); in Create()
97 auto parent = windowNode->GetParentFrameNode(); in Create()
100 parent->GetId(), windowNode->GetId(), sceneSession->GetPersistentId()); in Create()
/ohos5.0/foundation/window/window_manager/wmserver/include/
H A Davoid_area_controller.h45 void UpdateAvoidAreaListener(sptr<WindowNode>& windowNode, bool isRegisterListener);
46 void ProcessWindowChange(const sptr<WindowNode>& windowNode, AvoidControlType avoidType,
H A Dremote_animation.h77 const std::function<void(void)>& callback, sptr<WindowNode> windowNode);
87 const sptr<WindowNode>& windowNode);
H A Dinput_window_monitor.h45 void TransformWindowRects(const sptr<WindowNode>& windowNode, Rect& areaRect,
H A Dwindow_dumper.h42 …void AppendWindowNodeInfo(const sptr<WindowNode>& windowNode, int zOrder, std::ostringstream& oss);
H A Dwindow_controller.h115 WMError GetFocusWindowNode(DisplayId displayId, sptr<WindowNode>& windowNode);
H A Dwindow_node_container.h116 void UpdateAvoidAreaListener(sptr<WindowNode>& windowNode, bool haveAvoidAreaListener);

12