Searched refs:newValue (Results 26 - 48 of 48) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicReferenceFieldUpdater.java116 * @param newValue the new value
118 public abstract void set(T obj, V newValue); argument
125 * @param newValue the new value
128 public abstract void lazySet(T obj, V newValue); argument
144 * @param newValue the new value
147 public V getAndSet(T obj, V newValue) { argument
150 if (compareAndSet(obj, current, newValue))
272 public void set(T obj, V newValue) { argument
274 (newValue != null && vclass != null &&
275 vclass != newValue
280 lazySet(T obj, V newValue) argument
[all...]
H A DAtomicIntegerArray.java93 * @param newValue the new value
95 public final void set(int i, int newValue) { argument
96 unsafe.putIntVolatile(array, checkedByteOffset(i), newValue);
103 * @param newValue the new value
106 public final void lazySet(int i, int newValue) { argument
107 unsafe.putOrderedInt(array, checkedByteOffset(i), newValue);
115 * @param newValue the new value
118 public final int getAndSet(int i, int newValue) { argument
122 if (compareAndSetRaw(offset, current, newValue))
H A DAtomicLongArray.java92 * @param newValue the new value
94 public final void set(int i, long newValue) { argument
95 unsafe.putLongVolatile(array, checkedByteOffset(i), newValue);
102 * @param newValue the new value
105 public final void lazySet(int i, long newValue) { argument
106 unsafe.putOrderedLong(array, checkedByteOffset(i), newValue);
114 * @param newValue the new value
117 public final long getAndSet(int i, long newValue) { argument
121 if (compareAndSetRaw(offset, current, newValue))
H A DAtomicLongFieldUpdater.java103 * @param newValue the new value
105 public abstract void set(T obj, long newValue); argument
112 * @param newValue the new value
115 public abstract void lazySet(T obj, long newValue); argument
131 * @param newValue the new value
134 public long getAndSet(T obj, long newValue) { argument
137 if (compareAndSet(obj, current, newValue))
302 public void set(T obj, long newValue) { argument
304 unsafe.putLongVolatile(obj, offset, newValue);
307 public void lazySet(T obj, long newValue) { argument
401 set(T obj, long newValue) argument
408 lazySet(T obj, long newValue) argument
[all...]
H A DAtomicReferenceArray.java107 * @param newValue the new value
109 public final void set(int i, E newValue) { argument
110 unsafe.putObjectVolatile(array, checkedByteOffset(i), newValue);
117 * @param newValue the new value
120 public final void lazySet(int i, E newValue) { argument
121 unsafe.putOrderedObject(array, checkedByteOffset(i), newValue);
129 * @param newValue the new value
132 public final E getAndSet(int i, E newValue) { argument
136 if (compareAndSetRaw(offset, current, newValue))
H A DAtomicIntegerFieldUpdater.java100 * @param newValue the new value
102 public abstract void set(T obj, int newValue); argument
109 * @param newValue the new value
112 public abstract void lazySet(T obj, int newValue); argument
128 * @param newValue the new value
131 public int getAndSet(T obj, int newValue) { argument
134 if (compareAndSet(obj, current, newValue))
320 public void set(T obj, int newValue) { argument
322 unsafe.putIntVolatile(obj, offset, newValue);
325 public void lazySet(T obj, int newValue) { argument
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DConcurrentMap.java92 * map.put(key, newValue);
101 * @param newValue value to be associated with the specified key
112 boolean replace(K key, V oldValue, V newValue); argument
H A DConcurrentSkipListMap.java1877 public boolean replace(K key, V oldValue, V newValue) { argument
1878 if (oldValue == null || newValue == null)
1889 if (n.casValue(v, newValue))
2770 public boolean replace(K key, V oldValue, V newValue) { argument
2772 return m.replace(key, oldValue, newValue);
H A DConcurrentHashMap.java1358 public boolean replace(K key, V oldValue, V newValue) { argument
1359 if (key == null || oldValue == null || newValue == null)
1361 return replaceNode(key, newValue, oldValue) != null;
/libcore/luni/src/main/java/java/net/
H A DURLConnection.java473 * @param newValue
481 public void addRequestProperty(String field, String newValue) { argument
800 public void setAllowUserInteraction(boolean newValue) { argument
802 this.allowUserInteraction = newValue;
841 * @param newValue
845 public void setDefaultUseCaches(boolean newValue) { argument
846 defaultUseCaches = newValue;
853 * @param newValue
860 public void setDoInput(boolean newValue) { argument
862 this.doInput = newValue;
876 setDoOutput(boolean newValue) argument
906 setIfModifiedSince(long newValue) argument
925 setRequestProperty(String field, String newValue) argument
944 setUseCaches(boolean newValue) argument
[all...]
/libcore/luni/src/main/java/java/lang/
H A DCaseMapper.java55 char[] newValue = null;
68 if (newValue == null && ch != newCh) {
69 newValue = new char[count]; // The result can't be longer than the input.
71 System.arraycopy(value, offset, newValue, 0, newCount);
73 if (newValue != null) {
74 newValue[newCount++] = newCh;
77 return newValue != null ? new String(0, newCount, newValue) : s;
H A DAbstractStringBuilder.java799 char[] newValue = new char[count];
800 System.arraycopy(value, 0, newValue, 0, count);
801 value = newValue;
/libcore/support/src/test/java/tests/support/
H A DSupport_OutputStream.java107 public void setThrowsException(boolean newValue) { argument
108 throwsException = newValue;
/libcore/luni/src/test/java/tests/java/sql/
H A DUpdateFunctionalityTest.java107 String newValue = "newValue";
109 + " SET field1='" + newValue + "'";
118 assertEquals("The field field1 was not updated", newValue,
132 String newValue = "newValue";
134 + " SET field1='" + newValue + "' WHERE (id > 2) and (id < 10)";
146 assertEquals("The field field1 was not updated", newValue,
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLConnection.java448 * @param newValue *
458 public void setDoInput(boolean newValue) { argument
462 this.doInput = newValue;
463 this.doOutput = !newValue;
471 * @param newValue
481 public void setDoOutput(boolean newValue) { argument
485 this.doOutput = newValue;
486 this.doInput = !newValue;
/libcore/luni/src/test/java/libcore/java/io/
H A DOldObjectStreamFieldTest.java55 public void setOffset(int newValue) { argument
56 super.setOffset(newValue);
/libcore/luni/src/main/java/java/io/
H A DObjectStreamField.java275 * @param newValue
278 protected void setOffset(int newValue) { argument
279 this.offset = newValue;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DControlTest.java418 String newValue = "property=changedValue";
420 writer.write(newValue);
424 assertEquals(newValue, scanner.nextLine());
H A DCalendarTest.java390 int newValue = (oldValue == Calendar.AM) ? Calendar.PM : Calendar.AM;
391 cal.set(Calendar.AM_PM, newValue);
392 newValue = cal.get(Calendar.AM_PM);
393 assertTrue(newValue != oldValue);
H A DIdentityHashMapTest.java855 String newValue = "newvalue";
856 entry.setValue(newValue);
857 assertSame(newValue, ihm.get(key));
/libcore/luni/src/main/java/java/text/
H A DDecimalFormat.java1041 * @param newValue
1045 public void setParseBigDecimal(boolean newValue) { argument
1046 ndf.setParseBigDecimal(newValue);
/libcore/luni/src/main/java/java/util/prefs/
H A DAbstractPreferences.java810 private void notifyPreferenceChange(String key, String newValue) { argument
811 PreferenceChangeEvent pce = new PreferenceChangeEvent(this, key, newValue);
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 876 milliseconds

12