Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/org/apache/harmony/luni/internal/util/
DTimezoneGetter.java25 private static TimezoneGetter instance; field in TimezoneGetter
33 return instance; in getInstance()
43 if (instance != null) { in setInstance()
46 instance = getter; in setInstance()
/libcore/luni/src/main/java/org/apache/harmony/luni/util/
DDeleteOnExit.java34 private static DeleteOnExit instance; field in DeleteOnExit
45 if (instance == null) { in getInstance()
46 instance = new DeleteOnExit(); in getInstance()
47 Runtime.getRuntime().addShutdownHook(instance); in getInstance()
50 return instance; in getInstance()
/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java78 C instance = new C(); in timeField_setInt() local
80 f.setInt(instance, 1); in timeField_setInt()
87 C instance = new C(); in timeField_getInt() local
89 f.getInt(instance); in timeField_getInt()
96 C instance = new C(); in timeMethod_invokeV() local
98 m.invoke(instance); in timeMethod_invokeV()
113 C instance = new C(); in timeMethod_invokeI() local
115 m.invoke(instance, 1); in timeMethod_invokeI()
122 C instance = new C(); in timeMethod_invokePreBoxedI() local
125 m.invoke(instance, one); in timeMethod_invokePreBoxedI()
[all …]
/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/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java305 Object instance = null; in newInstance() local
310 instance = candidate.newInstance (); in newInstance()
316 if (instance instanceof XmlPullParser) { in newInstance()
320 if (instance instanceof XmlSerializer) { in newInstance()
324 if (instance instanceof XmlPullParserFactory) { in newInstance()
326 factory = (XmlPullParserFactory) instance; in newInstance()
/libcore/libdvm/src/main/java/java/lang/
DClassLoader.java744 private static BootClassLoader instance; field in BootClassLoader
748 if (instance == null) { in getInstance()
749 instance = new BootClassLoader(); in getInstance()
752 return instance; in getInstance()
/libcore/libart/src/main/java/java/lang/
DClassLoader.java764 private static BootClassLoader instance; field in BootClassLoader
768 if (instance == null) { in getInstance()
769 instance = new BootClassLoader(); in getInstance()
772 return instance; in getInstance()
/libcore/luni/src/main/java/java/lang/
DProcessManager.java335 private static final ProcessManager instance = new ProcessManager(); field in ProcessManager
339 return instance; in getInstance()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DOldAndroidClassTest.java33 Object instance = helloClass.newInstance(); in testNewInstance() local
34 assertNotNull(instance); in testNewInstance()
/libcore/luni/src/main/java/java/io/
DObjectOutputStream.java477 …private static native Object getFieldL(Object instance, Class<?> declaringClass, String fieldName,… in getFieldL() argument
/libcore/expectations/
Dbrokentests.txt721 description: "this test assumes Integer.toString() always returns a new instance",