Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DNodeListImpl.java36 private List<NodeImpl> children; field in NodeListImpl
39 children = new ArrayList<NodeImpl>(); in NodeListImpl()
43 children = list; in NodeListImpl()
47 children.add(node); in add()
51 return children.size(); in getLength()
55 if (index >= children.size()) { in item()
58 return children.get(index); in item()
DInnerNodeImpl.java45 List<LeafNodeImpl> children = new ArrayList<LeafNodeImpl>(); field in InnerNodeImpl
52 return insertChildAt(newChild, children.size()); in appendChild()
58 for (NodeImpl node : children) { in getChildNodes()
66 return (!children.isEmpty() ? children.get(0) : null); in getFirstChild()
70 return (!children.isEmpty() ? children.get(children.size() - 1) : null); in getLastChild()
74 if (parent == null || index + 1 >= parent.children.size()) { in getNextSibling()
78 return parent.children.get(index + 1); in getNextSibling()
82 return children.size() != 0; in hasChildNodes()
126 toInsert.parent.children.remove(oldIndex); in insertChildAt()
130 children.add(index, toInsert); in insertChildAt()
[all …]
DLeafNodeImpl.java46 if (parent == null || index + 1 >= parent.children.size()) { in getNextSibling()
50 return parent.children.get(index + 1); in getNextSibling()
62 return parent.children.get(index - 1); in getPreviousSibling()
DDocumentImpl.java363 for (LeafNodeImpl child : children) { in getDoctype()
373 for (LeafNodeImpl child : children) { in getDocumentElement()
DElementImpl.java153 for (NodeImpl node : children) { in getElementById()
/libcore/ojluni/src/main/java/java/beans/
DPropertyChangeSupport.java425 Hashtable<String, PropertyChangeSupport> children = null; in writeObject() local
433 if (children == null) { in writeObject()
434 children = new Hashtable<>(); in writeObject()
438 children.put(property, pcs); in writeObject()
443 fields.put("children", children); in writeObject()
464 …Hashtable<String, PropertyChangeSupport> children = (Hashtable<String, PropertyChangeSupport>) fie… in readObject() local
472 if (children != null) { in readObject()
473 for (Entry<String, PropertyChangeSupport> entry : children.entrySet()) { in readObject()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Ddocumentcreatedocumentfragment.java64 NodeList children; in runTest() local
71 children = newDocFragment.getChildNodes(); in runTest()
72 length = (int) children.getLength(); in runTest()
Dhc_documentcreatedocumentfragment.java63 NodeList children; in runTest() local
70 children = newDocFragment.getChildNodes(); in runTest()
71 length = (int) children.getLength(); in runTest()
/libcore/support/src/test/java/tests/support/
DSupport_Xml.java42 NodeList children = doc.getFirstChild().getChildNodes(); in firstChildTextOf() local
43 assertEquals(1, children.getLength()); in firstChildTextOf()
44 return children.item(0).getNodeValue(); in firstChildTextOf()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DimportNode04.java76 NodeList children; in runTest() local
85 children = aNode.getChildNodes(); in runTest()
86 assertSize("throw_Size", 1, children); in runTest()
/libcore/ojluni/src/test/java/lang/invoke/
DExplicitCastArgumentsTest.java271 Class[] children = {testSubClass1, testSubClass2}; in testNonBCPRef2NonBCPRef() local
275 for (int j = 0; j < children.length; j++) { in testNonBCPRef2NonBCPRef()
278 testConversion(mode, children[j], parent, childInst[j], in testNonBCPRef2NonBCPRef()
282 testConversion(mode, children[j], parent, null, in testNonBCPRef2NonBCPRef()
286 testConversion(mode, parent, children[j], testSuperObj, in testNonBCPRef2NonBCPRef()
290 testConversion(mode, parent, children[j], childInst[j], in testNonBCPRef2NonBCPRef()
293 testConversion(mode, parent, children[j], null, in testNonBCPRef2NonBCPRef()
417 Class[] children = {bcpSubClass1, bcpSubClass2}; in testBCPRef2BCPRef() local
420 for (int i = 0; i < children.length; i++) { in testBCPRef2BCPRef()
423 testConversion(mode, children[i], bcpInterface, childInst[i], in testBCPRef2BCPRef()
[all …]
/libcore/luni/src/test/java/libcore/xml/
DNodeTest.java84 NodeList children = node.getChildNodes(); in traverse() local
85 for (int i = 0; i < children.getLength(); i++) { in traverse()
86 traverse(children.item(i), sink); in traverse()
DKxmlSerializerTest.java215 NodeList children = doc.getFirstChild().getChildNodes(); in testCdataWithTerminatorInside() local
217 for (int i = 0; i < children.getLength(); ++i) { in testCdataWithTerminatorInside()
218 text += children.item(i).getNodeValue(); in testCdataWithTerminatorInside()
DDomTest.java1019 NodeList children = formerParent.getChildNodes(); in assertDetached() local
1020 for (int i = 0; i < children.getLength(); i++) { in assertDetached()
1021 assertTrue(children.item(i) != node); in assertDetached()
1525 NodeList children = menu.getChildNodes(); in testAddingADocumentFragmentAddsItsChildren() local
1526 assertEquals(6, children.getLength()); in testAddingADocumentFragmentAddsItsChildren()
1527 assertTrue(children.item(0) instanceof Text); // whitespace in testAddingADocumentFragmentAddsItsChildren()
1528 assertEquals(item, children.item(1)); in testAddingADocumentFragmentAddsItsChildren()
1529 assertTrue(children.item(2) instanceof Text); // whitespace in testAddingADocumentFragmentAddsItsChildren()
1530 assertEquals(a, children.item(3)); in testAddingADocumentFragmentAddsItsChildren()
1531 assertEquals(b, children.item(4)); in testAddingADocumentFragmentAddsItsChildren()
[all …]
/libcore/luni/src/test/java/libcore/javax/xml/transform/dom/
DDOMResultTest.java118 private final ArrayList<Node> children; field in DOMResultTest.NodeImpl
121 this.children = new ArrayList<>(); in NodeImpl()
140 public NodeList getChildNodes() { return new NodeListImpl(children); } in getChildNodes()
143 public Node getFirstChild() { return children.get(0); } in getFirstChild()
146 public Node getLastChild() { return children.get(children.size() - 1); } in getLastChild()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessTest.java31 ArrayList<Process> children = new ArrayList<Process>(); in test_55017() local
35children.add(Runtime.getRuntime().exec(new String[] { "/system/bin/does-not-exist" }, null, null)); in test_55017()
41 assertEquals(0, children.size()); in test_55017()
DThreadGroupTest.java455 ThreadGroup[] children = groups(current); in test_setMaxPriorityI() local
456 assertEquals("Can only have 1 subgroup", 1, children.length); in test_setMaxPriorityI()
457 current = children[0]; in test_setMaxPriorityI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DMockAbstractPreferences.java175 String[] children = p.childrenNames(); in removeNodeSpi() local
176 for (String child : children) { in removeNodeSpi()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java881 if (node.children == null) { in getNode()
882 node.children = new HashMap<>(); in getNode()
884 LogNode child = node.children.get(head); in getNode()
887 node.children.put(head, child); in getNode()
1611 HashMap<String,LogNode> children; field in LogManager.LogNode
1624 if (children == null) { in walkAndSetParent()
1627 Iterator<LogNode> values = children.values().iterator(); in walkAndSetParent()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DImportNode.java184 NodeList children; in testImportNode4() local
193 children = aNode.getChildNodes(); in testImportNode4()
194 assertEquals("throw_Size", 1, children.getLength()); in testImportNode4()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java382 ThreadGroup[] children = groups(group); in populateGroupsWithThreads() local
383 for (ThreadGroup element : children) { in populateGroupsWithThreads()
/libcore/ojluni/annotations/hiddenapi/java/util/logging/
DLogManager.java354 java.util.HashMap<java.lang.String, java.util.logging.LogManager.LogNode> children; field in LogManager.LogNode
/libcore/expectations/
Dknownfailures.txt1532 substring: "This implementation doesn't include children in entity references"