Home
last modified time | relevance | path

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

/dalvik/libcore/security/src/main/java/org/apache/harmony/security/fortress/
DDefaultPolicy.java159 …private final Map<Object, Collection<Permission>> cache = new WeakHashMap<Object, Collection<Permi… field in DefaultPolicy
201 Collection<Permission> pc = cache.get(pd); in getPermissions()
204 synchronized (cache) { in getPermissions()
208 pc = cache.get(pd); in getPermissions()
219 cache.put(pd, pc); in getPermissions()
240 Collection<Permission> pc = cache.get(cs); in getPermissions()
243 synchronized (cache) { in getPermissions()
247 pc = cache.get(cs); in getPermissions()
258 cache.put(cs, pc); in getPermissions()
303 synchronized (cache) { in refresh()
[all …]
/dalvik/dx/src/com/android/dx/rop/cst/
DCstInteger.java28 private static final CstInteger[] cache = new CstInteger[511]; field in CstInteger
64 int idx = (value & 0x7fffffff) % cache.length; in make()
65 CstInteger obj = cache[idx]; in make()
72 cache[idx] = obj; in make()
/dalvik/vm/hprof/
DHprofStackFrame.c62 DexStringCache cache; in hprofStartup_StackFrame() local
65 dexStringCacheInit(&cache); in hprofStartup_StackFrame()
66 descriptor = dexProtoGetMethodDescriptor(&method->prototype, &cache); in hprofStartup_StackFrame()
68 dexStringCacheRelease(&cache); in hprofStartup_StackFrame()
224 DexStringCache cache; in hprofDumpStackFrames() local
227 dexStringCacheInit(&cache); in hprofDumpStackFrames()
228 descriptor = dexProtoGetMethodDescriptor(&method->prototype, &cache); in hprofDumpStackFrames()
237 dexStringCacheRelease(&cache); in hprofDumpStackFrames()
/dalvik/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()
/dalvik/vm/
DAtomicCache.c69 void dvmFreeAtomicCache(AtomicCache* cache) in dvmFreeAtomicCache() argument
71 if (cache != NULL) { in dvmFreeAtomicCache()
72 free(cache->entryAlloc); in dvmFreeAtomicCache()
73 free(cache); in dvmFreeAtomicCache()
DAtomicCache.h155 void dvmFreeAtomicCache(AtomicCache* cache);
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/
DPlatformAddressFactory.java55 private static PlatformAddress[] cache = new PlatformAddress[CACHE_SIZE]; field in PlatformAddressFactory
82 PlatformAddress cachedObj = cache[(idx + probe) & CACHE_MASK]; in on()
84 return cache[(idx + probe) & CACHE_MASK] = in on()
92 return cache[(idx + replacementIndex) & CACHE_MASK] = in on()
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
DLangAccessImpl.java37 ClassCache<T> cache = clazz.getClassCache(); in getEnumValuesInOrder() local
38 return cache.getEnumValuesInOrder(); in getEnumValuesInOrder()
DClass.java806 ClassCache<T> cache = null; in getClassCache() local
809 cache = cacheRef.get(); in getClassCache()
812 if (cache == null) { in getClassCache()
813 cache = new ClassCache<T>(this); in getClassCache()
814 cacheRef = new SoftReference<ClassCache<T>>(cache); in getClassCache()
817 return cache; in getClassCache()
/dalvik/libcore/security/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()
239 return cache[i]; in get()
324 cache[index] = object; in put()
/dalvik/libcore/archive/src/main/native/
Dzipsup.c599 if (!zipFile->cache) in zip_populateCache()
608 zipFile->cache->startCentralDir = startCentralDir = in zip_populateCache()
779 zipCache_addElement (zipFile->cache, (char *) filename, in zip_populateCache()
786 zipCache_addElement (zipFile->cache, (char *) filename, in zip_populateCache()
875 if (zipFile->cache && (zipFile->pointer >= zipFile->cache->startCentralDir)) in readZipEntry()
922 if ((enumerationPointer || (!zipFile->cache)) in readZipEntry()
992 if (zipFile->cache) in readZipEntry()
1161 if (zipFile->cache && zipFile->cachePool) in zip_closeZipFile()
1163 zipCachePool_release (zipFile->cachePool, zipFile->cache); in zip_closeZipFile()
1164 zipFile->cache = NULL; in zip_closeZipFile()
[all …]
Dzipsup.h148 struct HyZipCache *cache; member
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
DResponseCacheTest.java163 TestResponseCache cache = new TestResponseCache(uri, true); in test_get() local
164 ResponseCache.setDefault(cache); in test_get()
175 assertEquals(url.toURI(), cache.getWasCalled); in test_get()
193 TestResponseCache cache = new TestResponseCache( in test_put() local
195 ResponseCache.setDefault(cache); in test_put()
212 assertEquals(url.toURI(), cache.getWasCalled); in test_put()
217 assertEquals(url.toURI(), cache.putWasCalled); in test_put()
/dalvik/libcore/x-net/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()
/dalvik/libcore/x-net/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()
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/
DHttpURLConnection.java494 ByteArrayOutputStream cache; field in HttpURLConnection.HttpOutputStream
504 cache = new ByteArrayOutputStream(cacheLength); in HttpOutputStream()
518 cache = new ByteArrayOutputStream(cacheLength); in HttpOutputStream()
554 int size = cache.size(); in sendCache()
559 socketOut.write(cache.toByteArray()); in sendCache()
560 cache.reset(); in sendCache()
620 cache.write(data); in write()
621 if (writeToSocket && cache.size() >= cacheLength) { in write()
646 cache.write(buffer, offset, count); in write()
648 socketOut.write(cache.toByteArray()); in write()
[all …]
/dalvik/libcore/text/src/main/java/java/text/
DCollator.java206 private static Vector<Collator> cache = new Vector<Collator>(CACHE_SIZE); field in Collator
374 for (int i = cache.size() - 1; i >= 0; i -= 2) { in getInstance()
375 if (cache.elementAt(i).equals(key)) { in getInstance()
376 return (Collator) (cache.elementAt(i - 1)).clone(); in getInstance()
/dalvik/libcore/luni/src/main/java/java/util/
DResourceBundle.java109 …private static final WeakHashMap<Object, Hashtable<String, ResourceBundle>> cache = new WeakHashMa… field in ResourceBundle
230 cache.clear(); in getBundleImpl()
343 synchronized (cache) { in handleGetBundle()
344 loaderCache = cache.get(cacheKey); in handleGetBundle()
347 cache.put(cacheKey, loaderCache); in handleGetBundle()
/dalvik/dx/tests/098-dex-jsr-ret-throw/
DViewDebug$ViewServer.class ... IOException boolean hasCache boolean willNotCache android.graphics.Bitmap cache android.view.ViewGroup group android.view. ...
/dalvik/libdex/
DDexProto.c177 DexStringCache cache; in dexProtoCopyMethodDescriptor() local
179 dexStringCacheInit(&cache); in dexProtoCopyMethodDescriptor()
180 return dexStringCacheAbandon(&cache, in dexProtoCopyMethodDescriptor()
181 dexProtoGetMethodDescriptor(pProto, &cache)); in dexProtoCopyMethodDescriptor()
/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/lang/annotation/
DAnnotationFactory.java58 cache = new WeakHashMap<Class<? extends Annotation>, AnnotationMember[]>(); field in AnnotationFactory
65 AnnotationMember[] desc = cache.get(annotationType); in getElementsDescription()
85 cache.put(annotationType, desc); in getElementsDescription()
/dalvik/
Drun-core-tests.sh68 mkdir -p ${datadir}/dalvik-cache
/dalvik/libcore/luni/src/main/java/java/lang/
DString.java2261 int cache, int md2, char lastChar) { in indexOf() argument
2276 if ((cache & (1 << haystack[i])) == 0) { in indexOf()
2286 if ((cache & (1 << haystack[i])) == 0) { in indexOf()