Home
last modified time | relevance | path

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

12

/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.java44 import java.util.concurrent.ThreadLocalRandom;
92 ThreadLocalRandom.current().setSeed(17); in testSetSeed()
104 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testNext()
107 m = ThreadLocalRandom.class.getDeclaredMethod( in testNext()
147 int f = ThreadLocalRandom.current().nextInt();
149 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f)
159 long f = ThreadLocalRandom.current().nextLong();
161 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
171 boolean f = ThreadLocalRandom.current().nextBoolean();
173 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
[all …]
DThreadLocalRandom8Test.java44 import java.util.concurrent.ThreadLocalRandom;
81 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamSize()
99 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBadStreamBounds()
117 ThreadLocalRandom r = ThreadLocalRandom.current(); in testIntsCount()
133 ThreadLocalRandom r = ThreadLocalRandom.current(); in testLongsCount()
149 ThreadLocalRandom r = ThreadLocalRandom.current(); in testDoublesCount()
165 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedInts()
185 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedLongs()
205 ThreadLocalRandom r = ThreadLocalRandom.current(); in testBoundedDoubles()
225 ThreadLocalRandom r = ThreadLocalRandom.current(); in testUnsizedIntsCount()
[all …]
DCollection8Test.java67 import java.util.concurrent.ThreadLocalRandom;
311 ThreadLocalRandom rnd = ThreadLocalRandom.current();
400 ThreadLocalRandom rnd = ThreadLocalRandom.current();
439 ThreadLocalRandom rnd = ThreadLocalRandom.current();
503 ThreadLocalRandom rnd = ThreadLocalRandom.current();
577 ThreadLocalRandom rnd = ThreadLocalRandom.current();
611 ThreadLocalRandom rnd = ThreadLocalRandom.current();
746 return ts[ThreadLocalRandom.current().nextInt(ts.length)];
785 final ThreadLocalRandom rnd = ThreadLocalRandom.current();
809 final ThreadLocalRandom rnd = ThreadLocalRandom.current();
DArrayBlockingQueueTest.java59 import java.util.concurrent.ThreadLocalRandom;
125 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in populatedQueue()
260 int size = ThreadLocalRandom.current().nextInt(1, SIZE); in testRemainingCapacity()
333 int size = ThreadLocalRandom.current().nextInt(1, SIZE); in testAddAll_insufficientSpace()
644 int size = ThreadLocalRandom.current().nextInt(1, SIZE); in testContains()
659 int size = ThreadLocalRandom.current().nextInt(1, 5); in testClear()
761 final ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testToArray()
DCountedCompleter8Test.java48 import java.util.concurrent.ThreadLocalRandom;
161 int n = ThreadLocalRandom.current().nextInt(8); in testRecursiveDecomposition()
DTimeUnit8Test.java55 import java.util.concurrent.ThreadLocalRandom;
128 long n = ThreadLocalRandom.current().nextLong(); in testConvertDuration_roundtripDurationOf()
DArrayDequeTest.java54 import java.util.concurrent.ThreadLocalRandom;
89 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in populatedDeque()
813 final int size = ThreadLocalRandom.current().nextInt(10); in testToArray()
DJSR166TestCase.java126 import java.util.concurrent.ThreadLocalRandom;
823 ThreadLocalRandom rnd = ThreadLocalRandom.current();
2337 Collections.shuffle(Arrays.asList(array), ThreadLocalRandom.current());
DRecursiveActionTest.java54 import java.util.concurrent.ThreadLocalRandom;
1315 ThreadLocalRandom rnd = ThreadLocalRandom.current(); in testSortTaskDemo()
/libcore/ojluni/src/test/java/util/Random/
DRandomStreamTest.java37 import java.util.concurrent.ThreadLocalRandom;
132 ThreadLocalRandom tlr = ThreadLocalRandom.current(); in testThreadLocalIntStream()
138 ThreadLocalRandom tlr = ThreadLocalRandom.current(); in testThreadLocalLongStream()
144 ThreadLocalRandom tlr = ThreadLocalRandom.current(); in testThreadLocalDoubleStream()
DRandomTestCoverage.java28 import java.util.concurrent.ThreadLocalRandom;
221 coverRandomGenerator(ThreadLocalRandom.current()); in main()
DRandomTestMoments.java33 import java.util.concurrent.ThreadLocalRandom;
DRandomTestChiSquared.java34 import java.util.concurrent.ThreadLocalRandom;
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java96 public final class ThreadLocalRandom extends Random { class
158 private ThreadLocalRandom() { in ThreadLocalRandom() method in ThreadLocalRandom
185 public static ThreadLocalRandom current() { in current()
393 private static final ThreadLocalRandom instance = new ThreadLocalRandom();
436 return ThreadLocalRandom.current().nextInt(); in nextInt()
440 return ThreadLocalRandom.current().nextLong(); in nextLong()
444 return ThreadLocalRandom.current().nextDouble(); in nextDouble()
DForkJoinWorkerThread.java222 ThreadLocalRandom.setInheritedAccessControlContext(t, innocuousACC); in onStart()
DForkJoinPool.java1330 ThreadLocalRandom.eraseThreadLocals(Thread.currentThread());
1617 ThreadLocalRandom.localInit();
1618 int seed = ThreadLocalRandom.getProbe();
1952 int r = ThreadLocalRandom.nextSecondarySeed();
2339 if ((r = ThreadLocalRandom.getProbe()) == 0) {
2340 ThreadLocalRandom.localInit(); // initialize caller's probe
2341 r = ThreadLocalRandom.getProbe();
2357 id = (r = ThreadLocalRandom.advanceProbe(r)) << 1;
2396 int r = ThreadLocalRandom.getProbe(), n;
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DThreadLocalRandom.annotated.java43 public class ThreadLocalRandom extends java.util.Random { class
45 ThreadLocalRandom() { throw new RuntimeException("Stub!"); } in ThreadLocalRandom() method in ThreadLocalRandom
47 public static java.util.concurrent.ThreadLocalRandom current() { throw new RuntimeException("Stub!"… in current()
/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.java39 import java.util.concurrent.ThreadLocalRandom;
74 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/util/random/
DRandomGenerator.java31 import java.util.concurrent.ThreadLocalRandom;

12