/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | component_factory.h | 88 component = new CameraComponent(options, children, styleManager); in CreateComponent() 93 component = new CanvasComponent(options, children, styleManager); in CreateComponent() 97 component = new DivComponent(options, children, styleManager); in CreateComponent() 100 component = new StackComponent(options, children, styleManager); in CreateComponent() 103 component = new ImageComponent(options, children, styleManager); in CreateComponent() 120 component = new TabBarComponent(options, children, styleManager); in CreateComponent() 126 component = new TabsComponent(options, children, styleManager); in CreateComponent() 130 component = new TextComponent(options, children, styleManager); in CreateComponent() 142 component = new ListComponent(options, children, styleManager); in CreateComponent() 145 component = new DivComponent(options, children, styleManager); in CreateComponent() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | multi_child.h | 31 explicit MultiChild(const std::list<RefPtr<Component>>& children) : children_(children) {} in MultiChild() argument 45 auto& children = ExpandChildren(); in AddChild() local 46 auto it = std::find(children.begin(), children.end(), child); in AddChild() 47 if (it != children.end()) { in AddChild() 52 children.emplace_back(child); in AddChild() 62 auto it = std::find(children.begin(), children.end(), child); in RemoveChild() 63 if (it == children.end()) { in RemoveChild() 68 children.erase(it); in RemoveChild() 74 for (auto& child : children) { in RemoveChildren() 77 children.clear(); in RemoveChildren() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | stack_tdd_test.cpp | 59 jerry_value_t children = jerry_create_null(); in CreateChildComponent() local 62 jerry_release_value(children); in CreateChildComponent() 81 jerry_value_t children = jerry_create_null(); in ComponentStackTest001() local 91 jerry_release_value(children); in ComponentStackTest001() 109 jerry_value_t children = jerry_create_array(childrenNum); in ComponentStackTest002() local 124 ReleaseJerryValue(childOptions, children, VA_ARG_END_FLAG); in ComponentStackTest002() 145 jerry_value_t children = jerry_create_array(childrenNum); in ComponentStackTest003() local 172 ReleaseJerryValue(childOptions, children, VA_ARG_END_FLAG); in ComponentStackTest003() 193 jerry_value_t children = jerry_create_array(childrenNum); in ComponentStackTest004() local 241 jerry_value_t children = jerry_create_array(childrenNum); in ComponentStackTest005() local [all …]
|
H A D | list_tdd_test.cpp | 55 jerry_value_t children = jerry_create_null(); in ListTest001() local 57 Component* component = ComponentFactory::CreateComponent(componentNameId, objGlob, children); in ListTest001() 58 jerry_release_value(children); in ListTest001() 94 jerry_value_t children = jerry_create_null(); in ListTest002() local 97 Component* component = ComponentFactory::CreateComponent(componentNameId, objGlob, children); in ListTest002() 98 jerry_release_value(children); in ListTest002() 136 jerry_value_t children = jerry_create_null(); in ListTest003() local 139 Component* component = ComponentFactory::CreateComponent(componentNameId, objGlob, children); in ListTest003() 140 jerry_release_value(children); in ListTest003() 178 jerry_value_t children = jerry_create_null(); in ListTest004() local [all …]
|
H A D | horizonprogress_tdd_test.cpp | 64 jerry_value_t children = jerry_create_null(); in HorizonProgressTest001() local 107 jerry_value_t children = jerry_create_null(); in HorizonProgressTest002() local 150 jerry_value_t children = jerry_create_null(); in HorizonProgressTest003() local 201 jerry_value_t children = jerry_create_null(); in HorizonProgressTest004() local 245 jerry_value_t children = jerry_create_null(); in HorizonProgressTest005() local 290 jerry_value_t children = jerry_create_null(); in HorizonProgressTest006() local 334 jerry_value_t children = jerry_create_null(); in HorizonProgressTest007() local 378 jerry_value_t children = jerry_create_null(); in HorizonProgressTest008() local 425 jerry_value_t children = jerry_create_null(); in HorizonProgressTest009() local 477 jerry_value_t children = jerry_create_null(); in HorizonProgressTest013() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/ |
H A D | stage_manager.cpp | 195 if (children.empty()) { in PushPage() 288 if (children.empty()) { in InsertPage() 328 if (children.empty()) { in PopPage() 332 auto pageNode = children.back(); in PopPage() 371 if (children.empty()) { in PopPageToIndex() 387 auto iter = children.rbegin(); in PopPageToIndex() 432 if (children.size() <= 1) { in CleanPageStack() 454 if (children.empty()) { in MovePageToFront() 558 if (children.empty()) { in GetLastPage() 597 if (children.empty()) { in GetLastPageWithTransition() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | ui_node.cpp | 255 auto iter = children.begin(); in RemoveChildAtIndex() 500 auto iter = std::find(children.begin(), children.end(), child); in RemoveFromParentCleanly() 732 auto it = children.end(); in MovePosition() 734 it = children.begin(); in MovePosition() 752 children.remove(self); in MovePosition() 754 children.insert(it, self); in MovePosition() 1063 for (auto iter = children.rbegin(); iter != children.rend(); ++iter) { in TouchTest() 1082 for (auto iter = children.rbegin(); iter != children.rend(); ++iter) { in MouseTest() 1100 for (auto iter = children.rbegin(); iter != children.rend(); ++iter) { in AxisTest() 1312 if (children.empty()) { in SetChildrenInDestroying() [all …]
|
H A D | inspector.cpp | 84 for (const auto& child : children) { in GetInspectorByKey() 98 depthElementMap[depth].insert(depthElementMap[depth].end(), children.begin(), children.end()); in DumpElementTree() 131 children.emplace_back(uiNode); in GetFrameNodeChildren() 217 std::vector<RefPtr<NG::UINode>> children; in GetInspectorChildren() local 229 for (auto uiNode : children) { in GetInspectorChildren() 362 for (auto uiNode : children) { in GetInspectorChildren() 403 for (auto& uiNode : children) { in GetInspectorInfo() 710 for (auto uiNode : children) { in GetSimplifiedInspectorChildren() 755 for (auto& uiNode : children) { in GetSimplifiedInspector() 927 for (auto& uiNode : children) { in GetInspectorTreeInfo() [all …]
|
/ohos5.0/build/tools/module_dependence/ |
H A D | module_deps_tree.py | 89 children = [] 91 children.append(self.node_tree(module_dep)) 92 tree_data = {"name": node_name, "children": children} 104 children = node.get("children", "no_children") 105 if children != "no_children": 106 queue.extend(children) 110 children = tree_data.get("children", "no_children") 111 if children != "no_children": 112 for index, value in enumerate(children): 113 children[index] = self.graph_tree(children[index]) [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/ |
H A D | render_module.cpp | 42 …t RenderModule::CreateElement(jerry_value_t tagName, jerry_value_t options, jerry_value_t children) in CreateElement() argument 60 Component *component = ComponentFactory::CreateComponent(componentNameId, options, children); in CreateElement() 64 DescriptorUtils::ReleaseDescriptorOrElements(children); in CreateElement() 72 DescriptorUtils::ReleaseDescriptorOrElements(children); in CreateElement() 90 jerry_value_t children; in CreateElement() local 95 children = args[childrenNum]; in CreateElement() 100 children = args[1]; in CreateElement() 103 children = UNDEFINED; in CreateElement() 108 children = UNDEFINED; in CreateElement() 114 return CreateElement(tagName, options, children); in CreateElement()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-custom-component-layout.md | 96 children.forEach((child) => { 104 children.forEach((child) => { 170 this.overFlowIndex = children.length; 172 for (let index = 0; index < children.length; ++index) { 173 let child = children[index]; 191 for (let index = 0; index < children.length; ++index) { 192 let child = children[index]; 538 onLayout(children: Array<LayoutChild>, constraint: ConstraintSizeOptions) { 540 children.forEach((child) => { 546 onMeasure(children: Array<LayoutChild>, constraint: ConstraintSizeOptions) { [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stage/ |
H A D | render_stage.cpp | 136 auto children = stageElement->GetChildren(); in HandleDragUpdate() local 137 if (children.size() < LEAST_DRAG_BACK_PAGES) { in HandleDragUpdate() 141 auto childIter = children.rbegin(); in HandleDragUpdate() 168 auto children = stageElement->GetChildren(); in HandleDragStart() local 169 if (children.size() < LEAST_DRAG_BACK_PAGES) { in HandleDragStart() 173 auto childIter = children.rbegin(); in HandleDragStart() 225 auto children = stageElement->GetChildren(); in HandleDragEnd() local 230 auto childIter = children.rbegin(); in HandleDragEnd() 272 auto children = stageElement->GetChildren(); in GetControllers() local 273 if (children.size() < LEAST_DRAG_BACK_PAGES) { in GetControllers() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | for_each_node.cpp | 111 auto& children = ModifyChildren(); in CompareAndUpdateChildren() local 114 std::swap(children, tempChildren_); in CompareAndUpdateChildren() 125 std::swap(children, tempChildren_); in CompareAndUpdateChildren() 200 const auto& children = GetChildren(); in FinishRepeatRender() local 203 newNodeSet(children.begin(), children.end()); in FinishRepeatRender() 280 auto& children = ModifyChildren(); in MoveData() local 281 auto fromIter = children.begin(); in MoveData() 285 children.erase(fromIter); in MoveData() 286 auto toIter = children.begin(); in MoveData() 288 children.insert(toIter, child); in MoveData() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/ |
H A D | tab_bar_item_component.cpp | 36 std::list<RefPtr<Component>> children; in TabBarItemComponent() local 40 children.push_back(icon_); in TabBarItemComponent() 49 children.push_back(text_); in TabBarItemComponent() 51 if (!children.empty()) { in TabBarItemComponent() 52 … auto flex = AceType::MakeRefPtr<ColumnComponent>(FlexAlign::CENTER, FlexAlign::CENTER, children); in TabBarItemComponent() 121 std::list<RefPtr<Component>> children; in BuildWithTextIcon() local 122 children.emplace_back(box); in BuildWithTextIcon() 123 children.emplace_back(textComponent); in BuildWithTextIcon() 124 …mponent = AceType::MakeRefPtr<ColumnComponent>(FlexAlign::FLEX_START, FlexAlign::CENTER, children); in BuildWithTextIcon()
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
H A D | sehap_contexts_trie.cpp | 48 auto iter = node->children.find(element); in FindChild() 49 if (iter != node->children.end()) { in FindChild() 63 if (node->children[word] == nullptr) { in Insert() 64 node->children[word] = new (std::nothrow) SehapContextsTrie(); in Insert() 65 if (node->children[word] == nullptr) { in Insert() 70 node = node->children[word]; in Insert() 118 for (auto child : root->children) { in Clear() 125 for (auto child : root->children) { in Clear()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/ |
H A D | list_component.cpp | 22 …stComponent::ListComponent(const std::list<RefPtr<Component>>& children) : ComponentGroup(children) in ListComponent() argument 114 const auto& children = GetChildren(); in InsertChild() local 115 if (!child || pos > children.size()) { in InsertChild() 119 if (pos == children.size()) { in InsertChild() 125 auto it = children.begin(); in InsertChild() 126 while (it != children.end()) { in InsertChild() 142 ComponentGroup::InsertChild(std::distance(children.begin(), it), child); in InsertChild()
|
H A D | render_list_item_group.cpp | 149 auto children = GetChildren(); in NeedRebuild() local 150 if (children.empty()) { in NeedRebuild() 167 auto children = GetChildren(); in GetPrimaryItem() local 168 if (children.empty()) { in GetPrimaryItem() 218 auto children = GetChildren(); in LayoutExpandableList() local 219 auto rIter = children.rbegin(); in LayoutExpandableList() 445 auto children = GetChildren(); in SetChildOpacity() local 446 auto rIter = children.rbegin(); in SetChildOpacity() 464 auto children = GetChildren(); in SetChildStretch() local 577 if (children.empty()) { in GetRenderBox() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/syntax/ |
H A D | content_slot_syntax_test_ng.cpp | 97 auto children = contentSlotNode->GetChildren(); variable 98 EXPECT_TRUE(children.size() == NUM_1 && children.front()->GetTag() == "frameNode1"); 103 children = contentSlotNode->GetChildren(); 104 EXPECT_TRUE(children.size() == NUM_2 && children.front()->GetTag() == "frameNode2"); 110 children = contentSlotNode->GetChildren(); 111 EXPECT_TRUE(children.size() == 0);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/stepper/ |
H A D | stepper_component.cpp | 29 …omponent::StepperComponent(const std::list<RefPtr<Component>>& children) : ComponentGroup(children) in StepperComponent() argument 70 const auto& children = GetChildren(); in InsertChild() local 71 if (!child || pos > children.size()) { in InsertChild() 74 if (pos == children.size()) { in InsertChild() 135 auto children = ifElseComponent->GetChildren(); in CollectItems() local 136 for (auto& childComponent : children) { in CollectItems()
|
/ohos5.0/foundation/communication/netmanager_base/utils/common_utils/include/ |
H A D | suffix_match_trie.h | 44 struct TrieNode *children[DOMAIN_CHAR_RANGE]; member 88 if (!pCrawl->children[i]) in Insert() 89 pCrawl->children[i] = CreateNode(); in Insert() 90 pCrawl = pCrawl->children[i]; in Insert() 117 pCrawl = pCrawl->children[i]; in Update() 150 pCrawl = pCrawl->children[i]; in LongestSuffixMatch() 177 FreeTrie(root->children[i]); in FreeTrie()
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/util/ |
H A D | xml_parse.cpp | 58 for (xmlNodePtr btSubSectionNode = getSectionNode->children; btSubSectionNode; in IntHasSection() 74 if ((sectionNode != NULL) && (sectionNode->children)) { in IntHasProperty() 75 for (xmlNodePtr btPropertyNode = sectionNode->children; btPropertyNode; in IntHasProperty() 117 if (rootNode->children != NULL) { in FindOrCreatePropertyNode() 160 xmlChar *nodeContent = xmlNodeGetContent(node->children); in GetValue() 177 xmlChar *nodeContent = xmlNodeGetContent(node->children); in GetValue() 191 xmlChar *nodeContent = xmlNodeGetContent(node->children); in GetValue() 230 for (propertyNode = node->children; propertyNode; propertyNode = propertyNode->next) { in RemoveProperty() 354 xmlNodePtr btSectionNode = rootNode->children; in HasSection() 359 btSubSectionNode = btSectionNode->children; in HasSection() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_tool_bar_item.cpp | 177 std::list<RefPtr<Component>> children; in PrepareSpecializedComponent() local 179 BuildEndItemComponent(children); in PrepareSpecializedComponent() 181 BuildCommonComponent(children); in PrepareSpecializedComponent() 185 if (children.empty()) { in PrepareSpecializedComponent() 189 … column = AceType::MakeRefPtr<ColumnComponent>(FlexAlign::FLEX_START, FlexAlign::CENTER, children); in PrepareSpecializedComponent() 196 void DOMToolBarItem::BuildCommonComponent(std::list<RefPtr<Component>>& children) in BuildCommonComponent() argument 207 children.emplace_back(SetPadding(imageChild_, Edge(theme_->GetIconEdge()))); in BuildCommonComponent() 220 children.emplace_back(SetPadding(textChild_, Edge(theme_->GetTextEdge()))); in BuildCommonComponent() 224 void DOMToolBarItem::BuildEndItemComponent(std::list<RefPtr<Component>>& children) in BuildEndItemComponent() argument 234 children.emplace_back(SetPadding(imageChild_, Edge(theme_->GetIconEdge()))); in BuildEndItemComponent() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/ |
H A D | _a_r_k_u_i___text_picker_cascade_range_content.md | 21 …PickerRangeContent](_a_r_k_u_i___text_picker_range_content.md) \* [children](#children) | 联动数据。 | 28 ### children subsection 31 const ARKUI_TextPickerRangeContent* ARKUI_TextPickerCascadeRangeContent::children
|
/ohos5.0/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/graph/ |
H A D | graph_converter.py | 61 children: List['EventParentChildrenPair'] = [] variable in EventParentChildrenPair 65 self.children = [] 68 self.children.append(child) 108 if len(item.children) > 0: 109 … draw_event_scop_tree_recursively(item.children, node_name, finger, graph, is_show_detail) 156 children: List['FrameNodeParentChildrenPair'] = [] variable in FrameNodeParentChildrenPair 160 self.children = [] 163 self.children.append(child) 207 if len(item.children) > 0: 208 draw_hittest_result_recursively(item.children, node_name, graph)
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/root/ |
H A D | root_pattern.h | 80 auto children = host->GetChildren(); in OnDirtyLayoutWrapperSwap() local 83 auto iter = std::find_if(children.begin(), children.end(), in OnDirtyLayoutWrapperSwap() 85 if (iter == children.end() || (*iter) == children.back()) { in OnDirtyLayoutWrapperSwap() 93 for (++iter; iter != children.end(); iter++) { in OnDirtyLayoutWrapperSwap()
|