Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/main/java/java/util/concurrent/
DPhaser.java343 private final Phaser root; field in Phaser
380 final Phaser root = this.root; in doArrive() local
382 long s = (root == this) ? state : reconcileState(); in doArrive()
394 if (root == this) { in doArrive()
442 root.internalAwaitAdvance(phase, null); in doRegister()
465 phase = (int)(root.state >>> PHASE_SHIFT); in doRegister()
486 final Phaser root = this.root; in reconcileState() local
488 if (root != this) { in reconcileState()
491 while ((phase = (int)(root.state >>> PHASE_SHIFT)) != in reconcileState()
553 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()
/libcore/ojluni/src/main/java/java/util/
DAbstractList.java751 private final AbstractList<E> root; field in AbstractList.SubList
760 public SubList(AbstractList<E> root, int fromIndex, int toIndex) { in SubList() argument
761 this.root = root; in SubList()
765 this.modCount = root.modCount; in SubList()
772 this.root = parent.root; in SubList()
776 this.modCount = root.modCount; in SubList()
782 return root.set(offset + index, element); in set()
788 return root.get(offset + index); in get()
799 root.add(offset + index, element); in add()
806 E result = root.remove(offset + index); in remove()
[all …]
DArrayList.java1212 private final ArrayList<E> root; field in ArrayList.SubList
1220 public SubList(ArrayList<E> root, int fromIndex, int toIndex) { in SubList() argument
1221 this.root = root; in SubList()
1225 this.modCount = root.modCount; in SubList()
1232 this.root = parent.root; in SubList()
1242 E oldValue = root.elementData(offset + index); in set()
1243 root.elementData[offset + index] = element; in set()
1250 return root.elementData(offset + index); in get()
1261 root.add(offset + index, element); in add()
1268 E result = root.remove(offset + index); in remove()
[all …]
DHashMap.java1977 final TreeNode<K,V> root() { in root() method in HashMap.TreeNode
1988 static <K,V> void moveRootToFront(Node<K,V>[] tab, TreeNode<K,V> root) { in moveRootToFront() argument
1990 if (root != null && tab != null && (n = tab.length) > 0) { in moveRootToFront()
1991 int index = (n - 1) & root.hash; in moveRootToFront()
1993 if (root != first) { in moveRootToFront()
1995 tab[index] = root; in moveRootToFront()
1996 TreeNode<K,V> rp = root.prev; in moveRootToFront()
1997 if ((rn = root.next) != null) in moveRootToFront()
2002 first.prev = root; in moveRootToFront()
2003 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()
Ddocumentgetrootnode.java64 Element root; in runTest() local
67 root = doc.getDocumentElement(); in runTest()
68 rootName = root.getNodeName(); 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()
Delementgettagname.java64 Element root; in runTest() local
67 root = doc.getDocumentElement(); in runTest()
68 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/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/test/java/util/ArrayList/
DSubListModCount.java39 var root = new ArrayList<Integer>(); in main() local
40 var subList = root.subList(0, 0); in main()
41 root.add(42); in main()
/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/nio/file/Path/
DPathOps.java81 PathOps root(String expected) { in root() method in PathOps
238 .root("/") in doUnixTests()
244 .root("/") in doUnixTests()
250 .root(null) in doUnixTests()
256 .root(null) in doUnixTests()
260 .root(null) in doUnixTests()
487 .root("/") in doUnixTests()
/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/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 …]

123