Home
last modified time | relevance | path

Searched refs:oldValue (Results 1 – 25 of 223) sorted by relevance

123456789

/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/
DGetValues002Test.java35 Value oldValue = Value.createBoolean(StackTrace002Debuggee.BOOLEAN_PARAM_VALUE); in testGetValues001_Boolean() local
37 suspensionMethodInfo.addVariable("param", oldValue); in testGetValues001_Boolean()
39 methodInfo.addVariable("param", oldValue); in testGetValues001_Boolean()
83 Value oldValue = Value.createShort(StackTrace002Debuggee.SHORT_PARAM_VALUE); in testGetValues004_Short() local
85 suspensionMethodInfo.addVariable("param", oldValue); in testGetValues004_Short()
87 methodInfo.addVariable("param", oldValue); in testGetValues004_Short()
99 Value oldValue = Value.createInt(StackTrace002Debuggee.INT_PARAM_VALUE); in testGetValues005_Int() local
101 suspensionMethodInfo.addVariable("param", oldValue); in testGetValues005_Int()
103 methodInfo.addVariable("param", oldValue); in testGetValues005_Int()
115 Value oldValue = Value.createInt(StackTrace002Debuggee.INT_PARAM_VALUE); in testGetValues005_Int2() local
[all …]
DSetValues002Test.java35 Value oldValue = Value.createBoolean(StackTrace002Debuggee.BOOLEAN_PARAM_VALUE); in testSetValues001_Boolean() local
38 suspensionMethodInfo.addVariable("param", oldValue, newValue); in testSetValues001_Boolean()
40 methodInfo.addVariable("param", oldValue, newValue); in testSetValues001_Boolean()
52 Value oldValue = Value.createByte(StackTrace002Debuggee.BYTE_PARAM_VALUE); in testSetValues002_Byte() local
55 suspensionMethodInfo.addVariable("param", oldValue, newValue); in testSetValues002_Byte()
57 methodInfo.addVariable("param", oldValue, newValue); in testSetValues002_Byte()
69 Value oldValue = Value.createChar(StackTrace002Debuggee.CHAR_PARAM_VALUE); in testSetValues003_Char() local
72 suspensionMethodInfo.addVariable("param", oldValue, newValue); in testSetValues003_Char()
74 methodInfo.addVariable("param", oldValue, newValue); in testSetValues003_Char()
86 Value oldValue = Value.createShort(StackTrace002Debuggee.SHORT_PARAM_VALUE); in testSetValues004_Short() local
[all …]
/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt102 val oldValue = FU.getAndSet(this, value) as T in atomic() constant
103 interceptor.afterRMW(this, oldValue, value) in atomic()
104 return oldValue in atomic()
167 val oldValue = FU.getAndSet(this, v) in getAndSet() constant
168 interceptor.afterRMW(this, (oldValue == 1), value) in getAndSet()
169 return oldValue == 1 in getAndSet()
222 val oldValue = FU.getAndSet(this, value) in getAndSet() constant
223 interceptor.afterRMW(this, oldValue, value) in getAndSet()
224 return oldValue in getAndSet()
232 val oldValue = FU.getAndIncrement(this) in getAndIncrement() constant
[all …]
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeSupportTest.java313 Object oldValue = new Object(); in testRemovePropertyChangeListener_PropertyChangeListener_String_AllRegistered() local
316 "myProp", oldValue, newValue); in testRemovePropertyChangeListener_PropertyChangeListener_String_AllRegistered()
323 sup.firePropertyChange("myProp", oldValue, newValue); in testRemovePropertyChangeListener_PropertyChangeListener_String_AllRegistered()
586 Object oldValue = new Object(); in testFirePropertyChange_Object_Normal() local
589 "myProp", oldValue, newValue); in testFirePropertyChange_Object_Normal()
591 "myProp", oldValue, newValue); in testFirePropertyChange_Object_Normal()
595 "myProp", oldValue, newValue); in testFirePropertyChange_Object_Normal()
600 sup.firePropertyChange("myProp", oldValue, newValue); in testFirePropertyChange_Object_Normal()
615 Object oldValue = newValue; in testFirePropertyChange_Object_EqualValues() local
618 "myProp", oldValue, newValue); in testFirePropertyChange_Object_EqualValues()
[all …]
DPropertyChangeEventTest.java37 Object oldValue = new Object(); in testConstructor_Normal() local
41 oldValue, newValue); in testConstructor_Normal()
44 assertSame(oldValue, event.getOldValue()); in testConstructor_Normal()
69 Object oldValue = new Object(); in testConstructor_NullProperty() local
72 oldValue, newValue); in testConstructor_NullProperty()
75 assertSame(oldValue, event.getOldValue()); in testConstructor_NullProperty()
97 Object oldValue = new Object(); in testSetPropagationId_Normal() local
101 oldValue, newValue); in testSetPropagationId_Normal()
109 assertSame(oldValue, event.getOldValue()); in testSetPropagationId_Normal()
119 Object oldValue = new Object(); in testSetPropagationId_Null() local
[all …]
/external/guava/android/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java119 long oldValue = atomic.get(); in addAndGet() local
120 if (oldValue == 0L) { in addAndGet()
129 long newValue = oldValue + delta; in addAndGet()
130 if (atomic.compareAndSet(oldValue, newValue)) { in addAndGet()
172 long oldValue = atomic.get(); in getAndAdd() local
173 if (oldValue == 0L) { in getAndAdd()
182 long newValue = oldValue + delta; in getAndAdd()
183 if (atomic.compareAndSet(oldValue, newValue)) { in getAndAdd()
184 return oldValue; in getAndAdd()
209 long oldValue = atomic.get(); in put() local
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/debug/internal/
DConcurrentWeakMap.kt34 var oldValue = core.value.putImpl(key, value) in <lambda>() variable
35 if (oldValue === REHASH) oldValue = putSynchronized(key, value) in <lambda>()
36 if (oldValue == null) _size.incrementAndGet() in <lambda>()
37 return oldValue as V? in <lambda>()
41 var oldValue = core.value.putImpl(key, null) in <lambda>() variable
42 if (oldValue === REHASH) oldValue = putSynchronized(key, null) in <lambda>()
43 if (oldValue != null) _size.decrementAndGet() in <lambda>()
44 return oldValue as V? in <lambda>()
52 val oldValue = curCore.putImpl(key, value) in <lambda>() constant
53 if (oldValue !== REHASH) return oldValue as V? in <lambda>()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java86 long oldValue = map.put(key, delta); in testModify_basher()
87 threadSum += delta - oldValue; in testModify_basher()
90 oldValue = map.get(key); in testModify_basher()
91 if (map.replace(key, oldValue, delta)) { in testModify_basher()
92 threadSum += delta - oldValue; in testModify_basher()
96 oldValue = map.remove(key); in testModify_basher()
97 threadSum -= oldValue; in testModify_basher()
100 oldValue = map.get(key); in testModify_basher()
101 if (map.remove(key, oldValue)) { in testModify_basher()
102 threadSum -= oldValue; in testModify_basher()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java86 long oldValue = map.put(key, delta); in testModify_basher()
87 threadSum += delta - oldValue; in testModify_basher()
90 oldValue = map.get(key); in testModify_basher()
91 if (map.replace(key, oldValue, delta)) { in testModify_basher()
92 threadSum += delta - oldValue; in testModify_basher()
96 oldValue = map.remove(key); in testModify_basher()
97 threadSum -= oldValue; in testModify_basher()
100 oldValue = map.get(key); in testModify_basher()
101 if (map.remove(key, oldValue)) { in testModify_basher()
102 threadSum -= oldValue; in testModify_basher()
/external/guava/android/guava/src/com/google/common/collect/
DConcurrentHashMultiset.java221 int oldValue = existingCounter.get(); in add() local
222 if (oldValue != 0) { in add()
224 int newValue = IntMath.checkedAdd(oldValue, occurrences); in add()
225 if (existingCounter.compareAndSet(oldValue, newValue)) { in add()
227 return oldValue; in add()
231 "Overflow adding " + occurrences + " occurrences to a count of " + oldValue); in add()
281 int oldValue = existingCounter.get(); in remove() local
282 if (oldValue != 0) { in remove()
283 int newValue = Math.max(0, oldValue - occurrences); in remove()
284 if (existingCounter.compareAndSet(oldValue, newValue)) { in remove()
[all …]
DAbstractBiMap.java138 V oldValue = delegate.put(key, value); in putInBothMaps() local
139 updateInverseMap(key, containedKey, oldValue, value); in putInBothMaps()
140 return oldValue; in putInBothMaps()
143 private void updateInverseMap(K key, boolean containedKey, V oldValue, V newValue) { in updateInverseMap() argument
145 removeFromInverseMap(oldValue); in updateInverseMap()
158 V oldValue = delegate.remove(key); in removeFromBothMaps() local
159 removeFromInverseMap(oldValue); in removeFromBothMaps()
160 return oldValue; in removeFromBothMaps()
163 private void removeFromInverseMap(V oldValue) { in removeFromInverseMap() argument
164 inverse.delegate.remove(oldValue); in removeFromInverseMap()
[all …]
/external/guava/guava/src/com/google/common/collect/
DConcurrentHashMultiset.java221 int oldValue = existingCounter.get(); in add() local
222 if (oldValue != 0) { in add()
224 int newValue = IntMath.checkedAdd(oldValue, occurrences); in add()
225 if (existingCounter.compareAndSet(oldValue, newValue)) { in add()
227 return oldValue; in add()
231 "Overflow adding " + occurrences + " occurrences to a count of " + oldValue); in add()
281 int oldValue = existingCounter.get(); in remove() local
282 if (oldValue != 0) { in remove()
283 int newValue = Math.max(0, oldValue - occurrences); in remove()
284 if (existingCounter.compareAndSet(oldValue, newValue)) { in remove()
[all …]
/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt38 val oldValue = this.value in atomic() constant
40 return oldValue in atomic()
65 val oldValue = this.value in getAndSet() constant
67 return oldValue in getAndSet()
90 val oldValue = this.value in toString() constant
92 return oldValue in toString()
103 val oldValue = value in toString() constant
105 return oldValue in toString()
144 val oldValue = this.value in getAndSet() constant
146 return oldValue in getAndSet()
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/impl/
DMergingSettableBeanProperty.java73 Object oldValue = _accessor.getValue(instance); in deserializeAndSet() local
77 if (oldValue == null) { in deserializeAndSet()
80 newValue = delegate.deserializeWith(p, ctxt, oldValue); in deserializeAndSet()
82 if (newValue != oldValue) { in deserializeAndSet()
93 Object oldValue = _accessor.getValue(instance); in deserializeSetAndReturn() local
97 if (oldValue == null) { in deserializeSetAndReturn()
100 newValue = delegate.deserializeWith(p, ctxt, oldValue); in deserializeSetAndReturn()
105 if (newValue != oldValue) { in deserializeSetAndReturn()
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java163 long oldValue = (value == null) ? 0L : value.longValue(); in getAndUpdate()
164 holder.set(oldValue); in getAndUpdate()
165 return updaterFunction.applyAsLong(oldValue); in getAndUpdate()
181 return updateAndGet(key, oldValue -> accumulatorFunction.applyAsLong(oldValue, x)); in accumulateAndGet()
195 return getAndUpdate(key, oldValue -> accumulatorFunction.applyAsLong(oldValue, x)); in getAndAccumulate()
320 (k, oldValue) -> { in putIfAbsent()
321 if (oldValue == null || oldValue == 0) { in putIfAbsent()
325 return oldValue; in putIfAbsent()
/external/kotlinx.atomicfu/atomicfu/src/nativeTest/kotlin/kotlinx/atomicfu/locks/
DSynchronizedTest.kt26 val oldValue = count.value in <lambda>() constant
27 count.value = oldValue + 1 in <lambda>()
53 val oldValue = counters[i].value in <lambda>() constant
54 counters[i].value = oldValue + 1 in <lambda>()
79 val oldValue = count.value in <lambda>() constant
80 count.value = oldValue + 1 in <lambda>()
108 val oldValue = count.value in <lambda>() constant
109 count.value = oldValue + 1 in <lambda>()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/changes/
DPropertyChange.java11 private final Object oldValue; field in PropertyChange
19 return oldValue; in getOldValue()
26 public PropertyChange(ObservableProperty property, Object oldValue, Object newValue) { in PropertyChange() argument
28 this.oldValue = oldValue; in PropertyChange()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/observer/
DPropagatingAstObserver.java42 …tePropertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)… in transformInPropagatingObserver()
43 observer.propertyChange(observedNode, property, oldValue, newValue); in transformInPropagatingObserver()
59 …d propertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)…
60 considerRemoving(oldValue);
62 concretePropertyChange(observedNode, property, oldValue, newValue);
85 …tePropertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)…
93 …public void concreteListReplacement(NodeList observedNode, int index, Node oldValue, Node newValue…
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalPreservingPrinter.java120 …tePropertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)… in concretePropertyChange() argument
122 … if ((oldValue != null && oldValue.equals(newValue)) || (oldValue == null && newValue == null)) { in concretePropertyChange()
135 if (oldValue == null) { in concretePropertyChange()
141 if (oldValue instanceof Comment) { in concretePropertyChange()
142 if (((Comment) oldValue).isOrphan()){ in concretePropertyChange()
145 int index = getIndexOfComment ((Comment) oldValue, nodeText); in concretePropertyChange()
154 if (oldValue instanceof JavadocComment) { in concretePropertyChange()
155 …nTextElement> matchingTokens = findTokenTextElementForComment((JavadocComment) oldValue, nodeText); in concretePropertyChange()
175 …IFFERENCE_CALCULATOR.calculatePropertyChange(nodeText, observedNode, property, oldValue, newValue); in concretePropertyChange()
178 private int getIndexOfComment (Comment oldValue, NodeText nodeText) { in getIndexOfComment() argument
[all …]
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/std/
DPrimitiveArrayDeserializers.java136 protected abstract T _concat(T oldValue, T newValue); in _concat() argument
331 protected char[] _concat(char[] oldValue, char[] newValue) { in _concat() argument
332 int len1 = oldValue.length; in _concat()
334 char[] result = Arrays.copyOf(oldValue, len1+len2); in _concat()
416 protected boolean[] _concat(boolean[] oldValue, boolean[] newValue) { in _concat() argument
417 int len1 = oldValue.length; in _concat()
419 boolean[] result = Arrays.copyOf(oldValue, len1+len2); in _concat()
550 protected byte[] _concat(byte[] oldValue, byte[] newValue) { in _concat() argument
551 int len1 = oldValue.length; in _concat()
553 byte[] result = Arrays.copyOf(oldValue, len1+len2); in _concat()
[all …]
DUntypedObjectDeserializer.java550 final Object oldValue = result.put(key, newValue); in mapObject() local
551 if (oldValue != null) { in mapObject()
552 return _mapObjectWithDups(p, ctxt, result, key, oldValue, newValue, in mapObject()
562 Object oldValue, Object newValue, String nextKey) throws IOException in _mapObjectWithDups() argument
567 _squashDups(result, key, oldValue, newValue); in _mapObjectWithDups()
573 oldValue = result.put(nextKey, newValue); in _mapObjectWithDups()
574 if ((oldValue != null) && squashDups) { in _mapObjectWithDups()
575 _squashDups(result, key, oldValue, newValue); in _mapObjectWithDups()
585 Object oldValue, Object newValue) in _squashDups() argument
587 if (oldValue instanceof List<?>) { in _squashDups()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/NVStorage/
DNV_SetBits.c60 UINT64 oldValue; in TPM2_NV_SetBits() local
79 oldValue = 0; in TPM2_NV_SetBits()
82 oldValue = NvGetUINT64Data(nvIndex, locator); in TPM2_NV_SetBits()
85 newValue = oldValue | in->bits; in TPM2_NV_SetBits()
/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetBasherTest.java134 int oldValue = multiset.setCount(key, newValue); in call() local
135 deltas[keyIndex] += (newValue - oldValue); in call()
141 int oldValue = multiset.count(key); in call() local
142 if (multiset.setCount(key, oldValue, newValue)) { in call()
143 deltas[keyIndex] += (newValue - oldValue); in call()
150 int oldValue = multiset.remove(key, delta); in call() local
151 deltas[keyIndex] -= Math.min(delta, oldValue); in call()
/external/guava/android/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetBasherTest.java134 int oldValue = multiset.setCount(key, newValue); in call() local
135 deltas[keyIndex] += (newValue - oldValue); in call()
141 int oldValue = multiset.count(key); in call() local
142 if (multiset.setCount(key, oldValue, newValue)) { in call()
143 deltas[keyIndex] += (newValue - oldValue); in call()
150 int oldValue = multiset.remove(key, delta); in call() local
151 deltas[keyIndex] -= Math.min(delta, oldValue); in call()
/external/kotlinx.atomicfu/atomicfu-gradle-plugin/src/test/kotlin/kotlinx/atomicfu/plugin/gradle/
Dutils.kt33 fun String.checkedReplace(oldValue: String, newValue: String, ignoreCase: Boolean = false): String { in String()
34 check(contains(oldValue, ignoreCase)) { "String must contain '$oldValue'" } in String()
35 return replace(oldValue, newValue, ignoreCase) in String()

123456789