Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/main/java/org/apache/harmony/security/fortress/
DDefaultPolicy.java158 …private final Map<Object, Collection<Permission>> cache = new WeakHashMap<Object, Collection<Permi… field in DefaultPolicy
200 Collection<Permission> pc = cache.get(pd); in getPermissions()
203 synchronized (cache) { in getPermissions()
207 pc = cache.get(pd); in getPermissions()
218 cache.put(pd, pc); in getPermissions()
239 Collection<Permission> pc = cache.get(cs); in getPermissions()
242 synchronized (cache) { in getPermissions()
246 pc = cache.get(cs); in getPermissions()
257 cache.put(cs, pc); in getPermissions()
302 synchronized (cache) { in refresh()
[all …]
/libcore/support/src/test/java/tests/support/
DSupport_GetLocal.java35 static Hashtable<String, File> cache = new Hashtable<String, File>(20); field in Support_GetLocal
40 File temp = cache.get(url); in getLocalFile()
53 cache.put(url, temp); in getLocalFile()
60 File temp = cache.get(url); in getExternalLocalFile()
73 cache.put(url, temp); in getExternalLocalFile()
/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
DPlatformAddressFactory.java56 private static PlatformAddress[] cache = new PlatformAddress[CACHE_SIZE]; field in PlatformAddressFactory
83 PlatformAddress cachedObj = cache[(idx + probe) & CACHE_MASK]; in on()
85 return cache[(idx + probe) & CACHE_MASK] = in on()
93 return cache[(idx + replacementIndex) & CACHE_MASK] = in on()
/libcore/luni/src/test/java/libcore/java/net/
DOldResponseCacheTest.java99 TestResponseCache cache = new TestResponseCache(uri, true); in test_get() local
100 ResponseCache.setDefault(cache); in test_get()
111 assertEquals(url.toURI(), cache.getWasCalled); in test_get()
126 TestResponseCache cache = new TestResponseCache( in test_put() local
128 ResponseCache.setDefault(cache); in test_put()
145 assertEquals(url.toURI(), cache.getWasCalled); in test_put()
150 assertEquals(url.toURI(), cache.putWasCalled); in test_put()
DURLConnectionTest.java680 DefaultResponseCache cache = new DefaultResponseCache(); in testResponseCaching() local
681 ResponseCache.setDefault(cache); in testResponseCaching()
691 assertEquals(1, cache.getSuccessCount()); in testResponseCaching()
692 assertEquals(0, cache.getAbortCount()); in testResponseCaching()
699 assertEquals(1, cache.getMissCount()); in testResponseCaching()
700 assertEquals(1, cache.getHitCount()); in testResponseCaching()
701 assertEquals(1, cache.getSuccessCount()); in testResponseCaching()
702 assertEquals(0, cache.getAbortCount()); in testResponseCaching()
776 DefaultResponseCache cache = new DefaultResponseCache(); in testServerPrematureDisconnect() local
777 ResponseCache.setDefault(cache); in testServerPrematureDisconnect()
[all …]
/libcore/luni/src/main/java/java/lang/
DLangAccessImpl.java37 ClassCache<T> cache = clazz.getClassCache(); in getEnumValuesInOrder() local
38 return cache.getEnumValuesInOrder(); in getEnumValuesInOrder()
DClass.java777 ClassCache<T> cache = null; in getClassCache() local
780 cache = cacheRef.get(); in getClassCache()
783 if (cache == null) { in getClassCache()
784 cache = new ClassCache<T>(this); in getClassCache()
785 cacheRef = new SoftReference<ClassCache<T>>(cache); in getClassCache()
788 return cache; in getClassCache()
DString.java2191 int cache, int md2, char lastChar) { in indexOf() argument
2206 if ((cache & (1 << haystack[i])) == 0) { in indexOf()
2216 if ((cache & (1 << haystack[i])) == 0) { in indexOf()
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
DCache.java110 private final Object[] cache; field in Cache
138 cache = new Object[cache_size]; in Cache()
245 return cache[i]; in get()
330 cache[index] = object; in put()
/libcore/luni/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DFileClientSessionCacheTest.java33 final SSLClientSessionCache cache in testMaxSize() local
43 cache.putSessionData(new FakeSession(id + "." + i), in testMaxSize()
/libcore/luni/src/main/java/org/apache/xpath/axes/
DNodeSequence.java589 IteratorCache cache = getCache(); in getLength() local
591 if(cache != null) in getLength()
594 if (cache.isComplete()) { in getLength()
597 NodeVector nv = cache.getVector(); in getLength()
792 IteratorCache cache = (IteratorCache) obj; in setObject() local
793 m_cache = cache; in setObject()
797 super.setObject(cache.getVector()); in setObject()
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
DFileClientSessionCache.java330 FileClientSessionCache.Impl cache = caches.get(directory); in usingDirectory() local
331 if (cache == null) { in usingDirectory()
332 cache = new FileClientSessionCache.Impl(directory); in usingDirectory()
333 caches.put(directory, cache); in usingDirectory()
335 return cache; in usingDirectory()
/libcore/luni/src/main/java/java/util/
DResourceBundle.java113 …private static final WeakHashMap<Object, Hashtable<String, ResourceBundle>> cache = new WeakHashMa… field in ResourceBundle
297 synchronized (cache) {
298 loaderCache = cache.get(cacheKey);
301 cache.put(cacheKey, loaderCache);
511 synchronized (cache) {
512 loaderCache = cache.get(cacheKey);
515 cache.put(cacheKey, loaderCache);
636 cache.remove(ClassLoader.getSystemClassLoader());
643 cache.remove(loader);
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/
DAnnotationFactory.java57 cache = new WeakHashMap<Class<? extends Annotation>, AnnotationMember[]>(); field in AnnotationFactory
64 AnnotationMember[] desc = cache.get(annotationType); in getElementsDescription()
84 cache.put(annotationType, desc); in getElementsDescription()
/libcore/expectations/
Dbrokentests.txt805 description: "We removed this: we don't cache canonical paths.",