Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/main/java/java/util/concurrent/
DPhaser.java340 private final Phaser root; field in Phaser
381 final Phaser root = this.root; in doArrive() local
383 long s = (root == this) ? state : reconcileState(); in doArrive()
395 if (root == this) { in doArrive()
443 root.internalAwaitAdvance(phase, null); in doRegister()
466 phase = (int)(root.state >>> PHASE_SHIFT); in doRegister()
487 final Phaser root = this.root; in reconcileState() local
489 if (root != this) { in reconcileState()
492 while ((phase = (int)(root.state >>> PHASE_SHIFT)) != in reconcileState()
554 final Phaser root = parent.root; in Phaser() local
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DPhaserTest.java34 Phaser root = new Phaser(); in testGetRoot() local
35 Phaser parent = new Phaser(root); in testGetRoot()
37 assertSame(root, root.getRoot()); in testGetRoot()
38 assertSame(root, parent.getRoot()); in testGetRoot()
39 assertSame(root, child.getRoot()); in testGetRoot()
DCountedCompleterTest.java64 final CountedCompleter root = getRoot(); in chooseOne() local
66 if (root != null) { in chooseOne()
67 root.complete(val); in chooseOne()
/libcore/luni/src/test/java/libcore/xml/
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 …]
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()
DNodeTest.java43 Node root = document.getDocumentElement(); in test_getNextSibling() local
44 assertNull(root.getNextSibling()); in test_getNextSibling()
/libcore/ojluni/src/main/java/java/util/
DAbstractList.java749 private final AbstractList<E> root; field in AbstractList.SubList
758 public SubList(AbstractList<E> root, int fromIndex, int toIndex) { in SubList() argument
759 this.root = root; in SubList()
763 this.modCount = root.modCount; in SubList()
770 this.root = parent.root; in SubList()
774 this.modCount = root.modCount; in SubList()
780 return root.set(offset + index, element); in set()
786 return root.get(offset + index); in get()
797 root.add(offset + index, element); in add()
804 E result = root.remove(offset + index); in remove()
[all …]
DHashMap.java1816 final TreeNode<K,V> root() { in root() method in HashMap.TreeNode
1827 static <K,V> void moveRootToFront(Node<K,V>[] tab, TreeNode<K,V> root) { in moveRootToFront() argument
1829 if (root != null && tab != null && (n = tab.length) > 0) { in moveRootToFront()
1830 int index = (n - 1) & root.hash; in moveRootToFront()
1832 if (root != first) { in moveRootToFront()
1834 tab[index] = root; in moveRootToFront()
1835 TreeNode<K,V> rp = root.prev; in moveRootToFront()
1836 if ((rn = root.next) != null) in moveRootToFront()
1841 first.prev = root; in moveRootToFront()
1842 root.next = first; in moveRootToFront()
[all …]
/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/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()
Delementgettagname.java64 Element root; in runTest() local
67 root = doc.getDocumentElement(); in runTest()
68 tagname = root.getTagName(); in runTest()
Dhc_documentgetrootnode.java60 Element root; in runTest() local
63 root = doc.getDocumentElement(); in runTest()
64 rootName = root.getNodeName(); in runTest()
Dhc_elementgettagname.java60 Element root; in runTest() local
63 root = doc.getDocumentElement(); in runTest()
64 tagname = root.getTagName(); in runTest()
Ddocumentgetrootnode.java64 Element root; in runTest() local
67 root = doc.getDocumentElement(); in runTest()
68 rootName = root.getNodeName(); in runTest()
Dhc_elementnormalize.java60 Element root; in runTest() local
74 root = doc.getDocumentElement(); in runTest()
75 root.normalize(); in runTest()
Dhc_elementnormalize2.java60 Element root; in runTest() local
70 root = doc.getDocumentElement(); in runTest()
72 elementList = root.getElementsByTagName("acronym"); 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/prefs/
DPreferencesTest.java42 public TestPreferencesFactory(String root) throws IOException { in TestPreferencesFactory() argument
43 userLockFile = new File(root, "user.lock"); in TestPreferencesFactory()
44 systemLockFile = new File(root, "system.lock"); in TestPreferencesFactory()
47 userPrefs = new FileSystemPreferences(root + "/user", userLockFile, true); in TestPreferencesFactory()
48 … systemPrefs = new FileSystemPreferences(root + "/system", systemLockFile, false); } in TestPreferencesFactory()
/libcore/ojluni/src/main/java/java/util/prefs/
DAbstractPreferences.java143 private final AbstractPreferences root; // Relative to this node field in AbstractPreferences
211 root = this; in AbstractPreferences()
219 root = parent.root; in AbstractPreferences()
220 absolutePath = (parent==root ? "/" + name in AbstractPreferences()
818 return root; in node()
824 return root.node(new StringTokenizer(path.substring(1), "/", true)); in node()
889 return root.nodeExists(new StringTokenizer(path.substring(1), "/", in nodeExists()
950 if (this==root) in removeNode()
1034 return root == Preferences.userRoot(); in isUserNode()
/libcore/ojluni/src/main/java/java/lang/
DUNIXProcess.java98 ThreadGroup root = Thread.currentThread().getThreadGroup(); in getRootThreadGroup()
99 while (root.getParent() != null) in getRootThreadGroup()
100 root = root.getParent(); in getRootThreadGroup()
101 return root; in getRootThreadGroup()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DPhaserTest.java225 Phaser root = new Phaser(); in testRegisterEmptySubPhaser() local
226 Phaser child1 = new Phaser(root, 1); in testRegisterEmptySubPhaser()
227 Phaser child2 = new Phaser(root, 0); in testRegisterEmptySubPhaser()
229 assertState(root, 0, 2, 2); in testRegisterEmptySubPhaser()
233 assertState(root, 0, 1, 1); in testRegisterEmptySubPhaser()
238 assertState(root, 0, 1, 1); in testRegisterEmptySubPhaser()
242 assertTerminated(root, 1); in testRegisterEmptySubPhaser()
427 Phaser root = new Phaser();
428 Phaser parent = new Phaser(root);
430 assertState(root, 0, 0, 0);
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java201 Phaser root = new Phaser(); in testRegisterEmptySubPhaser() local
202 Phaser child1 = new Phaser(root, 1); in testRegisterEmptySubPhaser()
203 Phaser child2 = new Phaser(root, 0); in testRegisterEmptySubPhaser()
205 assertState(root, 0, 2, 2); in testRegisterEmptySubPhaser()
209 assertState(root, 0, 1, 1); in testRegisterEmptySubPhaser()
214 assertState(root, 0, 1, 1); in testRegisterEmptySubPhaser()
218 assertTerminated(root, 1); in testRegisterEmptySubPhaser()
403 Phaser root = new Phaser();
404 Phaser parent = new Phaser(root);
406 assertState(root, 0, 0, 0);
[all …]
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DLocaleTest.java402 Locale root = Locale.ROOT; in test_constantROOT() local
403 assertEquals("", root.getLanguage()); in test_constantROOT()
404 assertEquals("", root.getCountry()); in test_constantROOT()
405 assertEquals("", root.getVariant()); in test_constantROOT()

123