Searched refs:cache (Results 1 - 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/util/
H A DBasicLruCacheTest.java28 BasicLruCache<String, String> cache = newCreatingCache();
29 String created = cache.get("aa");
34 BasicLruCache<String, String> cache = newCreatingCache();
35 cache.put("aa", "put-aa");
36 assertEquals("put-aa", cache.get("aa"));
48 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(3);
50 cache.put(null, "A");
57 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(3);
59 cache.put("a", null);
66 BasicLruCache<String, String> cache
136 assertSnapshot(BasicLruCache<T, T> cache, T... keysAndValues) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DAddressCache.java22 * Implements caching for {@code InetAddress}. We use a unified cache for both positive and negative
23 * cache entries.
31 * When the cache contains more entries than this, we start dropping the oldest ones.
36 // The TTL for the Java-level cache is short, just 2s.
39 // The actual cache.
40 private final BasicLruCache<AddressCacheKey, AddressCacheEntry> cache field in class:AddressCache
91 * Removes all entries from the cache.
94 cache.evictAll();
103 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId));
104 // Do we have a valid cache entr
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_GetLocal.java35 static Hashtable<String, File> cache = new Hashtable<String, File>(20); field in class:Support_GetLocal
40 File temp = cache.get(url);
53 cache.put(url, temp);
60 File temp = cache.get(url);
73 cache.put(url, temp);
/libcore/luni/src/main/java/libcore/reflect/
H A DAnnotationFactory.java51 private static final transient Map<Class<? extends Annotation>, AnnotationMember[]> cache = field in class:AnnotationFactory
59 synchronized (cache) {
60 AnnotationMember[] desc = cache.get(annotationType);
80 synchronized (cache) {
81 cache.put(annotationType, desc);
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfoDB.java76 private final BasicLruCache<String, ZoneInfo> cache = field in class:ZoneInfoDB.TzData
229 // This creates a TimeZone, which is quite expensive. Hence the cache.
230 // Note that icu4c does the same (without the cache), so if you're
234 rawUtcOffsetsCache[i] = cache.get(ids[i]).getRawOffset();
248 ZoneInfo zoneInfo = cache.get(id);
249 // The object from the cache is cloned because TimeZone / ZoneInfo are mutable.
/libcore/luni/src/main/java/java/util/
H A DResourceBundle.java112 private static final WeakHashMap<Object, Hashtable<String, ResourceBundle>> cache field in class:ResourceBundle
220 cache.clear();
553 synchronized (cache) {
554 Hashtable<String, ResourceBundle> loaderCache = cache.get(cacheKey);
557 cache.put(cacheKey, loaderCache);
609 cache.remove(ClassLoader.getSystemClassLoader());
616 cache.remove(loader);
730 * a constant that indicates cache will not be used.
735 * a constant that indicates cache will not be expired.
/libcore/libart/src/main/java/java/lang/
H A DString.java1812 * where the needle is a constant string, may compute the values cache, md2
1818 int cache, int md2, char lastChar) {
1833 if ((cache & (1 << haystack[i])) == 0) {
1843 if ((cache & (1 << haystack[i])) == 0) {
1817 indexOf(String haystackString, String needleString, int cache, int md2, char lastChar) argument
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java86 private HttpResponseCache cache; field in class:URLConnectionTest
106 if (cache != null) {
107 cache.delete();
108 cache = null;
686 cache = new HttpResponseCache(cacheDir, Integer.MAX_VALUE);
687 ResponseCache.setDefault(cache);
1962 * Don't explode if the cache returns a null body. http://b/3373699
/libcore/support/src/test/java/tests/resources/
H A Djunit4-4.3.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...

Completed in 214 milliseconds