Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/dalvik/system/
DEmulatedStackFrameTest.java48 assertTrue(reader.nextBoolean()); in testReaderWriter_allParamTypes()
69 assertTrue(reader.nextBoolean()); in testReaderWriter_allReturnTypes()
182 assertFalse(reader.nextBoolean()); in testReturnValueReaderWriter_wrongTypes()
186 reader.nextBoolean(); in testReturnValueReaderWriter_wrongTypes()
/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.java669 assertTrue(s.nextBoolean()); in test_match()
677 assertFalse(s.nextBoolean()); in test_match()
679 s.nextBoolean(); in test_match()
690 assertTrue(s.nextBoolean()); in test_match()
700 s.nextBoolean(); in test_match()
713 assertTrue(s.nextBoolean()); in test_match()
716 s.nextBoolean(); in test_match()
727 assertTrue(s.nextBoolean()); in test_match()
997 assertTrue(s.nextBoolean()); in test_nextBoolean()
1000 assertTrue(s.nextBoolean()); in test_nextBoolean()
[all …]
DArraysTest.java2190 a[i] = ourRandom.nextBoolean() ? (ourFirst += 2) : (ourSecond += 2); in build()
/libcore/dalvik/src/main/java/dalvik/system/
DEmulatedStackFrame.java386 writer.putNextBoolean(reader.nextBoolean()); in copyNext()
494 public boolean nextBoolean() { in nextBoolean() method in EmulatedStackFrame.StackFrameReader
/libcore/ojluni/annotations/hiddenapi/java/util/
DRandom.java86 public boolean nextBoolean() { in nextBoolean() method in Random
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java522 filterWriter.putNextBoolean(returnValueReader.nextBoolean()); in transform()
577 arguments[i] = reader.nextBoolean(); in transform()
743 case 'Z': { o = reader.nextBoolean(); break; } in referenceArray()
835 case 'Z': { arityArray[i] = reader.nextBoolean(); break; } in booleanArray()
943 case 'Z': { writer.putNextBoolean(reader.nextBoolean()); break; } in copyParameter()
1420 array[i] = reader.nextBoolean(); in transform()
2118 boxed = Boolean.valueOf(reader.nextBoolean()); in box()
2159 explicitCastFromBoolean(reader.nextBoolean(), writer, to); in explicitCast()
/libcore/ojluni/src/main/java/java/util/
DSplittableRandom.java555 public boolean nextBoolean() { in nextBoolean() method in SplittableRandom
DRandom.java447 public boolean nextBoolean() { in nextBoolean() method in Random
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java429 public boolean nextBoolean() { in nextBoolean() method in ThreadLocalRandom