HomeSort by relevance Sort by last modified time
    Searched refs:CacheValue (Results 1 - 16 of 16) sorted by null

  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
CacheTest.java 15 import android.icu.impl.CacheValue;
16 import android.icu.impl.CacheValue.Strength;
21 /** Code coverage for CacheValue. */
24 CacheValue<Object> nv = CacheValue.getInstance(null);
25 assertTrue("null CacheValue isNull()", nv.isNull());
26 assertTrue("null CacheValue get()==null", nv.get() == null);
27 assertTrue("null CacheValue reset==null", nv.resetIfCleared(null) == null);
30 fail("null CacheValue reset(not null) should throw an Exception, returned " +
36 /** Code coverage for CacheValue. *
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
CacheTest.java 14 import com.ibm.icu.impl.CacheValue;
15 import com.ibm.icu.impl.CacheValue.Strength;
20 /** Code coverage for CacheValue. */
23 CacheValue<Object> nv = CacheValue.getInstance(null);
24 assertTrue("null CacheValue isNull()", nv.isNull());
25 assertTrue("null CacheValue get()==null", nv.get() == null);
26 assertTrue("null CacheValue reset==null", nv.resetIfCleared(null) == null);
29 fail("null CacheValue reset(not null) should throw an Exception, returned " +
35 /** Code coverage for CacheValue. *
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
SoftCache.java 16 * in {@link java.lang.ref.Reference}s via {@link CacheValue}s.
21 * <p>When caching instances while the CacheValue "strength" is {@code SOFT},
24 * the getInstance() method will call createInstance() again and reset the CacheValue.
31 * @param <V> Cache instance value type (must not be a CacheValue)
47 // We use a CacheValue (a second level of indirection) because
53 if(!(mapValue instanceof CacheValue)) {
57 CacheValue<V> cv = (CacheValue<V>)mapValue;
72 mapValue = (value != null && CacheValue.futureInstancesWillBeStrong()) ?
73 value : CacheValue.getInstance(value)
    [all...]
CacheValue.java 36 public abstract class CacheValue<V> {
38 * "Strength" of holding a value in CacheValue instances.
56 private static final CacheValue NULL_VALUE = new NullValue();
61 public static void setStrength(Strength strength) { CacheValue.strength = strength; }
69 * Returns a CacheValue instance that holds the value.
74 public static <V> CacheValue<V> getInstance(V value) {
105 private static final class NullValue<V> extends CacheValue<V> {
119 private static final class StrongValue<V> extends CacheValue<V> {
133 private static final class SoftValue<V> extends CacheValue<V> {
ICUResourceBundleImpl.java 116 CacheValue.futureInstancesWillBeStrong()) {
ICUResourceBundleReader.java     [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
SoftCache.java 15 * in {@link java.lang.ref.Reference}s via {@link CacheValue}s.
20 * <p>When caching instances while the CacheValue "strength" is {@code SOFT},
23 * the getInstance() method will call createInstance() again and reset the CacheValue.
30 * @param <V> Cache instance value type (must not be a CacheValue)
45 // We use a CacheValue (a second level of indirection) because
51 if(!(mapValue instanceof CacheValue)) {
55 CacheValue<V> cv = (CacheValue<V>)mapValue;
70 mapValue = (value != null && CacheValue.futureInstancesWillBeStrong()) ?
71 value : CacheValue.getInstance(value)
    [all...]
CacheValue.java 34 public abstract class CacheValue<V> {
36 * "Strength" of holding a value in CacheValue instances.
54 private static final CacheValue NULL_VALUE = new NullValue();
59 public static void setStrength(Strength strength) { CacheValue.strength = strength; }
67 * Returns a CacheValue instance that holds the value.
72 public static <V> CacheValue<V> getInstance(V value) {
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> {
ICUResourceBundleImpl.java 115 CacheValue.futureInstancesWillBeStrong()) {
ICUResourceBundleReader.java     [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/text/
BreakIterator.java 18 import android.icu.impl.CacheValue;
528 private static final CacheValue<?>[] iterCache = new CacheValue<?>[5];
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
BreakIterator.java 17 import com.ibm.icu.impl.CacheValue;
562 private static final CacheValue<?>[] iterCache = new CacheValue<?>[5];
    [all...]
  /libcore/ojluni/src/main/java/java/lang/reflect/
WeakCache.java 126 // supplier might be a Factory or a CacheValue<V> instance
133 // or a supplier that returned null (could be a cleared CacheValue
134 // or a Factory that wasn't successful in installing the CacheValue)
219 // might be that we were replaced by a CacheValue
239 // wrap value with CacheValue (WeakReference)
240 CacheValue<V> cacheValue = new CacheValue<>(value);
242 // try replacing us with CacheValue (this should always succeed)
243 if (valuesMap.replace(subKey, this, cacheValue)) {
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
ZygoteInit.java 24 import android.icu.impl.CacheValue;
163 CacheValue.setStrength(CacheValue.Strength.STRONG);
175 CacheValue.setStrength(CacheValue.Strength.SOFT);
    [all...]
  /frameworks/base/
preloaded-classes 99 [Landroid.icu.impl.CacheValue$Strength;
100 [Landroid.icu.impl.CacheValue;
    [all...]
compiled-classes-phone     [all...]

Completed in 1164 milliseconds