Home
last modified time | relevance | path

Searched refs:valueRef (Results 1 – 25 of 37) sorted by relevance

12

/external/guava/android/guava-tests/test/com/google/common/cache/
DAbstractLoadingCacheTest.java36 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_checked() local
41 Object v = valueRef.get(); in testGetUnchecked_checked()
50 return valueRef.get(); in testGetUnchecked_checked()
62 valueRef.set(newValue); in testGetUnchecked_checked()
68 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_unchecked() local
73 Object v = valueRef.get(); in testGetUnchecked_unchecked()
82 return valueRef.get(); in testGetUnchecked_unchecked()
94 valueRef.set(newValue); in testGetUnchecked_unchecked()
100 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_error() local
105 Object v = valueRef.get(); in testGetUnchecked_error()
[all …]
DLocalCacheTest.java632 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value); in testComputePartiallyCollectedKey() local
633 entry.setValueReference(valueRef); in testComputePartiallyCollectedKey()
661 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value); in testComputePartiallyCollectedValue() local
662 entry.setValueReference(valueRef); in testComputePartiallyCollectedValue()
670 valueRef.clear(); in testComputePartiallyCollectedValue()
872 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(null); in testSegmentRefresh_duplicate() local
873 valueRef.setLoading(true); in testSegmentRefresh_duplicate()
874 entry.setValueReference(valueRef); in testSegmentRefresh_duplicate()
1134 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1); in testSegmentGetAndContains() local
1135 entry.setValueReference(valueRef); in testSegmentGetAndContains()
[all …]
DAbstractCacheTest.java36 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetIfPresent() local
41 return valueRef.get(); in testGetIfPresent()
48 valueRef.set(newValue); in testGetIfPresent()
DCacheTesting.java67 ValueReference<K, V> valueRef = entry.getValueReference(); in simulateValueReclamation() local
69 Preconditions.checkState(valueRef instanceof Reference); in simulateValueReclamation()
70 Reference<V> ref = (Reference<V>) valueRef; in simulateValueReclamation()
/external/guava/guava-tests/test/com/google/common/cache/
DAbstractLoadingCacheTest.java36 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_checked() local
41 Object v = valueRef.get(); in testGetUnchecked_checked()
50 return valueRef.get(); in testGetUnchecked_checked()
62 valueRef.set(newValue); in testGetUnchecked_checked()
68 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_unchecked() local
73 Object v = valueRef.get(); in testGetUnchecked_unchecked()
82 return valueRef.get(); in testGetUnchecked_unchecked()
94 valueRef.set(newValue); in testGetUnchecked_unchecked()
100 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetUnchecked_error() local
105 Object v = valueRef.get(); in testGetUnchecked_error()
[all …]
DLocalCacheTest.java629 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value); in testComputePartiallyCollectedKey() local
630 entry.setValueReference(valueRef); in testComputePartiallyCollectedKey()
658 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value); in testComputePartiallyCollectedValue() local
659 entry.setValueReference(valueRef); in testComputePartiallyCollectedValue()
667 valueRef.clear(); in testComputePartiallyCollectedValue()
885 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(null); in testSegmentRefresh_duplicate() local
886 valueRef.setLoading(true); in testSegmentRefresh_duplicate()
887 entry.setValueReference(valueRef); in testSegmentRefresh_duplicate()
1147 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1); in testSegmentGetAndContains() local
1148 entry.setValueReference(valueRef); in testSegmentGetAndContains()
[all …]
DAbstractCacheTest.java36 final AtomicReference<Object> valueRef = new AtomicReference<>(); in testGetIfPresent() local
41 return valueRef.get(); in testGetIfPresent()
48 valueRef.set(newValue); in testGetIfPresent()
DCacheTesting.java67 ValueReference<K, V> valueRef = entry.getValueReference(); in simulateValueReclamation() local
69 Preconditions.checkState(valueRef instanceof Reference); in simulateValueReclamation()
70 Reference<V> ref = (Reference<V>) valueRef; in simulateValueReclamation()
/external/eigen/Eigen/src/SparseCore/
DSparseCwiseUnaryOp.h68 Scalar& valueRef();
114 EIGEN_STRONG_INLINE Scalar& valueRef() { return m_functor(Base::valueRef()); }
130 i.valueRef() *= other;
142 i.valueRef() /= other;
DSparseCompressedBase.h190 inline Scalar& valueRef() { return const_cast<Scalar&>(m_values[m_id]); }
250 inline Scalar& valueRef() { return const_cast<Scalar&>(m_values[m_id-1]); }
DSparseTriangularView.h169 Scalar& valueRef();
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DAttributeResolution.java82 Ref<Res_value> valueRef = new Ref<>(null); in ResolveAttrs() local
83 if (theme.GetAttribute(defStyleAttr, valueRef, defStyleBagTypeSetFlags) >= 0) { in ResolveAttrs()
84 value = valueRef.get(); in ResolveAttrs()
143 Ref<Res_value> valueRef = new Ref<>(value); in ResolveAttrs() local
149 int newBlock = theme.resolveAttributeReference(valueRef, block, in ResolveAttrs()
151 value = valueRef.get(); in ResolveAttrs()
162 int newBlock = theme.GetAttribute(curIdent, valueRef, typeSetFlagsRef); in ResolveAttrs()
163 value = valueRef.get(); in ResolveAttrs()
170 newBlock = res.resolveReference(valueRef, newBlock, residRef, typeSetFlagsRef, configRef); in ResolveAttrs()
171 value = valueRef.get(); in ResolveAttrs()
DAttributeResolution9.java107 final Ref<Res_value> valueRef = new Ref<>(null); in ResolveAttrs() local
108 … if (theme.GetAttribute(def_style_attr, valueRef, def_style_flags).intValue() != kInvalidCookie) { in ResolveAttrs()
109 value = valueRef.get(); in ResolveAttrs()
165 final Ref<Res_value> valueRef = new Ref<>(value); in ResolveAttrs() local
172 … theme.ResolveAttributeReference(cookie, valueRef, configRef, type_set_flagsRef, residRef); in ResolveAttrs()
181 ApkAssetsCookie new_cookie = theme.GetAttribute(cur_ident, valueRef, type_set_flagsRef); in ResolveAttrs()
187 … assetmanager.ResolveReference(new_cookie, valueRef, configRef, type_set_flagsRef, residRef); in ResolveAttrs()
196 value = valueRef.get(); in ResolveAttrs()
DAttributeResolution10.java111 final Ref<Res_value> valueRef = new Ref<>(null); in ResolveAttrs() local
112 … if (theme.GetAttribute(def_style_attr, valueRef, def_style_flags).intValue() != kInvalidCookie) { in ResolveAttrs()
113 value = valueRef.get(); in ResolveAttrs()
169 final Ref<Res_value> valueRef = new Ref<>(value); in ResolveAttrs() local
176 … theme.ResolveAttributeReference(cookie, valueRef, configRef, type_set_flagsRef, residRef); in ResolveAttrs()
185 … ApkAssetsCookie new_cookie = theme.GetAttribute(cur_ident, valueRef, type_set_flagsRef); in ResolveAttrs()
191 … assetmanager.ResolveReference(new_cookie, valueRef, configRef, type_set_flagsRef, residRef); in ResolveAttrs()
200 value = valueRef.get(); in ResolveAttrs()
DCppAssetManager2.java1020 final Ref<Res_value> valueRef = new Ref<>(new_entry_.value); in GetBag() local
1021 int err = entry.dynamic_ref_table.lookupResourceValue(valueRef); in GetBag()
1022 new_entry_.value = valueRef.get(); in GetBag()
1100 final Ref<Res_value> valueRef = new Ref<>(new_entry_.value); in GetBag() local
1101 int err = entry.dynamic_ref_table.lookupResourceValue(valueRef); in GetBag()
1102 new_entry_.value = valueRef.get(); in GetBag()
1148 final Ref<Res_value> valueRef = new Ref<>(new_entry_.value); in GetBag() local
1149 int err = entry.dynamic_ref_table.lookupResourceValue(valueRef); in GetBag()
1150 new_entry_.value = valueRef.get(); in GetBag()
DResTableTheme.java76 public int GetAttribute(int resID, Ref<Res_value> valueRef, in GetAttribute() argument
131 valueRef.set(te.value); in GetAttribute()
/external/eigen/unsupported/Eigen/src/IterativeSolvers/
DIncompleteLU.h53 k_it.valueRef() /= diag(k); in compute()
62 j_it.valueRef() -= k_it.value() * kj_it.value(); in compute()
DScaling.h121 it.valueRef() = it.value()/( Dr(it.row()) * Dc(it.col()) ); in compute()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager.java634 final Ref<Res_value> valueRef = new Ref<>(null); in loadResourceBagValueInternal() local
644 valueRef.set(entry.map.value); in loadResourceBagValueInternal()
656 block = res.resolveReference(valueRef, block, ref, typeSpecFlags); in loadResourceBagValueInternal()
664 return copyValue(outValue, res, valueRef.get(), ref.get(), block, typeSpecFlags.get()); in loadResourceBagValueInternal()
1111 final Ref<Res_value> valueRef = new Ref<>(null); in getArrayStringResource() local
1115 valueRef.set(bag[i].map.value); in getArrayStringResource()
1119 int block = res.resolveReference(valueRef, bag[i].stringBlock, null); in getArrayStringResource()
1125 if (valueRef.get().dataType == DataType.STRING.code()) { in getArrayStringResource()
1127 str = pool.stringAt(valueRef.get().data); in getArrayStringResource()
1229 final Ref<Res_value> valueRef = new Ref<>(null); in getArrayIntResource() local
[all …]
DShadowXmlBlock.java301 final Ref<Res_value> valueRef = new Ref<>(new Res_value()); in nativeGetStyleAttribute() local
302 if (resXMLParser.getAttributeValue(idx, valueRef) < 0) { in nativeGetStyleAttribute()
305 Res_value value = valueRef.get(); in nativeGetStyleAttribute()
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
DLMqrsolv.h155 itk.valueRef() = givens.c() * itk.value() + givens.s() * sdiag(k); in lmqrsolv()
166 itk.valueRef() = temp; in lmqrsolv()
/external/eigen/unsupported/Eigen/src/Skyline/
DSkylineInplaceLU.h133 lIt.valueRef() /= pivot; in compute()
147 uIt.valueRef() -= uItPivot.value() * coef; in compute()
/external/eigen/Eigen/src/OrderingMethods/
DOrdering.h34 it.valueRef() = 0.0; in ordering_helper_at_plus_a()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java808 WeakValueReference<Object, Object, ?> valueRef = segment.getWeakValueReferenceForTesting(entry); in testClearValue() local
811 assertFalse(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()
815 assertTrue(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()
825 assertFalse(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()
826 segment.setWeakValueReferenceForTesting(entry, valueRef); in testClearValue()
827 assertTrue(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()
/external/guava/android/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java808 WeakValueReference<Object, Object, ?> valueRef = segment.getWeakValueReferenceForTesting(entry); in testClearValue() local
811 assertFalse(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()
815 assertTrue(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()
825 assertFalse(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()
826 segment.setWeakValueReferenceForTesting(entry, valueRef); in testClearValue()
827 assertTrue(segment.clearValueForTesting(key, hash, valueRef)); in testClearValue()

12