Home
last modified time | relevance | path

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

123

/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 …]
DLocalLoadingCacheTest.java80 cache.getUnchecked(one); in testStats()
93 cache.getUnchecked(one); in testStats()
104 cache.getUnchecked(two); in testStats()
118 cache.getUnchecked(three); in testStats()
181 cache.getUnchecked(one); in testNoStats()
184 cache.getUnchecked(one); in testNoStats()
188 cache.getUnchecked(two); in testNoStats()
192 cache.getUnchecked(three); in testNoStats()
204 cache.getUnchecked(one); in testRecordStats()
208 cache.getUnchecked(one); in testRecordStats()
[all …]
DAbstractLoadingCacheTest.java55 cache.getUnchecked(new Object()); in testGetUnchecked_checked()
63 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_checked()
87 cache.getUnchecked(new Object()); in testGetUnchecked_unchecked()
95 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_unchecked()
119 cache.getUnchecked(new Object()); in testGetUnchecked_error()
127 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_error()
151 cache.getUnchecked(new Object()); in testGetUnchecked_otherThrowable()
159 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_otherThrowable()
DCacheEvictionTest.java63 cache.getUnchecked(i); in testEviction_maxSizeOneSegment()
80 cache.getUnchecked(i); in testEviction_maxWeightOneSegment()
97 cache.getUnchecked(i); in testEviction_maxSize()
118 cache.getUnchecked(i); in testEviction_maxWeight()
155 assertThat(cache.getUnchecked(1)).isEqualTo(1); in testEviction_maxWeight_zero()
162 assertThat(cache.getUnchecked(2)).isEqualTo(2); in testEviction_maxWeight_zero()
170 assertThat(cache.getUnchecked(4)).isEqualTo(4); in testEviction_maxWeight_zero()
177 assertThat(cache.getUnchecked(5)).isEqualTo(5); in testEviction_maxWeight_zero()
204 assertThat(cache.getUnchecked(2)).isEqualTo(2); in testEviction_maxWeight_entryTooBig()
211 assertThat(cache.getUnchecked(3)).isEqualTo(3); in testEviction_maxWeight_entryTooBig()
[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()
102 cache.getUnchecked(null); in testGetUnchecked_null()
166 cache.getUnchecked(1); in testKeySet_remove()
167 cache.getUnchecked(2); in testKeySet_remove()
240 cache.getUnchecked(1); in testValues_remove()
241 cache.getUnchecked(2); in testValues_remove()
[all …]
DCacheExpirationTest.java82 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in checkExpiration()
87 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in checkExpiration()
134 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
139 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
147 cache.getUnchecked(KEY_PREFIX + 11); in runExpirationTest()
164 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
212 cache.getUnchecked(10).incrementAndGet(); in testRemovalListener_expireAfterWrite()
217 int remaining = cache.getUnchecked(10).get(); in testRemovalListener_expireAfterWrite()
272 cache.getUnchecked(i); in testExpirationOrder_access()
325 cache.getUnchecked(i); in testExpirationOrder_write()
[all …]
DCacheLoadingTest.java119 assertSame(key, cache.getUnchecked(key)); in testLoad()
184 assertSame(one, cache.getUnchecked(key)); in testReload()
199 assertSame(two, cache.getUnchecked(key)); in testReload()
237 assertSame(one, cache.getUnchecked(key)); in testRefresh()
245 assertSame(one, cache.getUnchecked(key)); in testRefresh()
253 assertSame(two, cache.getUnchecked(key)); in testRefresh()
261 assertSame(two, cache.getUnchecked(key)); in testRefresh()
299 assertSame(one, cache.getUnchecked(key)); in testRefresh_getIfPresent()
627 cache.getUnchecked(new Object()); in testLoadNull()
691 assertSame(one, cache.getUnchecked(key)); in testReloadNull()
[all …]
DNullCacheTest.java51 assertSame(computed, cache.getUnchecked(key)); in testGet()
69 assertSame(computed, cache.getUnchecked(key)); in testGet_expireAfterWrite()
87 assertSame(computed, cache.getUnchecked(key)); in testGet_expireAfterAccess()
104 cache.getUnchecked(new Object()); in testGet_computeNull()
123 map.getUnchecked(new Object()); in testGet_runtimeException()
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));
111 assertSame(value1, cache.getUnchecked(key1));
112 assertSame(value2, cache.getUnchecked(key2));
DPopulatedCachesTest.java73 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testContainsKey_found()
93 assertEquals(newValue, cache.getUnchecked(entry.getKey())); in testPut_populated()
94 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPut_populated()
114 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testPutIfAbsent_populated()
115 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPutIfAbsent_populated()
132 assertEquals(newValue, cache.getUnchecked(newKey)); in testPutAll_populated()
151 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testReplace_populated()
269 cache.getUnchecked(1); in testWriteThroughEntry()
346 Object value = cache.getUnchecked(key);
/external/guava/android/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 …]
DLocalLoadingCacheTest.java80 cache.getUnchecked(one); in testStats()
93 cache.getUnchecked(one); in testStats()
104 cache.getUnchecked(two); in testStats()
118 cache.getUnchecked(three); in testStats()
181 cache.getUnchecked(one); in testNoStats()
184 cache.getUnchecked(one); in testNoStats()
188 cache.getUnchecked(two); in testNoStats()
192 cache.getUnchecked(three); in testNoStats()
204 cache.getUnchecked(one); in testRecordStats()
208 cache.getUnchecked(one); in testRecordStats()
[all …]
DAbstractLoadingCacheTest.java55 cache.getUnchecked(new Object()); in testGetUnchecked_checked()
63 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_checked()
87 cache.getUnchecked(new Object()); in testGetUnchecked_unchecked()
95 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_unchecked()
119 cache.getUnchecked(new Object()); in testGetUnchecked_error()
127 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_error()
151 cache.getUnchecked(new Object()); in testGetUnchecked_otherThrowable()
159 assertSame(newValue, cache.getUnchecked(new Object())); in testGetUnchecked_otherThrowable()
DCacheEvictionTest.java63 cache.getUnchecked(i); in testEviction_maxSizeOneSegment()
80 cache.getUnchecked(i); in testEviction_maxWeightOneSegment()
97 cache.getUnchecked(i); in testEviction_maxSize()
118 cache.getUnchecked(i); in testEviction_maxWeight()
155 assertThat(cache.getUnchecked(1)).isEqualTo(1); in testEviction_maxWeight_zero()
162 assertThat(cache.getUnchecked(2)).isEqualTo(2); in testEviction_maxWeight_zero()
170 assertThat(cache.getUnchecked(4)).isEqualTo(4); in testEviction_maxWeight_zero()
177 assertThat(cache.getUnchecked(5)).isEqualTo(5); in testEviction_maxWeight_zero()
204 assertThat(cache.getUnchecked(2)).isEqualTo(2); in testEviction_maxWeight_entryTooBig()
211 assertThat(cache.getUnchecked(3)).isEqualTo(3); in testEviction_maxWeight_entryTooBig()
[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()
102 cache.getUnchecked(null); in testGetUnchecked_null()
166 cache.getUnchecked(1); in testKeySet_remove()
167 cache.getUnchecked(2); in testKeySet_remove()
240 cache.getUnchecked(1); in testValues_remove()
241 cache.getUnchecked(2); in testValues_remove()
[all …]
DCacheExpirationTest.java82 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in checkExpiration()
87 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in checkExpiration()
134 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
139 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
147 cache.getUnchecked(KEY_PREFIX + 11); in runExpirationTest()
164 assertEquals(Integer.valueOf(VALUE_PREFIX + i), cache.getUnchecked(KEY_PREFIX + i)); in runExpirationTest()
212 cache.getUnchecked(10).incrementAndGet(); in testRemovalListener_expireAfterWrite()
217 int remaining = cache.getUnchecked(10).get(); in testRemovalListener_expireAfterWrite()
272 cache.getUnchecked(i); in testExpirationOrder_access()
325 cache.getUnchecked(i); in testExpirationOrder_write()
[all …]
DCacheLoadingTest.java119 assertSame(key, cache.getUnchecked(key)); in testLoad()
184 assertSame(one, cache.getUnchecked(key)); in testReload()
199 assertSame(two, cache.getUnchecked(key)); in testReload()
237 assertSame(one, cache.getUnchecked(key)); in testRefresh()
245 assertSame(one, cache.getUnchecked(key)); in testRefresh()
253 assertSame(two, cache.getUnchecked(key)); in testRefresh()
261 assertSame(two, cache.getUnchecked(key)); in testRefresh()
299 assertSame(one, cache.getUnchecked(key)); in testRefresh_getIfPresent()
627 cache.getUnchecked(new Object()); in testLoadNull()
691 assertSame(one, cache.getUnchecked(key)); in testReloadNull()
[all …]
DNullCacheTest.java51 assertSame(computed, cache.getUnchecked(key)); in testGet()
69 assertSame(computed, cache.getUnchecked(key)); in testGet_expireAfterWrite()
87 assertSame(computed, cache.getUnchecked(key)); in testGet_expireAfterAccess()
104 cache.getUnchecked(new Object()); in testGet_computeNull()
123 map.getUnchecked(new Object()); in testGet_runtimeException()
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));
111 assertSame(value1, cache.getUnchecked(key1));
112 assertSame(value2, cache.getUnchecked(key2));
DPopulatedCachesTest.java73 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testContainsKey_found()
93 assertEquals(newValue, cache.getUnchecked(entry.getKey())); in testPut_populated()
94 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPut_populated()
114 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testPutIfAbsent_populated()
115 assertEquals(entry.getValue(), cache.getUnchecked(newKey)); in testPutIfAbsent_populated()
132 assertEquals(newValue, cache.getUnchecked(newKey)); in testPutAll_populated()
151 assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); in testReplace_populated()
269 cache.getUnchecked(1); in testWriteThroughEntry()
346 Object value = cache.getUnchecked(key);
DCacheBuilderTest.java59 assertEquals(Integer.valueOf(1), cache.getUnchecked("one")); in testNewBuilder()
392 assertSame(key, nullCache.getUnchecked(key)); in testNullCache()
425 cache.getUnchecked("a"); in testRemovalNotification_clear()
435 cache.getUnchecked("b"); in testRemovalNotification_clear()
457 assertEquals("b", cache.getUnchecked("b")); in testRemovalNotification_clear()
493 cache.getUnchecked(s); in testRemovalNotification_clear_basher()
509 cache.getUnchecked(s); in testRemovalNotification_clear_basher()
606 cache.getUnchecked("key" + random.nextInt(nUniqueKeys)); in testRemovalNotification_get_basher()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesGetUncheckedTest.java17 import static com.google.common.util.concurrent.Futures.getUnchecked;
41 assertEquals("foo", getUnchecked(immediateFuture("foo"))); in testGetUnchecked_success()
48 assertEquals("foo", getUnchecked(immediateFuture("foo"))); in testGetUnchecked_interrupted()
59 getUnchecked(future); in testGetUnchecked_cancelled()
67 getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION); in testGetUnchecked_ExecutionExceptionChecked()
76 getUnchecked(FAILED_FUTURE_UNCHECKED_EXCEPTION); in testGetUnchecked_ExecutionExceptionUnchecked()
85 getUnchecked(FAILED_FUTURE_ERROR); in testGetUnchecked_ExecutionExceptionError()
94 getUnchecked(FAILED_FUTURE_OTHER_THROWABLE); in testGetUnchecked_ExecutionExceptionOtherThrowable()
103 getUnchecked(RUNTIME_EXCEPTION_FUTURE); in testGetUnchecked_RuntimeException()
112 getUnchecked(ERROR_FUTURE); in testGetUnchecked_Error()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DFuturesGetUncheckedTest.java17 import static com.google.common.util.concurrent.Futures.getUnchecked;
41 assertEquals("foo", getUnchecked(immediateFuture("foo"))); in testGetUnchecked_success()
48 assertEquals("foo", getUnchecked(immediateFuture("foo"))); in testGetUnchecked_interrupted()
59 getUnchecked(future); in testGetUnchecked_cancelled()
67 getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION); in testGetUnchecked_ExecutionExceptionChecked()
76 getUnchecked(FAILED_FUTURE_UNCHECKED_EXCEPTION); in testGetUnchecked_ExecutionExceptionUnchecked()
85 getUnchecked(FAILED_FUTURE_ERROR); in testGetUnchecked_ExecutionExceptionError()
94 getUnchecked(FAILED_FUTURE_OTHER_THROWABLE); in testGetUnchecked_ExecutionExceptionOtherThrowable()
103 getUnchecked(RUNTIME_EXCEPTION_FUTURE); in testGetUnchecked_RuntimeException()
112 getUnchecked(ERROR_FUTURE); in testGetUnchecked_Error()
/external/clang/include/clang/AST/
DASTTypeTraits.h239 const T &getUnchecked() const {
240 return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
277 return getUnchecked<QualType>().getAsOpaquePtr() <
278 Other.getUnchecked<QualType>().getAsOpaquePtr();
281 auto TLA = getUnchecked<TypeLoc>();
282 auto TLB = Other.getUnchecked<TypeLoc>();
291 auto NNSLA = getUnchecked<NestedNameSpecifierLoc>();
292 auto NNSLB = Other.getUnchecked<NestedNameSpecifierLoc>();
310 return getUnchecked<QualType>() == Other.getUnchecked<QualType>();
313 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>();
[all …]
/external/llvm-project/clang/include/clang/AST/
DASTTypeTraits.h257 const T &getUnchecked() const {
258 return BaseConverter<T>::getUnchecked(NodeKind, &Storage);
295 return getUnchecked<QualType>().getAsOpaquePtr() <
296 Other.getUnchecked<QualType>().getAsOpaquePtr();
299 auto TLA = getUnchecked<TypeLoc>();
300 auto TLB = Other.getUnchecked<TypeLoc>();
309 auto NNSLA = getUnchecked<NestedNameSpecifierLoc>();
310 auto NNSLB = Other.getUnchecked<NestedNameSpecifierLoc>();
328 return getUnchecked<QualType>() == Other.getUnchecked<QualType>();
331 return getUnchecked<TypeLoc>() == Other.getUnchecked<TypeLoc>();
[all …]

123