Home
last modified time | relevance | path

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

12

/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalRandomTest.java74 long f = ThreadLocalRandom.current().nextLong();
76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f)
204 rnd.nextLong(bound);
222 rnd.nextLong(badBounds[0], badBounds[1]);
234 long f = ThreadLocalRandom.current().nextLong(bound);
239 (j = ThreadLocalRandom.current().nextLong(bound)) == f) {
254 long f = ThreadLocalRandom.current().nextLong(least, bound);
259 (j = ThreadLocalRandom.current().nextLong(least, bound)) == f) {
328 rand.set(current.nextLong());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DRandomTest.java213 long lastNum = r.nextLong(); in test_nextLong()
217 nextNum = r.nextLong(); in test_nextLong()
244 random1Values[i] = random1.nextLong(); in test_setSeedJ()
245 random2Values[i] = random2.nextLong(); in test_setSeedJ()
246 random3Values[i] = random3.nextLong(); in test_setSeedJ()
256 random3Values[i] = random3.nextLong(); in test_setSeedJ()
295 mr.nextLong(); in test_next()
DScannerTest.java2163 assertEquals(123, s.nextLong(10)); in test_nextLongI()
2164 assertEquals(456, s.nextLong(10)); in test_nextLongI()
2166 s.nextLong(10); in test_nextLongI()
2173 assertEquals(38, s.nextLong(5)); in test_nextLongI()
2175 s.nextLong(5); in test_nextLongI()
2183 s.nextLong(10); in test_nextLongI()
2195 s.nextLong(10); in test_nextLongI()
2201 assertEquals(23456, s.nextLong(10)); in test_nextLongI()
2202 assertEquals(23456, s.nextLong(10)); in test_nextLongI()
2210 s.nextLong(10); in test_nextLongI()
[all …]
/libcore/ojluni/src/main/java/java/util/
DPrimitiveIterator.java168 long nextLong(); in nextLong() method
189 action.accept(nextLong()); in forEachRemaining()
202 return nextLong(); in next()
DSplittableRandom.java349 double r = (nextLong() >>> 11) * DOUBLE_UNIT; in internalNextDouble()
398 return new SplittableRandom(nextLong(), mixGamma(nextSeed())); in split()
458 public long nextLong() { in nextLong() method in SplittableRandom
471 public long nextLong(long bound) { in nextLong() method in SplittableRandom
499 public long nextLong(long origin, long bound) { in nextLong() method in SplittableRandom
DRandom.java245 long r = nextLong(); in internalNextLong()
253 u = nextLong() >>> 1) // retry in internalNextLong()
259 r = nextLong(); in internalNextLong()
422 public long nextLong() { in nextLong() method in Random
DSpliterators.java776 public long nextLong() { in iterator() method in Spliterators.Adapter
1990 do { a[j] = i.nextLong(); } while (++j < n && i.hasNext()); in trySplit()
2009 action.accept(it.nextLong()); in tryAdvance()
/libcore/luni/src/test/java/libcore/java/util/
DRandomTest.java126 rands[i] = rand.nextLong(); in test_longs$()
139 rands[i] = rand.nextLong(); in test_longs$L()
159 rands[i] = (rand.nextLong() & 127) + origin; in test_longs$II()
178 rands[i] = (rand.nextLong() & 127) + origin; in test_longs$LII()
DPrimitiveIteratorTest.java61 public long nextLong() { in nextLong() method in PrimitiveIteratorTest.CannedLongIterator
/libcore/ojluni/src/test/java/time/jdk/testlibrary/
DRandomFactory.java60 return new Random().nextLong(); in getRandomSeed()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DLongPrimitiveOpsTests.java103 long[] content = LongStream.generate(() -> r.nextLong()).limit(10).toArray(); in testSort()
121 long[] content = LongStream.generate(() -> r.nextLong()).limit(10).toArray(); in testSortSort()
DFindFirstOpTest.java112 assertEquals(i.nextLong(), r.getAsLong()); in exerciseLongStream()
DFindAnyOpTest.java129 contained = r == it.nextLong(); in exerciseLongStream()
/libcore/luni/src/test/java/libcore/dalvik/system/
DEmulatedStackFrameTest.java52 assertEquals(56, reader.nextLong()); in testReaderWriter_allParamTypes()
95 assertEquals(72, reader.nextLong()); in testReaderWriter_allReturnTypes()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java532 filterWriter.putNextLong(returnValueReader.nextLong()); in transform()
587 arguments[i] = reader.nextLong(); in transform()
739 case 'J': { o = reader.nextLong(); break; } in referenceArray()
776 case 'J': { arityArray[i] = reader.nextLong(); break; } in longArray()
851 case 'J': { arityArray[i] = reader.nextLong(); break; } in floatArray()
872 case 'J': { arityArray[i] = reader.nextLong(); break; } in doubleArray()
939 case 'J': { writer.putNextLong(reader.nextLong()); break; } in copyParameter()
1388 array[i] = reader.nextLong(); in transform()
1854 return (byte) reader.nextLong(); in readPrimitiveAsByte()
1878 return (char) reader.nextLong(); in readPrimitiveAsChar()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java268 double r = (nextLong() >>> 11) * DOUBLE_UNIT; in internalNextDouble()
333 public long nextLong() { in nextLong() method in ThreadLocalRandom
346 public long nextLong(long bound) { in nextLong() method in ThreadLocalRandom
373 public long nextLong(long origin, long bound) { in nextLong() method in ThreadLocalRandom
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java405 writer.putNextLong(reader.nextLong()); in copyNext()
491 public long nextLong() { in nextLong() method in EmulatedStackFrame.StackFrameReader
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java117 for (int i=0; i<100; i++) { to(rand.nextLong(), unit); } in main()
126 long value = rand.nextLong(); in main()
156 long v = rand.nextLong(); in main()
/libcore/ojluni/src/main/java/java/nio/file/
DTempFileHelper.java58 long n = random.nextLong(); in generatePath()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java306 assertTrue(6180693691264871500l != sr1.nextLong()); in testSetSeedComplimentsAfterFirstRandomNumber()
/libcore/ojluni/annotations/hiddenapi/java/util/
DRandom.java82 public long nextLong() { in nextLong() method in Random
/libcore/ojluni/src/main/java/java/util/stream/
DLongStream.java745 public long nextLong() { in iterate()
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DLongNodeTest.java103 long i = it.nextLong(); in degenerateTree()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLongStreamTestScenario.java74 b.accept(seqIter.nextLong()); in STREAM_ITERATOR()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLongStreamTestScenario.java71 b.accept(seqIter.nextLong()); in STREAM_ITERATOR()

12