Home
last modified time | relevance | path

Searched refs:children (Results 1 – 25 of 837) sorted by relevance

12345678910>>...34

/external/antlr/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/tree/
DBaseTree.js13 if ( !this.children || i>=this.children.length ) {
16 return this.children[i];
23 return this.children;
28 for (i = 0; this.children && i < this.children.length; i++) {
29 t = this.children[i];
38 if ( !this.children ) {
41 return this.children.length;
56 if ( this.children && this.children == childTree.children ) {
60 if ( childTree.children ) {
61 if ( this.children ) { // must copy, this has children already
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3basetree.c75 tree->children = NULL; in antlr3BaseTreeNew()
101 if (tree->children != NULL) in getFirstChildWithType()
103 cs = tree->children->size(tree->children); in getFirstChildWithType()
106 t = (pANTLR3_BASE_TREE) (tree->children->get(tree->children, i)); in getFirstChildWithType()
121 if ( tree->children == NULL in getChild()
122 || i >= tree->children->size(tree->children)) in getChild()
126 return tree->children->get(tree->children, i); in getChild()
133 if (tree->children == NULL) in getChildCount()
139 return tree->children->size(tree->children); in getChildCount()
156 if (child->children != NULL && child->children == tree->children) in addChild()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DBaseTree.java40 protected List children; field in BaseTree
53 if ( children==null || i>=children.size() ) { in getChild()
56 return (Tree)children.get(i); in getChild()
63 return children; in getChildren()
67 for (int i = 0; children!=null && i < children.size(); i++) { in getFirstChildWithType()
68 Tree t = (Tree) children.get(i); in getFirstChildWithType()
77 if ( children==null ) { in getChildCount()
80 return children.size(); in getChildCount()
97 if ( this.children!=null && this.children == childTree.children ) { in addChild()
101 if ( childTree.children!=null ) { in addChild()
[all …]
/external/libweave/src/notification/
Dxml_node_unittest.cc76 EXPECT_TRUE(node_->children().empty()); in TEST_F()
94 EXPECT_EQ(1u, node_->children().size()); in TEST_F()
95 EXPECT_EQ("child", node_->children().front()->name()); in TEST_F()
96 EXPECT_EQ(node_.get(), GetParent(*node_->children().front().get())); in TEST_F()
159 auto children = node_->FindChildren("node3", false); in TEST_F() local
160 ASSERT_EQ(1u, children.size()); in TEST_F()
161 EXPECT_EQ("node3", children[0]->name()); in TEST_F()
162 EXPECT_EQ("6", children[0]->GetAttributeOrEmpty("id")); in TEST_F()
164 children = node_->FindChildren("node3", true); in TEST_F()
165 ASSERT_EQ(4u, children.size()); in TEST_F()
[all …]
Dxmpp_stream_parser_unittest.cc138 ASSERT_EQ(2u, stanza1->children().size()); in TEST_F()
139 const XmlNode* child1 = stanza1->children()[0].get(); in TEST_F()
141 ASSERT_EQ(1u, child1->children().size()); in TEST_F()
142 EXPECT_EQ("required", child1->children()[0]->name()); in TEST_F()
143 const XmlNode* child2 = stanza1->children()[1].get(); in TEST_F()
145 ASSERT_EQ(2u, child2->children().size()); in TEST_F()
146 EXPECT_EQ("mechanism", child2->children()[0]->name()); in TEST_F()
147 EXPECT_EQ("X-OAUTH2", child2->children()[0]->text()); in TEST_F()
148 EXPECT_EQ("mechanism", child2->children()[1]->name()); in TEST_F()
149 EXPECT_EQ("X-GOOGLE-TOKEN", child2->children()[1]->text()); in TEST_F()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/
DBaseTree.cs49 List<ITree> children; field in Antlr.Runtime.Tree.BaseTree
70 return children;
145 if (children == null || i >= children.Count) in GetChild()
148 return children[i]; in GetChild()
152 foreach (ITree child in children) { in GetFirstChildWithType()
177 … if (childTree != null && this.children != null && this.children == childTree.children) { in AddChild()
182 if (this.children != null || childTree == null) { in AddChild()
183 if (this.children == null) in AddChild()
184 this.children = CreateChildrenList(); in AddChild()
190 this.children.Add(c); in AddChild()
[all …]
/external/universal-tween-engine/java/api/src/aurelienribon/tweenengine/
DTimeline.java105 private final List<BaseTween<?>> children = new ArrayList<BaseTween<?>>(10); field in Timeline
123 children.clear(); in reset()
145 current.children.add(tween); in push()
158 current.children.add(timeline); in push()
171 current.children.add(Tween.mark().delay(time)); in pushPause()
186 current.children.add(tl); in beginSequence()
202 current.children.add(tl); in beginParallel()
224 if (isBuilt) return Collections.unmodifiableList(current.children); in getChildren()
225 else return current.children; in getChildren()
238 for (int i=0; i<children.size(); i++) { in build()
[all …]
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRBaseTree.m70 * as there are no fields other than the children list, which cannot
71 * be copied as the children are not considered part of this node.
82 children = nil;
92 // children = [[AMutableArray arrayWithCapacity:5] retain];
93 // [children addObject:node];
105 if ( children ) [children release];
111 if ( children == nil || i >= [children count] ) {
114 return (id<ANTLRBaseTree>)[children objectAtIndex:i];
117 /** Get the children internal List; note that if you directly mess with
120 - (AMutableArray *) children
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/
DGroup.java38 final SnapshotArray<Actor> children = new SnapshotArray(true, 4, Actor.class); field in Group
47 Actor[] actors = children.begin(); in act()
48 for (int i = 0, n = children.size; i < n; i++) in act()
50 children.end(); in act()
67 SnapshotArray<Actor> children = this.children; in drawChildren() local
68 Actor[] actors = children.begin(); in drawChildren()
77 for (int i = 0, n = children.size; i < n; i++) { in drawChildren()
89 for (int i = 0, n = children.size; i < n; i++) { in drawChildren()
107 for (int i = 0, n = children.size; i < n; i++) { in drawChildren()
117 for (int i = 0, n = children.size; i < n; i++) { in drawChildren()
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DCompositeGrammarTree.java35 protected List<CompositeGrammarTree> children; field in CompositeGrammarTree
50 if ( children==null ) { in addChild()
51 children = new ArrayList<CompositeGrammarTree>(); in addChild()
53 children.add(t); in addChild()
62 for (int i = 0; r==null && children!=null && i < children.size(); i++) { in getRule()
63 CompositeGrammarTree child = children.get(i); in getRule()
93 for (int i = 0; n==null && children!=null && i < children.size(); i++) { in findNode()
94 CompositeGrammarTree child = children.get(i); in findNode()
108 for (int i = 0; n==null && children!=null && i < children.size(); i++) { in findNode()
109 CompositeGrammarTree child = children.get(i); in findNode()
[all …]
/external/chromium-trace/catapult/catapult_base/catapult_base/refactor/annotated_symbol/
Dimport_statement.py25 def Annotate(cls, symbol_type, children): argument
28 return cls(symbol_type, children)
59 def Annotate(cls, symbol_type, children): argument
63 return cls(symbol_type, children)
67 return self.children[0].value
71 self.children[0].value = value
75 if len(self.children) < 3:
77 return self.children[2].value
85 if len(self.children) < 3:
87 self.children.append(
[all …]
Dreference.py25 if not nodes[0].children or nodes[0].children[0].type != token.NAME:
33 if len(nodes[i].children) != 2:
35 if (nodes[i].children[0].type != token.DOT or
36 nodes[i].children[1].type != token.NAME):
43 def __init__(self, children): argument
44 super(Reference, self).__init__(-1, children)
53 for child in self.children
54 for token_snippet in child.children)
68 child.children[-1].value = value_part
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/lib/tree_adapters/
Dhtmlparser2.js32 var children = this.children;
33 return children && children[0] || null;
37 var children = this.children;
38 return children && children[children.length - 1] || null;
70 children: [] property
94 children: [], property
127 for (var i = 0; i < document.children.length; i++) {
128 if (document.children[i].type === 'directive' && document.children[i].name === '!doctype') {
129 doctypeNode = document.children[i];
163 var prev = parentNode.children[parentNode.children.length - 1];
[all …]
/external/elfutils/tests/
Drun-show-abbrev.sh24 abbrev[0]: code = 1, tag = 17, children = 1
32 abbrev[19]: code = 2, tag = 46, children = 1
43 abbrev[44]: code = 3, tag = 46, children = 1
51 abbrev[63]: code = 4, tag = 24, children = 0
52 abbrev[68]: code = 5, tag = 46, children = 1
59 abbrev[85]: code = 6, tag = 36, children = 0
63 abbrev[96]: code = 7, tag = 52, children = 0
70 abbrev[0]: code = 1, tag = 17, children = 1
78 abbrev[19]: code = 2, tag = 46, children = 0
88 abbrev[42]: code = 3, tag = 36, children = 0
[all …]
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/tools/
Dglnames.py5040 self.children = {}
5053 if self.children.has_key( letter ):
5054 child = self.children[letter]
5057 self.children[letter] = child
5063 children = self.children.values()
5064 self.children = {}
5066 for child in children:
5067 self.children[child.letter[0]] = child.optimize()
5072 if ( self.value != 0 ) or ( not children ) or len( children ) > 1:
5075 child = children[0]
[all …]
/external/chromium-trace/catapult/catapult_base/catapult_base/refactor/
Dsnippet.py34 def children(self): member in Snippet
58 for child in self.children:
63 for child in self.children:
77 (snippet_type, self, self.children))
81 for child in self.children:
85 for child in self.children:
129 def children(self): member in TokenSnippet
157 def __init__(self, symbol_type, children): argument
159 self._children = children
170 def children(self): member in Symbol
[all …]
/external/droiddriver/src/io/appium/droiddriver/scroll/
DSentinelStrategy.java71 protected abstract UiElement getSentinel(List<? extends UiElement> children); in getSentinel() argument
82 protected UiElement getSentinel(List<? extends UiElement> children) {
83 return children.isEmpty() ? null : children.get(0);
96 protected UiElement getSentinel(List<? extends UiElement> children) {
97 return children.isEmpty() ? null : children.get(children.size() - 1);
117 protected UiElement getSentinel(List<? extends UiElement> children) {
118 return children.size() < 2 ? null : children.get(children.size() - 2);
132 protected UiElement getSentinel(List<? extends UiElement> children) {
133 return children.size() <= 1 ? null : children.get(1);
154 protected UiElement getSentinel(List<? extends UiElement> children) { in getSentinel() argument
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkBinaryRegistry.cpp144 std::vector<SparseIndexNode*> children; member
158 for (size_t ndx = 0; ndx < children.size(); ndx++) in ~SparseIndexNode()
159 delete children[ndx]; in ~SparseIndexNode()
177 for (size_t childNdx = 0; childNdx < group->children.size(); childNdx++) in addToSparseIndex()
179 if (group->children[childNdx]->word == curWord) in addToSparseIndex()
181 child = group->children[childNdx]; in addToSparseIndex()
190 group->children.reserve(group->children.size()+1); in addToSparseIndex()
191 group->children.push_back(new SparseIndexNode(curWord, numWords == 1 ? index : 0)); in addToSparseIndex()
193 child = group->children.back(); in addToSparseIndex()
208 for (size_t childNdx = 0; childNdx < group->children.size(); childNdx++) in normalizeSparseIndex()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowViewGroup.java21 private List<View> children = new ArrayList<View>(); field in ShadowViewGroup
32 for (View child : children) { in findViewById()
48 for (View child : children) { in findViewWithTag()
66 children.add(child); in addView()
68 children.add(index, child); in addView()
92 if (children.get(i) == child) { in indexOfChild()
101 return children.size(); in getChildCount()
106 if( index >= children.size() ){ return null; } in getChildAt()
107 return children.get(index); in getChildAt()
112 for (View child : children) { in removeAllViews()
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/model/
DNode.java55 private final Array<Node> children = new Array<Node>(2); field in Node
82 for (Node child : children) { in calculateTransforms()
97 for (Node child : children) { in calculateBoneTransforms()
135 final int childCount = children.size; in extendBoundingBox()
137 children.get(i).extendBoundingBox(out); in extendBoundingBox()
157 return children != null && children.size > 0; in hasChildren()
163 return children.size; in getChildCount()
169 return children.get(index); in getChild()
175 return getNode(children, id, recursive, ignoreCase); in getChild()
206 if (index < 0 || index >= children.size) { in insertChild()
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/db/
DAbstractResults.java41 List children; field in AbstractResults
47 this.children = new ArrayList(); in AbstractResults()
53 this.children = new ArrayList(); in AbstractResults()
63 int size = this.children.size(); in addChild()
65 Object results = this.children.get(i); in addChild()
67 this.children.add(i, child); in addChild()
72 this.children.add(child); in addChild()
111 this.children.toArray(elements); in getChildren()
162 return this.children.iterator(); in getResults()
166 int size = this.children.size(); in getResults()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHuffman.java137 node = node.children[c]; in decode()
138 if (node.children == null) { in decode()
152 node = node.children[c]; in decode()
153 if (node.children != null || node.terminalBits > nbits) { in decode()
177 if (current.children == null) { in addCode()
180 if (current.children[i] == null) { in addCode()
181 current.children[i] = new Node(); in addCode()
183 current = current.children[i]; in addCode()
190 current.children[i] = terminal; in addCode()
197 private final Node[] children; field in Huffman.Node
[all …]
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/tree/
DBaseTree.as30 * actually have any user data. ANTLR v3 uses a list of children approach
32 * an empty node whose children represent the list. An empty, but
39 * as there are no fields other than the children list, which cannot
40 * be copied as the children are not considered part of this node.
52 /** Get the children internal List; note that if you directly mess with
55 public function get children():Array { property in org.antlr.runtime.tree.BaseTree
78 * Warning: if t has no children, but child does
79 * and child isNil then this routine moves children to t via
80 * t.children = child.children; i.e., without copying the array.
87 if ( childTree.isNil ) { // t is an empty node possibly with children
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/
DTree.java83 if (node.children.size > 0 && (!selection.getMultiple() || !UIUtils.ctrl())) { in initialize()
186 if (node.expanded) computeSize(node.children, indent + indentSpacing); in computeSize()
205 if (node.expanded) y = layout(node.children, indent + indentSpacing, y); in layout()
240 if (node.children.size == 0) continue; in draw()
245 if (node.expanded) draw(batch, node.children, indent + indentSpacing); in draw()
265 rowY = getNodeAt(node.children, y, rowY); in getNodeAt()
278 if (node.expanded) selectNodes(node.children, low, high); in selectNodes()
355 if (node.expanded && !findExpandedObjects(node.children, objects)) objects.add(node.object); in findExpandedObjects()
373 Node found = findNode(node.children, object); in findNode()
387 collapseAll(node.children); in collapseAll()
[all …]
/external/doclava/src/com/google/doclava/
DNavTree.java29 List<Node> children = new ArrayList<Node>(); in writeNavTree() local
31 children.add(makePackageNode(pkg)); in writeNavTree()
33 Node node = new Node("Reference", dir + refPrefix + "packages.html", children, null); in writeNavTree()
148 List<Node> children = new ArrayList<Node>(); in makePackageNode() local
150 addClassNodes(children, "Annotations", pkg.annotations()); in makePackageNode()
151 addClassNodes(children, "Interfaces", pkg.interfaces()); in makePackageNode()
152 addClassNodes(children, "Classes", pkg.ordinaryClasses()); in makePackageNode()
153 addClassNodes(children, "Enums", pkg.enums()); in makePackageNode()
154 addClassNodes(children, "Exceptions", pkg.exceptions()); in makePackageNode()
155 addClassNodes(children, "Errors", pkg.errors()); in makePackageNode()
[all …]

12345678910>>...34