Home
last modified time | relevance | path

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

12

/art/test/085-old-style-inner-class/src/
DMain.java37 private static String nameOf(Class clazz) { in nameOf() argument
38 return (clazz == null) ? "(null)" : clazz.getName(); in nameOf()
45 private static void infoFor(Class clazz) { in infoFor() argument
46 System.out.println("Class: " + nameOf(clazz) + "\n" + in infoFor()
48 nameOf(clazz.getDeclaringClass()) + "\n" + in infoFor()
50 nameOf(clazz.getEnclosingClass()) + "\n" + in infoFor()
52 nameOf(clazz.getEnclosingMethod())); in infoFor()
/art/test/031-class-attributes/src/
DClassAttrs.java270 public static <T> void printClassAttrs(Class<T> clazz) { in printClassAttrs() argument
271 System.out.println("***** " + clazz + ":"); in printClassAttrs()
274 + clazz.getName()); in printClassAttrs()
276 + clazz.getCanonicalName()); in printClassAttrs()
278 + clazz.getSimpleName()); in printClassAttrs()
280 + getSignatureAttribute(clazz)); in printClassAttrs()
283 + clazz.getSuperclass()); in printClassAttrs()
285 + clazz.getGenericSuperclass()); in printClassAttrs()
287 + clazz.getDeclaringClass()); in printClassAttrs()
289 + clazz.getEnclosingClass()); in printClassAttrs()
[all …]
/art/test/993-breakpoints/
Dbreakpoints.cc43 jclass clazz) { in Java_art_Test993_constructNative() argument
48 return env->NewObject(clazz, method); in Java_art_Test993_constructNative()
55 jclass clazz, in Java_art_Test993_invokeNativeObject() argument
62 env->CallStaticObjectMethod(clazz, method); in Java_art_Test993_invokeNativeObject()
72 jclass clazz, in Java_art_Test993_invokeNativeBool() argument
79 env->CallStaticBooleanMethod(clazz, method); in Java_art_Test993_invokeNativeBool()
89 jclass clazz, in Java_art_Test993_invokeNativeLong() argument
96 env->CallStaticLongMethod(clazz, method); in Java_art_Test993_invokeNativeLong()
106 jclass clazz, in Java_art_Test993_invokeNative() argument
113 env->CallStaticVoidMethod(clazz, method); in Java_art_Test993_invokeNative()
/art/test/121-modifiers/src2/
DMain.java77 Class<?> clazz = Class.forName(className); in check() local
79 if (!clazz.isInterface()) { in check()
83 if ((clazz.getModifiers() & undefinedBits) != 0) { in check()
84 System.out.println("Clazz.getModifiers(): " + Integer.toBinaryString(clazz.getModifiers())); in check()
89 if (clazz.isInterface()) { in check()
93 if ((clazz.getModifiers() & undefinedBits) != 0) { in check()
94 System.out.println("Clazz.getModifiers(): " + Integer.toBinaryString(clazz.getModifiers())); in check()
101 for (java.lang.reflect.Field f : clazz.getDeclaredFields()) { in check()
121 for (java.lang.reflect.Method m : clazz.getDeclaredMethods()) { in check()
/art/test/1938-transform-abstract-single-impl/src/
DMain.java93 private static native boolean hasSingleImplementation(Class<?> clazz, String method_name); in hasSingleImplementation() argument
94 private static void assertSingleImplementation(Class<?> clazz, String method_name, boolean b) { in assertSingleImplementation() argument
95 if (hasSingleImplementation(clazz, method_name) != b) { in assertSingleImplementation()
96 System.out.println(clazz + "." + method_name + in assertSingleImplementation()
/art/runtime/
Dnative_bridge_art_interface.cc41 static uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz) { in GetNativeMethodCount() argument
42 if (clazz == nullptr) { in GetNativeMethodCount()
47 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(clazz); in GetNativeMethodCount()
56 static uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, in GetNativeMethods() argument
58 if ((clazz == nullptr) || (methods == nullptr)) { in GetNativeMethods()
62 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(clazz); in GetNativeMethods()
/art/test/utils/python/
Dgenerate_java_main.py252 for clazz in flatten_classes(dat.classes, c):
253 for meth in flatten_class_methods(dat.classes, clazz):
254 i.add_func(Func(meth, clazz.name, 'virtual'))
255 for iface in flatten_interfaces(dat, clazz):
257 i.add_func(Func(meth, clazz.name, 'virtual'))
294 for clazz in root.find('classes'):
295 name = clazz.attrib['name']
296 implements = [a.text for a in clazz.find("implements")]
297 methods = [a.text for a in clazz.find("methods")]
299 super_class = clazz.attrib['super'],
/art/test/616-cha-abstract/src/
DMain.java49 private static void assertSingleImplementation(Class<?> clazz, String method_name, boolean b) { in assertSingleImplementation() argument
50 if (hasSingleImplementation(clazz, method_name) != b) { in assertSingleImplementation()
51 System.out.println(clazz + "." + method_name + in assertSingleImplementation()
151 private static native boolean hasSingleImplementation(Class<?> clazz, String method_name); in hasSingleImplementation() argument
/art/test/616-cha-miranda/src/
DMain.java53 private static void assertSingleImplementation(Class<?> clazz, String method_name, boolean b) { in assertSingleImplementation() argument
54 if (hasSingleImplementation(clazz, method_name) != b) { in assertSingleImplementation()
55 System.out.println(clazz + "." + method_name + in assertSingleImplementation()
155 private static native boolean hasSingleImplementation(Class<?> clazz, String method_name); in hasSingleImplementation() argument
/art/test/616-cha-interface-default/src/
DMain.java42 private static void assertSingleImplementation(Class<?> clazz, String method_name, boolean b) { in assertSingleImplementation() argument
43 if (hasSingleImplementation(clazz, method_name) != b) { in assertSingleImplementation()
44 System.out.println(clazz + "." + method_name + in assertSingleImplementation()
168 private static native boolean hasSingleImplementation(Class<?> clazz, String method_name); in hasSingleImplementation() argument
/art/test/051-thread/
Dthread_test.cc24 jclass clazz ATTRIBUTE_UNUSED) { in Java_Main_getNativePriority()
30 jclass clazz ATTRIBUTE_UNUSED) { in Java_Main_supportsThreadPriorities()
/art/test/121-modifiers/src-java/
DAsm.java88 private static void modify(String clazz) throws Exception { in modify() argument
90 ClassReader cr = new ClassReader(clazz); in modify()
98 OutputStream out = new FileOutputStream(clazz + ".out"); in modify()
/art/test/616-cha-interface/src/
DMain.java62 private static void assertSingleImplementation(Class<?> clazz, String method_name, boolean b) { in assertSingleImplementation() argument
63 if (hasSingleImplementation(clazz, method_name) != b) { in assertSingleImplementation()
64 System.out.println(clazz + "." + method_name + in assertSingleImplementation()
165 private static native boolean hasSingleImplementation(Class<?> clazz, String method_name); in hasSingleImplementation() argument
/art/test/156-register-dex-file-multi-loader/src/
DMain.java53 Class<?> clazz = (Class<?>)method.invoke(dex, className, this, null); in loadClass() local
54 if (clazz != null) { in loadClass()
55 return clazz; in loadClass()
/art/test/616-cha/src/
DMain.java175 private static void assertSingleImplementation(Class<?> clazz, String method_name, boolean b) { in assertSingleImplementation() argument
176 if (hasSingleImplementation(clazz, method_name) != b) { in assertSingleImplementation()
177 System.out.println(clazz + "." + method_name + in assertSingleImplementation()
242 private static native boolean hasSingleImplementation(Class<?> clazz, String method_name); in hasSingleImplementation() argument
/art/tools/class2greylist/src/com/android/class2greylist/
DAnnotationVisitor.java48 public AnnotationVisitor(JavaClass clazz, Status status, in AnnotationVisitor() argument
50 mClass = clazz; in AnnotationVisitor()
53 mDescendingVisitor = new DescendingVisitor(clazz, this); in AnnotationVisitor()
DMemberDumpingVisitor.java23 public MemberDumpingVisitor(JavaClass clazz, Status status) { in MemberDumpingVisitor() argument
25 mDescendingVisitor = new DescendingVisitor(clazz, this); in MemberDumpingVisitor()
/art/test/496-checker-inlining-class-loader/src/
DMain.java72 Class<?> clazz = (Class<?>)method.invoke(dexFile, className, this, null); in loadClass() local
73 if (clazz != null) { in loadClass()
74 return clazz; in loadClass()
/art/test/542-unresolved-access-check/src/
DMain.java61 Class<?> clazz = (Class<?>)method.invoke(dex, className, this, null); in loadClass() local
62 if (clazz != null) { in loadClass()
63 return clazz; in loadClass()
/art/test/005-annotations/src/android/test/anno/
DTestAnnotations.java46 static void printAnnotations(Class<?> clazz) { in printAnnotations() argument
50 annos = clazz.getAnnotations(); in printAnnotations()
51 System.out.println("annotations on TYPE " + clazz + in printAnnotations()
56 for (Constructor<?> c: clazz.getDeclaredConstructors()) { in printAnnotations()
67 for (Method m: clazz.getDeclaredMethods()) { in printAnnotations()
78 for (Field f: clazz.getDeclaredFields()) { in printAnnotations()
/art/test/497-inlining-and-class-loader/src/
DMain.java69 Class<?> clazz = (Class<?>)method.invoke(dex, className, this, null); in loadClass() local
70 if (clazz != null) { in loadClass()
71 return clazz; in loadClass()
/art/test/720-thread-priority/
Dthread_priority.cc26 jclass clazz ATTRIBUTE_UNUSED) { in Java_Main_getThreadPlatformPriority()
/art/libnativebridge/include/nativebridge/
Dnative_bridge.h405 uint32_t (*getNativeMethodCount)(JNIEnv* env, jclass clazz);
417 uint32_t (*getNativeMethods)(JNIEnv* env, jclass clazz, JNINativeMethod* methods,
/art/dex2oat/driver/
Dcompiler_driver_test.cc219 std::unordered_set<std::string> GetExpectedMethodsForClass(const std::string& clazz) { in GetExpectedMethodsForClass() argument
220 if (clazz == "Main") { in GetExpectedMethodsForClass()
224 } else if (clazz == "Second") { in GetExpectedMethodsForClass()
234 const std::string& clazz, in CheckCompiledMethods() argument
242 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in CheckCompiledMethods()
296 void CheckVerifiedClass(jobject class_loader, const std::string& clazz) const { in CheckVerifiedClass()
303 ObjPtr<mirror::Class> klass = class_linker->FindClass(self, clazz.c_str(), h_loader); in CheckVerifiedClass()
/art/test/044-proxy/
Dnative_proxy.cc24 JNIEnv* env, jclass clazz ATTRIBUTE_UNUSED, jobject inf_ref) { in Java_NativeProxy_nativeCall()

12