Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 53) sorted by relevance

123

/libcore/luni/src/test/java/libcore/java/lang/reflect/
DProxyTest.java122 ThrowsIOException instance = (ThrowsIOException) Proxy.newProxyInstance(loader, in testDeclaredExceptionIntersectionIsSubtype() local
126 instance.run(new EOFException()); in testDeclaredExceptionIntersectionIsSubtype()
131 instance.run(new IOException()); in testDeclaredExceptionIntersectionIsSubtype()
136 instance.run(new Exception()); in testDeclaredExceptionIntersectionIsSubtype()
143 ThrowsEOFException instance = (ThrowsEOFException) Proxy.newProxyInstance(loader, in testDeclaredExceptionIntersectionIsEmpty() local
147 instance.run(new EOFException()); in testDeclaredExceptionIntersectionIsEmpty()
152 instance.run(new SocketException()); in testDeclaredExceptionIntersectionIsEmpty()
159 ThrowsEOFException instance = (ThrowsEOFException) Proxy.newProxyInstance(loader, in testDeclaredExceptionIntersectionIsSubset() local
163 instance.run(new EOFException()); in testDeclaredExceptionIntersectionIsSubset()
168 instance.run(new SocketException()); in testDeclaredExceptionIntersectionIsSubset()
[all …]
/libcore/ojluni/src/main/java/javax/net/ssl/
DKeyManagerFactory.java152 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
155 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance()
156 instance.provider, algorithm); in getInstance()
196 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
199 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance()
200 instance.provider, algorithm); in getInstance()
233 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
236 return new KeyManagerFactory((KeyManagerFactorySpi)instance.impl, in getInstance()
237 instance.provider, algorithm); in getInstance()
DTrustManagerFactory.java154 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
157 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance()
158 instance.provider, algorithm); in getInstance()
198 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
201 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance()
202 instance.provider, algorithm); in getInstance()
235 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
238 return new TrustManagerFactory((TrustManagerFactorySpi)instance.impl, in getInstance()
239 instance.provider, algorithm); in getInstance()
DSSLContext.java199 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
201 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
242 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
244 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
279 GetInstance.Instance instance = GetInstance.getInstance in getInstance() local
281 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, in getInstance()
/libcore/metrictests/memory/host/src/libcore/heapmetrics/
DReachability.java50 static final Reachability ofInstance(AhatInstance instance) { in ofInstance() argument
51 if (instance.isRoot()) { in ofInstance()
53 } else if (instance.isStronglyReachable()) { in ofInstance()
55 } else if (instance.isWeaklyReachable()) { in ofInstance()
57 } else if (instance.isUnreachable()) { in ofInstance()
60 throw new AssertionError("Impossible reachability data for instance " + instance); in ofInstance()
DHeapCategorization.java222 private static boolean isInternedString(AhatInstance instance) { in isInternedString() argument
223 if (!instance.isRoot()) { in isInternedString()
226 for (RootType rootType : instance.getRootTypes()) { in isInternedString()
298 AhatInstance instance = queue.remove(); in isOwnedByClassMatching() local
299 if (instance.isClassObj()) { in isOwnedByClassMatching()
303 return predicate.test(instance.asClassObj().getName()); in isOwnedByClassMatching()
304 } else if (instance.isPlaceHolder()) { in isOwnedByClassMatching()
310 AhatClassObj classObj = instance.getClassObj(); in isOwnedByClassMatching()
314 for (AhatInstance reference : instance.getHardReverseReferences()) { in isOwnedByClassMatching()
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathValidator.java172 Instance instance = GetInstance.getInstance("CertPathValidator", in getInstance() local
174 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance()
175 instance.provider, algorithm); in getInstance()
216 Instance instance = GetInstance.getInstance("CertPathValidator", in getInstance() local
218 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance()
219 instance.provider, algorithm); in getInstance()
253 Instance instance = GetInstance.getInstance("CertPathValidator", in getInstance() local
255 return new CertPathValidator((CertPathValidatorSpi)instance.impl, in getInstance()
256 instance.provider, algorithm); in getInstance()
DCertPathBuilder.java173 Instance instance = GetInstance.getInstance("CertPathBuilder", in getInstance() local
175 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
176 instance.provider, algorithm); in getInstance()
216 Instance instance = GetInstance.getInstance("CertPathBuilder", in getInstance() local
218 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
219 instance.provider, algorithm); in getInstance()
253 Instance instance = GetInstance.getInstance("CertPathBuilder", in getInstance() local
255 return new CertPathBuilder((CertPathBuilderSpi)instance.impl, in getInstance()
256 instance.provider, algorithm); in getInstance()
DCertStore.java237 Instance instance = GetInstance.getInstance("CertStore", in getInstance() local
239 return new CertStore((CertStoreSpi)instance.impl, in getInstance()
240 instance.provider, type, params); in getInstance()
307 Instance instance = GetInstance.getInstance("CertStore", in getInstance() local
309 return new CertStore((CertStoreSpi)instance.impl, in getInstance()
310 instance.provider, type, params); in getInstance()
361 Instance instance = GetInstance.getInstance("CertStore", in getInstance() local
363 return new CertStore((CertStoreSpi)instance.impl, in getInstance()
364 instance.provider, type, params); in getInstance()
DCertificateFactory.java206 Instance instance = GetInstance.getInstance("CertificateFactory", in getInstance() local
208 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
209 instance.provider, type); in getInstance()
255 Instance instance = GetInstance.getInstance("CertificateFactory", in getInstance() local
257 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
258 instance.provider, type); in getInstance()
298 Instance instance = GetInstance.getInstance("CertificateFactory", in getInstance() local
300 return new CertificateFactory((CertificateFactorySpi)instance.impl, in getInstance()
301 instance.provider, type); in getInstance()
/libcore/ojluni/src/main/java/java/security/
DKeyPairGenerator.java186 private static KeyPairGenerator getInstance(Instance instance, in getInstance() argument
189 if (instance.impl instanceof KeyPairGenerator) { in getInstance()
190 kpg = (KeyPairGenerator)instance.impl; in getInstance()
192 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)instance.impl; in getInstance()
195 kpg.provider = instance.provider; in getInstance()
249 Instance instance = in getInstance() local
251 if (instance.impl instanceof KeyPairGenerator) { in getInstance()
252 return getInstance(instance, algorithm); in getInstance()
254 return new Delegate(instance, t, algorithm); in getInstance()
304 Instance instance = GetInstance.getInstance("KeyPairGenerator", in getInstance() local
[all …]
DSecureRandom.java297 Instance instance = GetInstance.getInstance("SecureRandom", in getInstance() local
299 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
300 instance.provider, algorithm); in getInstance()
348 Instance instance = GetInstance.getInstance("SecureRandom", in getInstance() local
350 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
351 instance.provider, algorithm); in getInstance()
392 Instance instance = GetInstance.getInstance("SecureRandom", in getInstance() local
394 return new SecureRandom((SecureRandomSpi)instance.impl, in getInstance()
395 instance.provider, algorithm); in getInstance()
DSignature.java377 Instance instance = in getInstance() local
379 return getInstance(instance, algorithm); in getInstance()
388 private static Signature getInstance(Instance instance, String algorithm) { in getInstance() argument
390 if (instance.impl instanceof Signature) { in getInstance()
391 sig = (Signature)instance.impl; in getInstance()
394 SignatureSpi spi = (SignatureSpi)instance.impl; in getInstance()
397 sig.provider = instance.provider; in getInstance()
428 Object instance = s.newInstance(null); in isSpi() local
432 boolean r = (instance instanceof SignatureSpi) in isSpi()
433 && (instance instanceof Signature == false); in isSpi()
[all …]
DKeyFactory.java236 Instance instance = GetInstance.getInstance("KeyFactory", in getInstance() local
238 return new KeyFactory((KeyFactorySpi)instance.impl, in getInstance()
239 instance.provider, algorithm); in getInstance()
275 Instance instance = GetInstance.getInstance("KeyFactory", in getInstance() local
277 return new KeyFactory((KeyFactorySpi)instance.impl, in getInstance()
278 instance.provider, algorithm); in getInstance()
/libcore/ojluni/src/main/java/javax/crypto/
DExemptionMechanism.java136 Instance instance = JceSecurity.getInstance("ExemptionMechanism", in getInstance() local
138 return new ExemptionMechanism((ExemptionMechanismSpi)instance.impl, in getInstance()
139 instance.provider, algorithm); in getInstance()
184 Instance instance = JceSecurity.getInstance("ExemptionMechanism", in getInstance() local
186 return new ExemptionMechanism((ExemptionMechanismSpi)instance.impl, in getInstance()
187 instance.provider, algorithm); in getInstance()
224 Instance instance = JceSecurity.getInstance("ExemptionMechanism", in getInstance() local
226 return new ExemptionMechanism((ExemptionMechanismSpi)instance.impl, in getInstance()
227 instance.provider, algorithm); in getInstance()
DSecretKeyFactory.java390 Instance instance = JceSecurity.getInstance("SecretKeyFactory", in getInstance() local
392 return new SecretKeyFactory((SecretKeyFactorySpi)instance.impl, in getInstance()
393 instance.provider, algorithm); in getInstance()
432 Instance instance = JceSecurity.getInstance("SecretKeyFactory", in getInstance() local
434 return new SecretKeyFactory((SecretKeyFactorySpi)instance.impl, in getInstance()
435 instance.provider, algorithm); in getInstance()
DKeyGenerator.java335 Instance instance = JceSecurity.getInstance("KeyGenerator", in getInstance() local
337 return new KeyGenerator((KeyGeneratorSpi)instance.impl, in getInstance()
338 instance.provider, algorithm); in getInstance()
375 Instance instance = JceSecurity.getInstance("KeyGenerator", in getInstance() local
377 return new KeyGenerator((KeyGeneratorSpi)instance.impl, in getInstance()
378 instance.provider, algorithm); in getInstance()
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java77 C instance = new C(); in timeField_setInt() local
79 f.setInt(instance, 1); in timeField_setInt()
86 C instance = new C(); in timeField_getInt() local
88 f.getInt(instance); in timeField_getInt()
95 C instance = new C(); in timeMethod_invokeV() local
97 m.invoke(instance); in timeMethod_invokeV()
112 C instance = new C(); in timeMethod_invokeI() local
114 m.invoke(instance, 1); in timeMethod_invokeI()
121 C instance = new C(); in timeMethod_invokePreBoxedI() local
124 m.invoke(instance, one); in timeMethod_invokePreBoxedI()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
DJarFileFactory.java51 private static final JarFileFactory instance = new JarFileFactory(); field in JarFileFactory
56 return instance; in getInstance()
61 synchronized (instance) { in getConnection()
80 synchronized (instance) { in get()
85 synchronized (instance) { in get()
113 synchronized (instance) { in close()
121 assert Thread.holdsLock(instance); in getCachedJarFile()
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
DDOMImplementationImpl.java37 private static DOMImplementationImpl instance; field in DOMImplementationImpl
80 if (instance == null) { in getInstance()
81 instance = new DOMImplementationImpl(); in getInstance()
84 return instance; in getInstance()
/libcore/ojluni/src/main/java/java/util/
DCurrency.java284 Currency instance = instances.get(currencyCode); in getInstance() local
285 if (instance != null) { in getInstance()
286 return instance; in getInstance()
295 instance = instances.putIfAbsent(currencyCode, currencyVal); in getInstance()
296 return (instance != null ? instance : currencyVal); in getInstance()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DCertPathHelper.java51 protected static CertPathHelper instance; field in CertPathHelper
64 instance.implSetPathToNames(sel, names); in setPathToNames()
68 instance.implSetDateAndTime(sel, date, skew); in setDateAndTime()
/libcore/luni/src/main/native/
DAsynchronousCloseMonitor.cpp153 void async_close_monitor_destroy(void* instance) { in async_close_monitor_destroy() argument
154 auto monitor = reinterpret_cast<AsynchronousCloseMonitorImpl*>(instance); in async_close_monitor_destroy()
158 int async_close_monitor_was_signalled(const void* instance) { in async_close_monitor_was_signalled() argument
159 auto monitor = reinterpret_cast<const AsynchronousCloseMonitorImpl*>(instance); in async_close_monitor_was_signalled()
/libcore/ojluni/src/main/java/java/text/
DAttributedCharacterIterator.java161 Attribute instance = instanceMap.get(getName()); in readResolve() local
162 if (instance != null) { in readResolve()
163 return instance; in readResolve()
/libcore/ojluni/src/main/java/sun/security/jca/
DJCAUtil.java59 public static SecureRandom instance = new SecureRandom(); field in JCAUtil.CachedSecureRandomHolder
69 return CachedSecureRandomHolder.instance; in getSecureRandom()

123