Home
last modified time | relevance | path

Searched refs:CacheValue (Results 1 – 15 of 15) sorted by relevance

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/impl/
DCacheTest.java17 import ohos.global.icu.impl.CacheValue;
18 import ohos.global.icu.impl.CacheValue.Strength;
29 CacheValue<Object> nv = CacheValue.getInstance(null); in testNullCacheValue()
44 boolean wasStrong = CacheValue.futureInstancesWillBeStrong(); in testStrongCacheValue()
45 CacheValue.setStrength(Strength.STRONG); in testStrongCacheValue()
47 CacheValue.futureInstancesWillBeStrong()); in testStrongCacheValue()
48 CacheValue<Object> sv = CacheValue.<Object>getInstance(this); in testStrongCacheValue()
56 CacheValue.setStrength(Strength.SOFT); in testStrongCacheValue()
63 boolean wasStrong = CacheValue.futureInstancesWillBeStrong(); in testSoftCacheValue()
64 CacheValue.setStrength(Strength.SOFT); in testSoftCacheValue()
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
DCacheTest.java16 import com.ibm.icu.impl.CacheValue;
17 import com.ibm.icu.impl.CacheValue.Strength;
26 CacheValue<Object> nv = CacheValue.getInstance(null); in testNullCacheValue()
41 boolean wasStrong = CacheValue.futureInstancesWillBeStrong(); in testStrongCacheValue()
42 CacheValue.setStrength(Strength.STRONG); in testStrongCacheValue()
44 CacheValue.futureInstancesWillBeStrong()); in testStrongCacheValue()
45 CacheValue<Object> sv = CacheValue.<Object>getInstance(this); in testStrongCacheValue()
53 CacheValue.setStrength(Strength.SOFT); in testStrongCacheValue()
60 boolean wasStrong = CacheValue.futureInstancesWillBeStrong(); in testSoftCacheValue()
61 CacheValue.setStrength(Strength.SOFT); in testSoftCacheValue()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DSoftCache.java53 if(!(mapValue instanceof CacheValue)) { in getInstance()
57 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance()
72 mapValue = (value != null && CacheValue.futureInstancesWillBeStrong()) ? in getInstance()
73 value : CacheValue.getInstance(value); in getInstance()
82 if(!(mapValue instanceof CacheValue)) { in getInstance()
86 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance()
DCacheValue.java36 public abstract class CacheValue<V> { class
57 private static final CacheValue NULL_VALUE = new NullValue();
62 public static void setStrength(Strength strength) { CacheValue.strength = strength; } in setStrength()
75 public static <V> CacheValue<V> getInstance(V value) { in getInstance()
106 private static final class NullValue<V> extends CacheValue<V> {
120 private static final class StrongValue<V> extends CacheValue<V> {
134 private static final class SoftValue<V> extends CacheValue<V> {
DICUResourceBundleImpl.java116 CacheValue.futureInstancesWillBeStrong()) { in ResourceString()
DICUResourceBundleReader.java1165 return size < LARGE_SIZE || CacheValue.futureInstancesWillBeStrong(); in storeDirectly()
1183 values[index] = CacheValue.futureInstancesWillBeStrong() ? in putIfCleared()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DSoftCache.java51 if(!(mapValue instanceof CacheValue)) { in getInstance()
55 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance()
70 mapValue = (value != null && CacheValue.futureInstancesWillBeStrong()) ? in getInstance()
71 value : CacheValue.getInstance(value); in getInstance()
80 if(!(mapValue instanceof CacheValue)) { in getInstance()
84 CacheValue<V> cv = (CacheValue<V>)mapValue; in getInstance()
DCacheValue.java34 public abstract class CacheValue<V> { class
54 private static final CacheValue NULL_VALUE = new NullValue();
59 public static void setStrength(Strength strength) { CacheValue.strength = strength; } in setStrength()
72 public static <V> CacheValue<V> getInstance(V value) { in getInstance()
103 private static final class NullValue<V> extends CacheValue<V> {
117 private static final class StrongValue<V> extends CacheValue<V> {
131 private static final class SoftValue<V> extends CacheValue<V> {
DICUResourceBundleImpl.java115 CacheValue.futureInstancesWillBeStrong()) { in ResourceString()
DICUResourceBundleReader.java1163 return size < LARGE_SIZE || CacheValue.futureInstancesWillBeStrong(); in storeDirectly()
1181 values[index] = CacheValue.futureInstancesWillBeStrong() ? in putIfCleared()
/third_party/skia/src/gpu/
DGrDDLContext.cpp69 typedef const GrProgramInfo* CacheValue; typedef in GrDDLContext::ProgramInfoMap
82 const CacheValue* preExisting = fMap.find(desc); in add()
91 fMap.foreach([dst](CacheKey* programDesc, CacheValue* programInfo) { in toArray()
106 SkLRUCache<CacheKey, CacheValue, DescHash> fMap;
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBreakIterator.java18 import com.ibm.icu.impl.CacheValue;
591 private static final CacheValue<?>[] iterCache = new CacheValue<?>[5];
905 iterCache[kind] = CacheValue.getInstance(cache); in getBreakInstance()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DBreakIterator.java19 import ohos.global.icu.impl.CacheValue;
557 private static final CacheValue<?>[] iterCache = new CacheValue<?>[5];
860 iterCache[kind] = CacheValue.getInstance(cache); in getBreakInstance()
/third_party/icu/icu4j/
Dcoverage-exclusion.txt32 com/ibm/icu/impl/CacheValue$Strength#valueOf:(Ljava/lang/String;)Lcom/ibm/icu/impl/CacheValue$Stren…
33 com/ibm/icu/impl/CacheValue$Strength#values:()[Lcom/ibm/icu/impl/CacheValue$Strength;
/third_party/icu/ohos_icu4j/
DBUILD.gn165 "src/main/java/ohos/global/icu/impl/CacheValue.java",