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

12

/dalvik/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...]
/dalvik/tests/034-call-null/src/
H A DMain.java11 Main instance = null;
12 instance.doStuff();
/dalvik/vm/oo/
H A DTypeCheck.h28 int dvmInstanceofNonTrivial(const ClassObject* instance,
32 * Determine whether "instance" is an instance of "clazz".
36 INLINE int dvmInstanceof(const ClassObject* instance, const ClassObject* clazz) argument
38 if (instance == clazz) {
43 return dvmInstanceofNonTrivial(instance, clazz);
H A DTypeCheck.c57 * Determine whether "sub" is an instance of "clazz", where both of these
97 * See if "sub" is an instance of "clazz". This handles the
103 * The thing we might be an instance of has fewer dimensions. It
224 static inline int isInstanceof(const ClassObject* instance, argument
228 return dvmImplements(instance, clazz);
229 } else if (dvmIsArrayClass(instance)) {
230 return isArrayInstanceOf(instance, clazz);
232 return dvmIsSubClass(instance, clazz);
241 int dvmInstanceofNonTrivial(const ClassObject* instance, argument
244 #define ATOMIC_CACHE_CALC isInstanceof(instance, claz
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DDeleteOnExit.java33 * Our singleton instance.
35 private static DeleteOnExit instance; field in class:DeleteOnExit
43 * Returns our singleton instance, creating it if necessary.
46 if (instance == null) {
47 instance = new DeleteOnExit();
48 Runtime.getRuntime().addShutdownHook(instance);
51 return instance;
H A DOIDDatabase.java29 private static OIDDatabase instance = new OIDDatabase(); field in class:OIDDatabase
109 return instance;
/dalvik/hit/src/com/android/hit/
H A DRootObj.java54 Instance instance = state.findReference(mId);
56 theClass = state.findClass(instance.mClassId);
68 Instance instance = null;
71 instance = mHeap.mState.findClass(mId);
73 instance = mHeap.mState.findReference(mId);
76 if (instance == null) {
80 return instance.getSize();
H A DClassObj.java82 Instance instance = state.findReference(id);
84 instance.addParent(this);
90 instance.getTypeName(),
91 instance.mHeap.mName,
127 public final void addInstance(Instance instance) { argument
128 mInstances.add(instance);
216 Instance instance = state.findReference(id);
218 if (instance != null) {
219 instance.visit(resultSet, filter);
H A DArrayInstance.java43 * mData holds a stream of object instance ids
62 Instance instance = state.findReference(id);
64 if (instance != null) {
65 instance.addParent(this);
98 * mData holds a stream of object instance ids
118 Instance instance = state.findReference(id);
120 if (instance != null) {
121 instance.visit(resultSet, filter);
H A DHeap.java91 public final void addInstance(long id, Instance instance) { argument
92 mInstances.put(id, instance);
137 for (Instance instance: theClass.mInstances) {
138 size += instance.getCompositeSize();
150 * parent class definition objects. Then have each instance resolve
154 for (Instance instance : mInstances.values()) {
155 ClassObj theClass = mClassesById.get(instance.mClassId);
169 theClass.addInstance(instance);
170 instance.resolveReferences(state);
H A DInstance.java26 // Id of the ClassObj of which this object is an instance
39 public boolean accept(Instance instance); argument
75 for (Instance instance: set) {
76 size += instance.getSize();
H A DClassInstance.java71 Instance instance = state.findReference(id);
73 if (instance != null) {
74 instance.addParent(this);
131 Instance instance = state.findReference(id);
133 if (instance != null) {
134 instance.visit(resultSet, filter);
H A DState.java103 public final void addInstance(long id, Instance instance) { argument
104 mCurrentHeap.addInstance(id, instance);
113 Instance instance = heap.getInstance(id);
115 if (instance != null) {
116 return instance;
120 // Couldn't find an instance of a class, look for a class object
151 "+------------------ instance counts for heap: " + heap.mName);
H A DQueries.java219 for (Instance instance: newHeap.mInstances.values()) {
220 Instance oldInstance = oldHeap.getInstance(instance.mId);
223 * If this instance wasn't in the old heap, or was there,
229 || (instance.mClassId != oldInstance.mClassId)) {
230 resultList.add(instance);
/dalvik/tests/046-reflect/src/
H A DMain.java39 private void showStrings(Target instance) argument
47 one = (String) field.get(instance);
50 two = (String) field.get(instance);
53 three = (String) field.get(instance);
81 Target instance = new Target();
91 boxval = (Integer) meth.invoke(instance, argList);
96 meth.invoke(instance, (Object[]) null);
101 meth.invoke(instance, (Object[]) null);
119 String strVal = (String) field.get(instance);
122 showStrings(instance);
[all...]
/dalvik/libcore/luni-kernel/src/main/java/org/apache/harmony/kernel/vm/
H A DLangAccess.java23 * core library. Trusted packages either get seeded with an instance
29 /** unique instance of this class */
33 * Sets the unique instance of this class. This may only be done once.
35 * @param instance non-null; the instance
37 public static void setInstance(LangAccess instance) { argument
42 theInstance = instance;
46 * Gets the unique instance of this class. This is only allowed in
52 * instance.
/dalvik/libcore/xml/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;
/dalvik/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParserFactory.java162 * Creates a new instance of a XML Pull Parser
165 * @return A new instance of a XML Pull Parser.
204 * Creates a new instance of a XML Serializer.
208 * @return A new instance of a XML Serializer.
242 * Create a new instance of a PullParserFactory that can be used
246 * @return a new instance of a PullParserFactory, as returned by newInstance (null, null);
307 Object instance = null;
312 instance = candidate.newInstance ();
318 if (instance instanceof XmlPullParser) {
322 if (instance instanceo
[all...]
/dalvik/vm/compiler/codegen/arm/
H A DCalloutHelper.h72 int dvmInstanceofNonTrivial(const ClassObject* instance, // OP_CHECK_CAST &&
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
H A DClassLoader.java201 * Constructs a new instance of this class with the system class loader as
214 * Constructs a new instance of this class with the specified class loader
1041 static BootClassLoader instance; field in class:BootClassLoader
1044 if (instance == null) {
1045 instance = new BootClassLoader();
1048 return instance;
/dalvik/libcore/xml/src/main/java/org/apache/xalan/xslt/
H A DObjectFactory.java92 * @return instance of factory, never null
116 * @return instance of factory, never null
143 Object instance = factoryClass.newInstance();
144 debugPrintln("created new instance of factory " + factoryId);
145 return instance;
222 debugPrintln("created new instance of " + providerClass +
450 * Create an instance of a class using the specified ClassLoader
459 Object instance = providerClass.newInstance();
460 debugPrintln("created new instance of " + providerClass +
462 return instance;
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xml/dtm/
H A DObjectFactory.java92 * @return instance of factory, never null
116 * @return instance of factory, never null
143 Object instance = factoryClass.newInstance();
144 debugPrintln("created new instance of factory " + factoryId);
145 return instance;
222 debugPrintln("created new instance of " + providerClass +
450 * Create an instance of a class using the specified ClassLoader
459 Object instance = providerClass.newInstance();
460 debugPrintln("created new instance of " + providerClass +
462 return instance;
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xml/serializer/
H A DObjectFactory.java91 * @return instance of factory, never null
115 * @return instance of factory, never null
142 Object instance = factoryClass.newInstance();
143 debugPrintln("created new instance of factory " + factoryId);
144 return instance;
221 debugPrintln("created new instance of " + providerClass +
449 * Create an instance of a class using the specified ClassLoader
458 Object instance = providerClass.newInstance();
459 debugPrintln("created new instance of " + providerClass +
461 return instance;
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xml/utils/
H A DObjectFactory.java92 * @return instance of factory, never null
116 * @return instance of factory, never null
143 Object instance = factoryClass.newInstance();
144 debugPrintln("created new instance of factory " + factoryId);
145 return instance;
222 debugPrintln("created new instance of " + providerClass +
450 * Create an instance of a class using the specified ClassLoader
459 Object instance = providerClass.newInstance();
460 debugPrintln("created new instance of " + providerClass +
462 return instance;
[all...]
/dalvik/libcore/xml/src/main/java/org/apache/xpath/functions/
H A DObjectFactory.java92 * @return instance of factory, never null
116 * @return instance of factory, never null
143 Object instance = factoryClass.newInstance();
144 debugPrintln("created new instance of factory " + factoryId);
145 return instance;
222 debugPrintln("created new instance of " + providerClass +
450 * Create an instance of a class using the specified ClassLoader
459 Object instance = providerClass.newInstance();
460 debugPrintln("created new instance of " + providerClass +
462 return instance;
[all...]

Completed in 433 milliseconds

12