Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 440) sorted by relevance

12345678910>>...18

/foundation/arkui/ui_lite/frameworks/dock/
Dpointer_input_device.cpp86 UIView* parent = touchableView_->GetParent(); in DispatchPressEvent() local
88 while (parent != nullptr) { in DispatchPressEvent()
90 if (parent->OnPressEvent(evtParent)) { in DispatchPressEvent()
93 parent = parent->GetParent(); in DispatchPressEvent()
105 UIView* parent = touchableView_->GetParent(); in ProcessReleaseEvent() local
110 while (parent != nullptr) { in ProcessReleaseEvent()
112 if (parent->OnPressEvent(evtPressParent)) { in ProcessReleaseEvent()
115 parent = parent->GetParent(); in ProcessReleaseEvent()
123 while (parent != nullptr) { in ProcessReleaseEvent()
125 if (parent->OnReleaseEvent(evtReleaseParent)) { in ProcessReleaseEvent()
[all …]
/foundation/multimodalinput/input/libudev/test/
Dcustom_udev_test.cpp280 auto* parent = udev_device_get_parent(device); variable
281 ASSERT_NE(parent, nullptr);
282 EXPECT_STREQ(udev_device_get_syspath(parent), testDevice_.GetSysPath());
298 auto* parent = udev_device_get_parent_with_subsystem_devtype(device, "input", nullptr); variable
299 ASSERT_NE(parent, nullptr);
300 EXPECT_STREQ(udev_device_get_syspath(parent), testDevice_.GetSysPath());
324 auto* parent = udev_device_get_parent(device); variable
325 ASSERT_NE(parent, nullptr);
328 EXPECT_STREQ(udev_device_get_property_value(parent, "NAME"), expectedName.c_str());
332 EXPECT_STREQ(udev_device_get_property_value(parent, "PRODUCT"), expectedProduct.str().c_str());
[all …]
/foundation/arkui/ace_engine/frameworks/core/pipeline/base/
Drelated_node.cpp30 auto parent = weakParent.Upgrade(); in InitRelatedParent() local
31 while (searchDeep++ < MAX_DEEP_SEARCH && parent) { in InitRelatedParent()
32 auto relatedContainer = AceType::DynamicCast<RelatedContainer>(parent); in InitRelatedParent()
38 parent = parent->GetParent().Upgrade(); in InitRelatedParent()
48 auto parent = relatedParent_.Upgrade(); in RelatedEventStart() local
49 parent->OnRelatedStart(); in RelatedEventStart()
57 auto parent = relatedParent_.Upgrade(); in RelatedScrollEventPrepare() local
59 parent->OnRelatedPreScroll(delta, consumed); in RelatedScrollEventPrepare()
71 auto parent = relatedParent_.Upgrade(); in RelatedScrollEventDoing() local
73 parent->OnRelatedScroll(delta, consumed); in RelatedScrollEventDoing()
[all …]
/foundation/resourceschedule/ffrt/src/core/
Dtask_ctx.cpp39 TaskCtx::TaskCtx(const task_attr_private *attr, TaskCtx *parent, const uint64_t &id, const char *id… in TaskCtx() argument
41 : parent(parent), rank(id), identity(identity), qos(qos) in TaskCtx()
49 } else if (parent->parent == nullptr) { in TaskCtx()
52 label = parent->label + "." + std::to_string(rank); in TaskCtx()
64 this->qos = parent->qos; in SetQos()
103 …FFRT_LOGD("DecChildRef parent task:%s, childWaitRefCnt=%u", parent->label.c_str(), parent->childWa… in DecChildRef()
105 std::unique_lock<decltype(parent->lock)> lck(parent->lock); in DecChildRef()
106 parent->childWaitRefCnt--; in DecChildRef()
107 if (parent->childWaitRefCnt != 0) { in DecChildRef()
110 if (FFRT_UNLIKELY(parent->IsRoot())) { in DecChildRef()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/piece/
Drender_piece.cpp65 auto parent = GetParent().Upgrade(); in OnPaintFinish() local
66 if (parent && AceType::DynamicCast<RenderBox>(parent)) { in OnPaintFinish()
67 offset = parent->GetPosition(); in OnPaintFinish()
68 size = parent->GetLayoutSize() - margin.GetLayoutSizeInPx(context->GetDipScale()); in OnPaintFinish()
69 globalOffset = parent->GetGlobalOffset() + margin.GetOffsetInPx(context->GetDipScale()); in OnPaintFinish()
80 auto parent = GetParent().Upgrade(); in MouseHoverTest() local
81 if (!parent || !AceType::DynamicCast<RenderBox>(parent)) { in MouseHoverTest()
91 if (InTouchRectList(parentLocalPoint, parent->GetTouchRectList())) { in MouseHoverTest()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
Drs_obj_abs_geometry_test.cpp48 std::shared_ptr<RSObjAbsGeometry> parent = nullptr; variable
69 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
71 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
73 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
75 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
77 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
79 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
81 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
83 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
87 rsObjAbsGeometry.UpdateMatrix(parent, std::nullopt, std::nullopt);
[all …]
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
Drb_tree.c155 static int FillpRbEraseColorAtLeft(struct RbNode **x, struct RbNode **parent, struct RbRoot *root) in FillpRbEraseColorAtLeft() argument
157 struct RbNode *w = (*parent)->rbRight; in FillpRbEraseColorAtLeft()
160 (*parent)->color = RB_RED; /* parent != NIL? */ in FillpRbEraseColorAtLeft()
161 FillpRbRotateLeft((*parent), root); in FillpRbEraseColorAtLeft()
167 (*x) = (*parent); in FillpRbEraseColorAtLeft()
168 (*parent) = (*x)->rbParent; in FillpRbEraseColorAtLeft()
177 w = (*parent)->rbRight; in FillpRbEraseColorAtLeft()
179 w->color = (*parent)->color; in FillpRbEraseColorAtLeft()
180 (*parent)->color = RB_BLACK; in FillpRbEraseColorAtLeft()
184 FillpRbRotateLeft((*parent), root); in FillpRbEraseColorAtLeft()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/utest/mock/full_update/
Dfu_view_native_mock.ts18 constructor(compilerAssignedUniqueChildId: string, parent?: View) {
19 …his.constructor.name}: new instance, child of parent ${parent && parent.id__()}:${parent && parent
/foundation/arkui/ace_engine/frameworks/core/components/navigator/
Dnavigator_element.cpp27 auto parent = GetParent().Upgrade(); in PerformBuild() local
28 while (parent) { in PerformBuild()
29 auto stage = AceType::DynamicCast<SectionStageElement>(parent); in PerformBuild()
34 parent = parent->GetParent().Upgrade(); in PerformBuild()
/foundation/arkui/ace_engine/frameworks/core/components/scoring/
Dscoring_element.cpp30 auto parent = GetElementParent().Upgrade(); in PerformBuild() local
31 while (parent) { in PerformBuild()
32 auto pageElement = AceType::DynamicCast<PageElement>(parent); in PerformBuild()
41 parent = parent->GetElementParent().Upgrade(); in PerformBuild()
/foundation/multimedia/player_framework/services/engine/gstreamer/plugins/common/
Dgst_shmem_allocator.cpp119 if (((gint64)mem->parent.offset + offset) > INT32_MAX) { in gst_shmem_allocator_mem_copy()
123 realOffset = static_cast<gssize>(mem->parent.offset) + offset; in gst_shmem_allocator_mem_copy()
128 if (((gint64)mem->parent.size - offset) > INT32_MAX) { in gst_shmem_allocator_mem_copy()
132 size = static_cast<gssize>(mem->parent.size) - offset; in gst_shmem_allocator_mem_copy()
177 GstMemory *parent = mem->parent; in gst_shmem_allocator_mem_share() local
178 if (parent == nullptr) { in gst_shmem_allocator_mem_share()
179 parent = GST_MEMORY_CAST(mem); in gst_shmem_allocator_mem_share()
186 …GstMemoryFlags flags = static_cast<GstMemoryFlags>(GST_MEMORY_FLAGS(parent) | GST_MEMORY_FLAG_READ… in gst_shmem_allocator_mem_share()
187 gst_memory_init(GST_MEMORY_CAST(sub), flags, mem->allocator, parent, mem->maxsize, in gst_shmem_allocator_mem_share()
208 GstShMemMemory *parent = reinterpret_cast<GstShMemMemory *>(mem1->parent.parent); in gst_shmem_allocator_is_span() local
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
Dflutter_render_tab_bar.cpp54 RefPtr<RenderNode> parent = GetParent().Upgrade(); in FindTabsNode() local
55 while (parent) { in FindTabsNode()
59 if (AceType::InstanceOf<RenderFlex>(parent)) { in FindTabsNode()
60 return AceType::DynamicCast<RenderNode>(parent); in FindTabsNode()
63 parent = parent->GetParent().Upgrade(); in FindTabsNode()
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
Dstate_style_manager.cpp70 auto parent = node->GetParent(); in FireStateFunc() local
71 while (parent) { in FireStateFunc()
72 if (AceType::InstanceOf<CustomNodeBase>(parent)) { in FireStateFunc()
73 customNode = DynamicCast<CustomNodeBase>(parent); in FireStateFunc()
76 parent = parent->GetParent(); in FireStateFunc()
/foundation/arkui/ace_engine/frameworks/core/components/shared_transition/
Dshared_transition_element.cpp90 const auto& parent = GetElementParent().Upgrade(); in GetRenderBox() local
91 if (!parent) { in GetRenderBox()
96 auto box = AceType::DynamicCast<BoxElement>(parent); in GetRenderBox()
159 auto parent = GetRenderBox(); in AboardShuttle() local
160 if (parent && parent->GetBackDecoration() != nullptr) { in AboardShuttle()
161 passengerComponent_->SetBackDecoration(parent->GetBackDecoration()); in AboardShuttle()
163 if (parent && parent->GetFrontDecoration() != nullptr) { in AboardShuttle()
164 passengerComponent_->SetFrontDecoration(parent->GetFrontDecoration()); in AboardShuttle()
205 auto parent = passengerElement_->GetElementParent().Upgrade(); in GetOffShuttle() local
206 if (parent) { in GetOffShuttle()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
Dnavigation_bar_component.cpp127 void TabBarBuilder::BuildTabBar(const RefPtr<ComponentGroup>& parent) in BuildTabBar() argument
133 parent->AppendChild( in BuildTabBar()
196 void PhoneTitleBarBuilder::BuildSelectPopup(const RefPtr<ComponentGroup>& parent) in BuildSelectPopup() argument
210 parent->AppendChild(titleComposed_); in BuildSelectPopup()
213 void PhoneTitleBarBuilder::BuildTitleZone(const RefPtr<ComponentGroup>& parent, double padding) in BuildTitleZone() argument
216 if (parent->GetChildren().empty()) { in BuildTitleZone()
219 BuildTabBar(parent); in BuildTitleZone()
221 parent->AppendChild(BuildTitle(padding)); in BuildTitleZone()
255 void NormalTitleBarBuilder::BuildStartZone(const RefPtr<RowComponent>& parent) in BuildStartZone() argument
260parent->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "startButton", st… in BuildStartZone()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components/test/unittest/list/
Dlist_test_utils.cpp36 RefPtr<RenderBox> parent = AceType::MakeRefPtr<MockRenderBox>(); in CreateRenderItem() local
44 parent->Attach(context); in CreateRenderItem()
50 parent->AddChild(listItem); in CreateRenderItem()
52 return parent; in CreateRenderItem()
58 RefPtr<RenderBox> parent = AceType::MakeRefPtr<MockRenderBox>(); in CreateRenderItemGroup() local
77 parent->Attach(context); in CreateRenderItemGroup()
78 parent->AddChild(listItemGroup); in CreateRenderItemGroup()
79 return parent; in CreateRenderItemGroup()
/foundation/arkui/ace_engine/frameworks/core/components/transform/
Dtransform_element.cpp55 auto parent = GetElementParent().Upgrade(); in SearchParentPage() local
56 while (parent) { in SearchParentPage()
57 auto page = AceType::DynamicCast<PageElement>(parent); in SearchParentPage()
62 parent = parent->GetElementParent().Upgrade(); in SearchParentPage()
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
Dinspector.cpp86 auto parent = uiNode->GetParent(); in GetFrameNodeChildren() local
87 if (parent && parent->GetTag() == "JsView") { in GetFrameNodeChildren()
88 uiNode->SetViewId(std::to_string(parent->GetId())); in GetFrameNodeChildren()
90 uiNode->SetViewId(parent->GetViewId()); in GetFrameNodeChildren()
110 …const RefPtr<NG::UINode>& parent, std::unique_ptr<OHOS::Ace::JsonValue>& jsonNodeArray, int pageId) in GetSpanInspector() argument
113 auto spanParentNode = parent->GetParent(); in GetSpanInspector()
119 parent->ToJsonValue(jsonObject); in GetSpanInspector()
121 jsonNode->Put(INSPECTOR_TYPE, parent->GetTag().c_str()); in GetSpanInspector()
122 jsonNode->Put(INSPECTOR_ID, parent->GetId()); in GetSpanInspector()
136 jsonNode->Put("$debugLine", parent->GetDebugLine().c_str()); in GetSpanInspector()
[all …]
Dframe_node.cpp327 auto parent = frameNode->GetParent(); in GetFrameNode() local
328 if (parent) { in GetFrameNode()
329 parent->RemoveChild(frameNode); in GetFrameNode()
597 auto parent = GetParent(); in OnAttachToMainTree() local
598 while (parent) { in OnAttachToMainTree()
599 auto frameNode = AceType::DynamicCast<FrameNode>(parent); in OnAttachToMainTree()
603 parent = parent->GetParent(); in OnAttachToMainTree()
811 auto parent = GetParent(); in TriggerVisibleAreaChangeCallback() local
812 while (parent) { in TriggerVisibleAreaChangeCallback()
813 auto parentFrame = AceType::DynamicCast<FrameNode>(parent); in TriggerVisibleAreaChangeCallback()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navrouter/
Dnavrouter_group_node.cpp100 auto parent = GetParent(); in ProcessDestinationChangeEvent() local
101 while (parent) { in ProcessDestinationChangeEvent()
102 auto navigationNode = AceType::DynamicCast<NavigationGroupNode>(parent); in ProcessDestinationChangeEvent()
106 parent = parent->GetParent(); in ProcessDestinationChangeEvent()
108 SetDestinationChangeEvent(parent); in ProcessDestinationChangeEvent()
111 void NavRouterGroupNode::SetDestinationChangeEvent(const RefPtr<UINode>& parent) in SetDestinationChangeEvent() argument
113 auto navigationNode = AceType::DynamicCast<NavigationGroupNode>(parent); in SetDestinationChangeEvent()
129 void NavRouterGroupNode::AddNavDestinationToNavigation(const RefPtr<UINode>& parent) in AddNavDestinationToNavigation() argument
131 auto navigationNode = AceType::DynamicCast<NavigationGroupNode>(parent); in AddNavDestinationToNavigation()
199 bool NavRouterGroupNode::CleanNodeInNavigation(const RefPtr<UINode>& parent) in CleanNodeInNavigation() argument
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/full_update/
Dfu_view.ts80 constructor(compilerAssignedUniqueChildId: string, parent: View, localStorage?: LocalStorage) {
81 super(compilerAssignedUniqueChildId, parent);
83 this.providedVars_ = parent ? new Map(parent.providedVars_)
87 if (parent) {
90 this.setCardId(parent.getCardId());
91 this.localStorage_ = parent.localStorage_;
/foundation/arkui/ace_engine/frameworks/core/components/refresh/
Drender_refresh_target.cpp26 auto parent = childNode->GetParent().Upgrade(); in FindRefreshParent() local
27 while (parent) { in FindRefreshParent()
28 auto refresh = AceType::DynamicCast<RenderRefresh>(parent); in FindRefreshParent()
33 parent = parent->GetParent().Upgrade(); in FindRefreshParent()
/foundation/arkui/ace_engine/frameworks/core/components/svg/
Drosen_render_svg_tspan.cpp157 auto parent = AceType::DynamicCast<RenderSvgBase>(GetParent().Upgrade()); in OnNotifyRender() local
158 while (parent != nullptr) { in OnNotifyRender()
159 …if (AceType::InstanceOf<RosenRenderSvgTspan>(parent) || AceType::InstanceOf<RenderSvgTextPath>(par… in OnNotifyRender()
160 node = parent; in OnNotifyRender()
161 parent = AceType::DynamicCast<RenderSvgBase>(parent->GetParent().Upgrade()); in OnNotifyRender()
162 } else if (AceType::InstanceOf<RenderSvgText>(parent)) { in OnNotifyRender()
164 parent->MarkNeedRender(true); in OnNotifyRender()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
Dtext_field_manager.cpp51 auto parent = textField->GetAncestorNodeOfFrame(); in FindScrollableOfFocusedTextField() local
52 while (parent) { in FindScrollableOfFocusedTextField()
53 auto pattern = parent->GetPattern<ScrollablePattern>(); in FindScrollableOfFocusedTextField()
55 return parent; in FindScrollableOfFocusedTextField()
57 parent = parent->GetAncestorNodeOfFrame(); in FindScrollableOfFocusedTextField()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/command/
Drs_root_node_command.cpp55 auto parent = nodeMap.GetRenderNode<RSSurfaceRenderNode>(surfaceNodeId); in AttachToUniSurfaceNode() local
57 if (!parent || !node) { in AttachToUniSurfaceNode()
61 surfaceNodeId, id, parent != nullptr, node != nullptr); in AttachToUniSurfaceNode()
64 parent->AddChild(node); in AttachToUniSurfaceNode()
65 parent->SetSurfaceNodeType(RSSurfaceNodeType::APP_WINDOW_NODE); in AttachToUniSurfaceNode()

12345678910>>...18