Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 25 of 265) sorted by relevance

1234567891011

/dalvik/vm/oo/
DClass.c176 static void loadMethodFromDex(ClassObject* clazz, const DexMethod* pDexMethod,\
179 static void loadSFieldFromDex(ClassObject* clazz,
181 static void loadIFieldFromDex(ClassObject* clazz,
184 static bool createVtable(ClassObject* clazz);
185 static bool createIftable(ClassObject* clazz);
186 static bool insertMethodStubs(ClassObject* clazz);
187 static bool computeFieldOffsets(ClassObject* clazz);
188 static void throwEarlierClassFailure(ClassObject* clazz);
198 static void logClassLoadWithTime(char type, ClassObject* clazz, u8 time) { in logClassLoadWithTime() argument
204 get_process_name(), (int) clazz->classLoader, clazz->descriptor, in logClassLoadWithTime()
[all …]
DTypeCheck.c82 const ClassObject* clazz) in isArrayInstanceOfArray() argument
85 assert(dvmIsArrayClass(clazz)); in isArrayInstanceOfArray()
94 assert(subDim > 0 && clazz->arrayDim > 0); in isArrayInstanceOfArray()
95 if (subDim == clazz->arrayDim) { in isArrayInstanceOfArray()
100 return dvmInstanceof(subElemClass, clazz->elementClass); in isArrayInstanceOfArray()
101 } else if (subDim > clazz->arrayDim) { in isArrayInstanceOfArray()
108 if (dvmIsInterfaceClass(clazz->elementClass)) { in isArrayInstanceOfArray()
114 return dvmImplements(clazz, clazz->elementClass); in isArrayInstanceOfArray()
121 return (clazz->elementClass == clazz->super); in isArrayInstanceOfArray()
137 static int isArrayInstanceOf(const ClassObject* sub, const ClassObject* clazz) in isArrayInstanceOf() argument
[all …]
DObject.c27 InstField* dvmFindInstanceField(const ClassObject* clazz, in dvmFindInstanceField() argument
33 assert(clazz != NULL); in dvmFindInstanceField()
41 pField = clazz->ifields; in dvmFindInstanceField()
42 for (i = 0; i < clazz->ifieldCount; i++, pField++) { in dvmFindInstanceField()
61 InstField* dvmFindInstanceFieldHier(const ClassObject* clazz, in dvmFindInstanceFieldHier() argument
69 pField = dvmFindInstanceField(clazz, fieldName, signature); in dvmFindInstanceFieldHier()
73 if (clazz->super != NULL) in dvmFindInstanceFieldHier()
74 return dvmFindInstanceFieldHier(clazz->super, fieldName, signature); in dvmFindInstanceFieldHier()
85 StaticField* dvmFindStaticField(const ClassObject* clazz, in dvmFindStaticField() argument
91 assert(clazz != NULL); in dvmFindStaticField()
[all …]
DTypeCheck.h29 const ClassObject* clazz);
36 INLINE int dvmInstanceof(const ClassObject* instance, const ClassObject* clazz) in dvmInstanceof() argument
38 if (instance == clazz) { in dvmInstanceof()
43 return dvmInstanceofNonTrivial(instance, clazz); in dvmInstanceof()
51 int dvmImplements(const ClassObject* clazz, const ClassObject* interface);
58 INLINE int dvmIsSubClass(const ClassObject* sub, const ClassObject* clazz) { in dvmIsSubClass() argument
61 if (sub == clazz) in dvmIsSubClass()
DObject.h149 ClassObject* clazz; member
174 ClassObject* clazz; member
185 do { (obj)->clazz = (clazz_); DVM_LOCK_INIT(&(obj)->lock); } while (0)
190 #define SET_CLASS_FLAG(clazz, flag) \ argument
191 do { (clazz)->accessFlags |= (flag); } while (0)
193 #define CLEAR_CLASS_FLAG(clazz, flag) \ argument
194 do { (clazz)->accessFlags &= ~(flag); } while (0)
196 #define IS_CLASS_FLAG_SET(clazz, flag) \ argument
197 (((clazz)->accessFlags & (flag)) != 0)
199 #define GET_CLASS_FLAG_GROUP(clazz, flags) \ argument
[all …]
DClass.h69 void dvmSetClassSerialNumber(ClassObject* clazz);
111 bool dvmLinkClass(ClassObject* clazz, bool classesResolved);
116 INLINE bool dvmIsClassInitialized(const ClassObject* clazz) { in dvmIsClassInitialized() argument
117 return (clazz->status == CLASS_INITIALIZED); in dvmIsClassInitialized()
119 bool dvmIsClassInitializing(const ClassObject* clazz);
124 bool dvmInitClass(ClassObject* clazz);
136 void dvmFreeClassInnards(ClassObject* clazz);
137 bool dvmAddClassToHash(ClassObject* clazz);
138 void dvmAddInitiatingLoader(ClassObject* clazz, Object* loader);
139 bool dvmLoaderInInitiatingList(const ClassObject* clazz, const Object* loader);
[all …]
/dalvik/vm/mterp/c/
DOP_NEW_INSTANCE.c3 ClassObject* clazz; in HANDLE_OPCODE() local
11 clazz = dvmDexGetResolvedClass(methodClassDex, ref); in HANDLE_OPCODE()
12 if (clazz == NULL) { in HANDLE_OPCODE()
13 clazz = dvmResolveClass(curMethod->clazz, ref, false); in HANDLE_OPCODE()
14 if (clazz == NULL) in HANDLE_OPCODE()
18 if (!dvmIsClassInitialized(clazz) && !dvmInitClass(clazz)) in HANDLE_OPCODE()
32 if (dvmIsInterfaceClass(clazz) || dvmIsAbstractClass(clazz)) { in HANDLE_OPCODE()
34 clazz->descriptor); in HANDLE_OPCODE()
37 newObj = dvmAllocObject(clazz, ALLOC_DONT_TRACK); in HANDLE_OPCODE()
DOP_CHECK_CAST.c3 ClassObject* clazz; in HANDLE_OPCODE() local
18 clazz = dvmDexGetResolvedClass(methodClassDex, ref); in HANDLE_OPCODE()
19 if (clazz == NULL) { in HANDLE_OPCODE()
20 clazz = dvmResolveClass(curMethod->clazz, ref, false); in HANDLE_OPCODE()
21 if (clazz == NULL) in HANDLE_OPCODE()
24 if (!dvmInstanceof(obj->clazz, clazz)) { in HANDLE_OPCODE()
26 "Ljava/lang/ClassCastException;", obj->clazz->descriptor); in HANDLE_OPCODE()
DOP_CONST_CLASS.c3 ClassObject* clazz; in HANDLE_OPCODE() local
8 clazz = dvmDexGetResolvedClass(methodClassDex, ref); in HANDLE_OPCODE()
9 if (clazz == NULL) { in HANDLE_OPCODE()
11 clazz = dvmResolveClass(curMethod->clazz, ref, true); in HANDLE_OPCODE()
12 if (clazz == NULL) in HANDLE_OPCODE()
15 SET_REGISTER(vdst, (u4) clazz); in HANDLE_OPCODE()
DOP_INSTANCE_OF.c3 ClassObject* clazz; in HANDLE_OPCODE() local
19 clazz = dvmDexGetResolvedClass(methodClassDex, ref); in HANDLE_OPCODE()
20 if (clazz == NULL) { in HANDLE_OPCODE()
22 clazz = dvmResolveClass(curMethod->clazz, ref, true); in HANDLE_OPCODE()
23 if (clazz == NULL) in HANDLE_OPCODE()
26 SET_REGISTER(vdst, dvmInstanceof(obj->clazz, clazz)); in HANDLE_OPCODE()
/dalvik/vm/native/
Djava_lang_Class.c140 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getClassLoader() local
142 RETURN_PTR(clazz->classLoader); in Dalvik_java_lang_Class_getClassLoader()
182 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredClasses() local
186 classes = dvmGetDeclaredClasses(clazz); in Dalvik_java_lang_Class_getDeclaredClasses()
231 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredConstructors() local
235 constructors = dvmGetDeclaredConstructors(clazz, publicOnly); in Dalvik_java_lang_Class_getDeclaredConstructors()
248 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredFields() local
252 fields = dvmGetDeclaredFields(clazz, publicOnly); in Dalvik_java_lang_Class_getDeclaredFields()
265 ClassObject* clazz = (ClassObject*) args[0]; in Dalvik_java_lang_Class_getDeclaredMethods() local
269 methods = dvmGetDeclaredMethods(clazz, publicOnly); in Dalvik_java_lang_Class_getDeclaredMethods()
[all …]
DInternalNative.c99 const char* classDescriptor = method->clazz->descriptor; in dvmLookupInternalNativeMethod()
154 bool dvmVerifyObjectInClass(Object* obj, ClassObject* clazz) in dvmVerifyObjectInClass() argument
160 if (!dvmInstanceof(obj->clazz, clazz)) { in dvmVerifyObjectInClass()
209 ClassObject* clazz = NULL; in dvmFindClassByName() local
236 clazz = dvmFindClass(descriptor, loader); in dvmFindClassByName()
238 clazz = dvmFindClassNoInit(descriptor, loader); in dvmFindClassByName()
240 if (clazz == NULL) { in dvmFindClassByName()
251 descriptor, doInit, clazz, clazz->classLoader); in dvmFindClassByName()
257 return clazz; in dvmFindClassByName()
322 ClassObject* clazz; in dvmIsPrivilegedMethod() local
[all …]
/dalvik/libcore/luni/src/main/native/
Djava_lang_Math.c13 static jdouble jsin(JNIEnv* env, jclass clazz, jdouble a) in jsin() argument
19 static jdouble jcos(JNIEnv* env, jclass clazz, jdouble a) in jcos() argument
25 static jdouble jtan(JNIEnv* env, jclass clazz, jdouble a) in jtan() argument
31 static jdouble jasin(JNIEnv* env, jclass clazz, jdouble a) in jasin() argument
37 static jdouble jacos(JNIEnv* env, jclass clazz, jdouble a) in jacos() argument
43 static jdouble jatan(JNIEnv* env, jclass clazz, jdouble a) in jatan() argument
49 static jdouble jexp(JNIEnv* env, jclass clazz, jdouble a) in jexp() argument
55 static jdouble jlog(JNIEnv* env, jclass clazz, jdouble a) in jlog() argument
61 static jdouble jsqrt(JNIEnv* env, jclass clazz, jdouble a) in jsqrt() argument
67 static jdouble jieee_remainder(JNIEnv* env, jclass clazz, jdouble a, jdouble b) in jieee_remainder() argument
[all …]
Djava_lang_StrictMath.c24 static jdouble jsin(JNIEnv* env, jclass clazz, jdouble a) in jsin() argument
30 static jdouble jcos(JNIEnv* env, jclass clazz, jdouble a) in jcos() argument
36 static jdouble jtan(JNIEnv* env, jclass clazz, jdouble a) in jtan() argument
42 static jdouble jasin(JNIEnv* env, jclass clazz, jdouble a) in jasin() argument
48 static jdouble jacos(JNIEnv* env, jclass clazz, jdouble a) in jacos() argument
54 static jdouble jatan(JNIEnv* env, jclass clazz, jdouble a) in jatan() argument
60 static jdouble jexp(JNIEnv* env, jclass clazz, jdouble a) in jexp() argument
66 static jdouble jlog(JNIEnv* env, jclass clazz, jdouble a) in jlog() argument
72 static jdouble jsqrt2(JNIEnv* env, jclass clazz, jdouble a) in jsqrt2() argument
78 static jdouble jieee_remainder(JNIEnv* env, jclass clazz, jdouble a, jdouble b) in jieee_remainder() argument
[all …]
Djava_io_FileDescriptor.c37 jclass clazz; member
66 static void nativeClassInit(JNIEnv* env, jclass clazz) in nativeClassInit() argument
68 gCachedFields.clazz = (*env)->NewGlobalRef(env, clazz); in nativeClassInit()
71 (*env)->GetFieldID(env, clazz, "descriptor", "I"); in nativeClassInit()
79 (*env)->GetMethodID(env, clazz, "<init>", "()V"); in nativeClassInit()
124 if(gCachedFields.clazz == NULL) { in checkClassInit()
131 jclass clazz; in checkClassInit() local
132 clazz = (*env)->FindClass(env, "java/io/FileDescriptor"); in checkClassInit()
133 if(clazz == NULL) { in checkClassInit()
140 readWriteId = (*env)->GetStaticFieldID(env, clazz, "in", in checkClassInit()
[all …]
/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);
103 Object* dvmCreateReflectObjForField(const ClassObject* clazz, Field* field);
104 Object* dvmCreateReflectObjForMethod(const ClassObject* clazz, Method* method);
113 return (method->clazz == gDvm.classJavaLangReflectMethod); in dvmIsReflectionMethod()
133 ArrayObject* dvmGetClassAnnotations(const ClassObject* clazz);
[all …]
DReflect.c160 ClassObject* clazz; in dvmValidateBoxClasses() local
162 clazz = dvmFindClassNoInit(*ccp, NULL); in dvmValidateBoxClasses()
163 if (clazz == NULL) { in dvmValidateBoxClasses()
168 if (clazz->ifieldCount != 1) { in dvmValidateBoxClasses()
170 clazz->ifieldCount, *ccp); in dvmValidateBoxClasses()
189 ClassObject* clazz = NULL; in convertSignaturePartToClass() local
206 clazz = dvmFindArrayClass(*pSignature, defClass->classLoader); in convertSignaturePartToClass()
215 clazz = dvmFindClassNoInit(*pSignature, defClass->classLoader); in convertSignaturePartToClass()
218 clazz = dvmFindPrimitiveClass(*signature++); in convertSignaturePartToClass()
221 if (clazz == NULL) { in convertSignaturePartToClass()
[all …]
DAnnotation.c38 static Object* processEncodedAnnotation(const ClassObject* clazz,\
40 static bool skipEncodedAnnotation(const ClassObject* clazz, const u1** pPtr);
149 const ClassObject* clazz) in getAnnoDirectory() argument
157 pClassDef = dexFindClass(pDexFile, clazz->descriptor); in getAnnoDirectory()
378 static bool processAnnotationValue(const ClassObject* clazz, in processAnnotationValue() argument
396 (ptr-1) - (u1*)clazz->pDvmDex->pDexFile->baseAddr); in processAnnotationValue()
472 elemObj = (Object*) dvmResolveString(clazz, idx); in processAnnotationValue()
484 elemObj = (Object*) dvmResolveClass(clazz, idx, true); in processAnnotationValue()
488 DexFile* pDexFile = clazz->pDvmDex->pDexFile; in processAnnotationValue()
504 Method* meth = resolveAmbiguousMethod(clazz, idx); in processAnnotationValue()
[all …]
/dalvik/tests/031-class-attributes/src/
DClassAttrs.java120 public static void printClassAttrs(Class clazz) { in printClassAttrs() argument
124 System.out.println("***** " + clazz + ":"); in printClassAttrs()
127 + clazz.getName()); in printClassAttrs()
129 + clazz.getCanonicalName()); in printClassAttrs()
131 + clazz.getSimpleName()); in printClassAttrs()
133 + getSignatureAttribute(clazz)); in printClassAttrs()
136 + clazz.getSuperclass()); in printClassAttrs()
138 + clazz.getGenericSuperclass()); in printClassAttrs()
140 + clazz.getDeclaringClass()); in printClassAttrs()
142 + clazz.getEnclosingClass()); in printClassAttrs()
[all …]
/dalvik/libcore/icu/src/main/native/
DCharacterInterface.c24 static jint digitImpl(JNIEnv *env, jclass clazz, jint codePoint, jint radix) { in digitImpl() argument
28 static jint getTypeImpl(JNIEnv *env, jclass clazz, jint codePoint) { in getTypeImpl() argument
32 static jbyte getDirectionalityImpl(JNIEnv *env, jclass clazz, jint codePoint) { in getDirectionalityImpl() argument
36 static jboolean isMirroredImpl(JNIEnv *env, jclass clazz, jint codePoint) { in isMirroredImpl() argument
40 static jint getNumericValueImpl(JNIEnv *env, jclass clazz, jint codePoint){ in getNumericValueImpl() argument
72 static jboolean isDefinedValueImpl(JNIEnv *env, jclass clazz, jint codePoint) { in isDefinedValueImpl() argument
76 static jboolean isDigitImpl(JNIEnv *env, jclass clazz, jint codePoint) { in isDigitImpl() argument
80 static jboolean isIdentifierIgnorableImpl(JNIEnv *env, jclass clazz, in isIdentifierIgnorableImpl() argument
91 static jboolean isLetterImpl(JNIEnv *env, jclass clazz, jint codePoint) { in isLetterImpl() argument
95 static jboolean isLetterOrDigitImpl(JNIEnv *env, jclass clazz, jint codePoint) { in isLetterOrDigitImpl() argument
[all …]
/dalvik/vm/alloc/
DAlloc.c77 ClassObject* clazz; in createStockException() local
81 clazz = dvmFindSystemClass(descriptor); in createStockException()
82 if (clazz == NULL) { in createStockException()
87 init = dvmFindDirectMethodByDescriptor(clazz, "<init>", "()V"); in createStockException()
93 obj = dvmAllocObject(clazz, ALLOC_DEFAULT); in createStockException()
134 Object* dvmAllocObject(ClassObject* clazz, int flags) in dvmAllocObject() argument
138 assert(dvmIsClassInitialized(clazz) || dvmIsClassInitializing(clazz)); in dvmAllocObject()
140 if (IS_CLASS_FLAG_SET(clazz, CLASS_ISFINALIZABLE)) { in dvmAllocObject()
145 newObj = dvmMalloc(clazz->objectSize, flags); in dvmAllocObject()
147 DVM_OBJECT_INIT(newObj, clazz); in dvmAllocObject()
[all …]
/dalvik/vm/hprof/
DHprofClass.c43 computeClassHash(const ClassObject *clazz) in computeClassHash() argument
49 cp = clazz->descriptor; in computeClassHash()
50 hash = (u4)clazz->classLoader; in computeClassHash()
150 hprofLookupClassId(const ClassObject *clazz) in hprofLookupClassId() argument
154 if (clazz == NULL) { in hprofLookupClassId()
166 val = dvmHashTableLookup(gClassHashTable, computeClassHash(clazz), in hprofLookupClassId()
167 (void *)clazz, classCmp, true); in hprofLookupClassId()
177 getPrettyClassNameId(clazz->descriptor); in hprofLookupClassId()
179 return (hprof_class_object_id)clazz; in hprofLookupClassId()
197 const ClassObject *clazz; in hprofDumpClasses() local
[all …]
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DGenericTypesTest.java78 Class<? extends ConstructorGenericType> clazz = ConstructorGenericType.class; in testConstructorGenericType() local
79 TypeVariable<Class> typeVariable = getTypeParameter(clazz); in testConstructorGenericType()
80 Constructor<?> constructor = clazz.getDeclaredConstructor(Object.class); in testConstructorGenericType()
95 Class<? extends GenericType> clazz = GenericType.class; in testStaticMethodGenericType() local
96 TypeVariable<Class> typeVariable = getTypeParameter(clazz); in testStaticMethodGenericType()
98 Method method = clazz.getDeclaredMethod("staticMethodGenericType", Object.class); in testStaticMethodGenericType()
114 Class<? extends GenericType> clazz = GenericType.class; in testHidingMethodGenericType() local
115 TypeVariable<Class> typeVariable = getTypeParameter(clazz); in testHidingMethodGenericType()
117 Method method = clazz.getDeclaredMethod("hidingMethodGenericType", Object.class); in testHidingMethodGenericType()
140 Class<? extends MultipleGenericTypes> clazz = MultipleGenericTypes.class; in testMultipleGenericTypes() local
[all …]
DTypeVariableTest.java44 Class<? extends A> clazz = A.class; in testSimpleTypeVariableOnClass() local
45 TypeVariable[] typeParameters = clazz.getTypeParameters(); in testSimpleTypeVariableOnClass()
48 assertEquals(clazz, typeVariable.getGenericDeclaration()); in testSimpleTypeVariableOnClass()
65 Class<? extends B> clazz = B.class; in testSimpleTypeVariableOnMethod() local
66 Method method = clazz.getDeclaredMethod("b"); in testSimpleTypeVariableOnMethod()
101 Class<? extends C> clazz = C.class; in testSimpleTypeVariableOnConstructor() local
102 Constructor<?> constructor = clazz.getDeclaredConstructor(); in testSimpleTypeVariableOnConstructor()
121 Class<? extends D> clazz = D.class; in testMultipleTypeVariablesOnClass() local
122 TypeVariable<?>[] typeParameters = clazz.getTypeParameters(); in testMultipleTypeVariablesOnClass()
125 assertEquals(clazz, typeParameters[0].getGenericDeclaration()); in testMultipleTypeVariablesOnClass()
[all …]
/dalvik/tests/004-annotations/src/android/test/anno/
DTestAnnotations.java28 static void printAnnotations(Class clazz) { in printAnnotations() argument
32 annos = clazz.getAnnotations(); in printAnnotations()
33 System.out.println("annotations on TYPE " + clazz + in printAnnotations()
38 for (Constructor c: clazz.getDeclaredConstructors()) { in printAnnotations()
49 for (Method m: clazz.getDeclaredMethods()) { in printAnnotations()
60 for (Field f: clazz.getDeclaredFields()) { in printAnnotations()
115 Class clazz; in main() local
116 clazz = SimplyNoted.class; in main()
117 printAnnotations(clazz); in main()
118 clazz = INoted.class; in main()
[all …]

1234567891011