Home
last modified time | relevance | path

Searched refs:NCALLS (Results 1 – 3 of 3) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadLocalRandomTest.java61 static final int NCALLS = 10000; field in ThreadLocalRandomTest
108 for (i = 0; i < NCALLS; i++) { in testNext()
112 assertTrue(i < NCALLS); in testNext()
117 for (i = 0; i < NCALLS; i++) { in testNext()
122 assertTrue(i < NCALLS); in testNext()
132 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f)
134 assertTrue(i < NCALLS);
143 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
145 assertTrue(i < NCALLS);
154 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
[all …]
DSplittableRandomTest.java68 static final int NCALLS = 10000; field in SplittableRandomTest
87 while (i < NCALLS && sr.nextInt() == f) in testNextInt()
89 assertTrue(i < NCALLS); in testNextInt()
99 while (i < NCALLS && sr.nextLong() == f)
101 assertTrue(i < NCALLS);
111 while (i < NCALLS && sr.nextDouble() == f)
113 assertTrue(i < NCALLS);
138 while (i < NCALLS && sr.nextLong() == sc.nextLong())
140 assertTrue(i < NCALLS);
153 while (i < NCALLS && sr.nextLong() == sc.nextLong())
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java38 static final int NCALLS = 10000; field in ThreadLocalRandomTest
65 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()
67 assertTrue(i < NCALLS); in testNextInt()
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
78 assertTrue(i < NCALLS);
87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
89 assertTrue(i < NCALLS);
98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
100 assertTrue(i < NCALLS);
109 while (i < NCALLS && ThreadLocalRandom.current().nextDouble() == f)
[all …]