Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/dalvik/system/
DEmulatedStackFrameTest.java48 assertTrue(reader.nextBoolean()); in testReaderWriter_allParamTypes()
91 assertTrue(reader.nextBoolean()); in testRandomReaderWriter_allParamTypes()
134 assertTrue(reader.nextBoolean()); in testReaderWriter_allReturnTypes()
264 assertFalse(reader.nextBoolean()); in testReturnValueReaderWriter_wrongTypes()
268 reader.nextBoolean(); in testReturnValueReaderWriter_wrongTypes()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DConcurrentSkipListSetTest.java754 if (rnd.nextBoolean()) { in mutateSet()
780 if (rnd.nextBoolean()) { in mutateSubSet()
826 boolean incl = rnd.nextBoolean(); in bashSubSet()
829 if (rnd.nextBoolean()) in bashSubSet()
835 if (rnd.nextBoolean()) in bashSubSet()
843 incl = rnd.nextBoolean(); in bashSubSet()
846 if (rnd.nextBoolean()) in bashSubSet()
852 if (rnd.nextBoolean()) { in bashSubSet()
866 boolean lowIncl = rnd.nextBoolean(); in bashSubSet()
867 boolean highIncl = rnd.nextBoolean(); in bashSubSet()
[all …]
DTreeSetTest.java751 if (rnd.nextBoolean()) { in mutateSet()
776 if (rnd.nextBoolean()) { in mutateSubSet()
821 boolean incl = rnd.nextBoolean(); in bashSubSet()
824 if (rnd.nextBoolean()) in bashSubSet()
830 if (rnd.nextBoolean()) in bashSubSet()
838 incl = rnd.nextBoolean(); in bashSubSet()
841 if (rnd.nextBoolean()) in bashSubSet()
847 if (rnd.nextBoolean()) { in bashSubSet()
861 boolean lowIncl = rnd.nextBoolean(); in bashSubSet()
862 boolean highIncl = rnd.nextBoolean(); in bashSubSet()
[all …]
DCollection8Test.java306 List orig = rnd.nextBoolean()
311 Iterator it = rnd.nextBoolean() ? c.iterator() : null;
405 if (rnd.nextBoolean()) assertTrue(it.hasNext());
413 if (rnd.nextBoolean())
419 if (rnd.nextBoolean()) assertIteratorExhausted(it);
448 if (rnd.nextBoolean()) assertTrue(it.hasNext());
453 if (rnd.nextBoolean()) {
456 if (rnd.nextBoolean()) {
465 if (rnd.nextBoolean()) { removed.add(e); return true; }
780 if (rnd.nextBoolean()) {
[all …]
DTreeMapTest.java857 if (rnd.nextBoolean()) {
882 if (rnd.nextBoolean()) {
927 boolean incl = rnd.nextBoolean();
930 if (rnd.nextBoolean())
936 if (rnd.nextBoolean())
944 incl = rnd.nextBoolean();
947 if (rnd.nextBoolean())
953 if (rnd.nextBoolean()) {
967 boolean lowIncl = rnd.nextBoolean();
968 boolean highIncl = rnd.nextBoolean();
[all …]
DConcurrentSkipListMapTest.java1052 if (rnd.nextBoolean()) {
1077 if (rnd.nextBoolean()) {
1122 boolean incl = rnd.nextBoolean();
1125 if (rnd.nextBoolean())
1131 if (rnd.nextBoolean())
1139 incl = rnd.nextBoolean();
1142 if (rnd.nextBoolean())
1148 if (rnd.nextBoolean()) {
1162 boolean lowIncl = rnd.nextBoolean();
1163 boolean highIncl = rnd.nextBoolean();
[all …]
DThreadLocalRandomTest.java152 boolean f = ThreadLocalRandom.current().nextBoolean();
154 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f)
/libcore/jsr166-tests/src/test/java/jsr166/
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 …]
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 …]
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/ojluni/src/test/java/nio/channels/Channels/
DBasic2.java98 if (rand.nextBoolean()) { in run()
147 if (rand.nextBoolean()) { in run()
/libcore/ojluni/src/test/java/util/Timer/
DPurge.java47 if (i != 1 && rnd.nextBoolean()) { in main()
DDelayOverflow.java91 if (new java.util.Random().nextBoolean()) in test()
/libcore/ojluni/src/test/java/lang/Boolean/
DMakeBooleanComparable.java46 boolean element = rnd.nextBoolean(); in testComparable()
/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()
/libcore/ojluni/src/test/java/util/WeakHashMap/
DGCDuringIteration.java115 if (rnd.nextBoolean()) check(it.hasNext()); in checkIterator()
118 if (rnd.nextBoolean()) { in checkIterator()
125 if (rnd.nextBoolean()) in checkIterator()
/libcore/ojluni/annotations/flagged_api/java/util/concurrent/
DThreadLocalRandom.annotated.java53 public boolean nextBoolean() { throw new RuntimeException("Stub!"); } in nextBoolean() method in ThreadLocalRandom
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java307 final boolean testResult = (boolean) reader.nextBoolean(); in transform()
809 o = reader.nextBoolean(); in referenceArray()
933 arityArray[i] = reader.nextBoolean(); in booleanArray()
1110 writer.putNextBoolean(reader.nextBoolean()); in copyParameter()
1529 array[i] = reader.nextBoolean(); in transform()
2251 boxed = Boolean.valueOf(reader.nextBoolean()); in adaptArgument()
2385 return reader.nextBoolean() ? (byte) 1 : (byte) 0; in readPrimitiveAsByte()
2410 return reader.nextBoolean() ? (char) 1 : (char) 0; in readPrimitiveAsChar()
2435 return reader.nextBoolean() ? (short) 1 : (short) 0; in readPrimitiveAsShort()
2459 return reader.nextBoolean() ? 1 : 0; in readPrimitiveAsInt()
[all …]
/libcore/luni/src/test/java/libcore/java/util/random/
DRandomGeneratorFactoryTest.java161 boolean firstResult = first.nextBoolean(); in checkNextBoolean()
162 boolean secondResult = second.nextBoolean(); in checkNextBoolean()
/libcore/ojluni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java431 public boolean nextBoolean() { in nextBoolean() method in ThreadLocalRandom
432 return super.nextBoolean(); in nextBoolean()
/libcore/ojluni/src/test/java/lang/StackWalker/
DStackWalkTest.java294 if (rng.nextBoolean()) { in main()
301 if (rng.nextBoolean() && depth > 1) { in main()
/libcore/ojluni/src/test/java/math/BigDecimal/
DStringConstructor.java84 if (random.nextBoolean()) in testRoundtrip()

12