Home
last modified time | relevance | path

Searched refs:addAndGet (Results 1 – 18 of 18) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicLongFieldUpdaterTest.java310 assertEquals(3, a.addAndGet(this, 2)); in testAddAndGet()
312 assertEquals(-1, a.addAndGet(this, -4)); in testAddAndGet()
DAtomicIntegerFieldUpdaterTest.java310 assertEquals(3, a.addAndGet(this, 2)); in testAddAndGet()
312 assertEquals(-1, a.addAndGet(this, -4)); in testAddAndGet()
DAtomicIntegerTest.java167 assertEquals(3, ai.addAndGet(2)); in testAddAndGet()
169 assertEquals(-1, ai.addAndGet(-4)); in testAddAndGet()
DAtomicLongTest.java169 assertEquals(3, ai.addAndGet(2)); in testAddAndGet()
171 assertEquals(-1, ai.addAndGet(-4)); in testAddAndGet()
DAtomicIntegerArrayTest.java91 aa.addAndGet(index, 1); in testIndexing()
244 assertEquals(3, aa.addAndGet(i, 2)); in testAddAndGet()
246 assertEquals(-1, aa.addAndGet(i, -4)); in testAddAndGet()
DAtomicLongArrayTest.java90 aa.addAndGet(index, 1); in testIndexing()
243 assertEquals(3, aa.addAndGet(i, 2)); in testAddAndGet()
245 assertEquals(-1, aa.addAndGet(i, -4)); in testAddAndGet()
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicIntegerFieldUpdater.java238 public int addAndGet(T obj, int delta) { in addAndGet() method in AtomicIntegerFieldUpdater
490 public final int addAndGet(T obj, int delta) { in addAndGet() method in AtomicIntegerFieldUpdater.AtomicIntegerFieldUpdaterImpl
DAtomicInteger.java176 public final int addAndGet(int delta) { in addAndGet() method in AtomicInteger
DAtomicLong.java192 public final long addAndGet(long delta) { in addAndGet() method in AtomicLong
DAtomicLongFieldUpdater.java241 public long addAndGet(T obj, long delta) { in addAndGet() method in AtomicLongFieldUpdater
465 public final long addAndGet(T obj, long delta) { in addAndGet() method in AtomicLongFieldUpdater.CASUpdater
DAtomicIntegerArray.java218 public final int addAndGet(int i, int delta) { in addAndGet() method in AtomicIntegerArray
DAtomicLongArray.java217 public long addAndGet(int i, long delta) { in addAndGet() method in AtomicLongArray
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DIntPrimitiveOpsTests.java73 IntStream.range(1, 10).parallel().filter(i -> i % 2 == 0).forEach(ai::addAndGet); in testParForEach()
DLongPrimitiveOpsTests.java73 LongStream.range(1, 10).parallel().filter(i -> i % 2 == 0).forEach(ai::addAndGet); in testParForEach()
DForEachOpTest.java69 s.forEach(sum::addAndGet); in testForEach()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/
DSerializedLambdaTest.java292 LongConsumer lc = (LongConsumer & Serializable) a::addAndGet; in testDiscardReturnBound()
/libcore/luni/src/main/java/java/util/concurrent/
DThreadLocalRandom.java129 int p = probeGenerator.addAndGet(PROBE_INCREMENT); in localInit()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimerTest.java1127 counter.addAndGet(incrementAmount); in run()