Searched defs:instance (Results 1 - 11 of 11) sorted by relevance

/libcore/luni/src/main/java/libcore/net/
H A DNetworkSecurityPolicy.java31 private static volatile NetworkSecurityPolicy instance = new DefaultNetworkSecurityPolicy(); field in class:NetworkSecurityPolicy
34 return instance;
41 instance = policy;
/libcore/luni/src/main/java/libcore/net/event/
H A DNetworkEventDispatcher.java27 private static final NetworkEventDispatcher instance = new NetworkEventDispatcher(); field in class:NetworkEventDispatcher
33 * Returns the shared {@link NetworkEventDispatcher} instance.
36 return instance;
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/util/
H A DTimezoneGetter.java25 private static TimezoneGetter instance; field in class:TimezoneGetter
28 * Retrieves the singleton instance of this class.
30 * @return TimezoneGetter the single instance of this class.
33 return instance;
37 * Sets the singleton instance of this class.
39 * @param instance
40 * TimezoneGetter the single instance of this class.
43 if (instance != null) {
44 throw new UnsupportedOperationException("TimezoneGetter instance already set");
46 instance
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DCertPathHelper.java51 protected static CertPathHelper instance; field in class:CertPathHelper
64 instance.implSetPathToNames(sel, names);
68 instance.implSetDateAndTime(sel, date, skew);
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/
H A DDOMImplementationImpl.java36 // Singleton instance.
37 private static DOMImplementationImpl instance; field in class:DOMImplementationImpl
74 * Requests the singleton instance of the class. Creates it first, if
77 * @return The singleton Android DOMImplementationImpl instance.
80 if (instance == null) {
81 instance = new DOMImplementationImpl();
84 return instance;
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/
H A DJarFileFactory.java51 private static final JarFileFactory instance = new JarFileFactory(); field in class:JarFileFactory
56 return instance;
61 synchronized (instance) {
80 synchronized (instance) {
85 synchronized (instance) {
113 synchronized (instance) {
121 assert Thread.holdsLock(instance);
/libcore/ojluni/src/main/java/sun/security/util/
H A DManifestEntryVerifier.java54 private static final Provider instance = Providers.getSunProvider(); field in class:ManifestEntryVerifier.SunProviderHolder
138 (algorithm, SunProviderHolder.instance);
/libcore/ojluni/src/main/java/java/security/
H A DKeyPairGenerator.java179 private static KeyPairGenerator getInstance(Instance instance, argument
182 if (instance.impl instanceof KeyPairGenerator) {
183 kpg = (KeyPairGenerator)instance.impl;
185 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)instance.impl;
188 kpg.provider = instance.provider;
233 Instance instance =
235 if (instance.impl instanceof KeyPairGenerator) {
236 return getInstance(instance, algorithm);
238 return new Delegate(instance, t, algorithm);
286 Instance instance
572 Delegate(Instance instance, Iterator<Service> serviceIterator, String algorithm) argument
[all...]
H A DSignature.java332 Instance instance =
334 return getInstance(instance, algorithm);
343 private static Signature getInstance(Instance instance, String algorithm) { argument
345 if (instance.impl instanceof Signature) {
346 sig = (Signature)instance.impl;
348 SignatureSpi spi = (SignatureSpi)instance.impl;
351 sig.provider = instance.provider;
382 Object instance = s.newInstance(null);
385 // instance of SignatureSpi but not Signature
386 boolean r = (instance instanceo
[all...]
/libcore/luni/src/main/java/java/util/concurrent/
H A DThreadLocalRandom.java56 * Random) using a single static instance that accesses random
145 return instance;
981 * The increment of seeder per new instance.
1020 static final ThreadLocalRandom instance = new ThreadLocalRandom(); field in class:ThreadLocalRandom
/libcore/ojluni/src/main/java/java/lang/
H A DClassLoader.java92 * classes and resources. Each instance of <tt>ClassLoader</tt> has an
94 * resource, a <tt>ClassLoader</tt> instance will delegate the search for the
98 * serve as the parent of a <tt>ClassLoader</tt> instance.
122 * <tt>defineClass</tt>} converts an array of bytes into an instance of class
144 * create a class instance. A sample implementation is:
412 * Converts an array of bytes into an instance of class <tt>Class</tt>.
460 * Converts an array of bytes into an instance of class <tt>Class</tt>.
525 * Converts an array of bytes into an instance of class <tt>Class</tt>,
599 * into an instance of class <tt>Class</tt>,
877 * 1. no instance o
1329 private static BootClassLoader instance; field in class:BootClassLoader
[all...]

Completed in 356 milliseconds