/libcore/ojluni/annotations/flagged_api/java/util/concurrent/ |
D | ThreadLocalRandom.annotated.java | 67 public float nextFloat() { throw new RuntimeException("Stub!"); } in nextFloat() method in ThreadLocalRandom 70 public float nextFloat(float bound) { throw new RuntimeException("Stub!"); } in nextFloat() method in ThreadLocalRandom 73 public float nextFloat(float origin, float bound) { throw new RuntimeException("Stub!"); } in nextFloat() method in ThreadLocalRandom
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 491 public float nextFloat() { in nextFloat() method in ThreadLocalRandom 492 return super.nextFloat(); in nextFloat() 501 public float nextFloat(float bound) { in nextFloat() method in ThreadLocalRandom 502 return super.nextFloat(bound); in nextFloat() 511 public float nextFloat(float origin, float bound) { in nextFloat() method in ThreadLocalRandom 512 return super.nextFloat(origin, bound); in nextFloat()
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | ScanTest.java | 135 sc.nextFloat(); in useCase1() 286 float f = sc.nextFloat(); in nonASCIITest() 290 f = sc.nextFloat(); in nonASCIITest() 294 f = sc.nextFloat(); in nonASCIITest() 701 Scanner::nextFloat, 869 if (sc.nextFloat() != 090.090f) failCount++; in floatPatternBody() 870 if (sc.nextFloat() != 1f) failCount++; in floatPatternBody() 871 if (sc.nextFloat() != 22.0f) failCount++; in floatPatternBody() 874 if (sc.nextFloat() != .123f) failCount++; in floatPatternBody() 875 if (sc.nextFloat() != -.1234f) failCount++; in floatPatternBody() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ThreadLocalRandomTest.java | 96 float f = ThreadLocalRandom.current().nextFloat(); 98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f) 282 rnd.nextFloat(bound); 295 float f = ThreadLocalRandom.current().nextFloat(least, bound); 300 (j = ThreadLocalRandom.current().nextFloat(least, bound)) == f) {
|
/libcore/ojluni/src/test/java/util/HashSet/ |
D | Serialization.java | 51 float loadFactor = Float.MIN_VALUE + rnd.nextFloat()*MAX_LOAD_FACTOR; in createHashSet() 53 float multiplier = 2*rnd.nextFloat(); // range [0,2] in createHashSet()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RandomTest.java | 122 float lastNum = r.nextFloat(); in test_nextFloat() 127 nextNum = r.nextFloat(); in test_nextFloat() 287 mr.nextFloat(); in test_next()
|
D | ScannerTest.java | 1543 assertEquals((float)123.0, s.nextFloat()); in test_nextFloat() 1544 assertEquals((float)456.0, s.nextFloat()); in test_nextFloat() 1545 assertEquals((float)123.4, s.nextFloat()); in test_nextFloat() 1546 assertEquals((float)0.123, s.nextFloat()); in test_nextFloat() 1548 s.nextFloat(); in test_nextFloat() 1555 assertEquals((float)123.4, s.nextFloat()); in test_nextFloat() 1556 assertEquals((float)-456.7, s.nextFloat()); in test_nextFloat() 1557 assertEquals((float)123456.789, s.nextFloat()); in test_nextFloat() 1559 s.nextFloat(); in test_nextFloat() 1567 assertEquals((float)1.234E12, s.nextFloat()); in test_nextFloat() [all …]
|
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomTestCoverage.java | 64 float f1 = rng.nextFloat(); in coverRandomGenerator() 65 float f2 = rng.nextFloat(1.0f); in coverRandomGenerator() 66 float f3 = rng.nextFloat(0.5f, 1.0f); in coverRandomGenerator()
|
D | RandomTestChiSquared.java | 189 …oat(" + N + ")", (String id) -> () -> testRngChiSquared(id, N, () -> (int)(rng.nextFloat(N)) % N)); in testOneRng() 190 …3) + ")", (String id) -> () -> testRngChiSquared(id, N, () -> (int)(rng.nextFloat(43, N+43) - 43) … in testOneRng() 191 …9) + ")", (String id) -> () -> testRngChiSquared(id, N, () -> (int)(rng.nextFloat(-59, N-59) + 59)… in testOneRng()
|
D | RandomTest.java | 111 float f = r.nextFloat(); 113 while (i < NCALLS && r.nextFloat() == f)
|
D | RandomTestBsi1999.java | 435 () -> (((int)(long)Math.floor(rng.nextFloat() * 0x1.0p16f) << 16) in testOneRng() 436 | (int)(long)Math.floor(rng.nextFloat() * 0x1.0p16f)), in testOneRng()
|
/libcore/ojluni/annotations/flagged_api/java/util/random/ |
D | RandomGenerator.annotated.java | 67 public default float nextFloat() { throw new RuntimeException("Stub!"); } in nextFloat() method 69 public default float nextFloat(float bound) { throw new RuntimeException("Stub!"); } in nextFloat() method 71 public default float nextFloat(float origin, float bound) { throw new RuntimeException("Stub!"); } in nextFloat() method
|
/libcore/ojluni/src/main/java/java/util/random/ |
D | RandomGenerator.java | 502 default float nextFloat() { in nextFloat() method 524 default float nextFloat(float bound) { in nextFloat() method 550 default float nextFloat(float origin, float bound) { in nextFloat() method
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | EmulatedStackFrameTest.java | 53 assertEquals(42.0f, reader.nextFloat()); in testReaderWriter_allParamTypes() 109 assertEquals(42.0f, reader.nextFloat()); in testRandomReaderWriter_allParamTypes() 166 assertEquals(52.0f, reader.nextFloat()); in testReaderWriter_allReturnTypes()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | Transformers.java | 812 o = reader.nextFloat(); in referenceArray() 950 arityArray[i] = reader.nextFloat(); in floatArray() 982 arityArray[i] = reader.nextFloat(); in doubleArray() 1113 writer.putNextFloat(reader.nextFloat()); in copyParameter() 1538 array[i] = reader.nextFloat(); in transform() 2183 writePrimitiveFloatAs(writer, toBaseType, reader.nextFloat()); in adaptArgument() 2269 boxed = Float.valueOf(reader.nextFloat()); in adaptArgument() 2381 return (byte) reader.nextFloat(); in readPrimitiveAsByte() 2406 return (char) reader.nextFloat(); in readPrimitiveAsChar() 2431 return (short) reader.nextFloat(); in readPrimitiveAsShort() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | ThreadLocalRandomTest.java | 163 float f = ThreadLocalRandom.current().nextFloat(); 165 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | ArrayObjectMethods.java | 279 public static float nextFloat() { in nextFloat() method in Rnd 290 default: return rnd.nextFloat(); in nextFloat() 356 result[i] = Rnd.nextFloat(); in floatArray()
|
D | Sorting.java | 1956 float negativeValue = -random.nextFloat(); 1957 float positiveValue = random.nextFloat(); 1979 double negativeValue = -random.nextFloat(); 1980 double positiveValue = random.nextFloat();
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | EmulatedStackFrame.java | 438 writer.putNextFloat(reader.nextFloat()); in copyNext() 548 public float nextFloat() { in nextFloat() method in EmulatedStackFrame.StackFrameReader
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Random.java | 90 public float nextFloat() { in nextFloat() method in Random
|
/libcore/ojluni/src/main/java/java/util/ |
D | Random.java | 441 public float nextFloat() { in nextFloat() method in Random
|
D | Scanner.java | 2509 public float nextFloat() { in nextFloat() method in Scanner
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | ExplicitCastArgumentsTest.java | 71 RANDOM_VALUES.put(Wrapper.FLOAT, RNG.nextFloat()); in RANDOM_VALUES.put() argument
|
/libcore/ojluni/src/main/java/jdk/internal/util/random/ |
D | RandomSupport.java | 716 float r = rng.nextFloat(); in boundedNextFloat() 749 float r = rng.nextFloat(); in boundedNextFloat()
|
/libcore/api/ |
D | current.txt | 14709 method public float nextFloat(); 14817 method public float nextFloat(); 16362 method @FlaggedApi("com.android.libcore.v_apis") public float nextFloat(float); 16363 method @FlaggedApi("com.android.libcore.v_apis") public float nextFloat(float, float); 17987 method public default float nextFloat(); 17988 method public default float nextFloat(float); 17989 method public default float nextFloat(float, float);
|