/libcore/luni/src/test/java/libcore/libcore/util/ |
D | BasicLruCacheTest.java | 30 BasicLruCache<String, String> cache = newCreatingCache(); in testCreateOnCacheMiss() local 31 String created = cache.get("aa"); in testCreateOnCacheMiss() 36 BasicLruCache<String, String> cache = newCreatingCache(); in testNoCreateOnCacheHit() local 37 cache.put("aa", "put-aa"); in testNoCreateOnCacheHit() 38 assertEquals("put-aa", cache.get("aa")); in testNoCreateOnCacheHit() 50 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(3); in testCannotPutNullKey() local 52 cache.put(null, "A"); in testCannotPutNullKey() 59 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(3); in testCannotPutNullValue() local 61 cache.put("a", null); in testCannotPutNullValue() 68 BasicLruCache<String, String> cache = new BasicLruCache<String, String>(1); in testEvictionWithSingletonCache() local [all …]
|
/libcore/luni/src/main/java/java/net/ |
D | AddressCache.java | 42 private final BasicLruCache<AddressCacheKey, AddressCacheEntry> cache field in AddressCache 100 cache.evictAll(); in clear() 109 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); in get() 124 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); in put() 132 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage)); in putUnknownHost()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CoderResult.java | 196 private Map<Integer,WeakReference<CoderResult>> cache = null; field in CoderResult.Cache 206 if (cache == null) { in get() 207 cache = new HashMap<Integer,WeakReference<CoderResult>>(); in get() 208 } else if ((w = cache.get(k)) != null) { in get() 213 cache.put(k, new WeakReference<CoderResult>(e)); in get()
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | JulianCalendar.java | 148 public long getFixedDate(int jyear, int month, int dayOfMonth, BaseCalendar.Date cache) { in getFixedDate() argument 152 if (cache != null && cache.hit(jyear)) { in getFixedDate() 154 return cache.getCachedJan1(); in getFixedDate() 156 return cache.getCachedJan1() + getDayOfYear(jyear, month, dayOfMonth) - 1; in getFixedDate() 178 if (cache != null && isJan1) { in getFixedDate() 179 cache.setCache(jyear, days, CalendarUtils.isJulianLeapYear(jyear) ? 366 : 365); in getFixedDate()
|
D | BaseCalendar.java | 363 public long getFixedDate(int year, int month, int dayOfMonth, BaseCalendar.Date cache) { in getFixedDate() argument 367 if (cache != null && cache.hit(year)) { in getFixedDate() 369 return cache.getCachedJan1(); in getFixedDate() 371 return cache.getCachedJan1() + getDayOfYear(year, month, dayOfMonth) - 1; in getFixedDate() 378 if (cache != null) { in getFixedDate() 379 cache.setCache(year, jan1, isLeapYear(year) ? 366 : 365); in getFixedDate() 406 if (cache != null && isJan1) { in getFixedDate() 407 cache.setCache(year, days, isLeapYear(year) ? 366 : 365); in getFixedDate()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_GetLocal.java | 35 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/ojluni/src/main/java/sun/nio/ch/ |
D | Util.java | 224 BufferCache cache = bufferCache.get(); in getTemporaryDirectBuffer() local 225 ByteBuffer buf = cache.get(size); in getTemporaryDirectBuffer() 232 if (!cache.isEmpty()) { in getTemporaryDirectBuffer() 233 buf = cache.removeFirst(); in getTemporaryDirectBuffer() 261 BufferCache cache = bufferCache.get(); in offerFirstTemporaryDirectBuffer() local 262 if (!cache.offerFirst(buf)) { in offerFirstTemporaryDirectBuffer() 283 BufferCache cache = bufferCache.get(); in offerLastTemporaryDirectBuffer() local 284 if (!cache.offerLast(buf)) { in offerLastTemporaryDirectBuffer()
|
/libcore/ojluni/src/main/java/sun/security/provider/ |
D | X509Factory.java | 216 private static synchronized <K,V> V getFromCache(Cache<K,V> cache, in getFromCache() argument 219 return cache.get(key); in getFromCache() 225 private static synchronized <V> void addToCache(Cache<Object, V> cache, in addToCache() argument 231 cache.put(key, value); in addToCache()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Short.java | 209 static final Short cache[] = new Short[-(-128) + 127 + 1]; field in Short.ShortCache 212 for(int i = 0; i < cache.length; i++) 213 cache[i] = new Short((short)(i - 128)); 239 return ShortCache.cache[sAsInt + offset]; in valueOf()
|
D | Byte.java | 84 static final Byte cache[] = new Byte[-(-128) + 127 + 1]; field in Byte.ByteCache 87 for(int i = 0; i < cache.length; i++) 88 cache[i] = new Byte((byte)(i - 128)); 109 return ByteCache.cache[(int)b + offset]; in valueOf()
|
D | Integer.java | 818 static final Integer cache[]; 837 cache = new Integer[(high - low) + 1]; 839 for(int k = 0; k < cache.length; k++) 840 cache[k] = new Integer(j++); 866 return IntegerCache.cache[i + (-IntegerCache.low)];
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | URLClassPath.java | 213 int[] cache = getLookupCache(name); in findResource() local 214 for (int i = 0; (loader = getNextLoader(cache, i)) != null; i++) { in findResource() 237 int[] cache = getLookupCache(name); in getResource() local 238 for (int i = 0; (loader = getNextLoader(cache, i)) != null; i++) { in getResource() 258 private int[] cache = getLookupCache(name); in findResources() local 266 while ((loader = getNextLoader(cache, index++)) != null) { in findResources() 306 private int[] cache = getLookupCache(name); in getResources() local 314 while ((loader = getNextLoader(cache, index++)) != null) { in getResources() 419 int[] cache = getLookupCacheForClassLoader(lookupCacheLoader, name); 420 if (cache != null && cache.length > 0) { [all …]
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | CertStoreHelper.java | 63 private static Cache<String, CertStoreHelper> cache field in CertStoreHelper 69 CertStoreHelper helper = cache.get(type); in getInstance() 85 cache.put(type, csh); in getInstance()
|
D | X509CertificatePair.java | 82 private static final Cache<Object, X509CertificatePair> cache field in X509CertificatePair 132 cache.clear(); in clearCache() 142 X509CertificatePair pair = cache.get(key); in generateCertificatePair() 148 cache.put(key, pair); in generateCertificatePair()
|
/libcore/ojluni/src/main/java/java/io/ |
D | UnixFileSystem.java | 145 private ExpiringCache cache = new ExpiringCache(); field in UnixFileSystem 155 String res = cache.get(path); in canonicalize() 170 cache.put(dir + slash + filename, res); in canonicalize() 180 cache.put(path, res); in canonicalize() 327 cache.clear(); in delete() 364 cache.clear(); in rename()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | ThreadLocalCoders.java | 43 private ThreadLocal<Object[]> cache = new ThreadLocal<>(); field in ThreadLocalCoders.Cache 62 Object[] oa = cache.get(); in forName() 65 cache.set(oa); in forName()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationFactory.java | 51 private static final transient Map<Class<? extends Annotation>, AnnotationMember[]> cache = field in AnnotationFactory 59 synchronized (cache) { in getElementsDescription() 60 AnnotationMember[] desc = cache.get(annotationType); in getElementsDescription() 80 synchronized (cache) { in getElementsDescription() 81 cache.put(annotationType, desc); in getElementsDescription()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | IcuZoneRulesProvider.java | 43 private final BasicLruCache<String, ZoneRules> cache = new ZoneRulesCache(8); field in IcuZoneRulesProvider 59 return cache.get(zoneId); in provideRules()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/provider/ |
D | X509Factory.java | 49 sun.security.util.Cache<K, V> cache, byte[] encoding) { in getFromCache() argument 55 sun.security.util.Cache<java.lang.Object, V> cache, byte[] encoding, V value) { in addToCache() argument
|
/libcore/ojluni/annotations/hiddenapi/sun/security/provider/certpath/ |
D | X509CertificatePair.java | 102 cache; field in X509CertificatePair 105 cache = null;
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Short.java | 167 static final java.lang.Short[] cache; field in Short.ShortCache 170 cache = new java.lang.Short[0];
|
D | Byte.java | 180 static final java.lang.Byte[] cache; field in Byte.ByteCache 183 cache = new java.lang.Byte[0];
|
D | Long.java | 286 static final java.lang.Long[] cache; field in Long.LongCache 289 cache = new java.lang.Long[0];
|
/libcore/ojluni/src/main/native/ |
D | zip_util.c | 996 cencache *cache = &zip->cencache; in sequentialAccessReadCENHeader() local 998 if (cache->data != NULL in sequentialAccessReadCENHeader() 999 && (cenpos >= cache->pos) in sequentialAccessReadCENHeader() 1000 && (cenpos + CENHDR <= cache->pos + CENCACHE_PAGESIZE)) in sequentialAccessReadCENHeader() 1002 cen = cache->data + cenpos - cache->pos; in sequentialAccessReadCENHeader() 1003 if (cenpos + CENSIZE(cen) <= cache->pos + CENCACHE_PAGESIZE) in sequentialAccessReadCENHeader() 1010 free(cache->data); in sequentialAccessReadCENHeader() 1011 cache->data = cen; in sequentialAccessReadCENHeader() 1012 cache->pos = cenpos; in sequentialAccessReadCENHeader() 1144 last = jz->cache; in ZIP_FreeEntry() [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/nio/cs/ |
D | ThreadLocalCoders.java | 69 private java.lang.ThreadLocal<java.lang.Object[]> cache; field in ThreadLocalCoders.Cache
|