| /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 | 331 private Node enq(final Node node) { in enq() argument 338 node.prev = t; in enq() 339 if (compareAndSetTail(t, node)) { in enq() 340 t.next = node; in enq() 354 Node node = new Node(Thread.currentThread(), mode); in addWaiter() local 358 node.prev = pred; in addWaiter() 359 if (compareAndSetTail(pred, node)) { in addWaiter() 360 pred.next = node; in addWaiter() 361 return node; in addWaiter() 364 enq(node); in addWaiter() [all …]
|
| /libcore/luni/src/main/java/java/util/concurrent/ |
| D | Exchanger.java | 413 private static boolean tryCancel(Node node, Slot slot) { in tryCancel() argument 414 if (!node.compareAndSet(null, CANCEL)) in tryCancel() 416 if (slot.get() == node) // pre-check to minimize contention in tryCancel() 417 slot.compareAndSet(node, null); in tryCancel() 432 private static Object spinWait(Node node, Slot slot) { in spinWait() argument 435 Object v = node.get(); in spinWait() 441 tryCancel(node, slot); in spinWait() 462 private static Object await(Node node, Slot slot) { in await() argument 466 Object v = node.get(); in await() 471 else if (node.waiter == null) // Set up to block next in await() [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/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() 133 public boolean isParentOf(Node node) { in isParentOf() argument 134 LeafNodeImpl nodeImpl = (LeafNodeImpl) node; in isParentOf() 154 for (Node node = getFirstChild(); node != null; node = next) { in normalize() 155 next = node.getNextSibling(); in normalize() 156 node.normalize(); in normalize() 158 if (node.getNodeType() == Node.TEXT_NODE) { in normalize() 159 ((TextImpl) node).minimize(); in normalize() 232 for (NodeImpl node : children) { in getElementsByTagName() [all …]
|
| D | NodeListImpl.java | 46 void add(NodeImpl node) { in add() argument 47 children.add(node); in add()
|
| 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 …]
|
| /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 | 45 root.node(child).removeNode(); in setUp() 50 pref = (AbstractPreferences) parent.node(nodeName); in setUp() 140 pref.node("New node"); in testRemove() 165 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testClear() 622 pref.node(nodeStr); in testKeys() 654 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); in testChildrenNames() 655 AbstractPreferences second = (AbstractPreferences) pref.node("Second node"); in testChildrenNames() 682 .node("test"); in test_nodeExists() 700 AbstractPreferences node = (AbstractPreferences) pref.node("First node/sub node"); in testParent() local 702 assertTrue(node.parent().name().compareTo("First node") == 0); in testParent() [all …]
|
| D | OldFilePreferencesImplTest.java | 26 Preferences sroot = Preferences.systemRoot().node("test"); in testSystemChildNodes() 28 Preferences child1 = sroot.node("child1"); in testSystemChildNodes() 29 Preferences child2 = sroot.node("child2"); in testSystemChildNodes() 30 Preferences grandchild = child1.node("grand"); in testSystemChildNodes()
|
| D | OldPreferencesTest.java | 54 pref.node(child).removeNode(); in setUp() 77 p.node(null); in testAbstractMethods() 122 Preferences child1 = pref.node("child1"); in testChildrenNames() 124 pref.node("child2"); in testChildrenNames() 125 pref.node("child3"); in testChildrenNames() 126 child1.node("subchild1"); in testChildrenNames() 148 Preferences pref = root.node("mock"); in testGet() 307 Preferences child = pref.node("mock"); in testName() 321 Preferences pref = parent.node("mock"); in testNode() 324 pref.node(null); in testNode() [all …]
|
| D | OldNodeChangeEventTest.java | 32 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); in testGetChild() 61 Preferences child1 = pref.node("mock1"); in testGetChild() 80 AbstractPreferences pref = (AbstractPreferences) parent.node("mock"); in testGetParent() 109 Preferences child1 = pref.node("mock1"); in testGetParent()
|
| /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/prefs/ |
| D | PreferenceChangeEvent.java | 43 private final Preferences node; field in PreferenceChangeEvent 63 node = p; in PreferenceChangeEvent() 94 return node; in getNode()
|
| D | Preferences.java | 494 public abstract Preferences node(String path); in node() method in Preferences 800 return factory.systemRoot().node(getNodeName(c)); in systemNodeForPackage() 830 return factory.userRoot().node(getNodeName(c)); in userNodeForPackage()
|
| /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()
|
| D | importNode16.java | 74 Node node; in runTest() local 82 node = doc.importNode(docType, false); in runTest()
|
| /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()
|