Home
last modified time | relevance | path

Searched refs:children (Results 1 – 20 of 20) 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.java364 for (LeafNodeImpl child : children) { in getDoctype()
374 for (LeafNodeImpl child : children) { in getDocumentElement()
DElementImpl.java149 for (NodeImpl node : children) { in getElementById()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_documentcreatedocumentfragment.java63 NodeList children; in runTest() local
70 children = newDocFragment.getChildNodes(); in runTest()
71 length = (int) children.getLength(); in runTest()
Ddocumentcreatedocumentfragment.java64 NodeList children; in runTest() local
71 children = newDocFragment.getChildNodes(); in runTest()
72 length = (int) children.getLength(); in runTest()
/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/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/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<String, PropertyChangeSupport>(); in writeObject()
438 children.put(property, pcs); in writeObject()
443 fields.put("children", children); in writeObject()
463 …Hashtable<String, PropertyChangeSupport> children = (Hashtable<String, PropertyChangeSupport>) fie… in readObject() local
471 if (children != null) { in readObject()
472 for (Entry<String, PropertyChangeSupport> entry : children.entrySet()) { in readObject()
/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.java212 NodeList children = doc.getFirstChild().getChildNodes(); in testCdataWithTerminatorInside() local
214 for (int i = 0; i < children.getLength(); ++i) { in testCdataWithTerminatorInside()
215 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessTest.java30 ArrayList<Process> children = new ArrayList<Process>(); in test_55017() local
33children.add(Runtime.getRuntime().exec(new String[] { "/system/bin/does-not-exist" }, null, null)); in test_55017()
38 assertEquals(0, children.size()); in test_55017()
DThreadGroupTest.java454 ThreadGroup[] children = groups(current); in test_setMaxPriorityI() local
455 assertEquals("Can only have 1 subgroup", 1, children.length); in test_setMaxPriorityI()
456 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.java711 if (node.children == null) { in getNode()
712 node.children = new HashMap<>(); in getNode()
714 LogNode child = node.children.get(head); in getNode()
717 node.children.put(head, child); in getNode()
1368 HashMap<String,LogNode> children; field in LogManager.LogNode
1381 if (children == null) { in walkAndSetParent()
1384 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.java374 ThreadGroup[] children = groups(group); in populateGroupsWithThreads() local
375 for (ThreadGroup element : children) { in populateGroupsWithThreads()
/libcore/expectations/
Dicebox.txt21 substring: "This implementation doesn't include children in entity references"