/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicBooleanTest.java | 118 assertEquals(true, ai.getAndSet(false)); in testGetAndSet() 119 assertEquals(false, ai.getAndSet(false)); in testGetAndSet() 120 assertEquals(false, ai.getAndSet(true)); in testGetAndSet()
|
D | AtomicReferenceTest.java | 118 assertSame(one, ai.getAndSet(zero)); in testGetAndSet() 119 assertSame(zero, ai.getAndSet(m10)); in testGetAndSet() 120 assertSame(m10, ai.getAndSet(one)); in testGetAndSet()
|
D | AtomicLongTest.java | 124 assertEquals(1, ai.getAndSet(0)); in testGetAndSet() 125 assertEquals(0, ai.getAndSet(-10)); in testGetAndSet() 126 assertEquals(-10, ai.getAndSet(1)); in testGetAndSet()
|
D | AtomicReferenceFieldUpdaterTest.java | 238 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()
|
D | AtomicIntegerTest.java | 122 assertEquals(1, ai.getAndSet(0)); in testGetAndSet() 123 assertEquals(0, ai.getAndSet(-10)); in testGetAndSet() 124 assertEquals(-10, ai.getAndSet(1)); in testGetAndSet()
|
D | AtomicIntegerFieldUpdaterTest.java | 253 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()
|
D | AtomicLongFieldUpdaterTest.java | 253 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()
|
D | AtomicReferenceArrayTest.java | 194 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()
|
D | AtomicIntegerArrayTest.java | 187 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()
|
D | AtomicLongArrayTest.java | 186 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/ |
D | SelectionKey.java | 388 return attachmentUpdater.getAndSet(this, ob); in attach()
|
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicBoolean.java | 148 public final boolean getAndSet(boolean newValue) { in getAndSet() method in AtomicBoolean
|
D | AtomicReferenceFieldUpdater.java | 187 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
|
D | AtomicIntegerFieldUpdater.java | 169 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
|
D | AtomicInteger.java | 120 public final int getAndSet(int newValue) { in getAndSet() method in AtomicInteger
|
D | AtomicReference.java | 144 public final V getAndSet(V newValue) { in getAndSet() method in AtomicReference
|
D | AtomicLong.java | 136 public final long getAndSet(long newValue) { in getAndSet() method in AtomicLong
|
D | AtomicLongFieldUpdater.java | 172 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
|
D | AtomicIntegerArray.java | 150 public final int getAndSet(int i, int newValue) { in getAndSet() method in AtomicIntegerArray
|
D | AtomicLongArray.java | 149 public final long getAndSet(int i, long newValue) { in getAndSet() method in AtomicLongArray
|
D | AtomicReferenceArray.java | 162 public final E getAndSet(int i, E newValue) { in getAndSet() method in AtomicReferenceArray
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | AsynchronousChannelGroupImpl.java | 260 if (shutdown.getAndSet(true)) { 298 if (shutdown.getAndSet(true))
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/ |
D | AtomicInteger.java | 63 public final int getAndSet(int newValue) { in getAndSet() method in AtomicInteger
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelector.java | 108 boolean open = selectorOpen.getAndSet(false); in close()
|
/libcore/luni/src/main/java/libcore/io/ |
D | Streams.java | 167 byte[] buffer = skipBuffer.getAndSet(null); in skipByReading()
|