| /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/ojluni/src/main/java/java/util/concurrent/locks/ |
| D | AbstractQueuedLongSynchronizer.java | 211 final void enqueue(Node node) { in enqueue() argument 212 if (node != null) { in enqueue() 215 node.setPrevRelaxed(t); // avoid unnecessary fence in enqueue() 218 else if (casTail(t, node)) { in enqueue() 219 t.next = node; in enqueue() 221 LockSupport.unpark(node.waiter); in enqueue() 229 final boolean isEnqueued(Node node) { in isEnqueued() argument 231 if (t == node) in isEnqueued() 271 final int acquire(Node node, long arg, boolean shared, in acquire() argument 291 if (!first && (pred = (node == null) ? null : node.prev) != null && in acquire() [all …]
|
| D | AbstractQueuedSynchronizer.java | 576 final void enqueue(Node node) { in enqueue() argument 577 if (node != null) { in enqueue() 580 node.setPrevRelaxed(t); // avoid unnecessary fence in enqueue() 583 else if (casTail(t, node)) { in enqueue() 584 t.next = node; in enqueue() 586 LockSupport.unpark(node.waiter); in enqueue() 594 final boolean isEnqueued(Node node) { in isEnqueued() argument 596 if (t == node) in isEnqueued() 636 final int acquire(Node node, int arg, boolean shared, in acquire() argument 656 if (!first && (pred = (node == null) ? null : node.prev) != null && in acquire() [all …]
|
| D | StampedLock.java | 1170 private static void signalCowaiters(ReaderNode node) { in signalCowaiters() argument 1171 if (node != null) { in signalCowaiters() 1172 for (ReaderNode c; (c = node.cowaiters) != null; ) { in signalCowaiters() 1173 if (node.casCowaiters(c, c.cowaiters)) in signalCowaiters() 1204 WriterNode node = null; in acquireWrite() local 1207 if (!first && (pred = (node == null) ? null : node.prev) != null && in acquireWrite() 1221 node.prev = null; in acquireWrite() 1222 head = node; in acquireWrite() 1224 node.waiter = null; in acquireWrite() 1229 } else if (node == null) { // retry before enqueuing in acquireWrite() [all …]
|
| /libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
| D | DocumentImpl.java | 128 private NodeImpl shallowCopy(short operation, Node node) { in shallowCopy() argument 129 switch (node.getNodeType()) { in shallowCopy() 131 AttrImpl attr = (AttrImpl) node; in shallowCopy() 143 return createCDATASection(((CharacterData) node).getData()); in shallowCopy() 146 return createComment(((Comment) node).getData()); in shallowCopy() 154 "Cannot copy node of type " + node.getNodeType()); in shallowCopy() 157 ElementImpl element = (ElementImpl) node; in shallowCopy() 193 return createEntityReference(node.getNodeName()); in shallowCopy() 196 ProcessingInstruction pi = (ProcessingInstruction) node; in shallowCopy() 200 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 …]
|
| /libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
| D | PolicyNodeImpl.java | 132 PolicyNodeImpl(PolicyNodeImpl parent, PolicyNodeImpl node) { in PolicyNodeImpl() argument 133 this(parent, node.mValidPolicy, node.mQualifierSet, in PolicyNodeImpl() 134 node.mCriticalityIndicator, node.mExpectedPolicySet, false); in PolicyNodeImpl() 183 for (PolicyNodeImpl node : mChildren) { in toString() 184 buffer.append(node); in toString() 202 for (PolicyNodeImpl node : mChildren) { in setImmutable() 203 node.setImmutable(); in setImmutable() 255 PolicyNodeImpl node = it.next(); in prune() local 256 node.prune(depth); in prune() 259 if ((node.mChildren.size() == 0) && (depth > mDepth + 1)) in prune() [all …]
|
| /libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
| D | SignaturesCollector.java | 51 public SignaturesCollector add(MethodInsnNode node) { in add() argument 52 return add(new Method(node)); in add() 55 public SignaturesCollector add(InvokeDynamicInsnNode node) { in add() argument 56 add(new Method(node.bsm)); in add() 57 for (Object obj : node.bsmArgs) { in add() 76 public SignaturesCollector add(FieldInsnNode node) { in add() argument 77 return add(new Field(node)); in add() 123 public SignaturesCollector addClassesFromClassNode(ClassNode node) { in addClassesFromClassNode() argument 124 addClass(node.superName); in addClassesFromClassNode() 125 node.interfaces.forEach(this::addClass); in addClassesFromClassNode() [all …]
|
| D | Main.java | 162 .collect(toMap(DiffAnalyzer::toApiSignature, node -> node)); in analyze() 164 .collect(toMap(DiffAnalyzer::toApiSignature, node -> node)); in analyze() 168 .filter(node -> !baseMethods.containsKey(toApiSignature(node))) in analyze() 171 .filter(node -> !newMethods.containsKey(toApiSignature(node))) in analyze() 175 .filter(node -> !baseMethods.containsKey(toApiSignature(node)) in analyze() 176 || !isDeprecated(baseMethods.get(toApiSignature(node))) ) in analyze() 181 .collect(toMap(node -> node.name, node -> node)); in analyze() 183 .collect(toMap(node -> node.name, node -> node)); in analyze() 186 .filter(node -> !baseFields.containsKey(node.name)) in analyze() 189 .filter(node -> !newFields.containsKey(node.name)) in analyze() [all …]
|
| D | ClassFileUtil.java | 35 ClassNode node = new ClassNode(); in parseClass() local 36 classReader.accept(node, 0); in parseClass() 37 return node; in parseClass() 44 for (InnerClassNode node : classNode.innerClasses) { in isAnonymousClass() 45 if (classNode.name.equals(node.name) in isAnonymousClass() 46 && node.outerName == null && node.innerName == null) { in isAnonymousClass()
|
| /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
| D | FilePreferencesImplTest.java | 39 uroot = factory.userRoot().node("harmony_test"); in setUp() 40 sroot = factory.systemRoot().node("harmony_test"); in setUp() 76 Preferences child1 = uroot.node("child1"); in testChildNodes() 77 Preferences child2 = uroot.node("\u4e2d child2"); in testChildNodes() 78 Preferences grandchild = child1.node("grand"); in testChildNodes() 98 child1 = sroot.node("child1"); in testChildNodes() 99 child2 = sroot.node("child2"); in testChildNodes() 102 Preferences grandchild2 = child1.node("grand"); in testChildNodes() 112 assertNotSame(child1, sroot.node("child1")); in testChildNodes() 113 assertSame(sroot.node("child1"), sroot.node("child1")); in testChildNodes() [all …]
|
| D | AbstractPreferencesTest.java | 97 pref = (AbstractPreferences) parent.node("mock"); in setUp() 156 p = (MockAbstractPreferences) pref.node("child"); in testProtectedFields() 193 Preferences child1 = pref.node("child1"); in testChildrenNames() 195 pref.node("child2"); in testChildrenNames() 196 pref.node("child3"); in testChildrenNames() 197 child1.node("subchild1"); in testChildrenNames() 416 assertSame(pref.node("samechild"), pref.node("samechild")); in testCharCase() 417 assertNotSame(pref.node("sameChild"), pref.node("samechild")); in testCharCase() 418 assertNotSame(pref.node("child"), pref.node("Child")); in testCharCase() 419 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 | 65 pref = (AbstractPreferences) parent.node(nodeName); in setUp() 161 pref.node("New node"); in testRemove() 186 AbstractPreferences ap = (AbstractPreferences) pref.node("New node"); in testClear() 643 pref.node(nodeStr); in testKeys() 675 AbstractPreferences first = (AbstractPreferences) pref.node("First node"); in testChildrenNames() 676 AbstractPreferences second = (AbstractPreferences) pref.node("Second node"); in testChildrenNames() 703 .node("test"); in test_nodeExists() 721 AbstractPreferences node = (AbstractPreferences) pref.node("First node/sub node"); in testParent() local 723 assertTrue(node.parent().name().compareTo("First node") == 0); in testParent() 728 node.parent(); in testParent() [all …]
|
| D | OldPreferencesTest.java | 66 pref.node(child).removeNode(); in setUp() 94 p.node(null); in testAbstractMethods() 139 Preferences child1 = pref.node("child1"); in testChildrenNames() 141 pref.node("child2"); in testChildrenNames() 142 pref.node("child3"); in testChildrenNames() 143 child1.node("subchild1"); in testChildrenNames() 165 Preferences pref = root.node("mock"); in testGet() 324 Preferences child = pref.node("mock"); in testName() 337 Preferences pref = parent.node("mock"); in testNode() 340 pref.node(null); in testNode() [all …]
|
| /libcore/ojluni/src/main/java/java/util/stream/ |
| D | Nodes.java | 147 static <T> Node<T> node(T[] array) { in node() method in Nodes 160 static <T> Node<T> node(Collection<T> c) { in node() method in Nodes 200 static Node.OfInt node(int[] array) { in node() method in Nodes 237 static Node.OfLong node(final long[] array) { in node() method in Nodes 274 static Node.OfDouble node(final double[] array) { in node() method in Nodes 334 return node(array); in collect() 336 Node<P_OUT> node = new CollectorTask.OfRef<>(helper, generator, spliterator).invoke(); in collect() local 337 return flattenTree ? flatten(node, generator) : node; in collect() 371 return node(array); in collectInt() 374 Node.OfInt node = new CollectorTask.OfInt<>(helper, spliterator).invoke(); in collectInt() local [all …]
|
| /libcore/ojluni/src/main/java/java/util/concurrent/ |
| D | Phaser.java | 752 QNode node = new QNode(this, phase, true, false, 0L); in awaitAdvanceInterruptibly() local 753 p = root.internalAwaitAdvance(phase, node); in awaitAdvanceInterruptibly() 754 if (node.wasInterrupted) in awaitAdvanceInterruptibly() 790 QNode node = new QNode(this, phase, true, true, nanos); in awaitAdvanceInterruptibly() local 791 p = root.internalAwaitAdvance(phase, node); in awaitAdvanceInterruptibly() 792 if (node.wasInterrupted) in awaitAdvanceInterruptibly() 1030 private int internalAwaitAdvance(int phase, QNode node) { in internalAwaitAdvance() argument 1039 if (node == null) { // spinning in noninterruptible mode in internalAwaitAdvance() 1046 node = new QNode(this, phase, false, false, 0L); in internalAwaitAdvance() 1047 node.wasInterrupted = interrupted; in internalAwaitAdvance() [all …]
|
| /libcore/luni/src/test/java/libcore/javax/xml/transform/dom/ |
| D | DOMResultTest.java | 53 private Node node; field in DOMResultTest 58 node = new NodeImpl(); in setUp() 64 DOMResult result = new DOMResult(node); in constructorWithNode() 66 assertEquals(node, result.getNode()); in constructorWithNode() 71 DOMResult result = new DOMResult(node, "systemId"); in constructorWithNodeAndString() 73 assertEquals(node, result.getNode()); in constructorWithNodeAndString() 79 documentNode.appendChild(node); in constructorWithNodeAndNode() 80 DOMResult result = new DOMResult(documentNode, node); in constructorWithNodeAndNode() 83 assertEquals(node, result.getNextSibling()); in constructorWithNodeAndNode() 88 documentNode.appendChild(node); in constructorWithNodeNodeAndString() [all …]
|
| /libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
| D | DistinctOpTest.java | 95 Collection<Integer> node = exerciseOps(data, Stream::distinct); in testOpWithNull() local 96 assertUnique(node); in testOpWithNull() 98 node = withData(data). in testOpWithNull() 101 assertUnique(node); in testOpWithNull() 103 node = exerciseOps(data, s -> s.distinct().distinct()); in testOpWithNull() 104 assertUnique(node); in testOpWithNull() 113 Collection<Integer> node = exerciseOps(new SortedTestData<>(l), Stream::distinct); in testOpWithNullSorted() local 114 assertUnique(node); in testOpWithNullSorted() 115 assertSorted(node, cNullInteger); in testOpWithNullSorted()
|
| /libcore/benchmarks/src/benchmarks/ |
| D | XmlParseBenchmark.java | 115 private int countDomElements(Node node) { in countDomElements() argument 117 for (; node != null; node = node.getNextSibling()) { in countDomElements() 118 if (node.getNodeType() == Node.ELEMENT_NODE) { in countDomElements() 121 result += countDomElements(node.getFirstChild()); in countDomElements()
|