Home
last modified time | relevance | path

Searched refs:Cache (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/sun/security/provider/
DX509Factory.java31 import sun.security.util.Cache;
63 private static final Cache<Object, X509CertImpl> certCache
64 = Cache.newSoftMemoryCache(750);
65 private static final Cache<Object, X509CRLImpl> crlCache
66 = Cache.newSoftMemoryCache(750);
216 private static synchronized <K,V> V getFromCache(Cache<K,V> cache, in getFromCache()
218 Object key = new Cache.EqualByteArray(encoding); in getFromCache()
225 private static synchronized <V> void addToCache(Cache<Object, V> cache, in addToCache()
230 Object key = new Cache.EqualByteArray(encoding); in addToCache()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DCache.java32 public abstract class Cache<K, V> { class
35 protected Cache() { in Cache() method in Cache
56 public abstract void accept(sun.security.util.Cache.CacheVisitor<K, V> visitor); in accept()
58 public static <K, V> sun.security.util.Cache<K, V> newSoftMemoryCache(int size) { in newSoftMemoryCache()
62 public static <K, V> sun.security.util.Cache<K, V> newSoftMemoryCache(int size, int timeout) { in newSoftMemoryCache()
67 public static <K, V> sun.security.util.Cache<K, V> newHardMemoryCache(int size) { in newHardMemoryCache()
71 public static <K, V> sun.security.util.Cache<K, V> newNullCache() { in newNullCache()
75 public static <K, V> sun.security.util.Cache<K, V> newHardMemoryCache(int size, int timeout) { in newHardMemoryCache()
DMemoryCache.java22 class MemoryCache<K, V> extends sun.security.util.Cache<K, V> {
68 public synchronized void accept(sun.security.util.Cache.CacheVisitor<K, V> visitor) { in accept()
/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java40 private static abstract class Cache { class in ThreadLocalCoders
46 Cache(int size) { in Cache() method in ThreadLocalCoders.Cache
88 private static Cache decoderCache = new Cache(CACHE_SIZE) {
112 private static Cache encoderCache = new Cache(CACHE_SIZE) {
/libcore/ojluni/annotations/hiddenapi/sun/nio/cs/
DThreadLocalCoders.java46 private static sun.nio.cs.ThreadLocalCoders.Cache decoderCache;
48 private static sun.nio.cs.ThreadLocalCoders.Cache encoderCache;
51 private abstract static class Cache { class in ThreadLocalCoders
53 Cache(int size) { in Cache() method in ThreadLocalCoders.Cache
/libcore/ojluni/src/main/java/java/nio/charset/
DCoderResult.java194 private static abstract class Cache { class in CoderResult
220 private static Cache malformedCache
221 = new Cache() {
239 private static Cache unmappableCache
240 = new Cache() {
/libcore/ojluni/annotations/hiddenapi/sun/security/provider/
DX509Factory.java49 sun.security.util.Cache<K, V> cache, byte[] encoding) { in getFromCache()
55 sun.security.util.Cache<java.lang.Object, V> cache, byte[] encoding, V value) { in addToCache()
62 private static final sun.security.util.Cache<java.lang.Object, sun.security.x509.X509CertImpl>
70 private static final sun.security.util.Cache<java.lang.Object, sun.security.x509.X509CRLImpl>
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java72 public abstract class Cache<K,V> { class
74 protected Cache() { in Cache() method in Cache
122 public static <K,V> Cache<K,V> newSoftMemoryCache(int size) { in newSoftMemoryCache()
131 public static <K,V> Cache<K,V> newSoftMemoryCache(int size, int timeout) { in newSoftMemoryCache()
139 public static <K,V> Cache<K,V> newHardMemoryCache(int size) { in newHardMemoryCache()
147 public static <K,V> Cache<K,V> newNullCache() { in newNullCache()
148 return (Cache<K,V>) NullCache.INSTANCE; in newNullCache()
156 public static <K,V> Cache<K,V> newHardMemoryCache(int size, int timeout) { in newHardMemoryCache()
203 class NullCache<K,V> extends Cache<K,V> {
205 final static Cache<Object,Object> INSTANCE = new NullCache<>();
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DX509CertificatePair.java39 import sun.security.util.Cache;
82 private static final Cache<Object, X509CertificatePair> cache
83 = Cache.newSoftMemoryCache(750);
141 Object key = new Cache.EqualByteArray(encoded); in generateCertificatePair()
147 key = new Cache.EqualByteArray(pair.encoded); in generateCertificatePair()
DCertStoreHelper.java44 import sun.security.util.Cache;
63 private static Cache<String, CertStoreHelper> cache
64 = Cache.newSoftMemoryCache(NUM_TYPES);
DURICertStore.java58 import sun.security.util.Cache;
187 private static final Cache<URICertStoreParameters, CertStore>
188 certStoreCache = Cache.newSoftMemoryCache(CACHE_SIZE);
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java41 private static final Cache CACHE = new Cache();
294 private static class Cache extends LocaleObjectCache<Key, BaseLocale> { class in BaseLocale
296 public Cache() { in Cache() method in BaseLocale.Cache
/libcore/ojluni/annotations/hiddenapi/sun/security/provider/certpath/
DX509CertificatePair.java100 private static final sun.security.util.Cache<
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java465 private static final java.util.Locale.Cache LOCALECACHE;
611 private static class Cache class in Locale
615 private Cache() { in Cache() method in Locale.Cache
/libcore/ojluni/src/main/java/java/util/
DLocale.java573 static private final Cache LOCALECACHE = new Cache();
840 private static class Cache extends LocaleObjectCache<LocaleKey, Locale> { class in Locale
841 private Cache() { in Cache() method in Locale.Cache
/libcore/
Dopenjdk_java_files.bp1693 "ojluni/src/main/java/sun/security/util/Cache.java",