Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/cache/
DAbstractLoadingCacheTest.java36 final AtomicReference<Object> valueRef = new AtomicReference<Object>(); in testGetUnchecked_checked() local
40 Object v = valueRef.get(); in testGetUnchecked_checked()
49 return valueRef.get(); in testGetUnchecked_checked()
61 valueRef.set(newValue); in testGetUnchecked_checked()
67 final AtomicReference<Object> valueRef = new AtomicReference<Object>(); in testGetUnchecked_unchecked() local
71 Object v = valueRef.get(); in testGetUnchecked_unchecked()
80 return valueRef.get(); in testGetUnchecked_unchecked()
92 valueRef.set(newValue); in testGetUnchecked_unchecked()
98 final AtomicReference<Object> valueRef = new AtomicReference<Object>(); in testGetUnchecked_error() local
102 Object v = valueRef.get(); in testGetUnchecked_error()
[all …]
DAbstractCacheTest.java37 final AtomicReference<Object> valueRef = new AtomicReference<Object>(); in testGetAllPresent() local
41 return valueRef.get(); in testGetAllPresent()
48 valueRef.set(newValue); in testGetAllPresent()
DLocalCacheTest.java518 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value); in testComputePartiallyCollectedKey() local
519 entry.setValueReference(valueRef); in testComputePartiallyCollectedKey()
547 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value); in testComputePartiallyCollectedValue() local
548 entry.setValueReference(valueRef); in testComputePartiallyCollectedValue()
556 valueRef.clear(); in testComputePartiallyCollectedValue()
756 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(null); in testSegmentRefresh_duplicate() local
757 valueRef.setLoading(true); in testSegmentRefresh_duplicate()
758 entry.setValueReference(valueRef); in testSegmentRefresh_duplicate()
1018 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value, 1); in testSegmentGetAndContains() local
1019 entry.setValueReference(valueRef); in testSegmentGetAndContains()
[all …]
DCacheTesting.java68 ValueReference<K, V> valueRef = entry.getValueReference(); in simulateValueReclamation() local
70 Preconditions.checkState(valueRef instanceof Reference); in simulateValueReclamation()
71 Reference<V> ref = (Reference<V>) valueRef; in simulateValueReclamation()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSoftCache.java39 SettableSoftReference<V> valueRef = map.get(key); in getInstance() local
41 if(valueRef != null) { in getInstance()
42 synchronized(valueRef) { in getInstance()
43 value = valueRef.ref.get(); in getInstance()
51 valueRef.ref = new SoftReference<V>(value); in getInstance()
62 valueRef = map.putIfAbsent(key, new SettableSoftReference<V>(value)); in getInstance()
63 if(valueRef == null) { in getInstance()
70 return valueRef.setIfAbsent(value); in getInstance()
/external/eigen/Eigen/src/SparseCore/
DSparseCwiseUnaryOp.h53 typename CwiseUnaryOpImpl::Scalar& valueRef();
76 typename CwiseUnaryOpImpl::Scalar& valueRef();
113 …EN_STRONG_INLINE typename CwiseUnaryViewImpl::Scalar& valueRef() { return m_functor(Base::valueRef in valueRef() function
135 …EN_STRONG_INLINE typename CwiseUnaryViewImpl::Scalar& valueRef() { return m_functor(Base::valueRef in valueRef() function
147 i.valueRef() *= other;
157 i.valueRef() /= other;
DMappedSparseMatrix.h132 inline Scalar& valueRef() { return const_cast<Scalar&>(m_matrix.valuePtr()[m_id]); }
163 inline Scalar& valueRef() { return const_cast<Scalar&>(m_matrix.valuePtr()[m_id-1]); }
DSparseVector.h365 inline Scalar& valueRef() { return const_cast<Scalar&>(m_data.value(m_id)); }
397 inline Scalar& valueRef() { return const_cast<Scalar&>(m_data.value(m_id-1)); }
DSparseMatrix.h884 inline Scalar& valueRef() { return const_cast<Scalar&>(m_values[m_id]); }
917 inline Scalar& valueRef() { return const_cast<Scalar&>(m_values[m_id-1]); }
/external/guava/guava-tests/test/com/google/common/collect/
DComputingConcurrentHashMapTest.java177 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value, entry); in testComputePartiallyCollectedKey() local
178 entry.setValueReference(valueRef); in testComputePartiallyCollectedKey()
206 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value, entry); in testComputePartiallyCollectedValue() local
207 entry.setValueReference(valueRef); in testComputePartiallyCollectedValue()
215 valueRef.clear(null); in testComputePartiallyCollectedValue()
DMapMakerInternalMapTest.java503 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value); in testSegmentGetAndContains() local
504 entry.setValueReference(valueRef); in testSegmentGetAndContains()
850 ValueReference<Object, Object> valueRef = map.newValueReference(entry, value); in testExpand() local
851 entry.setValueReference(valueRef); in testExpand()
986 ValueReference<Object, Object> valueRef = DummyValueReference.create(value, entry); in testExpand_cleanup() local
987 entry.setValueReference(valueRef); in testExpand_cleanup()
1106 DummyValueReference<Object, Object> valueRef = DummyValueReference.create(value, entry); in testReclaimValue() local
1107 entry.setValueReference(valueRef); in testReclaimValue()
1110 assertFalse(segment.reclaimValue(key, hash, valueRef)); in testReclaimValue()
1116 assertTrue(segment.reclaimValue(key, hash, valueRef)); in testReclaimValue()
[all …]
/external/eigen/unsupported/Eigen/src/IterativeSolvers/
DIncompleteLU.h49 k_it.valueRef() /= diag(k); in compute()
58 j_it.valueRef() -= k_it.value() * kj_it.value(); in compute()
DScaling.h119 it.valueRef() = it.value()/( Dr(it.row()) * Dc(it.col()) ); in compute()
/external/eigen/unsupported/Eigen/src/LevenbergMarquardt/
DLMqrsolv.h156 itk.valueRef() = givens.c() * itk.value() + givens.s() * sdiag(k); in lmqrsolv()
167 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()
DSkylineMatrix.h763 inline Scalar& valueRef() {
826 inline Scalar& valueRef() {
/external/eigen/Eigen/src/OrderingMethods/
DOrdering.h33 it.valueRef() = 0.0; in ordering_helper_at_plus_a()
/external/eigen/test/eigen2/
Deigen2_sparse_product.cpp93 it.valueRef() *= 0.5; in sparse_product()
/external/eigen/Eigen/src/SparseLU/
DSparseLU_SupernodalMatrix.h203 inline Scalar& valueRef() { return const_cast<Scalar&>(m_matrix.valuePtr()[m_idval]); } in valueRef() function
/external/eigen/test/
Dsparse_product.cpp198 it.valueRef() *= 0.5; in sparse_product()
/external/eigen/Eigen/src/PaStiXSupport/
DPaStiXSupport.h509 it.valueRef() = 0.0;
/external/eigen/doc/
DTutorialSparse.dox184 For a writable expression, the referenced value can be modified using the valueRef() function.