/libcore/benchmarks/src/benchmarks/ |
D | XmlSerializeBenchmark.java | 57 while(r.nextDouble() < contChance) { in serializeRandomXml() 58 while(level > 0 && r.nextDouble() < levelUpChance) { in serializeRandomXml() 62 while(r.nextDouble() < levelDownChance) { in serializeRandomXml() 68 while(r.nextDouble() < attributeChance) { in serializeRandomXml() 73 while(r.nextDouble() < writeChance1) in serializeRandomXml() 75 while(r.nextDouble() < writeChance2) in serializeRandomXml()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | ChoiceFormatTest.java | 31 double[] limits = new double[] { 0, 1, ChoiceFormat.nextDouble(1), 32 ChoiceFormat.nextDouble(2) }; 151 double[] choiceLimits = { -1, 0, 1, ChoiceFormat.nextDouble(1) }; in test_applyPatternLjava_lang_String() 180 choiceLimits[0] = ChoiceFormat.nextDouble(-1); in test_applyPatternLjava_lang_String() 217 double[] orangeLimits = { -2, 0, ChoiceFormat.nextDouble(0), 1, 2 }; in test_equalsLjava_lang_Object() 311 assertTrue("Not greater 5", ChoiceFormat.nextDouble(5) > 5); in test_nextDoubleD() 312 assertTrue("Not greater 0", ChoiceFormat.nextDouble(0) > 0); in test_nextDoubleD() 313 assertTrue("Not greater -5", ChoiceFormat.nextDouble(-5) > -5); in test_nextDoubleD() 314 assertTrue("Not NaN", Double.isNaN(ChoiceFormat.nextDouble(Double.NaN))); in test_nextDoubleD() 323 assertTrue("Not greater 0", ChoiceFormat.nextDouble(0, true) > 0); in test_nextDoubleDZ() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | PrimitiveIterator.java | 241 double nextDouble(); in nextDouble() method 262 action.accept(nextDouble()); in forEachRemaining() 275 return nextDouble(); in next()
|
D | Random.java | 302 double r = nextDouble(); in internalNextDouble() 531 public double nextDouble() { in nextDouble() method in Random 591 v1 = 2 * nextDouble() - 1; // between -1 and 1 in nextGaussian() 592 v2 = 2 * nextDouble() - 1; // between -1 and 1 in nextGaussian()
|
D | SplittableRandom.java | 512 public double nextDouble() { in nextDouble() method in SplittableRandom 525 public double nextDouble(double bound) { in nextDouble() method in SplittableRandom 544 public double nextDouble(double origin, double bound) { in nextDouble() method in SplittableRandom
|
D | Spliterators.java | 821 public double nextDouble() { in iterator() method in Spliterators.Adapter 2084 do { a[j] = i.nextDouble(); } while (++j < n && i.hasNext()); in trySplit() 2103 action.accept(it.nextDouble()); in tryAdvance()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandomTest.java | 107 double f = ThreadLocalRandom.current().nextDouble(); 109 while (i < NCALLS && ThreadLocalRandom.current().nextDouble() == f) 282 rnd.nextDouble(bound); 295 double f = ThreadLocalRandom.current().nextDouble(least, bound); 300 (j = ThreadLocalRandom.current().nextDouble(least, bound)) == f) {
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | EmulatedStackFrameTest.java | 54 assertEquals(52.0, reader.nextDouble()); in testReaderWriter_allParamTypes() 107 assertEquals(73.0, reader.nextDouble()); in testReaderWriter_allReturnTypes() 130 reader.nextDouble(); in testReaderWriter_wrongTypes() 138 reader.nextDouble(); in testReaderWriter_wrongTypes()
|
/libcore/ojluni/src/main/java/java/text/ |
D | ChoiceFormat.java | 219 startValue = nextDouble(startValue); in applyPattern() 455 public static final double nextDouble (double d) { in nextDouble() method in ChoiceFormat 456 return nextDouble(d,true); in nextDouble() 468 return nextDouble(d,false); in previousDouble() 588 public static double nextDouble (double d, boolean positive) { in nextDouble() method in ChoiceFormat
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DoublePrimitiveOpsTests.java | 60 double[] content = DoubleStream.generate(() -> r.nextDouble()).limit(10).toArray(); in testSort() 78 double[] content = DoubleStream.generate(() -> r.nextDouble()).limit(10).toArray(); in testSortSort()
|
D | FindFirstOpTest.java | 132 assertEquals(i.nextDouble(), r.getAsDouble()); in exerciseDoubleStream()
|
D | FindAnyOpTest.java | 153 contained = r == it.nextDouble(); in exerciseDoubleStream()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | RandomTest.java | 201 rands[i] = rand.nextDouble(); in test_doubles$() 214 rands[i] = rand.nextDouble(); in test_doubles$L() 234 double r = rand.nextDouble() * (bound - origin) + origin; in test_doubles$II() 257 double r = rand.nextDouble() * (bound - origin) + origin; in test_doubles$LII()
|
D | ArraysTest.java | 398 list[i] = rand.nextDouble() * 1000; in test_parallelPrefix$D() 436 list[i] = rand.nextDouble() * 1000; in test_parallelPrefix$DII()
|
D | PrimitiveIteratorTest.java | 81 public double nextDouble() { in nextDouble() method in PrimitiveIteratorTest.CannedDoubleIterator
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RandomTest.java | 98 double lastNum = r.nextDouble(); in test_nextDouble() 103 nextNum = r.nextDouble(); in test_nextDouble() 285 mr.nextDouble(); in test_next()
|
D | ScannerTest.java | 4442 assertEquals(123.0, s.nextDouble()); in test_hasNextDouble() 4444 assertEquals(456.0, s.nextDouble()); in test_hasNextDouble() 4446 assertEquals(123.4, s.nextDouble()); in test_hasNextDouble() 4448 assertEquals(0.123, s.nextDouble()); in test_hasNextDouble() 4451 s.nextDouble(); in test_hasNextDouble() 4459 assertEquals(123.4, s.nextDouble()); in test_hasNextDouble() 4461 assertEquals(-456.7, s.nextDouble()); in test_hasNextDouble() 4463 assertEquals(123456.789, s.nextDouble()); in test_hasNextDouble() 4466 s.nextDouble(); in test_hasNextDouble() 4475 assertEquals(1.234E12, s.nextDouble()); in test_hasNextDouble() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 386 public double nextDouble() { in nextDouble() method in ThreadLocalRandom 399 public double nextDouble(double bound) { in nextDouble() method in ThreadLocalRandom 418 public double nextDouble(double origin, double bound) { in nextDouble() method in ThreadLocalRandom 453 v1 = 2 * nextDouble() - 1; // between -1 and 1 in nextGaussian() 454 v2 = 2 * nextDouble() - 1; // between -1 and 1 in nextGaussian()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 536 filterWriter.putNextDouble(returnValueReader.nextDouble()); in transform() 591 arguments[i] = reader.nextDouble(); in transform() 745 case 'D': { o = reader.nextDouble(); break; } in referenceArray() 870 case 'D': { arityArray[i] = reader.nextDouble(); break; } in doubleArray() 945 case 'D': { writer.putNextDouble(reader.nextDouble()); break; } in copyParameter() 1436 array[i] = reader.nextDouble(); in transform() 1876 return (byte) reader.nextDouble(); in readPrimitiveAsByte() 1898 return (char) reader.nextDouble(); in readPrimitiveAsChar() 1920 return (short) reader.nextDouble(); in readPrimitiveAsShort() 1942 return (int) reader.nextDouble(); in readPrimitiveAsInt() [all …]
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | EmulatedStackFrame.java | 400 writer.putNextDouble(reader.nextDouble()); in copyNext() 512 public double nextDouble() { in nextDouble() method in EmulatedStackFrame.StackFrameReader
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DoubleStream.java | 786 public double nextDouble() { in iterate()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 709 return RandomNumberGeneratorHolder.randomNumberGenerator.nextDouble(); in random()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 94 public double nextDouble() { in nextDouble() method in Random
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | DoubleNodeTest.java | 103 double i = it.nextDouble(); in degenerateTree()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | DoubleStreamTestScenario.java | 71 b.accept(seqIter.nextDouble()); in STREAM_ITERATOR()
|