Home
last modified time | relevance | path

Searched refs:ClassObject (Results 1 – 25 of 131) sorted by relevance

123456

/dalvik/vm/reflect/
DReflect.h37 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 …]
DProxy.c39 static void createConstructor(ClassObject* clazz, Method* meth);
40 static void createHandlerMethod(ClassObject* clazz, Method* dstMeth,
87 ClassObject* proxyClass; in dvmReflectProxyStartup()
130 ClassObject* dvmGenerateProxyClass(StringObject* str, ArrayObject* interfaces, in dvmGenerateProxyClass()
137 ClassObject* newClass = NULL; in dvmGenerateProxyClass()
181 newClass = (ClassObject*) dvmMalloc(sizeof(*newClass) + in dvmGenerateProxyClass()
192 offsetof(ClassObject, super), in dvmGenerateProxyClass()
196 offsetof(ClassObject, classLoader), in dvmGenerateProxyClass()
226 ClassObject** ifArray = (ClassObject**) interfaces->contents; in dvmGenerateProxyClass()
228 newClass->interfaces = (ClassObject**)dvmLinearAlloc(newClass->classLoader, in dvmGenerateProxyClass()
[all …]
DReflect.c160 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()
277 ClassObject* clazz; in convertSignatureToClassArray()
301 static int fieldToSlot(const Field* field, const ClassObject* clazz) in fieldToSlot()
320 Field* dvmSlotToField(ClassObject* clazz, int slot) in dvmSlotToField()
340 static Object* createFieldObject(Field* field, const ClassObject* clazz) in createFieldObject()
345 ClassObject* type; in createFieldObject()
[all …]
/dalvik/vm/oo/
DTypeCheck.h28 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);
DArray.h33 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);
120 INLINE bool dvmIsObjectArrayClass(const ClassObject* clazz) in dvmIsObjectArrayClass()
143 INLINE bool dvmIsArrayClass(const ClassObject* clazz) in dvmIsArrayClass()
155 ClassObject* dstElemClass);
[all …]
DClass.h69 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);
116 INLINE bool dvmIsClassInitialized(const ClassObject* clazz) { in dvmIsClassInitialized()
119 bool dvmIsClassInitializing(const ClassObject* clazz);
[all …]
DAccessCheck.h25 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);
DResolve.h46 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);
DTypeCheck.c81 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()
DObject.h31 struct ClassObject;
43 typedef struct ClassObject ClassObject; typedef
220 ClassObject* clazz;
245 ClassObject* clazz;
333 ClassObject* clazz; /* class in which the field is declared */
387 struct ClassObject { struct
413 ClassObject* verifyErrorClass; argument
426 ClassObject* elementClass; argument
435 ClassObject* super; argument
447 ClassObject** interfaces; argument
[all …]
DAccessCheck.c39 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()
DArray.c28 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()
129 ArrayObject* dvmAllocObjectArray(ClassObject* elemClassObj, size_t length, in dvmAllocObjectArray()
132 ClassObject* arrayClass; in dvmAllocObjectArray()
157 ClassObject** pTypeClass; in dvmAllocPrimitiveArray()
225 ArrayObject* dvmAllocMultiArray(ClassObject* arrayClass, int curDim, in dvmAllocMultiArray()
[all …]
DObject.c27 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 …]
DResolve.c63 ClassObject* dvmResolveClass(const ClassObject* referrer, u4 classIdx, in dvmResolveClass()
67 ClassObject* resClass; in dvmResolveClass()
121 ClassObject* resClassCheck = resClass; in dvmResolveClass()
176 Method* dvmResolveMethod(const ClassObject* referrer, u4 methodIdx, in dvmResolveMethod()
180 ClassObject* resClass; in dvmResolveMethod()
284 Method* dvmResolveInterfaceMethod(const ClassObject* referrer, u4 methodIdx) in dvmResolveInterfaceMethod()
287 ClassObject* resClass; in dvmResolveInterfaceMethod()
398 InstField* dvmResolveInstField(const ClassObject* referrer, u4 ifieldIdx) in dvmResolveInstField()
401 ClassObject* resClass; in dvmResolveInstField()
460 StaticField* dvmResolveStaticField(const ClassObject* referrer, u4 sfieldIdx) in dvmResolveStaticField()
[all …]
/dalvik/vm/
DGlobals.h198 ClassObject* classJavaLangClass;
199 ClassObject* classJavaLangClassArray;
200 ClassObject* classJavaLangError;
201 ClassObject* classJavaLangObject;
202 ClassObject* classJavaLangObjectArray;
203 ClassObject* classJavaLangRuntimeException;
204 ClassObject* classJavaLangString;
205 ClassObject* classJavaLangThread;
206 ClassObject* classJavaLangVMThread;
207 ClassObject* classJavaLangThreadGroup;
[all …]
/dalvik/vm/native/
Djava_lang_Class.c34 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()
233 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredConstructors()
250 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredFields()
267 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredMethods()
283 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getInterfaces()
302 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getModifiers()
[all …]
Djava_lang_reflect_Method.c34 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()
Djava_lang_reflect_Field.c59 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()
279 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_getPrimitiveField()
280 ClassObject* fieldType = (ClassObject*) args[3]; in Dalvik_java_lang_reflect_Field_getPrimitiveField()
330 ClassObject* declaringClass = (ClassObject*) args[2]; in Dalvik_java_lang_reflect_Field_setPrimitiveField()
[all …]
Djava_lang_reflect_Constructor.c31 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()
Djava_lang_reflect_Array.c33 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()
Djava_lang_reflect_AccessibleObject.c33 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_reflect_AccessibleObject_getClassSignatureAnnotation()
/dalvik/vm/analysis/
DOptimize.h32 void dvmOptimizeClass(ClassObject* clazz, bool essentialOnly);
38 ClassObject* dvmOptResolveClass(ClassObject* referrer, u4 classIdx,
40 Method* dvmOptResolveMethod(ClassObject* referrer, u4 methodIdx,
42 Method* dvmOptResolveInterfaceMethod(ClassObject* referrer, u4 methodIdx);
43 InstField* dvmOptResolveInstField(ClassObject* referrer, u4 ifieldIdx,
45 StaticField* dvmOptResolveStaticField(ClassObject* referrer, u4 sfieldIdx,
/dalvik/vm/compiler/codegen/arm/
DCalloutHelper.h70 bool dvmCanPutArrayElement(const ClassObject* elemClass, // OP_APUT_OBJECT
71 const ClassObject* arrayClass);
72 int dvmInstanceofNonTrivial(const ClassObject* instance, // OP_CHECK_CAST &&
73 const ClassObject* clazz); // OP_INSTANCE_OF
76 ArrayObject* dvmAllocArrayByClass(ClassObject* arrayClass, // OP_NEW_ARRAY
101 Object* dvmAllocObject(ClassObject* clazz, int flags); // OP_NEW_INSTANCE
/dalvik/vm/hprof/
DHprofClass.c43 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()
/dalvik/vm/alloc/
DAlloc.h56 Object* dvmAllocObject(ClassObject* clazz, int flags);
185 size_t dvmCountInstancesOfClass(const ClassObject *clazz);
190 size_t dvmCountAssignableInstancesOfClass(const ClassObject *clazz);

123456