/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilderTest.java | 40 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testNewBuilder() 49 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>(); in testInitialCapacity_negative() 57 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().initialCapacity(16); in testInitialCapacity_setTwice() 66 CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE); in testInitialCapacity_large() 72 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>(); in testConcurrencyLevel_zero() 80 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().concurrencyLevel(16); in testConcurrencyLevel_setTwice() 89 CacheBuilder.newBuilder().concurrencyLevel(Integer.MAX_VALUE); in testConcurrencyLevel_large() 94 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>(); in testMaximumSize_negative() 102 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().maximumSize(16); in testMaximumSize_setTwice() 111 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>(); in testTimeToLive_negative() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderTest.java | 58 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testNewBuilder() 67 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>(); in testInitialCapacity_negative() 75 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().initialCapacity(16); in testInitialCapacity_setTwice() 85 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testInitialCapacity_small() 99 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testInitialCapacity_smallest() 113 CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE); in testInitialCapacity_large() 119 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>(); in testConcurrencyLevel_zero() 127 CacheBuilder<Object, Object> builder = new CacheBuilder<Object, Object>().concurrencyLevel(16); in testConcurrencyLevel_setTwice() 137 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testConcurrencyLevel_small() 145 CacheBuilder.newBuilder().concurrencyLevel(Integer.MAX_VALUE); in testConcurrencyLevel_large() [all …]
|
D | CacheBuilderSpecTest.java | 47 assertCacheBuilderEquivalence(CacheBuilder.newBuilder(), CacheBuilder.from(spec)); in testParse_empty() 61 CacheBuilder.newBuilder().initialCapacity(10), CacheBuilder.from(spec)); in testParse_initialCapacity() 83 CacheBuilder.newBuilder().maximumSize(9000), CacheBuilder.from(spec)); in testParse_maximumSize() 105 CacheBuilder.newBuilder().maximumWeight(9000), CacheBuilder.from(spec)); in testParse_maximumWeight() 137 CacheBuilder.newBuilder().concurrencyLevel(32), CacheBuilder.from(spec)); in testParse_concurrencyLevel() 160 CacheBuilder.newBuilder().weakKeys(), CacheBuilder.from(spec)); in testParse_weakKeys() 192 CacheBuilder.newBuilder().softValues(), CacheBuilder.from(spec)); in testParse_softValues() 215 CacheBuilder.newBuilder().weakValues(), CacheBuilder.from(spec)); in testParse_weakValues() 269 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.DAYS), CacheBuilder.from(spec)); in testParse_writeExpirationDays() 277 CacheBuilder.newBuilder().expireAfterWrite(150L, TimeUnit.HOURS), CacheBuilder.from(spec)); in testParse_writeExpirationHours() [all …]
|
D | CacheEvictionTest.java | 46 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testEviction_setMaxSegmentSize() 56 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testEviction_setMaxSegmentWeight() 66 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxSizeOneSegment() 81 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxWeightOneSegment() 98 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxSize() 117 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxWeight() 137 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testEviction_overflow() 152 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).build(loader); in testUpdateRecency_onGet() 164 final LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testUpdateRecency_onInvalidate() 181 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_lru() [all …]
|
D | CacheBuilderGwtTest.java | 57 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testLoader() 84 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testSizeConstraint() 119 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testLoadingCache() 137 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterAccess() 154 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterWrite() 181 final Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpireAfterWriteAndAccess() 212 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testMapMethods() 279 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testRemovalListener() 318 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testPutAll() 336 Cache<Integer, Integer> cache = CacheBuilder.newBuilder() in testInvalidate() [all …]
|
D | LocalLoadingCacheTest.java | 19 import static com.google.common.cache.CacheBuilder.EMPTY_STATS; 46 CacheBuilder<K, V> builder, CacheLoader<? super K, V> loader) { in makeCache() 50 private CacheBuilder<Object, Object> createCacheBuilder() { in createCacheBuilder() 51 return CacheBuilder.newBuilder().recordStats(); in createCacheBuilder() 78 CacheBuilder<Object, Object> builder = createCacheBuilder() in testStats() 138 CacheBuilder<Object, Object> builder = createCacheBuilder() in testStatsNoops() 181 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder() in testNoStats() 204 CacheBuilder<Object, Object> builder = createCacheBuilder() in testRecordStats() 235 CacheBuilder<Object, Object> builder = createCacheBuilder(); in testAsMap() 292 CacheBuilder<Object, Object> builder = createCacheBuilder() in testAsMapRecency() [all …]
|
D | PackageSanityTests.java | 33 setDefault(LocalCache.class, new LocalCache<Object, Object>(CacheBuilder.newBuilder(), null)); in PackageSanityTests() 34 setDefault(CacheBuilder.class, CacheBuilder.newBuilder()); in PackageSanityTests()
|
D | NullCacheTest.java | 44 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet() 61 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet_expireAfterWrite() 78 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet_expireAfterAccess() 94 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet_computeNull() 110 LoadingCache<Object, Object> map = CacheBuilder.newBuilder() in testGet_runtimeException()
|
D | CacheLoadingTest.java | 103 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testLoad() 177 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build(loader); in testReload() 224 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testRefresh() 284 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testRefresh_getIfPresent() 329 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testBulkLoad_default() 377 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().recordStats().build(loader); in testBulkLoad_loadAll() 439 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_extra() 474 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_clobber() 512 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_clobberNullValue() 550 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_clobberNullKey() [all …]
|
D | CacheExpirationTest.java | 53 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiration_expireAfterWrite() 65 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiration_expireAfterAccess() 102 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiringGet_expireAfterWrite() 114 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiringGet_expireAfterAccess() 195 LoadingCache<Integer, AtomicInteger> cache = CacheBuilder.newBuilder() in testRemovalListener_expireAfterWrite() 216 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testRemovalScheduler_expireAfterWrite() 228 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testRemovalScheduler_expireAfterAccess() 240 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testRemovalScheduler_expireAfterBoth() 253 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpirationOrder_access() 305 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpirationOrder_write() [all …]
|
D | CacheBuilderFactory.java | 92 Iterable<CacheBuilder<Object, Object>> buildAllPermutations() { in buildAllPermutations() 98 new Function<List<Object>, CacheBuilder<Object, Object>>() { in buildAllPermutations() 99 @Override public CacheBuilder<Object, Object> apply(List<Object> combination) { in buildAllPermutations() 150 private CacheBuilder<Object, Object> createCacheBuilder( 155 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
|
D | LocalCacheTest.java | 19 import static com.google.common.cache.CacheBuilder.NULL_TICKER; 141 CacheBuilder<? super K, ? super V> builder) { in makeLocalCache() 145 private static CacheBuilder<Object, Object> createCacheBuilder() { in createCacheBuilder() 146 return new CacheBuilder<Object, Object>(); in createCacheBuilder() 162 assertEquals(CacheBuilder.UNSET_INT, map.maxWeight); in testDefaults() 165 assertSame(CacheBuilder.NullListener.INSTANCE, map.removalListener); in testDefaults() 450 for (CacheBuilder<Object, Object> builder : allEvictingMakers()) { in testRecordReadOnCompute() 506 CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1); in testComputePartiallyCollectedKey() 535 CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1); in testComputePartiallyCollectedValue() 564 CacheBuilder<Object, Object> builder = createCacheBuilder() in testComputeExpiredEntry() [all …]
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 152 public final class CacheBuilder<K, V> { class 213 private static final Logger logger = Logger.getLogger(CacheBuilder.class.getName()); 241 CacheBuilder() {} in CacheBuilder() method in CacheBuilder 247 public static CacheBuilder<Object, Object> newBuilder() { in newBuilder() 248 return new CacheBuilder<Object, Object>(); in newBuilder() 258 public static CacheBuilder<Object, Object> from(CacheBuilderSpec spec) { in from() 272 public static CacheBuilder<Object, Object> from(String spec) { in from() 280 CacheBuilder<K, V> lenientParsing() { in lenientParsing() 292 CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) { in keyEquivalence() 310 CacheBuilder<K, V> valueEquivalence(Equivalence<Object> equivalence) { in valueEquivalence() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilder.java | 146 public final class CacheBuilder<K, V> { class 207 private static final Logger logger = Logger.getLogger(CacheBuilder.class.getName()); 235 CacheBuilder() {} in CacheBuilder() method in CacheBuilder 241 public static CacheBuilder<Object, Object> newBuilder() { in newBuilder() 242 return new CacheBuilder<Object, Object>(); in newBuilder() 263 public CacheBuilder<K, V> initialCapacity(int initialCapacity) { in initialCapacity() 305 public CacheBuilder<K, V> concurrencyLevel(int concurrencyLevel) { in concurrencyLevel() 332 public CacheBuilder<K, V> maximumSize(long size) { in maximumSize() 356 CacheBuilder<K, V> setKeyStrength(Strength strength) { in setKeyStrength() 366 CacheBuilder<K, V> setValueStrength(Strength strength) { in setValueStrength() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/cache/ |
D | MapMakerComparisonBenchmark.java | 41 CacheBuilder.newBuilder().recordStats().build(CacheLoader.from(IDENTITY)); 43 CacheBuilder.newBuilder().build(CacheLoader.from(IDENTITY)); 47 private final Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build(); 48 private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build();
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | PatternCache.java | 8 import com.google.common.cache.CacheBuilder; 48 …cache = CacheBuilder.newBuilder().initialCapacity(INITIAL_CAPACITY).maximumSize(MAX_CAPACITY).reco… 50 …cache = CacheBuilder.newBuilder().initialCapacity(INITIAL_CAPACITY).maximumSize(MAX_CAPACITY).buil…
|
D | CoverageInfo.java | 10 import com.google.common.cache.CacheBuilder; 65 …private Cache<String, CoverageLevel2> localeToCoverageLevelInfo = CacheBuilder.newBuilder().maximu… 66 …private Cache<XPathWithLocation, Level> coverageCache = CacheBuilder.newBuilder().maximumSize(MAXL…
|
D | SimpleFactory.java | 19 import com.google.common.cache.CacheBuilder; 331 factoryCache = CacheBuilder.newBuilder().maximumSize(FACTORY_CACHE_LIMIT).build(); in make() 338 … factoryLookupMap = CacheBuilder.newBuilder().maximumSize(FACTORY_CACHE_LIMIT).build(); in make() 388 factoryCache = CacheBuilder.newBuilder().maximumSize(FACTORY_CACHE_LIMIT).build(); in make() 393 … factoryLookupMap = CacheBuilder.newBuilder().maximumSize(FACTORY_CACHE_LIMIT).build(); in make() 432 combinedCache = CacheBuilder.newBuilder().maximumSize(CACHE_LIMIT).build(); in SimpleFactory()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ |
D | JavaParserTypeSolver.java | 27 import com.google.common.cache.CacheBuilder; 48 …private Cache<String, Optional<CompilationUnit>> parsedFiles = CacheBuilder.newBuilder().softValue… 49 …private Cache<String, List<CompilationUnit>> parsedDirectories = CacheBuilder.newBuilder().softVal… 50 …ring, SymbolReference<ResolvedReferenceTypeDeclaration>> foundTypes = CacheBuilder.newBuilder().so…
|
/external/opencensus-java/contrib/agent/src/main/java/io/opencensus/contrib/agent/instrumentation/ |
D | ContextStrategyImpl.java | 21 import com.google.common.cache.CacheBuilder; 53 private final Cache<Thread, Context> savedContexts = CacheBuilder.newBuilder().weakKeys().build();
|
/external/guice/core/src/com/google/inject/internal/ |
D | FailableCache.java | 19 import com.google.common.cache.CacheBuilder; 32 CacheBuilder.newBuilder()
|
D | ProvisionListenerCallbackStore.java | 19 import com.google.common.cache.CacheBuilder; 49 CacheBuilder.newBuilder()
|
D | BytecodeGen.java | 21 import com.google.common.cache.CacheBuilder; 132 CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().weakKeys().weakValues();
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | SimpleTestCache.java | 17 import com.google.common.cache.CacheBuilder; 33 …private Cache<CheckCLDR.Options, TestResultBundle> cache = CacheBuilder.newBuilder().maximumSize(C…
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/ |
D | ClassPath.java | 36 import com.google.common.cache.CacheBuilder; 145 …@Nonnull private LoadingCache<String, TypeProto> loadedClasses = CacheBuilder.newBuilder().build(c…
|