Home
last modified time | relevance | path

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

/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DThreadLocalRandom.annotated.java67 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/
DThreadLocalRandom.java491 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/
DScanTest.java135 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/
DThreadLocalRandomTest.java96 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/
DSerialization.java51 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/
DRandomTest.java122 float lastNum = r.nextFloat(); in test_nextFloat()
127 nextNum = r.nextFloat(); in test_nextFloat()
287 mr.nextFloat(); in test_next()
DScannerTest.java1543 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/
DRandomTestCoverage.java64 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()
DRandomTestChiSquared.java189 …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()
DRandomTest.java111 float f = r.nextFloat();
113 while (i < NCALLS && r.nextFloat() == f)
DRandomTestBsi1999.java435 () -> (((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/
DRandomGenerator.annotated.java67 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/
DRandomGenerator.java502 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/
DEmulatedStackFrameTest.java53 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/
DTransformers.java812 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/
DThreadLocalRandomTest.java163 float f = ThreadLocalRandom.current().nextFloat();
165 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f)
/libcore/ojluni/src/test/java/util/Arrays/
DArrayObjectMethods.java279 public static float nextFloat() { in nextFloat() method in Rnd
290 default: return rnd.nextFloat(); in nextFloat()
356 result[i] = Rnd.nextFloat(); in floatArray()
DSorting.java1956 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/
DEmulatedStackFrame.java438 writer.putNextFloat(reader.nextFloat()); in copyNext()
548 public float nextFloat() { in nextFloat() method in EmulatedStackFrame.StackFrameReader
/libcore/ojluni/annotations/hiddenapi/java/util/
DRandom.java90 public float nextFloat() { in nextFloat() method in Random
/libcore/ojluni/src/main/java/java/util/
DRandom.java441 public float nextFloat() { in nextFloat() method in Random
DScanner.java2509 public float nextFloat() { in nextFloat() method in Scanner
/libcore/ojluni/src/test/java/lang/invoke/
DExplicitCastArgumentsTest.java71 RANDOM_VALUES.put(Wrapper.FLOAT, RNG.nextFloat()); in RANDOM_VALUES.put() argument
/libcore/ojluni/src/main/java/jdk/internal/util/random/
DRandomSupport.java716 float r = rng.nextFloat(); in boundedNextFloat()
749 float r = rng.nextFloat(); in boundedNextFloat()
/libcore/api/
Dcurrent.txt14709 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);