Home
last modified time | relevance | path

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

12

/libcore/jsr166-tests/src/test/java/jsr166/
DAtomicBooleanTest.java118 assertEquals(true, ai.getAndSet(false)); in testGetAndSet()
119 assertEquals(false, ai.getAndSet(false)); in testGetAndSet()
120 assertEquals(false, ai.getAndSet(true)); in testGetAndSet()
DAtomicReferenceTest.java118 assertSame(one, ai.getAndSet(zero)); in testGetAndSet()
119 assertSame(zero, ai.getAndSet(m10)); in testGetAndSet()
120 assertSame(m10, ai.getAndSet(one)); in testGetAndSet()
DAtomicLongTest.java124 assertEquals(1, ai.getAndSet(0)); in testGetAndSet()
125 assertEquals(0, ai.getAndSet(-10)); in testGetAndSet()
126 assertEquals(-10, ai.getAndSet(1)); in testGetAndSet()
DAtomicReferenceFieldUpdaterTest.java238 assertSame(one, a.getAndSet(this, zero)); in testGetAndSet()
239 assertSame(zero, a.getAndSet(this, m10)); in testGetAndSet()
240 assertSame(m10, a.getAndSet(this, 1)); in testGetAndSet()
DAtomicIntegerTest.java122 assertEquals(1, ai.getAndSet(0)); in testGetAndSet()
123 assertEquals(0, ai.getAndSet(-10)); in testGetAndSet()
124 assertEquals(-10, ai.getAndSet(1)); in testGetAndSet()
DAtomicIntegerFieldUpdaterTest.java253 assertEquals(1, a.getAndSet(this, 0)); in testGetAndSet()
254 assertEquals(0, a.getAndSet(this, -10)); in testGetAndSet()
255 assertEquals(-10, a.getAndSet(this, 1)); in testGetAndSet()
DAtomicLongFieldUpdaterTest.java253 assertEquals(1, a.getAndSet(this, 0)); in testGetAndSet()
254 assertEquals(0, a.getAndSet(this, -10)); in testGetAndSet()
255 assertEquals(-10, a.getAndSet(this, 1)); in testGetAndSet()
DAtomicReferenceArrayTest.java194 assertSame(one, aa.getAndSet(i, zero)); in testGetAndSet()
195 assertSame(zero, aa.getAndSet(i, m10)); in testGetAndSet()
196 assertSame(m10, aa.getAndSet(i, one)); in testGetAndSet()
DAtomicIntegerArrayTest.java187 assertEquals(1, aa.getAndSet(i, 0)); in testGetAndSet()
188 assertEquals(0, aa.getAndSet(i, -10)); in testGetAndSet()
189 assertEquals(-10, aa.getAndSet(i, 1)); in testGetAndSet()
DAtomicLongArrayTest.java186 assertEquals(1, aa.getAndSet(i, 0)); in testGetAndSet()
187 assertEquals(0, aa.getAndSet(i, -10)); in testGetAndSet()
188 assertEquals(-10, aa.getAndSet(i, 1)); in testGetAndSet()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java388 return attachmentUpdater.getAndSet(this, ob); in attach()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicBoolean.java148 public final boolean getAndSet(boolean newValue) { in getAndSet() method in AtomicBoolean
DAtomicReferenceFieldUpdater.java187 public V getAndSet(T obj, V newValue) { in getAndSet() method in AtomicReferenceFieldUpdater
452 public final V getAndSet(T obj, V newValue) { in getAndSet() method in AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl
DAtomicIntegerFieldUpdater.java169 public int getAndSet(T obj, int newValue) { in getAndSet() method in AtomicIntegerFieldUpdater
503 public final int getAndSet(T obj, int newValue) { in getAndSet() method in AtomicIntegerFieldUpdater.AtomicIntegerFieldUpdaterImpl
DAtomicInteger.java120 public final int getAndSet(int newValue) { in getAndSet() method in AtomicInteger
DAtomicReference.java144 public final V getAndSet(V newValue) { in getAndSet() method in AtomicReference
DAtomicLong.java136 public final long getAndSet(long newValue) { in getAndSet() method in AtomicLong
DAtomicLongFieldUpdater.java172 public long getAndSet(T obj, long newValue) { in getAndSet() method in AtomicLongFieldUpdater
478 public final long getAndSet(T obj, long newValue) { in getAndSet() method in AtomicLongFieldUpdater.CASUpdater
DAtomicIntegerArray.java150 public final int getAndSet(int i, int newValue) { in getAndSet() method in AtomicIntegerArray
DAtomicLongArray.java149 public final long getAndSet(int i, long newValue) { in getAndSet() method in AtomicLongArray
DAtomicReferenceArray.java162 public final E getAndSet(int i, E newValue) { in getAndSet() method in AtomicReferenceArray
/libcore/ojluni/src/main/java/sun/nio/ch/
DAsynchronousChannelGroupImpl.java260 if (shutdown.getAndSet(true)) {
298 if (shutdown.getAndSet(true))
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/
DAtomicInteger.java63 public final int getAndSet(int newValue) { in getAndSet() method in AtomicInteger
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelector.java108 boolean open = selectorOpen.getAndSet(false); in close()
/libcore/luni/src/main/java/libcore/io/
DStreams.java167 byte[] buffer = skipBuffer.getAndSet(null); in skipByReading()

12