Home
last modified time | relevance | path

Searched refs:nextBoolean (Results 1 – 14 of 14) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DTreeSetTest.java727 if (rnd.nextBoolean()) { in mutateSet()
752 if (rnd.nextBoolean()) { in mutateSubSet()
797 boolean incl = rnd.nextBoolean(); in bashSubSet()
800 if (rnd.nextBoolean()) in bashSubSet()
806 if (rnd.nextBoolean()) in bashSubSet()
814 incl = rnd.nextBoolean(); in bashSubSet()
817 if (rnd.nextBoolean()) in bashSubSet()
823 if (rnd.nextBoolean()) { in bashSubSet()
837 boolean lowIncl = rnd.nextBoolean(); in bashSubSet()
838 boolean highIncl = rnd.nextBoolean(); in bashSubSet()
[all …]
DConcurrentSkipListSetTest.java723 if (rnd.nextBoolean()) { in mutateSet()
749 if (rnd.nextBoolean()) { in mutateSubSet()
795 boolean incl = rnd.nextBoolean(); in bashSubSet()
798 if (rnd.nextBoolean()) in bashSubSet()
804 if (rnd.nextBoolean()) in bashSubSet()
812 incl = rnd.nextBoolean(); in bashSubSet()
815 if (rnd.nextBoolean()) in bashSubSet()
821 if (rnd.nextBoolean()) { in bashSubSet()
835 boolean lowIncl = rnd.nextBoolean(); in bashSubSet()
836 boolean highIncl = rnd.nextBoolean(); in bashSubSet()
[all …]
DTreeMapTest.java834 if (rnd.nextBoolean()) {
859 if (rnd.nextBoolean()) {
904 boolean incl = rnd.nextBoolean();
907 if (rnd.nextBoolean())
913 if (rnd.nextBoolean())
921 incl = rnd.nextBoolean();
924 if (rnd.nextBoolean())
930 if (rnd.nextBoolean()) {
944 boolean lowIncl = rnd.nextBoolean();
945 boolean highIncl = rnd.nextBoolean();
[all …]
DConcurrentSkipListMapTest.java1029 if (rnd.nextBoolean()) {
1054 if (rnd.nextBoolean()) {
1099 boolean incl = rnd.nextBoolean();
1102 if (rnd.nextBoolean())
1108 if (rnd.nextBoolean())
1116 incl = rnd.nextBoolean();
1119 if (rnd.nextBoolean())
1125 if (rnd.nextBoolean()) {
1139 boolean lowIncl = rnd.nextBoolean();
1140 boolean highIncl = rnd.nextBoolean();
[all …]
DThreadLocalRandomTest.java85 boolean f = ThreadLocalRandom.current().nextBoolean();
87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DSortedMapTestBase.java51 ref.put(rnd.nextInt(N) * 2, rnd.nextBoolean() ? null : rnd.nextInt(N) * 2); in setUp()
103 if (rnd.nextBoolean()) { in testKeySet()
175 if (rnd.nextBoolean()) { in testValues()
341 if (rnd.nextBoolean()) { in compareIterators()
DRandomTest.java66 if (r.nextBoolean()) in test_nextBoolean()
281 mr.nextBoolean(); in test_next()
DScannerTest.java556 assertTrue(s.nextBoolean()); in test_match()
564 assertFalse(s.nextBoolean()); in test_match()
566 s.nextBoolean(); in test_match()
577 assertTrue(s.nextBoolean()); in test_match()
587 s.nextBoolean(); in test_match()
600 assertTrue(s.nextBoolean()); in test_match()
603 s.nextBoolean(); in test_match()
614 assertTrue(s.nextBoolean()); in test_match()
884 assertTrue(s.nextBoolean()); in test_nextBoolean()
887 assertTrue(s.nextBoolean()); in test_nextBoolean()
[all …]
DArraysTest.java2190 a[i] = ourRandom.nextBoolean() ? (ourFirst += 2) : (ourSecond += 2); in build()
/libcore/benchmarks/src/benchmarks/regression/
DParseBenchmark.java159 reader.nextBoolean(); in readToken()
/libcore/ojluni/src/main/java/java/util/
DSplittableRandom.java556 public boolean nextBoolean() { in nextBoolean() method in SplittableRandom
DRandom.java448 public boolean nextBoolean() { in nextBoolean() method in Random
DScanner.java1795 public boolean nextBoolean() { in nextBoolean() method in Scanner
/libcore/luni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java400 public boolean nextBoolean() { in nextBoolean() method in ThreadLocalRandom