Home
last modified time | relevance | path

Searched refs:LoadingCache (Results 1 – 25 of 34) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/cache/
DEmptyCachesTest.java47 for (LoadingCache<Object, Object> cache : caches()) { in testEmpty()
53 for (LoadingCache<Object, Object> cache : caches()) { in testInvalidate_empty()
64 for (LoadingCache<Object, Object> cache : caches()) { in testInvalidateAll_empty()
74 for (LoadingCache<Object, Object> cache : caches()) { in testEquals_null()
91 for (LoadingCache<Object, Object> cache : caches()) { in testGet_null()
103 for (LoadingCache<Object, Object> cache : caches()) { in testGetUnchecked_null()
117 for (LoadingCache<Object, Object> cache : caches()) { in testKeySet_nullToArray()
130 for (LoadingCache<Object, Object> cache : caches()) { in testKeySet_addNotSupported()
148 for (LoadingCache<Object, Object> cache : caches()) { in testKeySet_clear()
159 for (LoadingCache<Object, Object> cache : caches()) { in testKeySet_empty_remove()
[all …]
DCacheExpirationTest.java53 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiration_expireAfterWrite()
65 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiration_expireAfterAccess()
73 private void checkExpiration(LoadingCache<String, Integer> cache, WatchedCreatorLoader loader, in checkExpiration()
86 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in checkExpiration()
92 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in checkExpiration()
102 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiringGet_expireAfterWrite()
114 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiringGet_expireAfterAccess()
122 private void runExpirationTest(LoadingCache<String, Integer> cache, WatchedCreatorLoader loader, in runExpirationTest()
146 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in runExpirationTest()
161 CacheTesting.expireEntries((LoadingCache<?, ?>) cache, EXPIRING_TIME, ticker); in runExpirationTest()
[all …]
DCacheEvictionTest.java46 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()
151 final LoadingCache<Integer, Integer> cache = 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 …]
DPopulatedCachesTest.java57 for (LoadingCache<Object, Object> cache : caches()) { in testSize_populated()
67 for (LoadingCache<Object, Object> cache : caches()) { in testContainsKey_found()
83 for (LoadingCache<Object, Object> cache : caches()) { in testPut_populated()
106 for (LoadingCache<Object, Object> cache : caches()) { in testPutIfAbsent_populated()
127 for (LoadingCache<Object, Object> cache : caches()) { in testPutAll_populated()
141 for (LoadingCache<Object, Object> cache : caches()) { in testReplace_populated()
162 for (LoadingCache<Object, Object> cache : caches()) { in testRemove_byKey()
177 for (LoadingCache<Object, Object> cache : caches()) { in testRemove_byKeyAndValue()
193 for (LoadingCache<Object, Object> cache : caches()) { in testKeySet_populated()
220 for (LoadingCache<Object, Object> cache : caches()) { in testValues_populated()
[all …]
DCacheReferencesTest.java52 private Iterable<LoadingCache<Key, String>> caches() { in caches()
55 new Function<CacheBuilder<Object, Object>, LoadingCache<Key, String>>() { in caches()
56 @Override public LoadingCache<Key, String> apply(CacheBuilder<Object, Object> builder) { in caches()
63 for (LoadingCache<Key, String> cache : caches()) {
75 for (LoadingCache<Key, String> cache : caches()) {
89 for (LoadingCache<Key, String> cache : caches()) {
104 for (LoadingCache<Key, String> cache : caches()) {
123 private void assertCleanup(LoadingCache<Integer, String> cache,
DForwardingLoadingCacheTest.java37 private LoadingCache<String, Boolean> forward;
38 private LoadingCache<String, Boolean> mock;
48 mock = createMock(LoadingCache.class); in setUp()
50 @Override protected LoadingCache<String, Boolean> delegate() { in setUp()
138 protected LoadingCache<K, V> delegate() { in delegate()
DNullCacheTest.java44 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()
DCacheLoadingTest.java103 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 …]
DAbstractLoadingCacheTest.java37 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_checked()
68 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_unchecked()
99 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_error()
130 LoadingCache<Object, Object> cache = new AbstractLoadingCache<Object, Object>() { in testGetUnchecked_otherThrowable()
DCacheBuilderTest.java58 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testNewBuilder()
85 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testInitialCapacity_small()
99 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testInitialCapacity_smallest()
137 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testConcurrencyLevel_small()
369 LoadingCache<Object, Object> nullCache = new CacheBuilder<Object, Object>() in testNullCache()
399 final LoadingCache<String, String> cache = CacheBuilder.newBuilder() in testRemovalNotification_clear()
456 final LoadingCache <String, String> cache = CacheBuilder.newBuilder() in testRemovalNotification_clear_basher()
557 final LoadingCache<String, String> cache = CacheBuilder.newBuilder() in testRemovalNotification_get_basher()
607 LoadingCache<?, ?> cache = CacheBuilder.newBuilder().build(identityLoader()); in testSizingDefaults()
DLocalLoadingCacheTest.java309 final AtomicReference<LoadingCache<Integer, String>> cacheRef = in testRecursiveComputation()
310 new AtomicReference<LoadingCache<Integer, String>>(); in testRecursiveComputation()
322 LoadingCache<Integer, String> recursiveCache = new CacheBuilder<Integer, String>() in testRecursiveComputation()
/external/guava/guava/src/com/google/common/cache/
DForwardingLoadingCache.java38 extends ForwardingCache<K, V> implements LoadingCache<K, V> {
44 protected abstract LoadingCache<K, V> delegate(); in delegate()
80 private final LoadingCache<K, V> delegate;
82 protected SimpleForwardingLoadingCache(LoadingCache<K, V> delegate) { in SimpleForwardingLoadingCache()
87 protected final LoadingCache<K, V> delegate() { in delegate()
DLoadingCache.java49 public interface LoadingCache<K, V> extends Cache<K, V>, Function<K, V> { interface
DAbstractLoadingCache.java45 extends AbstractCache<K, V> implements LoadingCache<K, V> {
/external/guice/core/src/com/google/inject/internal/
DFailableCache.java21 import com.google.common.cache.LoadingCache;
31 private final LoadingCache<K, Object> delegate =
DProvisionListenerCallbackStore.java21 import com.google.common.cache.LoadingCache;
48 private final LoadingCache<KeyBinding, ProvisionListenerStackCallback<?>> cache =
DAnnotations.java27 import com.google.common.cache.LoadingCache;
72 private static final LoadingCache<Class<? extends Annotation>, Annotation> cache =
264 final LoadingCache<Class<? extends Annotation>, Boolean> cache =
DBytecodeGen.java23 import com.google.common.cache.LoadingCache;
129 private static final LoadingCache<ClassLoader, ClassLoader> CLASS_LOADER_CACHE;
/external/guava/guava-tests/benchmark/com/google/common/cache/
DMapMakerComparisonBenchmark.java40 private final LoadingCache<Object, Object> loadingCache =
42 private final LoadingCache<Object, Object> loadingCacheNoStats =
DLoadingCacheSingleThreadBenchmark.java44 LoadingCache<Integer, Integer> cache;
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassPath.java38 import com.google.common.cache.LoadingCache;
145 …@Nonnull private LoadingCache<String, TypeProto> loadedClasses = CacheBuilder.newBuilder().build(c…
/external/guava/guava/src/com/google/common/eventbus/
DAnnotatedSubscriberFinder.java23 import com.google.common.cache.LoadingCache;
53 private static final LoadingCache<Class<?>, ImmutableList<Method>> subscriberMethodsCache =
DEventBus.java26 import com.google.common.cache.LoadingCache;
121 private static final LoadingCache<Class<?>, Set<Class<?>>> flattenHierarchyCache =
/external/guice/core/src/com/google/inject/internal/util/
DStackTraceElements.java21 import com.google.common.cache.LoadingCache;
40 static final LoadingCache<Class<?>, LineNumbers> lineNumbersCache =
/external/cldr/tools/java/org/unicode/cldr/util/
DCLDRConfig.java20 import com.google.common.cache.LoadingCache;
171 private LoadingCache<String, CLDRFile> cldrFileResolvedCache = CacheBuilder.newBuilder()
181 private LoadingCache<String, CLDRFile> cldrFileUnresolvedCache = CacheBuilder.newBuilder()

12