/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicBoolean.java | 101 public final boolean compareAndSet(boolean expectedValue, boolean newValue) { in compareAndSet() argument 104 (newValue ? 1 : 0)); in compareAndSet() 124 public boolean weakCompareAndSet(boolean expectedValue, boolean newValue) { in weakCompareAndSet() argument 127 (newValue ? 1 : 0)); in weakCompareAndSet() 140 public boolean weakCompareAndSetPlain(boolean expectedValue, boolean newValue) { in weakCompareAndSetPlain() argument 143 (newValue ? 1 : 0)); in weakCompareAndSetPlain() 152 public final void set(boolean newValue) { in set() argument 153 value = newValue ? 1 : 0; in set() 163 public final void lazySet(boolean newValue) { in lazySet() argument 164 VALUE.setRelease(this, (newValue ? 1 : 0)); in lazySet() [all …]
|
D | AtomicLong.java | 124 public final void set(long newValue) { in set() argument 128 VALUE.setVolatile(this, newValue); in set() 138 public final void lazySet(long newValue) { in lazySet() argument 141 VALUE.setRelease(this, newValue); in lazySet() 151 public final long getAndSet(long newValue) { in getAndSet() argument 154 return (long)VALUE.getAndSet(this, newValue); in getAndSet() 167 public final boolean compareAndSet(long expectedValue, long newValue) { in compareAndSet() argument 170 return VALUE.compareAndSet(this, expectedValue, newValue); in compareAndSet() 190 public final boolean weakCompareAndSet(long expectedValue, long newValue) { in weakCompareAndSet() argument 193 return VALUE.weakCompareAndSetPlain(this, expectedValue, newValue); in weakCompareAndSet() [all …]
|
D | AtomicInteger.java | 110 public final void set(int newValue) { in set() argument 111 value = newValue; in set() 121 public final void lazySet(int newValue) { in lazySet() argument 124 VALUE.setRelease(this, newValue); in lazySet() 134 public final int getAndSet(int newValue) { in getAndSet() argument 137 return (int)VALUE.getAndSet(this, newValue); in getAndSet() 150 public final boolean compareAndSet(int expectedValue, int newValue) { in compareAndSet() argument 153 return VALUE.compareAndSet(this, expectedValue, newValue); in compareAndSet() 173 public final boolean weakCompareAndSet(int expectedValue, int newValue) { in weakCompareAndSet() argument 176 return VALUE.weakCompareAndSetPlain(this, expectedValue, newValue); in weakCompareAndSet() [all …]
|
D | AtomicReference.java | 97 public final void set(V newValue) { in set() argument 98 value = newValue; in set() 108 public final void lazySet(V newValue) { in lazySet() argument 109 VALUE.setRelease(this, newValue); in lazySet() 122 public final boolean compareAndSet(V expectedValue, V newValue) { in compareAndSet() argument 123 return VALUE.compareAndSet(this, expectedValue, newValue); in compareAndSet() 143 public final boolean weakCompareAndSet(V expectedValue, V newValue) { in weakCompareAndSet() argument 144 return VALUE.weakCompareAndSetPlain(this, expectedValue, newValue); in weakCompareAndSet() 157 public final boolean weakCompareAndSetPlain(V expectedValue, V newValue) { in weakCompareAndSetPlain() argument 158 return VALUE.weakCompareAndSetPlain(this, expectedValue, newValue); in weakCompareAndSetPlain() [all …]
|
D | AtomicLongArray.java | 105 public final void set(int i, long newValue) { in set() argument 106 AA.setVolatile(array, i, newValue); in set() 117 public final void lazySet(int i, long newValue) { in lazySet() argument 118 AA.setRelease(array, i, newValue); in lazySet() 130 public final long getAndSet(int i, long newValue) { in getAndSet() argument 131 return (long)AA.getAndSet(array, i, newValue); in getAndSet() 145 public final boolean compareAndSet(int i, long expectedValue, long newValue) { in compareAndSet() argument 146 return AA.compareAndSet(array, i, expectedValue, newValue); in compareAndSet() 167 public final boolean weakCompareAndSet(int i, long expectedValue, long newValue) { in weakCompareAndSet() argument 168 return AA.weakCompareAndSetPlain(array, i, expectedValue, newValue); in weakCompareAndSet() [all …]
|
D | AtomicIntegerArray.java | 105 public final void set(int i, int newValue) { in set() argument 106 AA.setVolatile(array, i, newValue); in set() 117 public final void lazySet(int i, int newValue) { in lazySet() argument 118 AA.setRelease(array, i, newValue); in lazySet() 130 public final int getAndSet(int i, int newValue) { in getAndSet() argument 131 return (int)AA.getAndSet(array, i, newValue); in getAndSet() 145 public final boolean compareAndSet(int i, int expectedValue, int newValue) { in compareAndSet() argument 146 return AA.compareAndSet(array, i, expectedValue, newValue); in compareAndSet() 167 public final boolean weakCompareAndSet(int i, int expectedValue, int newValue) { in weakCompareAndSet() argument 168 return AA.weakCompareAndSetPlain(array, i, expectedValue, newValue); in weakCompareAndSet() [all …]
|
D | AtomicReferenceArray.java | 111 public final void set(int i, E newValue) { in set() argument 112 AA.setVolatile(array, i, newValue); in set() 123 public final void lazySet(int i, E newValue) { in lazySet() argument 124 AA.setRelease(array, i, newValue); in lazySet() 137 public final E getAndSet(int i, E newValue) { in getAndSet() argument 138 return (E)AA.getAndSet(array, i, newValue); in getAndSet() 152 public final boolean compareAndSet(int i, E expectedValue, E newValue) { in compareAndSet() argument 153 return AA.compareAndSet(array, i, expectedValue, newValue); in compareAndSet() 174 public final boolean weakCompareAndSet(int i, E expectedValue, E newValue) { in weakCompareAndSet() argument 175 return AA.weakCompareAndSetPlain(array, i, expectedValue, newValue); in weakCompareAndSet() [all …]
|
D | AtomicReferenceFieldUpdater.java | 164 public abstract void set(T obj, V newValue); in set() argument 174 public abstract void lazySet(T obj, V newValue); in lazySet() argument 193 public V getAndSet(T obj, V newValue) { in getAndSet() argument 197 } while (!compareAndSet(obj, prev, newValue)); in getAndSet() 465 public final void set(T obj, V newValue) { in set() argument 467 valueCheck(newValue); in set() 468 U.putReferenceVolatile(obj, offset, newValue); in set() 471 public final void lazySet(T obj, V newValue) { in lazySet() argument 473 valueCheck(newValue); in lazySet() 474 U.putReferenceRelease(obj, offset, newValue); in lazySet() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | AtomicBooleanTest.java | 34 boolean newValue = false; in testCompareAndExchange() 35 assertEquals(true, val.compareAndExchange(expected, newValue)); in testCompareAndExchange() 37 assertEquals(true, val.compareAndExchange(expected, newValue)); in testCompareAndExchange() 40 assertEquals(true, val.compareAndExchange(expected, newValue)); in testCompareAndExchange() 42 assertEquals(false, val.compareAndExchange(expected, newValue)); in testCompareAndExchange() 45 newValue = true; in testCompareAndExchange() 46 assertEquals(false, val.compareAndExchange(expected, newValue)); in testCompareAndExchange() 54 boolean newValue = false; in testCompareAndExchangeAcquire() 55 assertEquals(true, val.compareAndExchangeAcquire(expected, newValue)); in testCompareAndExchangeAcquire() 57 assertEquals(true, val.compareAndExchangeAcquire(expected, newValue)); in testCompareAndExchangeAcquire() [all …]
|
D | AtomicReferenceTest.java | 37 Integer newValue = Integer.valueOf(1); in testCompareAndExchange() local 38 Integer result = val.compareAndExchange(notCurrent, newValue); in testCompareAndExchange() 45 result = val.compareAndExchange(notCurrent, newValue); in testCompareAndExchange() 51 result = val.compareAndExchange(currentValue, newValue); in testCompareAndExchange() 54 assertSame(newValue, val.get()); in testCompareAndExchange() 60 newValue = Integer.valueOf(0); in testCompareAndExchange() 61 result = val.compareAndExchange(notCurrent, newValue); in testCompareAndExchange() 67 newValue = Integer.valueOf(0); in testCompareAndExchange() 68 result = val.compareAndExchange(currentValue, newValue); in testCompareAndExchange() 71 assertSame(newValue, val.get()); in testCompareAndExchange() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentMap.java | 220 boolean replace(K key, V oldValue, V newValue); in replace() argument 328 V oldValue, newValue; in computeIfAbsent() local 330 && (newValue = mappingFunction.apply(key)) != null in computeIfAbsent() 331 && (oldValue = putIfAbsent(key, newValue)) == null) in computeIfAbsent() 332 ? newValue in computeIfAbsent() 371 V newValue = remappingFunction.apply(key, oldValue); in computeIfPresent() local 372 if ((newValue == null) in computeIfPresent() 374 : replace(key, oldValue, newValue)) in computeIfPresent() 375 return newValue; in computeIfPresent() 421 V newValue = remappingFunction.apply(key, oldValue); in compute() local [all …]
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 136 int expectedValue, int newValue); in compareAndSwapInt() argument 152 long expectedValue, long newValue); in compareAndSwapLong() argument 168 Object expectedValue, Object newValue); in compareAndSwapObject() argument 190 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile() argument 212 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile() argument 235 Object newValue); in putObjectVolatile() argument 255 public native void putInt(Object obj, long offset, int newValue); in putInt() argument 265 public native void putOrderedInt(Object obj, long offset, int newValue); in putOrderedInt() argument 285 public native void putLong(Object obj, long offset, long newValue); in putLong() argument 295 public native void putOrderedLong(Object obj, long offset, long newValue); in putOrderedLong() argument [all …]
|
/libcore/ojluni/src/main/java/java/beans/ |
D | PropertyChangeSupport.java | 261 public void firePropertyChange(String propertyName, Object oldValue, Object newValue) { in firePropertyChange() argument 262 if (oldValue == null || newValue == null || !oldValue.equals(newValue)) { in firePropertyChange() 263 … firePropertyChange(new PropertyChangeEvent(this.source, propertyName, oldValue, newValue)); in firePropertyChange() 281 public void firePropertyChange(String propertyName, int oldValue, int newValue) { in firePropertyChange() argument 282 if (oldValue != newValue) { in firePropertyChange() 283 firePropertyChange(propertyName, Integer.valueOf(oldValue), Integer.valueOf(newValue)); in firePropertyChange() 301 public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { in firePropertyChange() argument 302 if (oldValue != newValue) { in firePropertyChange() 303 firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); in firePropertyChange() 318 Object newValue = event.getNewValue(); in firePropertyChange() local [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | Unsafe.java | 67 java.lang.Object obj, long offset, int expectedValue, int newValue); in compareAndSwapInt() argument 71 java.lang.Object obj, long offset, long expectedValue, long newValue); in compareAndSwapLong() argument 78 java.lang.Object newValue); in compareAndSwapObject() argument 84 public native void putIntVolatile(java.lang.Object obj, long offset, int newValue); in putIntVolatile() argument 90 public native void putLongVolatile(java.lang.Object obj, long offset, long newValue); in putLongVolatile() argument 97 java.lang.Object obj, long offset, java.lang.Object newValue); in putObjectVolatile() argument 103 public native void putInt(java.lang.Object obj, long offset, int newValue); in putInt() argument 106 public native void putOrderedInt(java.lang.Object obj, long offset, int newValue); in putOrderedInt() argument 112 public native void putLong(java.lang.Object obj, long offset, long newValue); in putLong() argument 115 public native void putOrderedLong(java.lang.Object obj, long offset, long newValue); in putOrderedLong() argument [all …]
|
/libcore/ojluni/src/main/java/java/util/prefs/ |
D | PreferenceChangeEvent.java | 59 private String newValue; field in PreferenceChangeEvent 70 String newValue) { in PreferenceChangeEvent() argument 73 this.newValue = newValue; in PreferenceChangeEvent() 101 return newValue; in getNewValue()
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | nodevalue06.java | 60 String newValue; in runTest() local 62 newValue = newNode.getNodeValue(); in runTest() 63 assertNull("initiallyNull", newValue); in runTest() 65 newValue = newNode.getNodeValue(); in runTest() 66 assertNull("nullAfterAttemptedChange", newValue); in runTest()
|
D | hc_nodevalue06.java | 60 String newValue; in runTest() local 62 newValue = newNode.getNodeValue(); in runTest() 63 assertNull("initiallyNull", newValue); in runTest() 65 newValue = newNode.getNodeValue(); in runTest() 66 assertNull("nullAfterAttemptedChange", newValue); in runTest()
|
D | hc_nodevalue05.java | 61 String newValue; in runTest() local 64 newValue = newNode.getNodeValue(); in runTest() 65 assertNull("initiallyNull", newValue); in runTest() 67 newValue = newNode.getNodeValue(); in runTest() 68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
|
D | hc_nodevalue01.java | 61 String newValue; in runTest() local 64 newValue = newNode.getNodeValue(); in runTest() 65 assertNull("initiallyNull", newValue); in runTest() 67 newValue = newNode.getNodeValue(); in runTest() 68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
|
D | hc_nodevalue02.java | 61 String newValue; in runTest() local 64 newValue = newNode.getNodeValue(); in runTest() 65 assertEquals("initial", "This is a new Comment node", newValue); in runTest() 67 newValue = newNode.getNodeValue(); in runTest() 68 assertEquals("afterChange", "This should have an effect", newValue); in runTest()
|
D | nodevalue02.java | 61 String newValue; in runTest() local 64 newValue = newNode.getNodeValue(); in runTest() 65 assertEquals("initial", "This is a new Comment node", newValue); in runTest() 67 newValue = newNode.getNodeValue(); in runTest() 68 assertEquals("afterChange", "This should have an effect", newValue); in runTest()
|
D | nodevalue09.java | 61 String newValue; in runTest() local 64 newValue = newNode.getNodeValue(); in runTest() 65 assertEquals("initial", "DATA", newValue); in runTest() 67 newValue = newNode.getNodeValue(); in runTest() 68 assertEquals("after", "This should have an effect", newValue); in runTest()
|
D | nodevalue05.java | 61 String newValue; in runTest() local 64 newValue = newNode.getNodeValue(); in runTest() 65 assertNull("initiallyNull", newValue); in runTest() 67 newValue = newNode.getNodeValue(); in runTest() 68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
|
D | nodevalue01.java | 61 String newValue; in runTest() local 64 newValue = newNode.getNodeValue(); in runTest() 65 assertNull("initiallyNull", newValue); in runTest() 67 newValue = newNode.getNodeValue(); in runTest() 68 assertNull("nullAfterAttemptedChange", newValue); in runTest()
|
D | nodevalue03.java | 61 String newValue; in runTest() local 65 newValue = newNode.getNodeValue(); in runTest() 66 assertNull("initiallyNull", newValue); in runTest() 68 newValue = newNode.getNodeValue(); in runTest() 69 assertNull("nullAfterAttemptedChange", newValue); in runTest()
|