/libcore/luni/src/test/java/libcore/java/util/ |
D | RandomTest.java | 20 import java.util.Random; 28 class MyRandom extends Random { in test_subclassing() 48 Random rand = new Random(0); in test_ints$() 54 int[] streamRands = new Random(0).ints().limit(limit).toArray(); in test_ints$() 61 Random rand = new Random(0); in test_ints$L() 67 int[] streamRands = new Random(0).ints(size).toArray(); in test_ints$L() 69 assertEquals(size, new Random(0).ints(size).count()); in test_ints$L() 72 new Random(0).ints(-1); in test_ints$L() 81 Random rand = new Random(0); in test_ints$II() 87 int[] streamRands = new Random(0).ints(origin, bound).limit(limit).toArray(); in test_ints$II() [all …]
|
D | ArraysTest.java | 20 import java.util.Random; 245 Random rand = new Random(0); in test_parallelPrefix$I() 279 Random rand = new Random(0); in test_parallelPrefix$III() 320 Random rand = new Random(0); in test_parallelPrefix$L() 354 Random rand = new Random(0); in test_parallelPrefix$LII() 395 Random rand = new Random(0); in test_parallelPrefix$D() 433 Random rand = new Random(0); in test_parallelPrefix$DII()
|
D | OldAndroidTreeMapTest.java | 22 import java.util.Random; 30 private Random mRandom = new Random(1);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RandomTest.java | 22 import java.util.Random; 27 private Random r; 41 Random r = new Random(8409238L); in test_ConstructorJ() 42 Random r2 = new Random(8409238L); in test_ConstructorJ() 49 Random r = new Random(); in test_setSeed() 51 Random r2 = new Random(); in test_setSeed() 235 Random random1 = new Random(); in test_setSeedJ() 236 Random random2 = new Random(); in test_setSeedJ() 237 Random random3 = new Random(); in test_setSeedJ() 262 static final class Mock_Random extends Random { [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | BigIntegerBenchmark.java | 20 import java.util.Random; 24 Random r = new Random(); in timeRandomDivision() 33 Random r = new Random(); in timeRandomGcd() 42 Random r = new Random(); in timeRandomMultiplication()
|
D | RandomBenchmark.java | 20 import java.util.Random; 25 Random rng = new Random(); in timeNewRandom() 31 Random rng = new Random(); in timeReusedRandom()
|
D | PriorityQueueBenchmark.java | 25 import java.util.Random; 34 private Random random = new Random(189279387L);
|
D | CollectionsBenchmark.java | 24 import java.util.Random; 71 Random random = new Random(); in buildList()
|
/libcore/ojluni/src/test/java/time/jdk/testlibrary/ |
D | RandomFactory.java | 26 import java.util.Random; 60 return new Random().nextLong(); in getRandomSeed() 88 public static Random getRandom() { in getRandom() 89 return new Random(getSeed()); in getRandom()
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 20 import java.util.Random; 89 Random rand = new Random(); in test_Constructor_ILjava_util_Random() 104 Random rand = new Random(); in test_Constructor_IILjava_util_Random() 143 Random rand = new Random(); in test_probablePrime()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DoublePrimitiveOpsTests.java | 29 import java.util.Random; 58 Random r = new Random(); in testSort() 76 Random r = new Random(); in testSortSort()
|
D | IntPrimitiveOpsTests.java | 30 import java.util.Random; 101 Random r = new Random(); in testSort() 119 Random r = new Random(); in testSortSort()
|
D | LongPrimitiveOpsTests.java | 30 import java.util.Random; 101 Random r = new Random(); in testSort() 119 Random r = new Random(); in testSortSort()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Random.java | 77 class Random implements java.io.Serializable { class 104 public Random() { in Random() method in Random 135 public Random(long seed) { in Random() method in Random 136 if (getClass() == Random.class) in Random() 999 final Random rng; 1004 RandomIntsSpliterator(Random rng, long index, long fence, in RandomIntsSpliterator() 1041 Random r = rng; in forEachRemaining() 1054 final Random rng; 1059 RandomLongsSpliterator(Random rng, long index, long fence, in RandomLongsSpliterator() 1096 Random r = rng; in forEachRemaining() [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | SmallBigIntegerBenchmark.java | 20 import java.util.Random; 38 final Random r = new Random(); in main()
|
D | ZipFileBenchmark.java | 25 import java.util.Random; 61 Random random = new Random(); in writeEntries()
|
D | BufferedZipFileBenchmark.java | 25 import java.util.Random; 42 Random random = new Random(0); in setUp()
|
D | XmlSerializeBenchmark.java | 23 import java.util.Random; 54 Random r = new Random(seed); in serializeRandomXml()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | OldBigIntegerTest.java | 21 import java.util.Random; 31 Random rand = new Random(); 45 new BigInteger(128, (Random) null); in test_ConstructorILjava_util_Random() 60 new BigInteger(-1, (Random)null); in test_ConstructorILjava_util_Random() 79 Random rand = new Random(); in test_ConstructorIILjava_util_Random() 91 new BigInteger(1, 80, (Random)null); in test_ConstructorIILjava_util_Random() 97 new BigInteger(-1, (Random)null); in test_ConstructorIILjava_util_Random()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | GZIPInputStreamTest.java | 29 import java.util.Random; 91 new Random().nextBytes(data); in testLongMessage() 173 final Random r = new Random(10); in testMultipleMembersWithCustomBufferSize()
|
D | GZIPOutputStreamTest.java | 24 import java.util.Random; 43 new Random().nextBytes(data); in testLongMessage()
|
D | ZipOutputStreamTest.java | 25 import java.util.Random; 54 new Random().nextBytes(data); in testLongMessage()
|
D | OldAndroidZipStressTest.java | 25 import java.util.Random; 129 Random random = new Random(42); // Seed makes test reproducible in testZipDeflateInflateStress()
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
D | CharSinkTester.java | 27 import java.util.Random; 166 Random dice = new Random(); in sinkTestWriteLargeArray()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 27 import java.util.Random; 682 static final Random randomNumberGenerator = new Random();
|