Home
last modified time | relevance | path

Searched refs:getUnchecked (Results 1 – 25 of 26) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/cache/
DCacheRefreshTest.java43 assertEquals(Integer.valueOf(i), cache.getUnchecked(i)); in testAutoRefresh()
50 assertEquals(Integer.valueOf(0), cache.getUnchecked(0)); in testAutoRefresh()
51 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); in testAutoRefresh()
52 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
58 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); in testAutoRefresh()
60 assertEquals(Integer.valueOf(1), cache.getUnchecked(1)); in testAutoRefresh()
61 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
68 assertEquals(Integer.valueOf(1), cache.getUnchecked(0)); in testAutoRefresh()
69 assertEquals(Integer.valueOf(-1), cache.getUnchecked(1)); in testAutoRefresh()
70 assertEquals(Integer.valueOf(2), cache.getUnchecked(2)); in testAutoRefresh()
[all …]
DAbstractLoadingCacheTest.java54 cache.getUnchecked(new Object()); in testGetUnchecked_checked()
62 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_checked()
85 cache.getUnchecked(new Object()); in testGetUnchecked_unchecked()
93 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_unchecked()
116 cache.getUnchecked(new Object()); in testGetUnchecked_error()
124 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_error()
147 cache.getUnchecked(new Object()); in testGetUnchecked_otherThrowable()
155 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_otherThrowable()
DLocalLoadingCacheTest.java90 cache.getUnchecked(one); in testStats()
103 cache.getUnchecked(one); in testStats()
114 cache.getUnchecked(two); in testStats()
128 cache.getUnchecked(three); in testStats()
190 cache.getUnchecked(one); in testDisableStats()
193 cache.getUnchecked(one); in testDisableStats()
197 cache.getUnchecked(two); in testDisableStats()
201 cache.getUnchecked(three); in testDisableStats()
237 cache.getUnchecked(one); in testAsMap()
245 cache.getUnchecked(one); in testAsMap()
[all …]
DEmptyCachesTest.java52 cache.getUnchecked("a"); in testInvalidate_empty()
53 cache.getUnchecked("b"); in testInvalidate_empty()
63 cache.getUnchecked("a"); in testInvalidateAll_empty()
64 cache.getUnchecked("b"); in testInvalidateAll_empty()
65 cache.getUnchecked("c"); in testInvalidateAll_empty()
103 cache.getUnchecked(null); in testGetUnchecked_null()
171 cache.getUnchecked(1); in testKeySet_remove()
172 cache.getUnchecked(2); in testKeySet_remove()
248 cache.getUnchecked(1); in testValues_remove()
249 cache.getUnchecked(2); in testValues_remove()
[all …]
DCacheReferencesTest.java68 assertSame(value, cache.getUnchecked(key));
79 assertSame(value, cache.getUnchecked(key));
95 assertSame(value1, cache.getUnchecked(key1));
96 assertSame(value2, cache.getUnchecked(key2));
110 assertSame(value1, cache.getUnchecked(key1));
111 assertSame(value2, cache.getUnchecked(key2));
141 String value1 = cache.getUnchecked(key1);
142 String value2 = cache.getUnchecked(key2);
148 assertSame(value2, cache.getUnchecked(key2));
DCacheExpirationTest.java77 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in checkExpiration()
82 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in checkExpiration()
126 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
131 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
139 cache.getUnchecked(KEY_PREFIX + 11); in runExpirationTest()
156 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
203 cache.getUnchecked(10).incrementAndGet(); in testRemovalListener_expireAfterWrite()
208 int remaining = cache.getUnchecked(10).get(); in testRemovalListener_expireAfterWrite()
259 cache.getUnchecked(i); in testExpirationOrder_access()
311 cache.getUnchecked(i); in testExpirationOrder_write()
[all …]
DCacheLoadingTest.java117 assertSame(key, cache.getUnchecked(key)); in testLoad()
181 assertSame(one, cache.getUnchecked(key)); in testReload()
196 assertSame(two, cache.getUnchecked(key)); in testReload()
231 assertSame(one, cache.getUnchecked(key)); in testRefresh()
239 assertSame(one, cache.getUnchecked(key)); in testRefresh()
247 assertSame(two, cache.getUnchecked(key)); in testRefresh()
255 assertSame(two, cache.getUnchecked(key)); in testRefresh()
290 assertSame(one, cache.getUnchecked(key)); in testRefresh_getIfPresent()
607 cache.getUnchecked(new Object()); in testLoadNull()
667 assertSame(one, cache.getUnchecked(key)); in testReloadNull()
[all …]
DNullCacheTest.java50 assertSame(computed, cache.getUnchecked(key)); in testGet()
67 assertSame(computed, cache.getUnchecked(key)); in testGet_expireAfterWrite()
84 assertSame(computed, cache.getUnchecked(key)); in testGet_expireAfterAccess()
100 cache.getUnchecked(new Object()); in testGet_computeNull()
116 map.getUnchecked(new Object()); in testGet_runtimeException()
DCacheEvictionTest.java71 cache.getUnchecked(i); in testEviction_maxSizeOneSegment()
87 cache.getUnchecked(i); in testEviction_maxWeightOneSegment()
103 cache.getUnchecked(i); in testEviction_maxSize()
123 cache.getUnchecked(i); in testEviction_maxWeight()
142 cache.getUnchecked(entry.getKey()); in testUpdateRecency_onGet()
290 cache.getUnchecked(i); in getAll()
DPopulatedCachesTest.java76 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testContainsKey_found()
96 assertEquals(newValue, cache.getUnchecked(entry.getKey())); in testPut_populated()
97 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPut_populated()
117 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testPutIfAbsent_populated()
118 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPutIfAbsent_populated()
135 assertEquals(newValue, cache.getUnchecked(newKey)); in testPutAll_populated()
154 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testReplace_populated()
276 cache.getUnchecked(1); in testWriteThroughEntry()
350 Object value = cache.getUnchecked(key);
DCacheBuilderTest.java63 assertEquals(Integer.valueOf(1), cache.getUnchecked("one")); in testNewBuilder()
382 assertSame(key, nullCache.getUnchecked(key)); in testNullCache()
412 cache.getUnchecked("a"); in testRemovalNotification_clear()
420 cache.getUnchecked("b"); in testRemovalNotification_clear()
441 assertEquals("b", cache.getUnchecked("b")); in testRemovalNotification_clear()
477 cache.getUnchecked(s); in testRemovalNotification_clear_basher()
489 cache.getUnchecked(s); in testRemovalNotification_clear_basher()
577 cache.getUnchecked("key" + random.nextInt(nUniqueKeys)); in testRemovalNotification_get_basher()
DForwardingLoadingCacheTest.java64 expect(mock.getUnchecked("key")).andReturn(Boolean.TRUE); in testGetUnchecked()
66 assertSame(Boolean.TRUE, forward.getUnchecked("key")); in testGetUnchecked()
DCacheTesting.java404 map.getUnchecked(i);
/external/guava/guava/src/com/google/common/util/concurrent/
DForwardingService.java68 return Futures.getUnchecked(start()); in standardStartAndWait()
78 return Futures.getUnchecked(stop()); in standardStopAndWait()
DAbstractService.java129 return Futures.getUnchecked(start()); in startAndWait()
134 return Futures.getUnchecked(stop()); in stopAndWait()
DFutures.java1172 public static <V> V getUnchecked(Future<V> future) {
/external/guava/guava/src/com/google/common/cache/
DAbstractLoadingCache.java50 public V getUnchecked(K key) { in getUnchecked() method in AbstractLoadingCache
71 return getUnchecked(key); in apply()
DForwardingLoadingCache.java52 public V getUnchecked(K key) { in getUnchecked() method in ForwardingLoadingCache
53 return delegate().getUnchecked(key); in getUnchecked()
DForwardingCache.java126 public V getUnchecked(K key) { in getUnchecked() method in ForwardingCache
127 return delegate().getUnchecked(key); in getUnchecked()
DAbstractCache.java121 public V getUnchecked(K key) { in getUnchecked() method in AbstractCache
132 return getUnchecked(key); in apply()
DLoadingCache.java96 V getUnchecked(K key); in getUnchecked() method
DCache.java173 @Deprecated V getUnchecked(K key); in getUnchecked() method
DLocalCache.java4717 public V getUnchecked(K key) {
4718 return autoDelegate.getUnchecked(key);
4832 public V getUnchecked(K key) {
4841 return getUnchecked(key);
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java136 public V getUnchecked(K key) { in getUnchecked() method in CacheBuilder.LocalManualCache
146 return getUnchecked(key); in apply()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesTest.java22 import static com.google.common.util.concurrent.Futures.getUnchecked;
1690 assertEquals("foo", getUnchecked(immediateFuture("foo")));
1696 assertEquals("foo", getUnchecked(immediateFuture("foo")));
1707 getUnchecked(future);
1715 getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION);
1724 getUnchecked(FAILED_FUTURE_UNCHECKED_EXCEPTION);
1733 getUnchecked(FAILED_FUTURE_ERROR);
1742 getUnchecked(FAILED_FUTURE_OTHER_THROWABLE);
1751 getUnchecked(RUNTIME_EXCEPTION_FUTURE);

12