Home
last modified time | relevance | path

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

12

/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()
DCyclicBarrierTest.java17 import java.util.concurrent.atomic.AtomicBoolean;
306 final AtomicBoolean done = new AtomicBoolean(); in testReset_Leakage()
DAbstractExecutorServiceTest.java29 import java.util.concurrent.atomic.AtomicBoolean;
69 final AtomicBoolean done = new AtomicBoolean(false); in testExecuteRunnable()
DForkJoinPoolTest.java28 import java.util.concurrent.atomic.AtomicBoolean;
429 final AtomicBoolean done = new AtomicBoolean(false); in testExecuteRunnable()
DJSR166TestCase.java54 import java.util.concurrent.atomic.AtomicBoolean;
897 PoolCleaner cleaner(ExecutorService pool, AtomicBoolean flag) {
901 Runnable releaser(final AtomicBoolean flag) {
DScheduledExecutorSubclassTest.java34 import java.util.concurrent.atomic.AtomicBoolean;
249 final AtomicBoolean tryLongerDelay = new AtomicBoolean(false); in testFixedDelaySequence()
DScheduledExecutorTest.java31 import java.util.concurrent.atomic.AtomicBoolean;
193 final AtomicBoolean tryLongerDelay = new AtomicBoolean(false); in testFixedDelaySequence()
/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 …]
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 …]
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 …]
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/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()
131 AtomicBoolean keepGoing = new AtomicBoolean(true); in testSystemRunFinalizationReturnsEvenIfQueueIsNonEmpty()
138 public void createChainedFinalizer(final AtomicInteger counter, final AtomicBoolean keepGoing) { in createChainedFinalizer()
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicBoolean.java20 public class AtomicBoolean implements java.io.Serializable { class
29 (AtomicBoolean.class.getDeclaredField("value"));
42 public AtomicBoolean(boolean initialValue) { in AtomicBoolean() method in AtomicBoolean
49 public AtomicBoolean() { in AtomicBoolean() method in AtomicBoolean
/libcore/luni/src/test/java/libcore/java/util/
DAbstractCollectionTest.java21 import java.util.concurrent.atomic.AtomicBoolean;
29 final AtomicBoolean finished = new AtomicBoolean(false); in test_toArray()
DLinkedHashMapTest.java22 import java.util.concurrent.atomic.AtomicBoolean;
217 final AtomicBoolean removeEldestEntryReturnValue = new AtomicBoolean(false); in test_removeEldestEntry()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelector.java34 import java.util.concurrent.atomic.AtomicBoolean;
73 private AtomicBoolean selectorOpen = new AtomicBoolean(true);
/libcore/ojluni/src/main/java/java/util/stream/
DDistinctOps.java33 import java.util.concurrent.atomic.AtomicBoolean;
80 AtomicBoolean seenNull = new AtomicBoolean(false); in makeRef()
/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java28 import java.util.concurrent.atomic.AtomicBoolean;
127 final AtomicBoolean done = new AtomicBoolean(); in testArrayCopyConcurrentModification()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java26 import java.util.concurrent.atomic.AtomicBoolean;
987 private final AtomicBoolean executedOnTime;
991 private CheckIfExecutedOnTime(AtomicBoolean executedOnTime) { in CheckIfExecutedOnTime()
1018 AtomicBoolean actuallyExecutedOnTime = new AtomicBoolean(); in testOverdueTaskExecutesImmediately()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java31 import java.util.concurrent.atomic.AtomicBoolean;
359 final AtomicBoolean complete = new AtomicBoolean();
/libcore/libart/src/main/java/java/lang/
DDaemons.java25 import java.util.concurrent.atomic.AtomicBoolean;

12