/dalvik/vm/native/ |
H A D | sun_misc_Unsafe.cpp | 59 * public native boolean compareAndSwapInt(Object obj, long offset, 66 Object* obj = (Object*) args[1]; local 70 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); 79 * public native boolean compareAndSwapLong(Object obj, long offset, 86 Object* obj = (Object*) args[1]; local 90 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset); 100 * public native boolean compareAndSwapObject(Object obj, long offset, 107 Object* obj = (Object*) args[1]; local 111 int32_t* address = (int32_t*) (((u1*) obj) + offset); 116 dvmWriteBarrierField(obj, addres 127 Object* obj = (Object*) args[1]; local 142 Object* obj = (Object*) args[1]; local 158 Object* obj = (Object*) args[1]; local 173 Object* obj = (Object*) args[1]; local 190 Object* obj = (Object*) args[1]; local 205 Object* obj = (Object*) args[1]; local 221 Object* obj = (Object*) args[1]; local 234 Object* obj = (Object*) args[1]; local 250 Object* obj = (Object*) args[1]; local 266 Object* obj = (Object*) args[1]; local 279 Object* obj = (Object*) args[1]; local 295 Object* obj = (Object*) args[1]; local 311 Object* obj = (Object*) args[1]; local 324 Object* obj = (Object*) args[1]; local 342 Object* obj = (Object*) args[1]; local [all...] |
H A D | java_lang_reflect_Field.cpp | 28 * instance field, "obj" is the object that holds the field data; for a 52 * (4) Make sure "obj" is not null. Throw NullPointerException. 58 static Field* validateFieldAccess(Object* obj, ClassObject* declaringClass, argument 94 if (obj != NULL) 95 isInstance = dvmInstanceof(obj->clazz, callerClass); 120 * expected field in it), then grab a pointer to obj storage. 121 * The call to dvmVerifyObjectInClass throws an NPE if "obj" is NULL. 123 if (!dvmVerifyObjectInClass(obj, declaringClass)) { 187 static void getInstFieldValue(const InstField* ifield, Object* obj, argument 194 value->i = dvmGetFieldBoolean(obj, ifiel 266 getFieldValue(const Field* field, Object* obj, JValue* value) argument 334 setInstFieldValue(InstField* ifield, Object* obj, const JValue* value) argument 422 setFieldValue(Field* field, Object* obj, const JValue* value) argument 458 Object* obj = (Object*) args[1]; local 493 Object* obj = (Object*) args[1]; local 526 Object* obj = (Object*) args[1]; local 566 Object* obj = (Object*) args[1]; local [all...] |
H A D | dalvik_system_VMDebug.cpp | 34 static int getFileDescriptor(Object* obj) argument 36 assert(obj != NULL); 37 assert(strcmp(obj->clazz->descriptor, "Ljava/io/FileDescriptor;") == 0); 39 int fd = dvmGetFieldInt(obj, gDvm.offJavaIoFileDescriptor_descriptor);
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
H A D | DirectClassFile.java | 154 * @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/tests/044-proxy/src/ |
H A D | BasicTest.java | 215 public MyInvocationHandler(Object obj) { argument 216 mObj = obj;
|
/dalvik/vm/ |
H A D | IndirectRefTable.h | 83 * 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 D | ReferenceTable.cpp | 55 * 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 D | Misc.cpp | 269 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 D | Sync.cpp | 75 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 D | Alloc.cpp | 97 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 D | CardTable.cpp | 201 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 D | Heap.cpp | 395 * 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 D | DdmHeap.cpp | 324 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
|
/dalvik/vm/hprof/ |
H A D | HprofHeap.cpp | 120 * objects. Used to add rootset references to obj. 122 int hprofMarkRootObject(hprof_context_t *ctx, const Object *obj, jobject jniObj) argument 153 hprofAddIdToRecord(rec, (hprof_object_id)obj); 161 hprofAddIdToRecord(rec, (hprof_object_id)obj); 173 hprofAddIdToRecord(rec, (hprof_object_id)obj); 184 hprofAddIdToRecord(rec, (hprof_object_id)obj); 194 hprofAddIdToRecord(rec, (hprof_object_id)obj); 209 static int stackTraceSerialNumber(const void *obj) argument 214 int hprofDumpHeapObject(hprof_context_t *ctx, const Object *obj) argument 220 desiredHeap = dvmIsZygoteObject(obj) [all...] |
/dalvik/vm/mterp/c/ |
H A D | header.cpp | 308 * Check to see if "obj" is NULL. If so, throw an exception. Assumes the 317 static inline bool checkForNull(Object* obj) argument 319 if (obj == NULL) { 324 if (!dvmIsHeapAddress(obj)) { 325 ALOGE("Invalid object %p", obj); 330 if (obj->clazz == NULL || ((u4) obj->clazz) <= 65536) { 332 ALOGE("Invalid object class %p (in %p)", obj->clazz, obj); 340 * Check to see if "obj" i 348 checkForNullExportPC(Object* obj, u4* fp, const u2* pc) argument [all...] |
/dalvik/vm/oo/ |
H A D | Object.cpp | 740 void dvmDumpObject(const Object* obj) argument 745 if (obj == NULL || obj->clazz == NULL) { 750 clazz = obj->clazz; 752 obj, clazz->descriptor, (int) clazz->objectSize); 753 //printHexDump(obj, clazz->objectSize); 765 dval = dvmGetFieldFloat(obj, pField->byteOffset); 767 dval = dvmGetFieldDouble(obj, pField->byteOffset); 776 lval = dvmGetFieldLong(obj, pField->byteOffset); 778 lval = dvmGetFieldBoolean(obj, pFiel [all...] |
H A D | ObjectInlines.h | 27 INLINE void dvmSetObjectArrayElement(const ArrayObject* obj, int index, argument 29 ((Object **)(void *)(obj)->contents)[index] = val; 31 dvmWriteBarrierArray(obj, index, index + 1); 50 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) { argument 51 return ((JValue*)BYTE_OFFSET(obj, offset)); 54 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) { argument 55 return ((JValue*)BYTE_OFFSET(obj, offset))->z; 57 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) { argument 58 return ((JValue*)BYTE_OFFSET(obj, offset))->b; 60 INLINE s2 dvmGetFieldShort(const Object* obj, in argument 63 dvmGetFieldChar(const Object* obj, int offset) argument 66 dvmGetFieldInt(const Object* obj, int offset) argument 69 dvmGetFieldLong(const Object* obj, int offset) argument 72 dvmGetFieldFloat(const Object* obj, int offset) argument 75 dvmGetFieldDouble(const Object* obj, int offset) argument 78 dvmGetFieldObject(const Object* obj, int offset) argument 81 dvmGetFieldBooleanVolatile(const Object* obj, int offset) argument 85 dvmGetFieldByteVolatile(const Object* obj, int offset) argument 89 dvmGetFieldShortVolatile(const Object* obj, int offset) argument 93 dvmGetFieldCharVolatile(const Object* obj, int offset) argument 97 dvmGetFieldIntVolatile(const Object* obj, int offset) argument 101 dvmGetFieldFloatVolatile(const Object* obj, int offset) argument 107 dvmGetFieldLongVolatile(const Object* obj, int offset) argument 113 dvmGetFieldDoubleVolatile(const Object* obj, int offset) argument 120 dvmGetFieldObjectVolatile(const Object* obj, int offset) argument 125 dvmSetFieldBoolean(Object* obj, int offset, bool val) argument 128 dvmSetFieldByte(Object* obj, int offset, s1 val) argument 131 dvmSetFieldShort(Object* obj, int offset, s2 val) argument 134 dvmSetFieldChar(Object* obj, int offset, u2 val) argument 137 dvmSetFieldInt(Object* obj, int offset, s4 val) argument 140 dvmSetFieldFloat(Object* obj, int offset, float val) argument 143 dvmSetFieldLong(Object* obj, int offset, s8 val) argument 146 dvmSetFieldDouble(Object* obj, int offset, double val) argument 149 dvmSetFieldObject(Object* obj, int offset, Object* val) argument 156 dvmSetFieldIntVolatile(Object* obj, int offset, s4 val) argument 167 dvmSetFieldBooleanVolatile(Object* obj, int offset, bool val) argument 170 dvmSetFieldByteVolatile(Object* obj, int offset, s1 val) argument 173 dvmSetFieldShortVolatile(Object* obj, int offset, s2 val) argument 176 dvmSetFieldCharVolatile(Object* obj, int offset, u2 val) argument 179 dvmSetFieldFloatVolatile(Object* obj, int offset, float val) argument 184 dvmSetFieldLongVolatile(Object* obj, int offset, s8 val) argument 188 dvmSetFieldDoubleVolatile(Object* obj, int offset, double val) argument 193 dvmSetFieldObjectVolatile(Object* obj, int offset, Object* val) argument [all...] |
/dalvik/tests/023-many-interfaces/src/ |
H A D | ManyInterfaces.java | 176 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/vm/interp/ |
H A D | Stack.cpp | 355 static ClassObject* callPrep(Thread* self, const Method* method, Object* obj, argument 371 if (obj != NULL) 372 clazz = obj->clazz; 420 * Pass in NULL for "obj" on calls to static methods. 424 void dvmCallMethod(Thread* self, const Method* method, Object* obj, argument 429 dvmCallMethodV(self, method, obj, false, pResult, args); 437 * Pass in NULL for "obj" on calls to static methods. 442 void dvmCallMethodV(Thread* self, const Method* method, Object* obj, argument 450 clazz = callPrep(self, method, obj, false); 463 assert(obj ! 548 dvmCallMethodA(Thread* self, const Method* method, Object* obj, bool fromJni, JValue* pResult, const jvalue* args) argument 656 dvmInvokeMethod(Object* obj, const Method* method, ArrayObject* argList, ArrayObject* params, ClassObject* returnType, bool noAccessCheck) argument [all...] |
/dalvik/vm/mterp/out/ |
H A D | InterpC-armv5te-vfp.cpp | 315 * Check to see if "obj" is NULL. If so, throw an exception. Assumes the 324 static inline bool checkForNull(Object* obj) argument 326 if (obj == NULL) { 331 if (!dvmIsHeapAddress(obj)) { 332 ALOGE("Invalid object %p", obj); 337 if (obj->clazz == NULL || ((u4) obj->clazz) <= 65536) { 339 ALOGE("Invalid object class %p (in %p)", obj->clazz, obj); 347 * Check to see if "obj" i 355 checkForNullExportPC(Object* obj, u4* fp, const u2* pc) argument [all...] |
H A D | InterpC-armv5te.cpp | 315 * Check to see if "obj" is NULL. If so, throw an exception. Assumes the 324 static inline bool checkForNull(Object* obj) argument 326 if (obj == NULL) { 331 if (!dvmIsHeapAddress(obj)) { 332 ALOGE("Invalid object %p", obj); 337 if (obj->clazz == NULL || ((u4) obj->clazz) <= 65536) { 339 ALOGE("Invalid object class %p (in %p)", obj->clazz, obj); 347 * Check to see if "obj" i 355 checkForNullExportPC(Object* obj, u4* fp, const u2* pc) argument [all...] |
H A D | InterpC-armv7-a-neon.cpp | 315 * Check to see if "obj" is NULL. If so, throw an exception. Assumes the 324 static inline bool checkForNull(Object* obj) argument 326 if (obj == NULL) { 331 if (!dvmIsHeapAddress(obj)) { 332 ALOGE("Invalid object %p", obj); 337 if (obj->clazz == NULL || ((u4) obj->clazz) <= 65536) { 339 ALOGE("Invalid object class %p (in %p)", obj->clazz, obj); 347 * Check to see if "obj" i 355 checkForNullExportPC(Object* obj, u4* fp, const u2* pc) argument [all...] |
H A D | InterpC-armv7-a.cpp | 315 * Check to see if "obj" is NULL. If so, throw an exception. Assumes the 324 static inline bool checkForNull(Object* obj) argument 326 if (obj == NULL) { 331 if (!dvmIsHeapAddress(obj)) { 332 ALOGE("Invalid object %p", obj); 337 if (obj->clazz == NULL || ((u4) obj->clazz) <= 65536) { 339 ALOGE("Invalid object class %p (in %p)", obj->clazz, obj); 347 * Check to see if "obj" i 355 checkForNullExportPC(Object* obj, u4* fp, const u2* pc) argument [all...] |
/dalvik/vm/reflect/ |
H A D | Proxy.cpp | 283 ClassObject* obj = gDvm.classJavaLangObject; local 284 allMethods[0] = obj->vtable[gDvm.voffJavaLangObject_equals]; 285 allMethods[1] = obj->vtable[gDvm.voffJavaLangObject_hashCode]; 286 allMethods[2] = obj->vtable[gDvm.voffJavaLangObject_toString]; 854 Object* obj = (Object*) args[0]; local 857 dvmSetFieldObject(obj, gDvm.offJavaLangReflectProxy_h, handler);
|
H A D | Reflect.cpp | 1189 Field* dvmGetFieldFromReflectObj(Object* obj) argument 1194 assert(obj->clazz == gDvm.classJavaLangReflectField); 1195 clazz = (ClassObject*)dvmGetFieldObject(obj, 1197 slot = dvmGetFieldInt(obj, gDvm.offJavaLangReflectField_slot); 1209 Method* dvmGetMethodFromReflectObj(Object* obj) argument 1214 if (obj->clazz == gDvm.classJavaLangReflectConstructor) { 1215 clazz = (ClassObject*)dvmGetFieldObject(obj, 1217 slot = dvmGetFieldInt(obj, gDvm.offJavaLangReflectConstructor_slot); 1218 } else if (obj->clazz == gDvm.classJavaLangReflectMethod) { 1219 clazz = (ClassObject*)dvmGetFieldObject(obj, [all...] |