Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 43) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/
DPhaser.java312 private final Phaser root; field in Phaser
353 final Phaser root = this.root; in doArrive() local
355 long s = (root == this) ? state : reconcileState(); in doArrive()
367 if (root == this) { in doArrive()
416 root.internalAwaitAdvance(phase, null); in doRegister()
440 phase = (int)(root.state >>> PHASE_SHIFT); in doRegister()
461 final Phaser root = this.root; in reconcileState() local
463 if (root != this) { in reconcileState()
466 while ((phase = (int)(root.state >>> PHASE_SHIFT)) != in reconcileState()
528 final Phaser root = parent.root; in Phaser() local
[all …]
DConcurrentHashMap.java958 if ((r = t.root) != null && in replaceNode()
1922 TreeNode<K,V> root; field in ConcurrentHashMap.TreeBin
1974 this.root = r; in TreeBin()
2034 p = ((r = root) == null ? null : in find()
2059 for (TreeNode<K,V> p = root;;) { in putTreeVal()
2062 first = root = new TreeNode<K,V>(h, k, v, null, null); in putTreeVal()
2097 root = balanceInsertion(root, x); in putTreeVal()
2105 assert checkInvariants(root); in putTreeVal()
2130 root = null; in removeTreeNode()
2133 if ((r = root) == null || r.right == null || // too small in removeTreeNode()
[all …]
/libcore/luni/src/test/java/libcore/xml/
DSimpleBuilderTest.java61 Element root = document.getDocumentElement(); in testGoodFile1() local
62 assertNotNull(root); in testGoodFile1()
63 assertEquals("http://www.foo.bar", root.getNamespaceURI()); in testGoodFile1()
64 assertEquals("t", root.getPrefix()); in testGoodFile1()
65 assertEquals("stuff", root.getLocalName()); in testGoodFile1()
67 NodeList list = root.getElementsByTagName("nestedStuff"); in testGoodFile1()
114 Element root = document.getDocumentElement(); in testGoodFile2() local
115 assertNotNull(root); in testGoodFile2()
DNormalizeTest.java402 Element root = document.createElement("foo"); in testCommentContainingDoubleDash() local
403 document.appendChild(root); in testCommentContainingDoubleDash()
404 root.appendChild(document.createComment("ABC -- DEF")); in testCommentContainingDoubleDash()
422 Element root = document.createElement("foo"); in testSplittingCdataSectionsSplit() local
423 document.appendChild(root); in testSplittingCdataSectionsSplit()
424 root.appendChild(document.createCDATASection("ABC]]>DEF]]>GHI")); in testSplittingCdataSectionsSplit()
427 assertChildren(root, "<![CDATA[ABC]]]]>", "<![CDATA[>DEF]]]]>", "<![CDATA[>GHI]]>"); in testSplittingCdataSectionsSplit()
435 Element root = document.createElement("foo"); in testSplittingCdataSectionsReportError() local
436 document.appendChild(root); in testSplittingCdataSectionsReportError()
437 root.appendChild(document.createCDATASection("ABC]]>DEF")); in testSplittingCdataSectionsReportError()
[all …]
DNodeTest.java43 Node root = document.getDocumentElement(); in test_getNextSibling() local
44 assertNull(root.getNextSibling()); in test_getNextSibling()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Delementnormalize.java66 Element root; in runTest() local
72 root = doc.getDocumentElement(); in runTest()
73 root.normalize(); in runTest()
74 elementList = root.getElementsByTagName("name"); in runTest()
Dhc_documentgetrootnode.java60 Element root; in runTest() local
63 root = doc.getDocumentElement(); in runTest()
64 rootName = root.getNodeName(); in runTest()
Ddocumentgetrootnode.java64 Element root; in runTest() local
67 root = doc.getDocumentElement(); in runTest()
68 rootName = root.getNodeName(); in runTest()
Delementgettagname.java64 Element root; in runTest() local
67 root = doc.getDocumentElement(); in runTest()
68 tagname = root.getTagName(); in runTest()
Dhc_elementgettagname.java60 Element root; in runTest() local
63 root = doc.getDocumentElement(); in runTest()
64 tagname = root.getTagName(); in runTest()
Dhc_elementnormalize2.java60 Element root; in runTest() local
70 root = doc.getDocumentElement(); in runTest()
72 elementList = root.getElementsByTagName("acronym"); in runTest()
Dhc_elementnormalize.java60 Element root; in runTest() local
74 root = doc.getDocumentElement(); in runTest()
75 root.normalize(); in runTest()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Dnormalize01.java71 Element root; in runTest() local
78 root = doc.getDocumentElement(); in runTest()
79 root.normalize(); in runTest()
80 elementList = root.getElementsByTagName("name"); in runTest()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DNormalize.java76 Element root; in testNormalize() local
83 root = doc.getDocumentElement(); in testNormalize()
84 root.normalize(); in testNormalize()
85 elementList = root.getElementsByTagName("name"); in testNormalize()
/libcore/luni/src/test/java/libcore/java/util/logging/
DOldLoggerTest.java136 Logger root = Logger.getLogger(""); in testGetLogger_WithParent() local
146 assertSame(pLog.getParent(), root); in testGetLogger_WithParent() local
179 assertSame(child.getParent().getParent(), root); in testGetLogger_WithParent() local
187 assertSame(child.getParent().getParent(), root); in testGetLogger_WithParent() local
194 assertSame(childOfChild.getParent().getParent().getParent(), root); in testGetLogger_WithParent() local
203 assertSame(child.getParent().getParent(), root); in testGetLogger_WithParent() local
204 assertNotSame(child.getParent(), root); in testGetLogger_WithParent() local
207 assertNotSame(root.getParent(), root); in testGetLogger_WithParent() local
209 assertSame(twoDot.getParent(), root); in testGetLogger_WithParent() local
/libcore/luni/src/main/java/java/util/logging/
DLogManager.java167 Logger root = new Logger("", null);
168 root.setLevel(Level.INFO);
169 Logger.global.setParent(root);
171 manager.addLogger(root);
373 Logger root = loggers.get(""); in readConfigurationImpl() local
374 if (root != null) { in readConfigurationImpl()
375 root.setManager(this); in readConfigurationImpl()
434 Logger root = loggers.get(""); in reset() local
435 if (root != null) { in reset()
436 root.setLevel(Level.INFO); in reset()
/libcore/luni/src/main/java/java/util/
DTreeMap.java77 Node<K, V> root; field in TreeMap
159 map.root = root != null ? root.copy(null) : null; in clone()
190 root = null; in clear()
252 if (root == null) { in find()
257 root = new Node<K, V>(null, key); in find()
260 return root; in find()
275 Node<K, V> nearest = root; in find()
448 root = replacement; in replaceInParent()
522 private void rotateLeft(Node<K, V> root) { in rotateLeft() argument
523 Node<K, V> left = root.left; in rotateLeft()
[all …]
/libcore/luni/src/test/java/libcore/java/util/prefs/
DPreferencesTest.java37 public TestPreferencesFactory(String root) { in TestPreferencesFactory() argument
38 userPrefs = new FilePreferencesImpl(root + "/user", true); in TestPreferencesFactory()
39 systemPrefs = new FilePreferencesImpl(root + "/system", false); in TestPreferencesFactory()
/libcore/luni/src/main/java/java/util/prefs/
DAbstractPreferences.java124 private AbstractPreferences root; field in AbstractPreferences
149 root = (parent == null) ? this : parent.root; in AbstractPreferences()
157 userNode = root.userNode; in AbstractPreferences()
344 } else if (parentPref == root) { in absolutePath()
508 return root == Preferences.userRoot(); in isUserNode()
533 return root; in node()
536 startNode = root; in node()
615 startNode = root; in nodeExists()
699 if (root == this) { in removeNode()
/libcore/luni/src/test/java/libcore/java/security/cert/
DSubjectAlternativeNameTest.java53 Certificate root = new TestKeyStore.Builder() in formatIpAddress() local
57 X509Certificate javaCertificate = bouncycastleToJava(root); in formatIpAddress()
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java190 Phaser root = new Phaser(); in testRegisterEmptySubPhaser() local
191 Phaser child1 = new Phaser(root, 1); in testRegisterEmptySubPhaser()
192 Phaser child2 = new Phaser(root, 0); in testRegisterEmptySubPhaser()
194 assertState(root, 0, 2, 2); in testRegisterEmptySubPhaser()
198 assertState(root, 0, 1, 1); in testRegisterEmptySubPhaser()
203 assertState(root, 0, 1, 1); in testRegisterEmptySubPhaser()
207 assertTerminated(root, 1); in testRegisterEmptySubPhaser()
392 Phaser root = new Phaser();
393 Phaser parent = new Phaser(root);
395 assertState(root, 0, 0, 0);
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLocaleTest.java407 Locale root = Locale.ROOT; in test_constantROOT() local
408 assertEquals("", root.getLanguage()); in test_constantROOT()
409 assertEquals("", root.getCountry()); in test_constantROOT()
410 assertEquals("", root.getVariant()); in test_constantROOT()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java98 public static File copyFile(File root, String folder, String file) { in copyFile() argument
101 f = new File(root.toString() + "/" + folder); in copyFile()
107 f = root; in copyFile()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDocumentImpl.java384 ElementImpl root = (ElementImpl) getDocumentElement(); in getElementById() local
386 return (root == null ? null : root.getElementById(elementId)); in getElementById()
483 Element root = getDocumentElement(); in normalizeDocument() local
484 if (root == null) { in normalizeDocument()
488 ((DOMConfigurationImpl) getDomConfig()).normalize(root); in normalizeDocument()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderTest.java544 Element root = (Element)d.getElementsByTagName("a").item(0); in testReset() local
545 assertEquals("foo", ((EntityReference)root.getFirstChild()).getNodeName()); in testReset()
619 Element root = (Element)d.getElementsByTagName("a").item(0); in testSetEntityResolver() local
620 assertEquals("bar", ((Text)root.getFirstChild()).getData()); in testSetEntityResolver()
633 root = (Element)d.getElementsByTagName("a").item(0); in testSetEntityResolver()
634 assertEquals("foo", ((EntityReference)root.getFirstChild()).getNodeName()); in testSetEntityResolver()

12