/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
H A D | LocaleCache.java | 25 * Manages a locale-specific thread-local cache of expensive locale-specific 31 private static final ThreadLocalCache<LocaleCache> cache = new ThreadLocalCache<LocaleCache>(); field in class:LocaleCache 47 LocaleCache lc = cache.get(); 50 cache.set(lc);
|
/dalvik/libcore/luni-kernel/src/main/java/java/lang/ |
H A D | LangAccessImpl.java | 37 ClassCache<T> cache = clazz.getClassCache(); 38 return cache.getEnumValuesInOrder();
|
H A D | Class.java | 131 * null-ok; cache of reflective information, wrapped in a soft 787 * @return non-null; the cache object 792 * create the cache, so we don't bother protecting against that. 794 ClassCache<T> cache = null; 797 cache = cacheRef.get(); 800 if (cache == null) { 801 cache = new ClassCache<T>(this); 802 cacheRef = new SoftReference<ClassCache<T>>(cache); 805 return cache;
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/fortress/ |
H A D | DefaultPolicy.java | 133 * WeakHashMap; the cache is cleaned either explicitly during refresh() 155 // Calculated Permissions cache, organized as 159 private final Map<Object, Collection<Permission>> cache = new WeakHashMap<Object, Collection<Permission>>(); field in class:DefaultPolicy 201 Collection<Permission> pc = cache.get(pd); 203 //have to synchronize to exclude cache pollution after refresh 204 synchronized (cache) { 206 // double check in case value has been put to cache 208 pc = cache.get(pd); 219 cache.put(pd, pc); 240 Collection<Permission> pc = cache [all...] |
/dalvik/dx/src/com/android/dx/rop/cst/ |
H A D | CstInteger.java | 28 private static final CstInteger[] cache = new CstInteger[511]; field in class:CstInteger 64 int idx = (value & 0x7fffffff) % cache.length; 65 CstInteger obj = cache[idx]; 72 cache[idx] = obj;
|
/dalvik/vm/hprof/ |
H A D | HprofStackFrame.c | 62 DexStringCache cache; local 65 dexStringCacheInit(&cache); 66 descriptor = dexProtoGetMethodDescriptor(&method->prototype, &cache); 68 dexStringCacheRelease(&cache); 224 DexStringCache cache; local 227 dexStringCacheInit(&cache); 228 descriptor = dexProtoGetMethodDescriptor(&method->prototype, &cache); 237 dexStringCacheRelease(&cache);
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/ |
H A D | PlatformAddressFactory.java | 36 * A mask with all bits set, matching the size of the cache. 42 * up an empty cache slot or a previously stored PlatformAddress. 48 * the cache. 55 private static PlatformAddress[] cache = new PlatformAddress[CACHE_SIZE]; field in class:PlatformAddressFactory 82 PlatformAddress cachedObj = cache[(idx + probe) & CACHE_MASK]; 84 return cache[(idx + probe) & CACHE_MASK] = 92 return cache[(idx + replacementIndex) & CACHE_MASK] = 130 * address.autoFree() (to enable auto-free on gc) the cache 132 * polluting the cache with addresses that aren't likely to be
|
/dalvik/vm/ |
H A D | AtomicCache.c | 17 * Mutex-free cache. Each entry has two 32-bit keys, one 32-bit value, 37 * Allocate cache. 56 * wide. This ensures that each cache entry sits on a single CPU cache 67 * Free cache. 69 void dvmFreeAtomicCache(AtomicCache* cache) argument 71 if (cache != NULL) { 72 free(cache->entryAlloc); 73 free(cache); 80 * Update a cache entr [all...] |
H A D | AtomicCache.h | 17 * Mutex-free cache for key1+key2=value. 29 * One entry in the cache. We store two keys (e.g. the classes that are 42 * One cache. 44 * Thought: we might be able to save a few cycles by storing the cache 54 /* cache stats; note we don't guarantee atomic increments for these */ 55 int trivial; /* cache access not required */ 57 int hits; /* found entry in cache */ 63 * Do a cache lookup. We need to be able to read and write entries 68 * to just ignore the cache and do the full computation. 135 * Compute the result and update the cache [all...] |
/dalvik/libcore/support/src/test/java/tests/support/ |
H A D | Support_GetLocal.java | 35 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);
|
/dalvik/libcore/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
H A D | FileClientSessionCacheTest.java | 32 + "/" + FileClientSessionCacheTest.class.getName() + "/cache"); 33 final SSLClientSessionCache cache 43 cache.putSessionData(new FakeSession(id + "." + i),
|
/dalvik/libcore/luni/src/test/java/tests/api/java/net/ |
H A D | ResponseCacheTest.java | 163 TestResponseCache cache = new TestResponseCache(uri, true); 164 ResponseCache.setDefault(cache); 175 assertEquals(url.toURI(), cache.getWasCalled); 193 TestResponseCache cache = new TestResponseCache( 195 ResponseCache.setDefault(cache); 211 // Check that a call to the cache was made. 212 assertEquals(url.toURI(), cache.getWasCalled); 214 // put it into the cache. 217 assertEquals(url.toURI(), cache.putWasCalled); 327 return new TestCacheResponse("file1.cache"); [all...] |
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | Cache.java | 36 * objects they are returned from the cache, if not - newly generated 37 * objects can be saved in the cache.<br> 45 * determine whether object to be generated is in the cache or not. 65 * If it is so - the cached object is returned from the cache, 66 * if not - new object should be generated and saved in the cache.<br> 92 // size of the cache 103 // to the object cached at cache[N] 110 private final Object[] cache; field in class:Cache 112 // This array is used to speed up the process of the search in the cache. 123 // cache populatio [all...] |
/dalvik/dx/tests/098-dex-jsr-ret-throw/ |
H A D | ViewDebug$ViewServer.class | ... IOException boolean hasCache
boolean willNotCache
android.graphics.Bitmap cache
android.view.ViewGroup group
android.view. ... |
/dalvik/libcore/xml/src/main/java/org/apache/xpath/axes/ |
H A D | NodeSequence.java | 53 * A cache of a list of nodes obtained from the iterator so far. 55 * the cache is complete. 57 * Multiple NodeSequence objects may share the same cache. 62 * If this iterator needs to cache nodes that are fetched, they 71 * Get the cache (if any) of nodes obtained from 72 * the iterator so far. Note that the cache keeps 74 * at which point the cache is "complete". 90 * If the iterator needs to cache nodes as they are fetched, 100 * If this NodeSequence has a cache, and that cache i [all...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
H A D | ResourceBundle.java | 107 private static final WeakHashMap<Object, Hashtable<String, ResourceBundle>> cache = new WeakHashMap<Object, Hashtable<String, ResourceBundle>>(); field in class:ResourceBundle 223 cache.clear(); 331 synchronized (cache) { 332 loaderCache = cache.get(cacheKey); 335 cache.put(cacheKey, loaderCache);
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | FileClientSessionCache.java | 36 * File-based cache implementation. Only one process should access the 50 * This cache creates one file per SSL session using "host.port" for 52 * in the cache (see {@link #putSessionData}). Files are read on 53 * cache hits, but not on cache misses. 81 * Constructs a new cache backed by the given directory. 94 // cache misses in getSessionData(). 132 * Note: This method is only called when the in-memory cache 134 * rendundant for this cache to store data in memory. 196 // Used to keep track of whether or not we're expanding the cache [all...] |
/dalvik/libcore/archive/src/main/native/ |
H A D | zipsup.c | 567 Fill in the cache of a given zip file. This should only be called once during zip_openZipFile! 599 if (!zipFile->cache) 608 zipFile->cache->startCentralDir = startCentralDir = 775 comment. In either case, cache the central header instead of the local header 779 zipCache_addElement (zipFile->cache, (char *) filename, 786 zipCache_addElement (zipFile->cache, (char *) filename, 838 the filename read for the entry. If (cachePointer != -1) the filename of the entry will be looked up in the cache (assuming 839 there is one) to help detect use of an invalid cache. If enumerationPointer is non-NULL, sequential access is assumed and 875 if (zipFile->cache && (zipFile->pointer >= zipFile->cache [all...] |
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
H A D | HttpURLConnectionImpl.java | 154 // if user has set useCache to true and cache exists, writes to 169 // if user has set useCache to true and cache exists, writes to 241 * if user has set useCache to true and cache exists, aborts it when 271 // if user has set useCache to true and cache exists, writes to 272 // cache 304 // if user has set useCache to true and cache exists, writes to 361 // if user has set useCache to true and cache exists, abort 430 // if user has set useCache to true and cache exists, write to cache 461 // if user has set useCache to true and cache exist 586 private ByteArrayOutputStream cache; field in class:HttpURLConnectionImpl.DefaultHttpOutputStream [all...] |
/dalvik/libcore/text/src/main/java/java/text/ |
H A D | Collator.java | 167 return System.getProperty("collator.cache"); //$NON-NLS-1$ 181 private static Vector<Collator> cache = new Vector<Collator>(CACHE_SIZE); field in class:Collator 336 for (int i = cache.size() - 1; i >= 0; i -= 2) { 337 if (cache.elementAt(i).equals(key)) { 338 return (Collator) (cache.elementAt(i - 1)).clone();
|
/dalvik/vm/compiler/template/armv5te/ |
H A D | footer.S | 15 str r2, [r3, #offThread_inJitCodeCache] @ not in jit code cache 41 str r3, [rGLUE, #offGlue_pJitProfTable] @ cache current JitProfTable
|
H A D | TEMPLATE_INVOKE_METHOD_NATIVE.S | 35 str r2, [r3, #offThread_inJitCodeCache] @ not in the jit code cache
|
/dalvik/ |
H A D | run-core-tests.sh | 68 mkdir -p ${datadir}/dalvik-cache
|
/dalvik/libdex/ |
H A D | DexProto.c | 33 * Make sure that the given cache can hold a string of the given length, 77 * make a copy of it into the cache. This always returns a writable 94 * given value (reusing the string cache's allocation if possible). 177 DexStringCache cache; local 179 dexStringCacheInit(&cache); 180 return dexStringCacheAbandon(&cache, 181 dexProtoGetMethodDescriptor(pProto, &cache));
|
/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/lang/annotation/ |
H A D | AnnotationFactory.java | 58 cache = new WeakHashMap<Class<? extends Annotation>, AnnotationMember[]>(); field in class:AnnotationFactory 65 AnnotationMember[] desc = cache.get(annotationType); 85 cache.put(annotationType, desc);
|