HomeSort by relevance Sort by last modified time
    Searched refs:Strength (Results 1 - 25 of 114) sorted by null

1 2 3 4 5

  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/impl/
CacheTest.java 16 import android.icu.impl.CacheValue.Strength;
40 CacheValue.setStrength(Strength.STRONG);
51 CacheValue.setStrength(Strength.SOFT);
59 CacheValue.setStrength(Strength.SOFT);
68 CacheValue.setStrength(Strength.STRONG);
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/
CacheTest.java 15 import com.ibm.icu.impl.CacheValue.Strength;
39 CacheValue.setStrength(Strength.STRONG);
50 CacheValue.setStrength(Strength.SOFT);
58 CacheValue.setStrength(Strength.SOFT);
67 CacheValue.setStrength(Strength.STRONG);
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
CacheValue.java 20 * depending on the current "strength" when {@code getInstance()} was called.
38 * "Strength" of holding a value in CacheValue instances.
39 * The default strength is {@code SOFT}.
41 public enum Strength {
53 private static volatile Strength strength = Strength.SOFT; field in class:CacheValue
59 * Changes the "strength" of value references for subsequent {@code getInstance()} calls.
61 public static void setStrength(Strength strength) { CacheValue.strength = strength;
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
CacheValue.java 19 * depending on the current "strength" when {@code getInstance()} was called.
36 * "Strength" of holding a value in CacheValue instances.
37 * The default strength is {@code SOFT}.
39 public enum Strength {
51 private static volatile Strength strength = Strength.SOFT; field in class:CacheValue
57 * Changes the "strength" of value references for subsequent {@code getInstance()} calls.
59 public static void setStrength(Strength strength) { CacheValue.strength = strength;
    [all...]
  /external/guava/guava-tests/test/com/google/common/cache/
CacheBuilderFactory.java 22 import com.google.common.cache.LocalCache.Strength;
48 private Set<Strength> keyStrengths = Sets.newHashSet((Strength) null);
49 private Set<Strength> valueStrengths = Sets.newHashSet((Strength) null);
81 CacheBuilderFactory withKeyStrengths(Set<Strength> keyStrengths) {
83 Preconditions.checkArgument(!this.keyStrengths.contains(Strength.SOFT));
87 CacheBuilderFactory withValueStrengths(Set<Strength> valueStrengths) {
107 (Strength) combination.get(6),
108 (Strength) combination.get(7))
    [all...]
CacheReferencesTest.java 17 import static com.google.common.cache.LocalCache.Strength.STRONG;
22 import com.google.common.cache.LocalCache.Strength;
48 .withKeyStrengths(ImmutableSet.of(STRONG, Strength.WEAK))
49 .withValueStrengths(ImmutableSet.of(STRONG, Strength.WEAK, Strength.SOFT));
64 // maintain strong refs so these won't be collected, regardless of cache's key/value strength
CacheBuilderSpecTest.java 23 import com.google.common.cache.LocalCache.Strength;
155 assertEquals(Strength.WEAK, spec.keyStrength);
188 assertEquals(Strength.SOFT, spec.valueStrength);
211 assertEquals(Strength.WEAK, spec.valueStrength);
401 assertEquals(Strength.WEAK, spec.keyStrength);
402 assertEquals(Strength.WEAK, spec.valueStrength);
425 assertEquals(Strength.WEAK, spec.keyStrength);
426 assertEquals(Strength.SOFT, spec.valueStrength);
EmptyCachesTest.java 25 import com.google.common.cache.LocalCache.Strength;
364 .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
365 .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
PopulatedCachesTest.java 26 import com.google.common.cache.LocalCache.Strength;
315 .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
316 .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
LocalCacheTest.java 42 import com.google.common.cache.LocalCache.Strength;
154 assertSame(Strength.STRONG, map.keyStrength);
155 assertSame(Strength.STRONG, map.valueStrength);
349 checkStrength(map, Strength.WEAK, Strength.STRONG);
355 checkStrength(map, Strength.STRONG, Strength.WEAK);
361 checkStrength(map, Strength.STRONG, Strength.SOFT);
366 LocalCache<Object, Object> map, Strength keyStrength, Strength valueStrength)
    [all...]
  /external/guava/guava/src/com/google/common/collect/
MapMaker.java 20 import static com.google.common.collect.MapMakerInternalMap.Strength.SOFT;
30 import com.google.common.collect.MapMakerInternalMap.Strength;
120 Strength keyStrength;
121 Strength valueStrength;
259 * @throws IllegalStateException if the key strength was already set
265 return setKeyStrength(Strength.WEAK);
268 MapMaker setKeyStrength(Strength strength) {
269 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength);
270 keyStrength = checkNotNull(strength);
    [all...]
ComputingConcurrentHashMap.java 391 ComputingSerializationProxy(Strength keyStrength, Strength valueStrength,
MapMakerInternalMap.java 162 final Strength keyStrength;
165 final Strength valueStrength;
282 return keyStrength != Strength.STRONG;
286 return valueStrength != Strength.STRONG;
289 enum Strength {
335 * Creates a reference for the given value according to this value strength.
342 * at this strength. This strategy will be used unless the user explicitly specifies an
476 static EntryFactory getFactory(Strength keyStrength, boolean expireAfterWrite,
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
CacheBuilder.java 32 import com.google.common.cache.LocalCache.Strength;
219 Strength keyStrength;
220 Strength valueStrength;
356 CacheBuilder<K, V> setKeyStrength(Strength strength) {
357 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength);
358 keyStrength = checkNotNull(strength);
362 Strength getKeyStrength() {
363 return MoreObjects.firstNonNull(keyStrength, Strength.STRONG);
366 CacheBuilder<K, V> setValueStrength(Strength strength)
    [all...]
LocalCache.java 501 * Any updates to LocalCache.Strength used in CacheBuilder need to be matched in this class for
504 enum Strength {
  /external/guava/guava/src/com/google/common/cache/
CacheBuilder.java 34 import com.google.common.cache.LocalCache.Strength;
225 Strength keyStrength;
226 Strength valueStrength;
514 * @throws IllegalStateException if the key strength was already set
518 return setKeyStrength(Strength.WEAK);
521 CacheBuilder<K, V> setKeyStrength(Strength strength) {
522 checkState(keyStrength == null, "Key strength was already set to %s", keyStrength);
523 keyStrength = checkNotNull(strength);
527 Strength getKeyStrength()
    [all...]
CacheBuilderSpec.java 26 import com.google.common.cache.LocalCache.Strength;
102 .put("weakKeys", new KeyStrengthParser(Strength.WEAK))
103 .put("softValues", new ValueStrengthParser(Strength.SOFT))
104 .put("weakValues", new ValueStrengthParser(Strength.WEAK))
116 @VisibleForTesting Strength keyStrength;
117 @VisibleForTesting Strength valueStrength;
365 private final Strength strength; field in class:CacheBuilderSpec.KeyStrengthParser
367 public KeyStrengthParser(Strength strength) {
381 private final Strength strength; field in class:CacheBuilderSpec.ValueStrengthParser
    [all...]
LocalCache.java 184 final Strength keyStrength;
187 final Strength valueStrength;
365 return keyStrength != Strength.STRONG;
369 return valueStrength != Strength.STRONG;
372 enum Strength {
426 * Creates a reference for the given value according to this value strength.
433 * at this strength. This strategy will be used unless the user explicitly specifies an
566 static EntryFactory getFactory(Strength keyStrength, boolean usesAccessQueue,
568 int flags = ((keyStrength == Strength.WEAK) ? WEAK_MASK : 0)
    [all...]
  /external/v8/benchmarks/
deltablue.js 97 * New strengths may be inserted in the strength hierarchy without
101 function Strength(strengthValue, name) {
106 Strength.stronger = function (s1, s2) {
110 Strength.weaker = function (s1, s2) {
114 Strength.weakestOf = function (s1, s2) {
118 Strength.strongest = function (s1, s2) {
122 Strength.prototype.nextWeaker = function () {
124 case 0: return Strength.STRONG_PREFERRED;
125 case 1: return Strength.PREFERRED;
126 case 2: return Strength.STRONG_DEFAULT
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
ConcurrentHashMultisetTest.java 19 import static com.google.common.collect.MapMakerInternalMap.Strength.STRONG;
20 import static com.google.common.collect.MapMakerInternalMap.Strength.WEAK;
372 MapMakerInternalMap.Strength keyStrength) {
411 MapMakerInternalMap.Strength keyStrength) {
MapMakerInternalMapTest.java 34 import com.google.common.collect.MapMakerInternalMap.Strength;
79 assertSame(Strength.STRONG, map.keyStrength);
80 assertSame(Strength.STRONG, map.valueStrength);
226 checkStrength(map, Strength.WEAK, Strength.STRONG);
232 checkStrength(map, Strength.STRONG, Strength.WEAK);
238 checkStrength(map, Strength.STRONG, Strength.SOFT);
243 MapMakerInternalMap<Object, Object> map, Strength keyStrength, Strength valueStrength)
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
ZygoteInit.java 163 CacheValue.setStrength(CacheValue.Strength.STRONG);
175 CacheValue.setStrength(CacheValue.Strength.SOFT);
    [all...]
  /prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/sonatype/sisu/sisu-guice/2.1.7/
sisu-guice-2.1.7-noaop.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/haha/haha/2.0.2/
haha-2.0.2.jar 
  /prebuilts/tools/common/m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/
sisu-guice-2.1.7-noaop.jar 

Completed in 2545 milliseconds

1 2 3 4 5