Searched refs:theSupplier (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/test/java/util/Random/ |
D | RandomTestBsi1999.java | 286 static int testRngBsi1999BooleanOnce(String id, BooleanSupplier theSupplier) { in testRngBsi1999BooleanOnce() argument 291 s[j] = (theSupplier.getAsBoolean() ? (byte)1 : (byte)0); in testRngBsi1999BooleanOnce() 310 static int testRngBsi1999LongOnce(String id, LongSupplier theSupplier) { in testRngBsi1999LongOnce() argument 319 bits = theSupplier.getAsLong(); in testRngBsi1999LongOnce() 332 s[j] = (byte)((theSupplier.getAsLong() >>> m) & 1); in testRngBsi1999LongOnce() 352 static int testRngBsi1999IntOnce(String id, IntSupplier theSupplier) { in testRngBsi1999IntOnce() argument 361 bits = theSupplier.getAsInt(); in testRngBsi1999IntOnce() 373 s[j] = (byte)((theSupplier.getAsInt() >>> m) & 1); in testRngBsi1999IntOnce() 386 …static boolean testRngBsi1999Boolean(String id, BooleanSupplier theSupplier, int failureTolerance)… in testRngBsi1999Boolean() argument 387 if (testRngBsi1999BooleanOnce(id, theSupplier) <= failureTolerance) return true; in testRngBsi1999Boolean() [all …]
|
D | RandomTestMoments.java | 139 static void testMomentsGaussian(DoubleSupplier theSupplier) { in testMomentsGaussian() argument 143 double v = theSupplier.getAsDouble(); in testMomentsGaussian() 156 static void testMomentsExponential(DoubleSupplier theSupplier) { in testMomentsExponential() argument 160 double v = theSupplier.getAsDouble(); in testMomentsExponential() 173 static void testMomentsUniform(DoubleSupplier theSupplier) { in testMomentsUniform() argument 177 double v = theSupplier.getAsDouble(); in testMomentsUniform()
|
D | RandomTestChiSquared.java | 127 static boolean chiSquaredTest(String id, int N, IntSupplier theSupplier) { in chiSquaredTest() argument 130 int v = theSupplier.getAsInt(); in chiSquaredTest() 146 static boolean testRngChiSquared(String id, int N, IntSupplier theSupplier) { in testRngChiSquared() argument 147 if (chiSquaredTest(id, N, theSupplier)) return true; in testRngChiSquared() 149 return chiSquaredTest(id, N, theSupplier) && chiSquaredTest(id, N, theSupplier); in testRngChiSquared()
|