/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicBooleanTest.java | 11 import java.util.concurrent.atomic.AtomicBoolean; 31 assertTrue(new AtomicBoolean(true).get()); in testConstructor() 32 assertFalse(new AtomicBoolean(false).get()); in testConstructor() 39 AtomicBoolean ai = new AtomicBoolean(); in testConstructor2() 47 AtomicBoolean ai = new AtomicBoolean(true); in testGetSet() 59 AtomicBoolean ai = new AtomicBoolean(true); in testGetLazySet() 71 AtomicBoolean ai = new AtomicBoolean(true); in testCompareAndSet() 87 final AtomicBoolean ai = new AtomicBoolean(true); in testCompareAndSetInMultipleThreads() 104 AtomicBoolean ai = new AtomicBoolean(true); in testWeakCompareAndSet() 117 AtomicBoolean ai = new AtomicBoolean(true); in testGetAndSet() [all …]
|
D | ExecutorCompletionServiceTest.java | 23 import java.util.concurrent.atomic.AtomicBoolean; 162 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForCallable() 193 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForRunnable()
|
D | Collection8Test.java | 19 import java.util.concurrent.atomic.AtomicBoolean; 79 final AtomicBoolean done = new AtomicBoolean(false); in testForEachConcurrentStressTest()
|
D | LockSupportTest.java | 15 import java.util.concurrent.atomic.AtomicBoolean; 152 final AtomicBoolean pleasePark = new AtomicBoolean(false); in testParkAfterUnpark() 228 final AtomicBoolean pleasePark = new AtomicBoolean(false); in testParkAfterInterrupt()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | AtomicBooleanTest.java | 37 import java.util.concurrent.atomic.AtomicBoolean; 54 assertTrue(new AtomicBoolean(true).get()); in testConstructor() 55 assertFalse(new AtomicBoolean(false).get()); in testConstructor() 62 AtomicBoolean ai = new AtomicBoolean(); in testConstructor2() 70 AtomicBoolean ai = new AtomicBoolean(true); in testGetSet() 82 AtomicBoolean ai = new AtomicBoolean(true); in testGetLazySet() 94 AtomicBoolean ai = new AtomicBoolean(true); in testCompareAndSet() 110 final AtomicBoolean ai = new AtomicBoolean(true); in testCompareAndSetInMultipleThreads() 127 AtomicBoolean ai = new AtomicBoolean(true); in testWeakCompareAndSet() 140 AtomicBoolean ai = new AtomicBoolean(); in testGetAndSet() [all …]
|
D | LockSupportTest.java | 41 import java.util.concurrent.atomic.AtomicBoolean; 176 final AtomicBoolean pleasePark = new AtomicBoolean(false); in testParkAfterUnpark() 252 final AtomicBoolean pleasePark = new AtomicBoolean(false); in testParkAfterInterrupt()
|
D | ExecutorCompletionServiceTest.java | 51 import java.util.concurrent.atomic.AtomicBoolean; 223 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForCallable() 253 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForRunnable()
|
/libcore/luni/src/test/java/libcore/java/util/function/ |
D | LongPredicateTest.java | 21 import java.util.concurrent.atomic.AtomicBoolean; 27 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testAnd() 28 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testAnd() 29 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testAnd() 30 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testAnd() 31 AtomicBoolean[] invocationState = { in testAnd() 78 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testOr() 79 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testOr() 80 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testOr() 81 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testOr() [all …]
|
D | IntPredicateTest.java | 21 import java.util.concurrent.atomic.AtomicBoolean; 29 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testAnd() 30 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testAnd() 31 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testAnd() 32 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testAnd() 33 AtomicBoolean[] invocationState = { in testAnd() 86 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testOr() 87 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testOr() 88 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testOr() 89 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testOr() [all …]
|
D | DoublePredicateTest.java | 21 import java.util.concurrent.atomic.AtomicBoolean; 29 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testAnd() 30 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testAnd() 31 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testAnd() 32 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testAnd() 33 AtomicBoolean[] invocationState = { in testAnd() 86 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testOr() 87 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testOr() 88 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testOr() 89 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testOr() [all …]
|
D | PredicateTest.java | 21 import java.util.concurrent.atomic.AtomicBoolean; 29 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testAnd() 30 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testAnd() 31 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testAnd() 32 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testAnd() 33 AtomicBoolean[] invocationState = { in testAnd() 86 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testOr() 87 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testOr() 88 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testOr() 89 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testOr() [all …]
|
D | BiPredicateTest.java | 21 import java.util.concurrent.atomic.AtomicBoolean; 29 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testAnd() 30 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testAnd() 31 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testAnd() 32 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testAnd() 33 AtomicBoolean[] invocationState = { in testAnd() 89 AtomicBoolean alwaysTrueInvoked = new AtomicBoolean(false); in testOr() 90 AtomicBoolean alwaysTrue2Invoked = new AtomicBoolean(false); in testOr() 91 AtomicBoolean alwaysFalseInvoked = new AtomicBoolean(false); in testOr() 92 AtomicBoolean alwaysFalse2Invoked = new AtomicBoolean(false); in testOr() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | AtomicBooleanTest.java | 22 import java.util.concurrent.atomic.AtomicBoolean; 32 AtomicBoolean val = new AtomicBoolean(true); in testCompareAndExchange() 52 AtomicBoolean val = new AtomicBoolean(true); in testCompareAndExchangeAcquire() 72 AtomicBoolean val = new AtomicBoolean(true); in testCompareAndExchangeRelease() 92 AtomicBoolean val = new AtomicBoolean(true); in testGetAcquire() 102 AtomicBoolean val = new AtomicBoolean(true); in testGetOpaque() 112 AtomicBoolean val = new AtomicBoolean(true); in testGetPlain() 122 AtomicBoolean val = new AtomicBoolean(true); in testSetOpaque() 133 AtomicBoolean val = new AtomicBoolean(true); in testSetPlain() 144 AtomicBoolean val = new AtomicBoolean(true); in testSetRelease() [all …]
|
D | AbstractExecutorServiceTest.java | 29 import java.util.concurrent.atomic.AtomicBoolean; 75 AtomicBoolean didRun = new AtomicBoolean(false); in testSubmitRunnableWithValue()
|
D | ForkJoinPoolTest.java | 26 import java.util.concurrent.atomic.AtomicBoolean; 56 final AtomicBoolean stop = new AtomicBoolean(false); in testGetRunningThreadCount()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | FinalizeTest.java | 20 import java.util.concurrent.atomic.AtomicBoolean; 27 AtomicBoolean finalized = new AtomicBoolean(); in testFinalizeIsCalled() 41 AtomicBoolean finalized1 = new AtomicBoolean(); in testInducedFinalization() 42 AtomicBoolean finalized2 = new AtomicBoolean(); in testInducedFinalization() 52 private X createFinalizableObject(final AtomicBoolean finalized) { in createFinalizableObject() 136 AtomicBoolean keepGoing = new AtomicBoolean(true); in testSystemRunFinalizationReturnsEvenIfQueueIsNonEmpty() 143 public void createChainedFinalizer(final AtomicInteger counter, final AtomicBoolean keepGoing) { in createChainedFinalizer()
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicBoolean.java | 51 public class AtomicBoolean implements java.io.Serializable { class 57 VALUE = l.findVarHandle(AtomicBoolean.class, "value", int.class); 70 public AtomicBoolean(boolean initialValue) { in AtomicBoolean() method in AtomicBoolean 78 public AtomicBoolean() { in AtomicBoolean() method in AtomicBoolean
|
/libcore/ojluni/src/test/java/util/Optional/ |
D | BasicInt.java | 42 import java.util.concurrent.atomic.AtomicBoolean; 76 var b = new AtomicBoolean(); in checkEmpty() 80 var b1 = new AtomicBoolean(false); in checkEmpty() 81 var b2 = new AtomicBoolean(false); in checkEmpty() 117 var b = new AtomicBoolean(false); in checkPresent() 121 var b1 = new AtomicBoolean(false); in checkPresent() 122 var b2 = new AtomicBoolean(false); in checkPresent()
|
D | BasicDouble.java | 42 import java.util.concurrent.atomic.AtomicBoolean; 75 var b = new AtomicBoolean(); in checkEmpty() 79 var b1 = new AtomicBoolean(false); in checkEmpty() 80 var b2 = new AtomicBoolean(false); in checkEmpty() 117 var b = new AtomicBoolean(false); in checkPresent() 121 var b1 = new AtomicBoolean(false); in checkPresent() 122 var b2 = new AtomicBoolean(false); in checkPresent()
|
D | BasicLong.java | 42 import java.util.concurrent.atomic.AtomicBoolean; 75 var b = new AtomicBoolean(); in checkEmpty() 79 var b1 = new AtomicBoolean(false); in checkEmpty() 80 var b2 = new AtomicBoolean(false); in checkEmpty() 117 var b = new AtomicBoolean(false); in checkPresent() 121 var b1 = new AtomicBoolean(false); in checkPresent() 122 var b2 = new AtomicBoolean(false); in checkPresent()
|
D | Basic.java | 45 import java.util.concurrent.atomic.AtomicBoolean; 47 import java.util.concurrent.atomic.AtomicBoolean; 80 var b = new AtomicBoolean(); in checkEmpty() 84 var b1 = new AtomicBoolean(false); in checkEmpty() 85 var b2 = new AtomicBoolean(false); in checkEmpty() 122 var b = new AtomicBoolean(false); in checkPresent() 126 var b1 = new AtomicBoolean(false); in checkPresent() 127 var b2 = new AtomicBoolean(false); in checkPresent()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | AbstractCollectionTest.java | 23 import java.util.concurrent.atomic.AtomicBoolean; 31 final AtomicBoolean finished = new AtomicBoolean(false); in test_toArray()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelector.java | 34 import java.util.concurrent.atomic.AtomicBoolean; 73 private final AtomicBoolean selectorOpen = new AtomicBoolean(true);
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | WhileOpTest.java | 41 import java.util.concurrent.atomic.AtomicBoolean; 333 AtomicBoolean isClosed = new AtomicBoolean(); 343 AtomicBoolean isClosed = new AtomicBoolean(); 353 AtomicBoolean isClosed = new AtomicBoolean(); 363 AtomicBoolean isClosed = new AtomicBoolean();
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | DistinctOps.java | 33 import java.util.concurrent.atomic.AtomicBoolean; 81 AtomicBoolean seenNull = new AtomicBoolean(false); in makeRef()
|