/dalvik/vm/reflect/ |
D | Reflect.h | 37 ArrayObject* dvmGetDeclaredFields(ClassObject* clazz, bool publicOnly); 42 ArrayObject* dvmGetDeclaredConstructors(ClassObject* clazz, bool publicOnly); 51 ArrayObject* dvmGetDeclaredMethods(ClassObject* clazz, bool publicOnly); 57 ArrayObject* dvmGetInterfaces(ClassObject* clazz); 62 Field* dvmSlotToField(ClassObject* clazz, int slot); 63 Method* dvmSlotToMethod(ClassObject* clazz, int slot); 77 int dvmConvertArgument(DataObject* arg, ClassObject* type, s4* ins); 83 DataObject* dvmWrapPrimitive(JValue value, ClassObject* returnType); 89 bool dvmUnwrapPrimitive(Object* value, ClassObject* returnType, 96 ClassObject* dvmGetBoxedReturnType(const Method* meth); [all …]
|
D | Proxy.c | 39 static void createConstructor(ClassObject* clazz, Method* meth); 40 static void createHandlerMethod(ClassObject* clazz, Method* dstMeth, 86 ClassObject* proxyClass; in dvmReflectProxyStartup() 129 ClassObject* dvmGenerateProxyClass(StringObject* str, ArrayObject* interfaces, in dvmGenerateProxyClass() 136 ClassObject* newClass = NULL; in dvmGenerateProxyClass() 180 newClass = (ClassObject*) dvmMalloc(sizeof(*newClass), ALLOC_DEFAULT); in dvmGenerateProxyClass() 219 ClassObject** ifArray = (ClassObject**) interfaces->contents; in dvmGenerateProxyClass() 221 newClass->interfaces = (ClassObject**)dvmLinearAlloc(newClass->classLoader, in dvmGenerateProxyClass() 222 sizeof(ClassObject*) * interfaceCount); in dvmGenerateProxyClass() 295 ClassObject** classes; in gatherMethods() [all …]
|
D | Reflect.c | 160 ClassObject* clazz; in dvmValidateBoxClasses() 186 static ClassObject* convertSignaturePartToClass(char** pSignature, in convertSignaturePartToClass() 187 const ClassObject* defClass) in convertSignaturePartToClass() 189 ClassObject* clazz = NULL; in convertSignaturePartToClass() 240 ClassObject* defClass) in convertSignatureToClassArray() 243 ClassObject** classes; in convertSignatureToClassArray() 276 classes = (ClassObject**) classArray->contents; in convertSignatureToClassArray() 279 ClassObject* clazz; in convertSignatureToClassArray() 304 static int fieldToSlot(const Field* field, const ClassObject* clazz) in fieldToSlot() 323 Field* dvmSlotToField(ClassObject* clazz, int slot) in dvmSlotToField() [all …]
|
D | Annotation.c | 38 static Object* processEncodedAnnotation(const ClassObject* clazz,\ 40 static bool skipEncodedAnnotation(const ClassObject* clazz, const u1** pPtr); 149 const ClassObject* clazz) in getAnnoDirectory() 291 static Method* resolveAmbiguousMethod(const ClassObject* referrer, u4 methodIdx) in resolveAmbiguousMethod() 294 ClassObject* resClass; in resolveAmbiguousMethod() 379 static bool processAnnotationValue(const ClassObject* clazz, in processAnnotationValue() 632 static Object* convertReturnType(Object* valueObj, ClassObject* methodReturn) in convertReturnType() 641 ClassObject* srcElemClass; in convertReturnType() 642 ClassObject* dstElemClass; in convertReturnType() 697 static Object* createAnnotationMember(const ClassObject* clazz, in createAnnotationMember() [all …]
|
/dalvik/vm/ |
D | Globals.h | 165 ClassObject* unlinkedJavaLangClass; // see unlinkedJavaLangClassObject 166 ClassObject* classJavaLangClass; 167 ClassObject* classJavaLangClassArray; 168 ClassObject* classJavaLangError; 169 ClassObject* classJavaLangObject; 170 ClassObject* classJavaLangObjectArray; 171 ClassObject* classJavaLangRuntimeException; 172 ClassObject* classJavaLangString; 173 ClassObject* classJavaLangThread; 174 ClassObject* classJavaLangVMThread; [all …]
|
/dalvik/vm/oo/ |
D | TypeCheck.h | 28 int dvmInstanceofNonTrivial(const ClassObject* instance, 29 const ClassObject* clazz); 36 INLINE int dvmInstanceof(const ClassObject* instance, const ClassObject* clazz) in dvmInstanceof() 51 int dvmImplements(const ClassObject* clazz, const ClassObject* interface); 58 INLINE int dvmIsSubClass(const ClassObject* sub, const ClassObject* clazz) { in dvmIsSubClass() 75 bool dvmCanPutArrayElement(const ClassObject* elemClass, 76 const ClassObject* arrayClass);
|
D | Array.h | 33 ClassObject* dvmFindArrayClass(const char* descriptor, Object* loader); 39 ClassObject* dvmFindArrayClassForElement(ClassObject* elemClassObj); 49 ArrayObject* dvmAllocArray(ClassObject* arrayClass, size_t length, 58 ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass, 74 ArrayObject* dvmAllocObjectArray(ClassObject* elemClassObj, size_t length, 96 ArrayObject* dvmAllocMultiArray(ClassObject* arrayClass, int curDim, 103 ClassObject* dvmFindPrimitiveClass(char type); 121 INLINE bool dvmIsArrayClass(const ClassObject* clazz) in dvmIsArrayClass() 133 ClassObject* dstElemClass);
|
D | Class.h | 69 void dvmSetClassSerialNumber(ClassObject* clazz); 77 ClassObject* dvmFindClass(const char* descriptor, Object* loader); 78 ClassObject* dvmFindClassNoInit(const char* descriptor, Object* loader); 83 ClassObject* dvmFindSystemClass(const char* descriptor); 84 ClassObject* dvmFindSystemClassNoInit(const char* descriptor); 96 ClassObject* dvmFindLoadedClass(const char* descriptor); 103 ClassObject* dvmDefineClass(DvmDex* pDvmDex, const char* descriptor, 111 bool dvmLinkClass(ClassObject* clazz, bool classesResolved); 116 INLINE bool dvmIsClassInitialized(const ClassObject* clazz) { in dvmIsClassInitialized() 119 bool dvmIsClassInitializing(const ClassObject* clazz); [all …]
|
D | AccessCheck.h | 25 bool dvmCheckClassAccess(const ClassObject* accessFrom, 26 const ClassObject* clazz); 31 bool dvmCheckMethodAccess(const ClassObject* accessFrom, const Method* method); 36 bool dvmCheckFieldAccess(const ClassObject* accessFrom, const Field* field); 41 bool dvmInSamePackage(const ClassObject* class1, const ClassObject* class2);
|
D | TypeCheck.c | 81 static int isArrayInstanceOfArray(const ClassObject* subElemClass, int subDim, in isArrayInstanceOfArray() 82 const ClassObject* clazz) in isArrayInstanceOfArray() 137 static int isArrayInstanceOf(const ClassObject* sub, const ClassObject* clazz) in isArrayInstanceOf() 170 int dvmImplements(const ClassObject* clazz, const ClassObject* interface) in dvmImplements() 197 bool dvmCanPutArrayElement(const ClassObject* objectClass, in dvmCanPutArrayElement() 198 const ClassObject* arrayClass) in dvmCanPutArrayElement() 224 static inline int isInstanceof(const ClassObject* instance, in isInstanceof() 225 const ClassObject* clazz) in isInstanceof() 241 int dvmInstanceofNonTrivial(const ClassObject* instance, in dvmInstanceofNonTrivial() 242 const ClassObject* clazz) in dvmInstanceofNonTrivial()
|
D | Resolve.h | 46 ClassObject* dvmResolveClass(const ClassObject* referrer, u4 classIdx, 57 Method* dvmResolveMethod(const ClassObject* referrer, u4 methodIdx, 65 Method* dvmResolveInterfaceMethod(const ClassObject* referrer, u4 methodIdx); 72 InstField* dvmResolveInstField(const ClassObject* referrer, u4 ifieldIdx); 81 StaticField* dvmResolveStaticField(const ClassObject* referrer, u4 sfieldIdx); 88 StringObject* dvmResolveString(const ClassObject* referrer, u4 stringIdx);
|
D | AccessCheck.c | 39 bool dvmInSamePackage(const ClassObject* class1, const ClassObject* class2) in dvmInSamePackage() 88 static bool checkAccess(const ClassObject* accessFrom, in checkAccess() 89 const ClassObject* accessTo, u4 accessFlags) in checkAccess() 125 bool dvmCheckClassAccess(const ClassObject* accessFrom, in dvmCheckClassAccess() 126 const ClassObject* clazz) in dvmCheckClassAccess() 136 bool dvmCheckMethodAccess(const ClassObject* accessFrom, const Method* method) in dvmCheckMethodAccess() 144 bool dvmCheckFieldAccess(const ClassObject* accessFrom, const Field* field) in dvmCheckFieldAccess()
|
D | Object.h | 29 struct ClassObject; 41 typedef struct ClassObject ClassObject; typedef 208 ClassObject* clazz; 233 ClassObject* clazz; 329 struct ClassObject { struct 355 ClassObject* verifyErrorClass; argument 368 ClassObject* elementClass; argument 371 ClassObject* arrayClass; argument 380 ClassObject* super; argument 392 ClassObject** interfaces; argument [all …]
|
D | Array.c | 28 static ClassObject* createArrayClass(const char* descriptor, Object* loader); 29 static ClassObject* createPrimitiveClass(int idx); 41 ArrayObject* dvmAllocArray(ClassObject* arrayClass, size_t length, in dvmAllocArray() 81 ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass, in dvmAllocArrayByClass() 101 ClassObject* dvmFindArrayClassForElement(ClassObject* elemClassObj) in dvmFindArrayClassForElement() 103 ClassObject* arrayClass; in dvmFindArrayClassForElement() 137 ArrayObject* dvmAllocObjectArray(ClassObject* elemClassObj, size_t length, in dvmAllocObjectArray() 140 ClassObject* arrayClass; in dvmAllocObjectArray() 165 ClassObject** pTypeClass; in dvmAllocPrimitiveArray() 233 ArrayObject* dvmAllocMultiArray(ClassObject* arrayClass, int curDim, in dvmAllocMultiArray() [all …]
|
D | Object.c | 27 InstField* dvmFindInstanceField(const ClassObject* clazz, in dvmFindInstanceField() 61 InstField* dvmFindInstanceFieldHier(const ClassObject* clazz, in dvmFindInstanceFieldHier() 85 StaticField* dvmFindStaticField(const ClassObject* clazz, in dvmFindStaticField() 115 StaticField* dvmFindStaticFieldHier(const ClassObject* clazz, in dvmFindStaticFieldHier() 140 ClassObject* iface = clazz->iftable[i].clazz; in dvmFindStaticFieldHier() 165 Field* dvmFindFieldHier(const ClassObject* clazz, const char* fieldName, in dvmFindFieldHier() 191 ClassObject* iface = clazz->iftable[i].clazz; in dvmFindFieldHier() 365 static Method* findMethodInListByDescriptor(const ClassObject* clazz, in findMethodInListByDescriptor() 425 static Method* findMethodInListByProto(const ClassObject* clazz, in findMethodInListByProto() 468 Method* dvmFindVirtualMethodByDescriptor(const ClassObject* clazz, in dvmFindVirtualMethodByDescriptor() [all …]
|
D | Resolve.c | 62 ClassObject* dvmResolveClass(const ClassObject* referrer, u4 classIdx, in dvmResolveClass() 66 ClassObject* resClass; in dvmResolveClass() 120 ClassObject* resClassCheck = resClass; in dvmResolveClass() 175 Method* dvmResolveMethod(const ClassObject* referrer, u4 methodIdx, in dvmResolveMethod() 179 ClassObject* resClass; in dvmResolveMethod() 272 Method* dvmResolveInterfaceMethod(const ClassObject* referrer, u4 methodIdx) in dvmResolveInterfaceMethod() 275 ClassObject* resClass; in dvmResolveInterfaceMethod() 383 InstField* dvmResolveInstField(const ClassObject* referrer, u4 ifieldIdx) in dvmResolveInstField() 386 ClassObject* resClass; in dvmResolveInstField() 439 StaticField* dvmResolveStaticField(const ClassObject* referrer, u4 sfieldIdx) in dvmResolveStaticField() [all …]
|
/dalvik/vm/native/ |
D | java_lang_Class.c | 34 ClassObject* thisPtr = (ClassObject*) args[0]; in Dalvik_java_lang_Class_desiredAssertionStatus() 140 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getClassLoader() 154 ClassObject* thisPtr = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getComponentType() 182 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredClasses() 195 ClassObject** pSource = (ClassObject**) classes->contents; in Dalvik_java_lang_Class_getDeclaredClasses() 209 ClassObject** pDest = (ClassObject**) newClasses->contents; in Dalvik_java_lang_Class_getDeclaredClasses() 231 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredConstructors() 248 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredFields() 265 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredMethods() 281 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getInterfaces() [all …]
|
D | java_lang_reflect_Method.c | 34 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Method_getMethodModifiers() 54 ClassObject* declaringClass = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Method_invokeNative() 56 ClassObject* returnType = (ClassObject*) args[5]; in Dalvik_java_lang_reflect_Method_invokeNative() 125 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Method_getDeclaredAnnotations() 146 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Method_getParameterAnnotations() 168 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Method_getDefaultValue() 193 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Method_getSignatureAnnotation()
|
D | java_lang_reflect_Field.c | 59 static JValue* getFieldDataAddr(Object* obj, ClassObject* declaringClass, in getFieldDataAddr() 76 ClassObject* callerClass = in getFieldDataAddr() 149 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Field_getFieldModifiers() 168 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_getField() 169 ClassObject* fieldType = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Field_getField() 209 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_setField() 210 ClassObject* fieldType = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Field_setField() 268 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_getPrimitiveField() 269 ClassObject* fieldType = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Field_getPrimitiveField() 319 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_setPrimitiveField() [all …]
|
D | java_lang_reflect_Constructor.c | 31 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Constructor_getConstructorModifiers() 54 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Constructor_constructNative() 98 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Constructor_getDeclaredAnnotations() 119 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Constructor_getParameterAnnotations() 140 ClassObject* declaringClass = (ClassObject*) args[1]; in Dalvik_java_lang_reflect_Constructor_getSignatureAnnotation()
|
D | java_lang_reflect_Array.c | 33 ClassObject* elementClass = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Array_createObjectArray() 68 ClassObject* elementClass = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_Array_createMultiArray() 70 ClassObject* arrayClass; in Dalvik_java_lang_reflect_Array_createMultiArray()
|
D | dalvik_system_VMStack.c | 32 ClassObject* clazz = dvmGetCaller2Class(dvmThreadSelf()->curFrame); in Dalvik_dalvik_system_VMStack_getCallingClassLoader() 49 ClassObject* clazz = dvmGetCaller3Class(dvmThreadSelf()->curFrame); in Dalvik_dalvik_system_VMStack_getCallingClassLoader2() 66 ClassObject* clazz = dvmGetCaller3Class(dvmThreadSelf()->curFrame); in Dalvik_dalvik_system_VMStack_getStackClass2() 136 ClassObject* classArrayClass = NULL; in Dalvik_dalvik_system_VMStack_getClasses() 153 ClassObject** objects = (ClassObject**) classes->contents; in Dalvik_dalvik_system_VMStack_getClasses()
|
D | java_lang_reflect_AccessibleObject.c | 33 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_AccessibleObject_getClassSignatureAnnotation()
|
/dalvik/vm/analysis/ |
D | DexOptimize.h | 119 ClassObject* dvmOptResolveClass(ClassObject* referrer, u4 classIdx, 121 Method* dvmOptResolveMethod(ClassObject* referrer, u4 methodIdx, 123 Method* dvmOptResolveInterfaceMethod(ClassObject* referrer, u4 methodIdx); 124 InstField* dvmOptResolveInstField(ClassObject* referrer, u4 ifieldIdx, 126 StaticField* dvmOptResolveStaticField(ClassObject* referrer, u4 sfieldIdx,
|
/dalvik/vm/hprof/ |
D | HprofClass.c | 43 computeClassHash(const ClassObject *clazz) in computeClassHash() 61 const ClassObject *c1 = (const ClassObject *)v1; in classCmp() 62 const ClassObject *c2 = (const ClassObject *)v2; in classCmp() 150 hprofLookupClassId(const ClassObject *clazz) in hprofLookupClassId() 197 const ClassObject *clazz; in hprofDumpClasses() 199 clazz = (const ClassObject *)dvmHashIterData(&iter); in hprofDumpClasses()
|