Home
last modified time | relevance | path

Searched refs:AtomicBoolean (Results 1 – 25 of 57) sorted by relevance

123

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicBooleanTest.java11 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 …]
DExecutorCompletionServiceTest.java23 import java.util.concurrent.atomic.AtomicBoolean;
162 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForCallable()
193 final AtomicBoolean done = new AtomicBoolean(false); in testNewTaskForRunnable()
DCollection8Test.java19 import java.util.concurrent.atomic.AtomicBoolean;
79 final AtomicBoolean done = new AtomicBoolean(false); in testForEachConcurrentStressTest()
DLockSupportTest.java15 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/
DAtomicBooleanTest.java37 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 …]
DLockSupportTest.java41 import java.util.concurrent.atomic.AtomicBoolean;
176 final AtomicBoolean pleasePark = new AtomicBoolean(false); in testParkAfterUnpark()
252 final AtomicBoolean pleasePark = new AtomicBoolean(false); in testParkAfterInterrupt()
DExecutorCompletionServiceTest.java51 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/
DLongPredicateTest.java21 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 …]
DIntPredicateTest.java21 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 …]
DDoublePredicateTest.java21 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 …]
DPredicateTest.java21 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 …]
DBiPredicateTest.java21 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/
DAtomicBooleanTest.java22 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 …]
DAbstractExecutorServiceTest.java29 import java.util.concurrent.atomic.AtomicBoolean;
75 AtomicBoolean didRun = new AtomicBoolean(false); in testSubmitRunnableWithValue()
DForkJoinPoolTest.java26 import java.util.concurrent.atomic.AtomicBoolean;
56 final AtomicBoolean stop = new AtomicBoolean(false); in testGetRunningThreadCount()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java20 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/
DAtomicBoolean.java51 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/
DBasicInt.java42 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()
DBasicDouble.java42 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()
DBasicLong.java42 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()
DBasic.java45 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/
DAbstractCollectionTest.java23 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/
DAbstractSelector.java34 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/
DWhileOpTest.java41 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/
DDistinctOps.java33 import java.util.concurrent.atomic.AtomicBoolean;
81 AtomicBoolean seenNull = new AtomicBoolean(false); in makeRef()

123