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

/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/luni/src/main/java/org/apache/harmony/luni/util/
H A DDeleteOnExit.java32 * Our singleton instance.
34 private static DeleteOnExit instance; field in class:DeleteOnExit
42 * Returns our singleton instance, creating it if necessary.
45 if (instance == null) {
46 instance = new DeleteOnExit();
47 Runtime.getRuntime().addShutdownHook(instance);
50 return instance;
/libcore/benchmarks/src/benchmarks/regression/
H A DReflectionBenchmark.java78 C instance = new C();
80 f.setInt(instance, 1);
87 C instance = new C();
89 f.getInt(instance);
96 C instance = new C();
98 m.invoke(instance);
113 C instance = new C();
115 m.invoke(instance, 1);
122 C instance = new C();
125 m.invoke(instance, on
[all...]
/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/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParserFactory.java160 * Creates a new instance of a XML Pull Parser
163 * @return A new instance of a XML Pull Parser.
202 * Creates a new instance of a XML Serializer.
206 * @return A new instance of a XML Serializer.
240 * Create a new instance of a PullParserFactory that can be used
244 * @return a new instance of a PullParserFactory, as returned by newInstance (null, null);
305 Object instance = null;
310 instance = candidate.newInstance ();
316 if (instance instanceof XmlPullParser) {
320 if (instance instanceo
[all...]
/libcore/libdvm/src/main/java/java/lang/
H A DClassLoader.java174 * Constructs a new instance of this class with the system class loader as
182 * Constructs a new instance of this class with the specified class loader
744 private static BootClassLoader instance; field in class:BootClassLoader
748 if (instance == null) {
749 instance = new BootClassLoader();
752 return instance;
/libcore/libart/src/main/java/java/lang/
H A DClassLoader.java186 * Constructs a new instance of this class with the system class loader as
194 * Constructs a new instance of this class with the specified class loader
764 private static BootClassLoader instance; field in class:BootClassLoader
768 if (instance == null) {
769 instance = new BootClassLoader();
772 return instance;
/libcore/luni/src/main/java/java/lang/
H A DProcessManager.java335 private static final ProcessManager instance = new ProcessManager(); field in class:ProcessManager
339 return instance;
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DOldAndroidClassTest.java33 Object instance = helloClass.newInstance();
34 assertNotNull(instance);
/libcore/luni/src/main/java/java/io/
H A DObjectOutputStream.java413 * Object to check if an instance previously dumped by this
415 * @return -1 if it is an instance which has not been dumped yet (and this
417 * instance which has been dumped already.
467 * instance. The field is declared by declaringClass. The field is the same
477 private static native Object getFieldL(Object instance, Class<?> declaringClass, String fieldName, String fieldTypeName); argument
1010 * fields declared by the corresponding class descriptor. The instance to
1013 * private instance method {@code writeObject} it will be used to
1306 * This is used to dump the exception instance that happened (if any) when
1337 * instance fields are dumped by defining a private method
/libcore/benchmarks/libs/
H A Dcaliper.jar ... public static final com.google.caliper.CaliperRc INSTANCE private final java.util.Properties properties private void ...

Completed in 536 milliseconds