Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java9 import java.util.concurrent.ThreadLocalRandom;
54 ThreadLocalRandom.current().setSeed(17); in testSetSeed()
63 int f = ThreadLocalRandom.current().nextInt(); in testNextInt()
65 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) in testNextInt()
74 long f = ThreadLocalRandom.current().nextLong();
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
85 boolean f = ThreadLocalRandom.current().nextBoolean();
87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
96 float f = ThreadLocalRandom.current().nextFloat();
98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
[all …]
DThreadLocalRandom8Test.java9 import java.util.concurrent.ThreadLocalRandom;
43 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamSize()
60 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamBounds()
77 ThreadLocalRandom r = ThreadLocalRandom.current(); in testIntsCount()
92 ThreadLocalRandom r = ThreadLocalRandom.current(); in testLongsCount()
107 ThreadLocalRandom r = ThreadLocalRandom.current(); in testDoublesCount()
122 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedInts()
141 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedLongs()
160 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedDoubles()
179 ThreadLocalRandom r = ThreadLocalRandom.current(); in testUnsizedIntsCount()
[all …]
DRecursiveActionTest.java20 import java.util.concurrent.ThreadLocalRandom;
1240 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testSortTaskDemo()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadLocalRandomTest.java35 import java.util.concurrent.ThreadLocalRandom;
77 ThreadLocalRandom.current().setSeed(17); in testSetSeed()
88 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testNext()
91 m = ThreadLocalRandom.class.getDeclaredMethod( in testNext()
130 int f = ThreadLocalRandom.current().nextInt();
132 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f)
141 long f = ThreadLocalRandom.current().nextLong();
143 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
152 boolean f = ThreadLocalRandom.current().nextBoolean();
154 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
[all …]
DThreadLocalRandom8Test.java35 import java.util.concurrent.ThreadLocalRandom;
66 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamSize()
83 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamBounds()
100 ThreadLocalRandom r = ThreadLocalRandom.current(); in testIntsCount()
115 ThreadLocalRandom r = ThreadLocalRandom.current(); in testLongsCount()
130 ThreadLocalRandom r = ThreadLocalRandom.current(); in testDoublesCount()
145 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedInts()
164 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedLongs()
183 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedDoubles()
202 ThreadLocalRandom r = ThreadLocalRandom.current(); in testUnsizedIntsCount()
[all …]
DCollection8Test.java59 import java.util.concurrent.ThreadLocalRandom;
302 ThreadLocalRandom rnd = ThreadLocalRandom.current();
391 ThreadLocalRandom rnd = ThreadLocalRandom.current();
430 ThreadLocalRandom rnd = ThreadLocalRandom.current();
494 ThreadLocalRandom rnd = ThreadLocalRandom.current();
568 ThreadLocalRandom rnd = ThreadLocalRandom.current();
602 ThreadLocalRandom rnd = ThreadLocalRandom.current();
737 return ts[ThreadLocalRandom.current().nextInt(ts.length)];
776 final ThreadLocalRandom rnd = ThreadLocalRandom.current();
800 final ThreadLocalRandom rnd = ThreadLocalRandom.current();
DArrayBlockingQueueTest.java51 import java.util.concurrent.ThreadLocalRandom;
65 boolean fair = ThreadLocalRandom.current().nextBoolean(); in suite()
106 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in populatedQueue()
232 int size = ThreadLocalRandom.current().nextInt(1, SIZE); in testRemainingCapacity()
300 int size = ThreadLocalRandom.current().nextInt(1, SIZE); in testAddAll_insufficientSpace()
596 int size = ThreadLocalRandom.current().nextInt(1, SIZE); in testContains()
610 int size = ThreadLocalRandom.current().nextInt(1, 5); in testClear()
708 final ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testToArray()
DCountedCompleter8Test.java40 import java.util.concurrent.ThreadLocalRandom;
150 int n = ThreadLocalRandom.current().nextInt(8); in testRecursiveDecomposition()
DTimeUnit8Test.java47 import java.util.concurrent.ThreadLocalRandom;
112 long n = ThreadLocalRandom.current().nextLong(); in testConvertDuration_roundtripDurationOf()
DArrayDequeTest.java45 import java.util.concurrent.ThreadLocalRandom;
75 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in populatedDeque()
752 final int size = ThreadLocalRandom.current().nextInt(10); in testToArray()
DRecursiveActionTest.java46 import java.util.concurrent.ThreadLocalRandom;
1252 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testSortTaskDemo()
DJSR166TestCase.java117 import java.util.concurrent.ThreadLocalRandom;
685 ThreadLocalRandom rnd = ThreadLocalRandom.current();
2198 Collections.shuffle(Arrays.asList(array), ThreadLocalRandom.current());
DCountedCompleterTest.java44 import java.util.concurrent.ThreadLocalRandom;
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java99 public class ThreadLocalRandom extends Random { class
170 private ThreadLocalRandom() { in ThreadLocalRandom() method in ThreadLocalRandom
199 public static ThreadLocalRandom current() { in current()
421 private static final ThreadLocalRandom instance = new ThreadLocalRandom();
1275 consumer.accept(ThreadLocalRandom.current().internalNextInt(origin, bound)); in tryAdvance()
1288 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()
1330 consumer.accept(ThreadLocalRandom.current().internalNextLong(origin, bound)); in tryAdvance()
1343 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()
1386 consumer.accept(ThreadLocalRandom.current().internalNextDouble(origin, bound)); in tryAdvance()
1399 ThreadLocalRandom rng = ThreadLocalRandom.current(); in forEachRemaining()
DForkJoinPool.java1193 ThreadLocalRandom.eraseThreadLocals(Thread.currentThread());
1277 ThreadLocalRandom.setInheritedAccessControlContext(t, acc);
1278 ThreadLocalRandom.eraseThreadLocals(t);
1496 ThreadLocalRandom.localInit();
1497 int seed = ThreadLocalRandom.getProbe();
2148 if ((r = ThreadLocalRandom.getProbe()) == 0) {
2149 ThreadLocalRandom.localInit(); // initialize caller's probe
2150 r = ThreadLocalRandom.getProbe();
2167 id = (r = ThreadLocalRandom.advanceProbe(r)) << 1;
2210 int r = ThreadLocalRandom.getProbe(), n;
[all …]
DConcurrentHashMap.java2336 (c = cs[ThreadLocalRandom.getProbe() & m]) == null || in addCount()
2590 if ((h = ThreadLocalRandom.getProbe()) == 0) { in fullAddCount()
2591 ThreadLocalRandom.localInit(); // force initialization in fullAddCount()
2592 h = ThreadLocalRandom.getProbe(); in fullAddCount()
2642 h = ThreadLocalRandom.advanceProbe(h); in fullAddCount()
DConcurrentSkipListMap.java661 int lr = ThreadLocalRandom.nextSecondarySeed(); in doPut()
663 int hr = ThreadLocalRandom.nextSecondarySeed(); in doPut()
/libcore/ojluni/src/test/java/util/HashSet/
DSerialization.java33 import java.util.concurrent.ThreadLocalRandom;
47 private static final Random rnd = ThreadLocalRandom.current();
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DStriped64.java41 import java.util.concurrent.ThreadLocalRandom;
233 ThreadLocalRandom.current(); // force initialization in longAccumulate()
315 ThreadLocalRandom.current(); // force initialization in doubleAccumulate()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DDistinctOpTest.java40 import java.util.concurrent.ThreadLocalRandom;
75 oi = ThreadLocalRandom.current().ints().boxed().parallel().distinct().findAny(); in testWithUnorderedInfiniteStream()
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCountedCompleterTest.java23 import java.util.concurrent.ThreadLocalRandom;
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java41 import java.util.concurrent.ThreadLocalRandom;
1111 rnd = ThreadLocalRandom.current(); in passesMillerRabin()
/libcore/
Dopenjdk_java_files.bp1019 "ojluni/src/main/java/java/util/concurrent/ThreadLocalRandom.java",
DEXPECTED_UPSTREAM1062 …java/util/concurrent/ThreadLocalRandom.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/java/…
/libcore/api/
Dcurrent.txt15834 public class ThreadLocalRandom extends java.util.Random {
15835 method public static java.util.concurrent.ThreadLocalRandom current();