Searched defs:obj (Results 1 - 25 of 61) sorted by last modified time

123

/dalvik/dexgen/src/com/android/dexgen/util/
H A DFixedSizeList.java210 * @param obj {@code null-ok;} the value to store
212 protected final void set0(int n, Object obj) { argument
216 arr[n] = obj;
/dalvik/dx/src/com/android/dx/cf/direct/
H A DDirectClassFile.java154 * @param obj {@code null-ok;} the object to stringify
157 public static String stringOrNone(Object obj) { argument
158 if (obj == null) {
162 return obj.toString();
/dalvik/dx/src/com/android/dx/util/
H A DFixedSizeList.java210 * @param obj {@code null-ok;} the value to store
212 protected final void set0(int n, Object obj) { argument
216 arr[n] = obj;
/dalvik/tests/003-omnibus-opcodes/src/
H A DUnresTest2.java8 static boolean checkCasts(Object obj) { argument
12 UnresClass un = (UnresClass) obj;
18 foo = obj instanceof UnresClass;
/dalvik/tests/023-many-interfaces/src/
H A DManyInterfaces.java176 ManyInterfaces obj = new ManyInterfaces();
192 testIface001(obj, iter);
197 testIface049(obj, iter);
202 testIface099(obj, iter);
207 testVirt001(obj, iter);
212 testVirt049(obj, iter);
217 testVirt099(obj, iter);
222 testInstance001(obj, iter);
227 testInstance049(obj, iter);
232 testInstance099(obj, ite
315 testVirt001(ManyInterfaces obj, int count) argument
324 testVirt049(ManyInterfaces obj, int count) argument
333 testVirt099(ManyInterfaces obj, int count) argument
342 testInstance001(Object obj, int count) argument
366 testInstance049(Object obj, int count) argument
390 testInstance099(Object obj, int count) argument
[all...]
/dalvik/tests/024-illegal-access/src/
H A DCheckInstanceof.java21 public static void main(Object obj) { argument
22 if (obj instanceof otherpkg.Package)
/dalvik/tests/031-class-attributes/src/
H A DClassAttrs.java76 public static String getSignatureAttribute(Object obj) { argument
79 if (obj instanceof AccessibleObject) {
95 return (String) method.invoke(obj);
/dalvik/tests/044-proxy/src/
H A DBasicTest.java215 public MyInvocationHandler(Object obj) { argument
216 mObj = obj;
H A DWrappedThrow.java181 public WTInvocationHandler(Object obj) { argument
182 mObj = obj;
/dalvik/tests/064-field-access/src/
H A DMain.java41 * Get the field specified by "field" from "obj".
51 public Object getValue(Field field, Object obj, char type, argument
58 result = new Boolean(field.getBoolean(obj));
61 result = new Byte(field.getByte(obj));
64 result = new Short(field.getShort(obj));
67 result = new Character(field.getChar(obj));
70 result = new Integer(field.getInt(obj));
73 result = new Long(field.getLong(obj));
76 result = new Float(field.getFloat(obj));
79 result = new Double(field.getDouble(obj));
283 getValue(Field field, Object obj, char type, Class expectedException) argument
[all...]
/dalvik/tests/088-monitor-verification/src/
H A DMain.java179 private void doNothing(Object obj) {} argument
/dalvik/vm/
H A DCheckJni.cpp294 Object* obj = dvmDecodeIndirectRef(self(), jobj); local
297 * obj will be NULL. Otherwise, obj should always be non-NULL
300 if (obj != NULL && !dvmIsHeapAddress(obj)) {
306 ClassObject* objClass = obj->clazz;
344 Object* obj = dvmDecodeIndirectRef(self(), jobj); local
345 if (!dvmIsHeapAddress(obj)) {
354 ClassObject* clazz = obj->clazz;
365 fieldID, obj
461 Object* obj = dvmDecodeIndirectRef(self(), jobj); local
749 Object* obj = dvmDecodeIndirectRef(self(), jarr); local
795 Object* obj = dvmDecodeIndirectRef(self(), jobj); local
967 Object* obj = dvmDecodeIndirectRef(self(), jobj); local
1388 Check_Throw(JNIEnv* env, jthrowable obj) argument
1432 Check_NewGlobalRef(JNIEnv* env, jobject obj) argument
1500 Check_GetObjectClass(JNIEnv* env, jobject obj) argument
1505 Check_IsInstanceOf(JNIEnv* env, jobject obj, jclass clazz) argument
1898 Check_MonitorEnter(JNIEnv* env, jobject obj) argument
1903 Check_MonitorExit(JNIEnv* env, jobject obj) argument
1975 Check_NewWeakGlobalRef(JNIEnv* env, jobject obj) argument
1980 Check_DeleteWeakGlobalRef(JNIEnv* env, jweak obj) argument
1991 Check_GetObjectRefType(JNIEnv* env, jobject obj) argument
[all...]
H A DDebugger.cpp209 static ObjectId registerObject(const Object* obj, RegistryType type, bool reg) argument
213 if (obj == NULL)
216 assert((u4) obj != 0xcccccccc);
217 assert((u4) obj > 0x100);
219 id = (ObjectId)(u4)obj | ((u8) type) << 32;
289 static ObjectId objectToObjectId(const Object* obj) argument
291 return registerObject(obj, kObjectId, true);
293 static ObjectId objectToObjectIdNoReg(const Object* obj) argument
295 return registerObject(obj, kObjectId, false);
312 Object* obj local
706 Object* obj = objectIdToObject(objectId); local
846 tagFromObject(const Object* obj) argument
1442 Object* obj = objectIdToObject(objId); local
1465 Object* obj = objectIdToObject(objectId); local
1515 Object* obj = objectIdToObject(objectId); local
[all...]
H A DDebugger.h88 Object* obj; /* not used for ClassType.InvokeMethod */ member in struct:DebugInvokeReq
H A DIndirectRefTable.cpp61 IndirectRef IndirectRefTable::add(u4 cookie, Object* obj) argument
67 assert(obj != NULL);
68 assert(dvmIsHeapAddress(obj));
86 assert(slot->obj != NULL);
87 while ((--slot)->obj != NULL) {
127 slot->obj = obj;
167 Object* obj = table_[index].obj; local
168 if (obj
186 findObject(const Object* obj, int bottomIndex, int topIndex, const IndirectRefSlot* table) argument
[all...]
H A DIndirectRefTable.h83 * create iref1 for obj, delete iref1, create iref2 for same obj, lookup
120 Object* obj; /* object pointer itself, NULL if the slot is unused */ member in struct:IndirectRefSlot
216 return &table_[i_].obj;
226 while (i_ < capacity_ && (table_[i_].obj == NULL
227 || table_[i_].obj == kClearedJniWeakGlobal)) {
267 * Add a new entry. "obj" must be a valid non-NULL object reference
269 * dvmMalloc doesn't have obj->clazz set).
274 IndirectRef add(u4 cookie, Object* obj);
286 bool contains(const Object* obj) cons
[all...]
H A DJni.cpp384 static inline jobject addLocalReference(Thread* self, Object* obj) { argument
385 if (obj == NULL) {
392 jobject jobj = (jobject) pRefTable->add(cookie, obj);
399 return reinterpret_cast<jobject>(obj);
443 static jobject addGlobalReference(Object* obj) { argument
444 if (obj == NULL) {
448 //ALOGI("adding obj=%p", obj);
451 if (false && dvmIsClassObject((Object*)obj)) {
452 ClassObject* clazz = (ClassObject*) obj;
526 addWeakGlobalReference(Object* obj) argument
703 Object* obj = dvmDecodeIndirectRef(self, jobj); local
981 trackMonitorEnter(Thread* self, Object* obj) argument
1007 trackMonitorExit(Thread* self, Object* obj) argument
1336 Object* obj = dvmCreateReflectObjForMethod(clazz, (Method*) methodID); local
1351 Object* obj = dvmCreateReflectObjForField(clazz, (Field*) fieldID); local
1362 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
1477 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
1495 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
1619 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
1634 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
2334 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
2553 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
2570 Object* obj = dvmDecodeIndirectRef(ts.self(), jobj); local
2679 Object *obj = dvmDecodeIndirectRef(ts.self(), jobj); local
[all...]
H A DMisc.cpp269 std::string dvmHumanReadableType(const Object* obj) argument
271 if (obj == NULL) {
274 if (obj->clazz == NULL) {
278 std::string result(dvmHumanReadableDescriptor(obj->clazz->descriptor));
279 if (dvmIsClassObject(obj)) {
280 const ClassObject* clazz = reinterpret_cast<const ClassObject*>(obj);
H A DReferenceTable.cpp55 * Add "obj" to "pRef".
57 bool dvmAddToReferenceTable(ReferenceTable* pRef, Object* obj) argument
59 assert(obj != NULL);
60 assert(dvmIsHeapAddress(obj));
93 *pRef->nextEntry++ = obj;
101 Object* obj)
107 if (*ptr == obj)
114 * Remove "obj" from "pRef". We start at the end of the list (where the
118 * Most of the time "obj" is at or near the end of the list. If not, we
122 Object* obj)
100 dvmFindInReferenceTable(const ReferenceTable* pRef, Object** bottom, Object* obj) argument
121 dvmRemoveFromReferenceTable(ReferenceTable* pRef, Object** bottom, Object* obj) argument
157 getElementCount(const Object* obj) argument
216 logSummaryLine(const Object* obj, size_t elems, int identical, int equiv) argument
[all...]
H A DSync.cpp75 Object* obj; /* what object are we part of [debug only] */ member in struct:Monitor
95 Monitor* dvmCreateMonitor(Object* obj) argument
104 mon->obj = obj;
140 return mon->obj;
146 static u4 lockOwner(Object* obj) argument
151 assert(obj != NULL);
156 lock = obj->lock;
171 Thread* dvmGetObjectLockHolder(Object* obj) argument
173 u4 threadId = lockOwner(obj);
184 dvmHoldsLock(Thread* thread, Object* obj) argument
223 Object *obj; local
829 inflateMonitor(Thread *self, Object *obj) argument
856 dvmLockObject(Thread* self, Object *obj) argument
1002 dvmUnlockObject(Thread* self, Object *obj) argument
1066 dvmObjectWait(Thread* self, Object *obj, s8 msec, s4 nsec, bool interruptShouldThrow) argument
1098 dvmObjectNotify(Thread* self, Object *obj) argument
1126 dvmObjectNotifyAll(Thread* self, Object *obj) argument
1219 dvmIdentityHashCode(Object *obj) argument
1227 dvmIdentityHashCode(Object *obj) argument
[all...]
/dalvik/vm/alloc/
H A DAlloc.cpp97 Object* obj; local
113 obj = dvmAllocObject(clazz, ALLOC_DEFAULT);
114 if (obj == NULL)
123 dvmReleaseTrackedAlloc(obj, self);
129 dvmCallMethod(self, init, obj, &unused, msgStr);
132 dvmReleaseTrackedAlloc(obj, self);
137 return obj;
201 * We use the size actually allocated, rather than obj->clazz->objectSize,
204 Object* dvmCloneObject(Object* obj, int flags) argument
206 assert(dvmIsValidObject(obj));
254 dvmAddTrackedAlloc(Object* obj, Thread* self) argument
275 dvmReleaseTrackedAlloc(Object* obj, Thread* self) argument
313 countInstancesOfClassCallback(Object *obj, void *arg) argument
332 countAssignableInstancesOfClassCallback(Object *obj, void *arg) argument
[all...]
H A DCardTable.cpp201 static bool isObjectDirty(const Object *obj) argument
203 assert(obj != NULL);
204 assert(dvmIsValidObject(obj));
205 u1 *card = dvmCardFromAddr(obj);
223 Object *obj; local
227 obj = *(Object **)addr;
228 if (obj == NULL) {
231 assert(dvmIsValidObject(obj));
233 if (dvmHeapBitmapIsObjectBitSet(ctx->markBits, obj)) {
245 Object *obj; local
266 Object *obj = *(Object **)pObj; local
273 dumpReferencesCallback(Object *obj, void *arg) argument
291 Object *obj = *(Object **)ptr; local
301 dumpReferences(const Object *obj) argument
313 isReferentUnmarked(const Object *obj, const WhiteReferenceCounter* ctx) argument
334 isWeakInternedString(const Object *obj) argument
348 isPushedOnMarkStack(const Object *obj) argument
367 verifyCardTableCallback(Object *obj, void *arg) argument
[all...]
H A DDdmHeap.cpp324 const Object *obj = (const Object *)start; local
330 if (!native && dvmIsValidObject(obj)) {
331 ClassObject *clazz = obj->clazz;
370 obj = NULL; // it's not actually an object
H A DHeap.cpp395 * Returns true iff <obj> points to a valid allocated object.
397 bool dvmIsValidObject(const Object* obj) argument
401 if (obj != NULL && ((uintptr_t)obj & (8-1)) == 0) {
415 return dvmHeapSourceContains(obj);
420 size_t dvmObjectSizeInHeap(const Object *obj) argument
422 return dvmHeapSourceChunkSize(obj);
H A DHeapBitmap.cpp78 * Return true iff <obj> is within the range of pointers that this
82 bool dvmHeapBitmapCoversAddress(const HeapBitmap *hb, const void *obj) argument
85 if (obj != NULL) {
86 const uintptr_t offset = (uintptr_t)obj - hb->base;
111 Object* obj = (Object *)(ptrBase + shift * HB_OBJECT_ALIGNMENT); local
112 (*callback)(obj, arg);
147 Object *obj = (Object *)(ptrBase + shift * HB_OBJECT_ALIGNMENT); local
148 (*callback)(obj, finger, arg);

Completed in 540 milliseconds

123