/libcore/luni/src/main/java/javax/xml/transform/dom/ |
D | DOMResult.java | 71 public DOMResult(Node node) { in DOMResult() argument 72 setNode(node); in DOMResult() 91 public DOMResult(Node node, String systemId) { in DOMResult() argument 92 setNode(node); in DOMResult() 126 public DOMResult(Node node, Node nextSibling) { in DOMResult() argument 131 if (node == null) { in DOMResult() 136 … if ((node.compareDocumentPosition(nextSibling)&Node.DOCUMENT_POSITION_CONTAINED_BY)==0) { in DOMResult() 141 setNode(node); in DOMResult() 175 public DOMResult(Node node, Node nextSibling, String systemId) { in DOMResult() argument 180 if (node == null) { in DOMResult() [all …]
|
D | DOMSource.java | 43 private Node node; field in DOMSource 89 public DOMSource(Node node, String systemID) { in DOMSource() argument 90 setNode(node); in DOMSource() 99 public void setNode(Node node) { in setNode() argument 100 this.node = node; in setNode() 109 return node; in getNode()
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | AbstractQueuedSynchronizer.java | 562 private Node enq(final Node node) { in enq() argument 569 node.prev = t; in enq() 570 if (compareAndSetTail(t, node)) { in enq() 571 t.next = node; in enq() 585 Node node = new Node(Thread.currentThread(), mode); in addWaiter() local 589 node.prev = pred; in addWaiter() 590 if (compareAndSetTail(pred, node)) { in addWaiter() 591 pred.next = node; in addWaiter() 592 return node; in addWaiter() 595 enq(node); in addWaiter() [all …]
|
D | AbstractQueuedLongSynchronizer.java | 332 private Node enq(final Node node) { in enq() argument 339 node.prev = t; in enq() 340 if (compareAndSetTail(t, node)) { in enq() 341 t.next = node; in enq() 355 Node node = new Node(Thread.currentThread(), mode); in addWaiter() local 359 node.prev = pred; in addWaiter() 360 if (compareAndSetTail(pred, node)) { in addWaiter() 361 pred.next = node; in addWaiter() 362 return node; in addWaiter() 365 enq(node); in addWaiter() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
D | DocumentImpl.java | 129 private NodeImpl shallowCopy(short operation, Node node) { in shallowCopy() argument 130 switch (node.getNodeType()) { in shallowCopy() 132 AttrImpl attr = (AttrImpl) node; in shallowCopy() 144 return createCDATASection(((CharacterData) node).getData()); in shallowCopy() 147 return createComment(((Comment) node).getData()); in shallowCopy() 155 "Cannot copy node of type " + node.getNodeType()); in shallowCopy() 158 ElementImpl element = (ElementImpl) node; in shallowCopy() 194 return createEntityReference(node.getNodeName()); in shallowCopy() 197 ProcessingInstruction pi = (ProcessingInstruction) node; in shallowCopy() 201 return createTextNode(((Text) node).getData()); in shallowCopy() [all …]
|
D | NodeImpl.java | 228 static void setNameNS(NodeImpl node, String namespaceURI, String qualifiedName) { in setNameNS() argument 244 switch (node.getNodeType()) { in setNameNS() 251 AttrImpl attr = (AttrImpl) node; in setNameNS() 259 ElementImpl element = (ElementImpl) node; in setNameNS() 268 "Cannot rename nodes of type " + node.getNodeType()); in setNameNS() 277 static void setName(NodeImpl node, String name) { in setName() argument 289 switch (node.getNodeType()) { in setName() 291 AttrImpl attr = (AttrImpl) node; in setName() 297 ElementImpl element = (ElementImpl) node; in setName() 304 "Cannot rename nodes of type " + node.getNodeType()); in setName() [all …]
|
D | InnerNodeImpl.java | 58 for (NodeImpl node : children) { in getChildNodes() 59 list.add(node); in getChildNodes() 137 public boolean isParentOf(Node node) { in isParentOf() argument 138 LeafNodeImpl nodeImpl = (LeafNodeImpl) node; in isParentOf() 158 for (Node node = getFirstChild(); node != null; node = next) { in normalize() 159 next = node.getNextSibling(); in normalize() 160 node.normalize(); in normalize() 162 if (node.getNodeType() == Node.TEXT_NODE) { in normalize() 163 ((TextImpl) node).minimize(); in normalize() 236 for (NodeImpl node : children) { in getElementsByTagName() [all …]
|
D | DOMConfigurationImpl.java | 374 public void normalize(Node node) { 383 switch (node.getNodeType()) { 385 CDATASectionImpl cdata = (CDATASectionImpl) node; 398 node = cdata.replaceWithText(); 402 TextImpl text = (TextImpl) node; 410 CommentImpl comment = (CommentImpl) node; 422 checkTextValidity(((ProcessingInstructionImpl) node).getData()); 426 checkTextValidity(((AttrImpl) node).getValue()); 430 ElementImpl element = (ElementImpl) node; 440 for (Node child = node.getFirstChild(); child != null; child = next) { [all …]
|
D | NodeListImpl.java | 46 void add(NodeImpl node) { in add() argument 47 children.add(node); in add()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | FilePreferencesImplTest.java | 38 uroot = factory.userRoot().node("harmony_test"); in setUp() 39 sroot = factory.systemRoot().node("harmony_test"); in setUp() 75 Preferences child1 = uroot.node("child1"); in testChildNodes() 76 Preferences child2 = uroot.node("\u4e2d child2"); in testChildNodes() 77 Preferences grandchild = child1.node("grand"); in testChildNodes() 97 child1 = sroot.node("child1"); in testChildNodes() 98 child2 = sroot.node("child2"); in testChildNodes() 101 Preferences grandchild2 = child1.node("grand"); in testChildNodes() 111 assertNotSame(child1, sroot.node("child1")); in testChildNodes() 112 assertSame(sroot.node("child1"), sroot.node("child1")); in testChildNodes() [all …]
|
D | AbstractPreferencesTest.java | 90 pref = (AbstractPreferences) parent.node("mock"); in setUp() 149 p = (MockAbstractPreferences) pref.node("child"); in testProtectedFields() 186 Preferences child1 = pref.node("child1"); in testChildrenNames() 188 pref.node("child2"); in testChildrenNames() 189 pref.node("child3"); in testChildrenNames() 190 child1.node("subchild1"); in testChildrenNames() 409 assertSame(pref.node("samechild"), pref.node("samechild")); in testCharCase() 410 assertNotSame(pref.node("sameChild"), pref.node("samechild")); in testCharCase() 411 assertNotSame(pref.node("child"), pref.node("Child")); in testCharCase() 412 assertNotSame(pref.node("child"), pref.node("Child")); in testCharCase() [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | NodeTest.java | 55 for (Node node : flattenSubtree(documentElement)) { in testGetBaseUri() 56 if (node.getNodeType() == Node.ELEMENT_NODE in testGetBaseUri() 57 || node.getNodeType() == Node.DOCUMENT_NODE) { in testGetBaseUri() 58 assertFileUriEquals(file, node.getBaseURI()); in testGetBaseUri() 60 assertNull("Unexpected base URI for " + node, node.getBaseURI()); in testGetBaseUri() 81 private void traverse(Node node, List<Node> sink) { in traverse() argument 82 sink.add(node); in traverse() 84 NodeList children = node.getChildNodes(); in traverse()
|
D | SimpleBuilderTest.java | 46 private String getTextContent(Node node) { in getTextContent() argument 47 String result = (node instanceof Text ? ((Text) node).getData() : ""); in getTextContent() 49 Node child = node.getFirstChild(); in getTextContent() 97 Node node = list.item(i); in testGoodFile1() local 99 if (node instanceof ProcessingInstruction) { in testGoodFile1() 100 proinst = proinst + node.getNodeValue(); in testGoodFile1() 101 } else if (node instanceof Comment) { in testGoodFile1() 102 comment = comment + node.getNodeValue(); in testGoodFile1()
|
D | XsltXPathConformanceTestSuite.java | 470 private String nodeToNormalizedString(Node node) in nodeToNormalizedString() argument 476 emitNode(xmlSerializer, node); in nodeToNormalizedString() 481 private void emitNode(XmlSerializer serializer, Node node) throws IOException { in emitNode() argument 482 if (node == null) { in emitNode() 485 } else if (node.getNodeType() == Node.ELEMENT_NODE) { in emitNode() 486 Element element = (Element) node; in emitNode() 492 } else if (node.getNodeType() == Node.TEXT_NODE in emitNode() 493 || node.getNodeType() == Node.CDATA_SECTION_NODE) { in emitNode() 496 String trimmed = node.getTextContent().trim(); in emitNode() 501 } else if (node.getNodeType() == Node.DOCUMENT_NODE) { in emitNode() [all …]
|
D | DomTest.java | 265 for (Node node : allNodes) { in testLookupNamespaceURIWithXmlnsPrefix() 266 assertEquals(null, node.lookupNamespaceURI("xmlns")); in testLookupNamespaceURIWithXmlnsPrefix() 303 for (Node node : allNodes) { in testLookupPrefixWithUnusedUri() 304 assertEquals(null, node.lookupPrefix("http://unused")); in testLookupPrefixWithUnusedUri() 309 for (Node node : allNodes) { in testLookupPrefixWithNullUri() 310 assertEquals(null, node.lookupPrefix(null)); in testLookupPrefixWithNullUri() 578 for (Node node : allNodes) { in testIsSupported() 579 assertTrue(node.isSupported("XML", null)); in testIsSupported() 580 assertTrue(node.isSupported("XML", "3.0")); in testIsSupported() 581 assertFalse(node.isSupported("foo", null)); in testIsSupported() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
D | OldAbstractPreferencesTest.java | 58 pref = (AbstractPreferences) parent.node(nodeName); in setUp() 154 pref.node("New node"); in testRemove() 179 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testClear() 636 pref.node(nodeStr); in testKeys() 668 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); in testChildrenNames() 669 AbstractPreferences second = (AbstractPreferences) pref.node("Second node"); in testChildrenNames() 696 .node("test"); in test_nodeExists() 714 AbstractPreferences node = (AbstractPreferences) pref.node("First node/sub node"); in testParent() local 716 assertTrue(node.parent().name().compareTo("First node") == 0); in testParent() 721 node.parent(); in testParent() [all …]
|
D | OldPreferencesTest.java | 65 pref.node(child).removeNode(); in setUp() 93 p.node(null); in testAbstractMethods() 138 Preferences child1 = pref.node("child1"); in testChildrenNames() 140 pref.node("child2"); in testChildrenNames() 141 pref.node("child3"); in testChildrenNames() 142 child1.node("subchild1"); in testChildrenNames() 164 Preferences pref = root.node("mock"); in testGet() 323 Preferences child = pref.node("mock"); in testName() 336 Preferences pref = parent.node("mock"); in testNode() 339 pref.node(null); in testNode() [all …]
|
D | OldFilePreferencesImplTest.java | 47 Preferences sroot = Preferences.systemRoot().node("test"); in testSystemChildNodes() 49 Preferences child1 = sroot.node("child1"); in testSystemChildNodes() 50 Preferences child2 = sroot.node("child2"); in testSystemChildNodes() 51 Preferences grandchild = child1.node("grand"); in testSystemChildNodes()
|
/libcore/luni/src/main/java/java/util/ |
D | TreeMap.java | 196 Node<K, V> node = removeInternalByKey(key); in remove() local 197 return node != null ? node.value : null; in remove() 373 void removeInternal(Node<K, V> node) { in removeInternal() argument 374 Node<K, V> left = node.left; in removeInternal() 375 Node<K, V> right = node.right; in removeInternal() 376 Node<K, V> originalParent = node.parent; in removeInternal() 392 left = node.left; in removeInternal() 397 node.left = null; in removeInternal() 400 right = node.right; in removeInternal() 405 node.right = null; in removeInternal() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | Phaser.java | 728 QNode node = new QNode(this, phase, true, false, 0L); in awaitAdvanceInterruptibly() local 729 p = root.internalAwaitAdvance(phase, node); in awaitAdvanceInterruptibly() 730 if (node.wasInterrupted) in awaitAdvanceInterruptibly() 766 QNode node = new QNode(this, phase, true, true, nanos); in awaitAdvanceInterruptibly() local 767 p = root.internalAwaitAdvance(phase, node); in awaitAdvanceInterruptibly() 768 if (node.wasInterrupted) in awaitAdvanceInterruptibly() 1007 private int internalAwaitAdvance(int phase, QNode node) { in internalAwaitAdvance() argument 1016 if (node == null) { // spinning in noninterruptible mode in internalAwaitAdvance() 1023 node = new QNode(this, phase, false, false, 0L); in internalAwaitAdvance() 1024 node.wasInterrupted = interrupted; in internalAwaitAdvance() [all …]
|
D | LinkedBlockingDeque.java | 185 private boolean linkFirst(Node<E> node) { in linkFirst() argument 190 node.next = f; in linkFirst() 191 first = node; in linkFirst() 193 last = node; in linkFirst() 195 f.prev = node; in linkFirst() 204 private boolean linkLast(Node<E> node) { in linkLast() argument 209 node.prev = l; in linkLast() 210 last = node; in linkLast() 212 first = node; in linkLast() 214 l.next = node; in linkLast() [all …]
|
/libcore/luni/src/main/java/java/util/prefs/ |
D | PreferenceChangeEvent.java | 43 private final Preferences node; field in PreferenceChangeEvent 63 node = p; in PreferenceChangeEvent() 94 return node; in getNode()
|
/libcore/benchmarks/src/benchmarks/ |
D | XmlParseBenchmark.java | 114 private int countDomElements(Node node) { in countDomElements() argument 116 for (; node != null; node = node.getNextSibling()) { in countDomElements() 117 if (node.getNodeType() == Node.ELEMENT_NODE) { in countDomElements() 120 result += countDomElements(node.getFirstChild()); in countDomElements()
|
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/ |
D | DocumentBuilderImpl.java | 177 private void parse(KXmlParser parser, DocumentImpl document, Node node, in parse() argument 201 node.appendChild(document.createProcessingInstruction(target, in parse() 215 node.appendChild(document.createComment(parser.getText())); in parse() 223 if (!ignoreElementContentWhitespace && document != node) { in parse() 224 appendText(document, node, token, parser.getText()); in parse() 232 appendText(document, node, token, parser.getText()); in parse() 247 appendText(document, node, token, resolved); in parse() 249 node.appendChild(document.createEntityReference(entity)); in parse() 273 node.appendChild(element); in parse() 306 node.appendChild(element); in parse()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | importNode17.java | 73 Node node; in runTest() local 80 node = doc.importNode(anotherDoc, false); in runTest()
|