Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 127) sorted by relevance

123456

/art/test/688-shared-library/src-art/
DMain.java45 Class<?> cls = loader.loadClass("Main"); in testNoLibrary() local
46 assertIdentical(loader, cls.getClassLoader()); in testNoLibrary()
55 Class<?> cls = delegateFirst.loadClass("Main"); in testOneLibrary() local
56 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
57 cls = delegateFirst.loadClass("SharedLibraryOne"); in testOneLibrary()
58 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
62 cls = delegateLast.loadClass("Main"); in testOneLibrary()
63 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
64 cls = delegateLast.loadClass("SharedLibraryOne"); in testOneLibrary()
65 assertIdentical(sharedLibraries[0], cls.getClassLoader()); in testOneLibrary()
[all …]
/art/test/660-store-8-16/src/
DMain.java25 Class<?> cls = Class.forName("TestCase"); in main() local
27 cls.getMethod("setByteStaticField").invoke(null); in main()
28 expectEquals(1, cls.getField("staticByteField").getByte(null)); in main()
30 cls.getMethod("setShortStaticField").invoke(null); in main()
31 expectEquals(0x101, cls.getField("staticShortField").getShort(null)); in main()
33 cls.getMethod("setCharStaticField").invoke(null); in main()
34 expectEquals(0x101, cls.getField("staticCharField").getChar(null)); in main()
38 cls.getMethod("setByteArray", byte[].class).invoke(null, args); in main()
43 cls.getMethod("setShortArray", short[].class).invoke(null, args); in main()
48 cls.getMethod("setCharArray", char[].class).invoke(null, args); in main()
[all …]
/art/test/724-invoke-super-npe/src/
DMain.java22 Class<?> cls = Class.forName("TestCase"); in main() local
23 test("testSuper", cls); in main()
24 test("testSuperRange", cls); in main()
27 public static void test(String methodName, Class<?> cls) throws Exception { in test() argument
28 Method m = cls.getDeclaredMethod(methodName, cls); in test()
30 m.invoke(cls.newInstance(), (Object)null); in test()
/art/test/817-hiddenapi/
Dtest_native.cc28 jclass cls = env->FindClass("InheritAbstract"); in Java_TestCase_testNativeInternal() local
29 CHECK(cls != nullptr); in Java_TestCase_testNativeInternal()
30 jmethodID constructor = env->GetMethodID(cls, "<init>", "()V"); in Java_TestCase_testNativeInternal()
32 jmethodID method_id = env->GetMethodID(cls, "methodPublicSdkNotInAbstractParent", "()I"); in Java_TestCase_testNativeInternal()
36 jobject obj = env->NewObject(cls, constructor); in Java_TestCase_testNativeInternal()
42 jclass cls, in Java_TestCase_testAccessInternal() argument
47 if (env->GetMethodID(cls, chars_method.c_str(), chars_signature.c_str()) != nullptr) { in Java_TestCase_testAccessInternal()
/art/test/712-varhandle-invocations/src/
DVarHandleAccessorExceptionTests.java47 Class<?> cls = UnsupportedAccessModeTest.class;
48 vh = MethodHandles.lookup().findStaticVarHandle(cls, "b", boolean.class);
78 Class<?> cls = WrongArgumentTypeCausingWrongMethodTypeTest.class;
79 vh = MethodHandles.lookup().findVarHandle(cls, "s", short.class);
107 Class<?> cls = TooManyArgumentsCausingWrongMethodTypeTest.class;
108 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
135 Class<?> cls = TooFewArgumentsCausingWrongMethodTypeTest.class;
136 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
166 Class<?> cls = ReturnTypeCausingWrongMethodTypeTest.class;
167 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
[all …]
DVarHandleTypeConversionTests.java30 Class<?> cls = VoidReturnTypeTest.class;
31 vh = MethodHandles.lookup().findVarHandle(cls, "i", int.class);
69 Class<?> cls = BoxedNullBooleanThrowsNPETest.class;
70 vh = MethodHandles.lookup().findStaticVarHandle(cls, "z", boolean.class);
97 Class<?> cls = BoxedNullByteThrowsNPETest.class;
98 vh = MethodHandles.lookup().findVarHandle(cls, "b", byte.class);
151 Class<?> cls = BoxedNullShortThrowsNPETest.class;
208 Class<?> cls = BoxedNullLongThrowsNPETest.class;
237 Class<?> cls = BoxedNullFloatThrowsNPETest.class;
298 Class<?> cls = WideningBooleanArgumentTest.class;
[all …]
/art/test/1339-dead-reference-safe/src/
DMain.java24 public static boolean ensureCompiled(Class cls, String methodName) throws NoSuchMethodException { in ensureCompiled() argument
25 Method m = cls.getDeclaredMethod(methodName); in ensureCompiled()
26 if (isAotCompiled(cls, methodName)) { in ensureCompiled()
30 if (hasJitCompiledEntrypoint(cls, methodName)) { in ensureCompiled()
63 public static native boolean hasJitCompiledEntrypoint(Class<?> cls, String methodName); in hasJitCompiledEntrypoint() argument
64 public static native boolean isAotCompiled(Class<?> cls, String methodName); in isAotCompiled() argument
/art/runtime/
Dfault_handler.cc70 mirror::CompressedReference<mirror::Class> cls; in SafeGetDeclaringClass() local
71 ssize_t rc = SafeCopy(&cls, method_declaring_class, sizeof(cls)); in SafeGetDeclaringClass()
76 CHECK_EQ(actual_class, cls.AsMirrorPtr()); in SafeGetDeclaringClass()
79 if (rc != sizeof(cls)) { in SafeGetDeclaringClass()
83 return cls.AsMirrorPtr(); in SafeGetDeclaringClass()
89 mirror::HeapReference<mirror::Class> cls; in SafeGetClass() local
90 ssize_t rc = SafeCopy(&cls, obj_cls, sizeof(cls)); in SafeGetClass()
95 CHECK_EQ(actual_class, cls.AsMirrorPtr()); in SafeGetClass()
98 if (rc != sizeof(cls)) { in SafeGetClass()
102 return cls.AsMirrorPtr(); in SafeGetClass()
[all …]
Druntime_intrinsics.cc40 ObjPtr<mirror::Class> cls = class_linker->FindSystemClass(self, class_name); in FindIntrinsicMethod() local
41 if (cls == nullptr) { in FindIntrinsicMethod()
45 ArtMethod* method = cls->FindClassMethod(method_name, signature, image_size); in FindIntrinsicMethod()
46 if (method == nullptr || method->GetDeclaringClass() != cls) { in FindIntrinsicMethod()
/art/test/common/
Druntime_state.cc64 extern "C" JNIEXPORT jboolean JNICALL Java_Main_hasOatFile(JNIEnv* env, jclass cls) { in Java_Main_hasOatFile() argument
67 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_hasOatFile()
75 jclass cls) { in Java_Main_getCompilerFilter() argument
78 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_getCompilerFilter()
94 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_runtimeIsSoftFail()
101 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_hasImage()
108 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_isImageDex2OatEnabled()
115 extern "C" JNIEXPORT jboolean JNICALL Java_Main_compiledWithOptimizing(JNIEnv* env, jclass cls) { in Java_Main_compiledWithOptimizing() argument
118 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_compiledWithOptimizing()
164 jclass cls, in Java_Main_isAotCompiled() argument
[all …]
Dstack_inspect.cc42 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_disableStackFrameAsserts()
147 extern "C" JNIEXPORT jboolean JNICALL Java_Main_isManaged(JNIEnv* env, jclass cls) { in Java_Main_isManaged() argument
148 return IsManaged(env, cls, 1); in Java_Main_isManaged()
153 extern "C" JNIEXPORT void JNICALL Java_Main_assertIsManaged(JNIEnv* env, jclass cls) { in Java_Main_assertIsManaged() argument
155 CHECK(Java_Main_isManaged(env, cls)); in Java_Main_assertIsManaged()
175 extern "C" JNIEXPORT jboolean JNICALL Java_Main_isCallerManaged(JNIEnv* env, jclass cls) { in Java_Main_isCallerManaged() argument
176 return IsManaged(env, cls, 2); in Java_Main_isCallerManaged()
181 extern "C" JNIEXPORT void JNICALL Java_Main_assertCallerIsManaged(JNIEnv* env, jclass cls) { in Java_Main_assertCallerIsManaged() argument
183 CHECK(Java_Main_isCallerManaged(env, cls)); in Java_Main_assertCallerIsManaged()
188 JNIEnv* env, jclass cls ATTRIBUTE_UNUSED) { in Java_Main_getThisOfCaller()
/art/test/612-jit-dex-cache/src/
DMain.java52 Class<?> cls = classFromDifferentLoader(); in main() local
53 Method m = cls.getDeclaredMethod("letMeInlineYou", A.class); in main()
59 m = cls.getDeclaredMethod("areYouB", null); in main()
61 if (loader != cls.getClassLoader()) { in main()
66 public static native void ensureJitCompiled(Class<?> cls, String method_name); in ensureJitCompiled() argument
/art/tools/veridex/
Dflow_analysis.cc116 VeriClass* cls, in UpdateRegister() argument
122 kind, DexFileReference(&resolver_->GetDexFile(), source_id), cls); in UpdateRegister()
132 void VeriFlowAnalysis::UpdateRegister(uint32_t dex_register, const VeriClass* cls) { in UpdateRegister() argument
135 RegisterValue(RegisterSource::kNone, DexFileReference(nullptr, 0), cls); in UpdateRegister()
139 void VeriFlowAnalysis::UpdateRegister(uint32_t dex_register, int32_t value, const VeriClass* cls) { in UpdateRegister() argument
142 RegisterValue(RegisterSource::kConstant, value, DexFileReference(nullptr, 0), cls); in UpdateRegister()
154 VeriClass* cls = resolver_->GetVeriClass(proto_id.return_type_idx_); in GetReturnType() local
155 return RegisterValue(RegisterSource::kMethod, DexFileReference(&dex_file, method_index), cls); in GetReturnType()
161 VeriClass* cls = resolver_->GetVeriClass(field_id.type_idx_); in GetFieldType() local
162 return RegisterValue(RegisterSource::kField, DexFileReference(&dex_file, field_index), cls); in GetFieldType()
[all …]
Dflow_analysis.h139 uint32_t dex_register, RegisterSource kind, VeriClass* cls, uint32_t source_id);
141 void UpdateRegister(uint32_t dex_register, const VeriClass* cls);
142 void UpdateRegister(uint32_t dex_register, int32_t value, const VeriClass* cls);
173 RegisterValue cls; member
178 : cls(c), name(n), is_method(is_method) {} in ReflectAccessInfo()
182 return (cls.IsClass() || cls.IsString()) && name.IsString(); in IsConcrete()
/art/compiler/optimizing/
Dload_store_elimination_test.cc453 HInstruction* cls = MakeClassLoad(); in GetComparisonInstructions() local
455 new (GetAllocator()) HStaticFieldGet(cls, in GetComparisonInstructions()
464 setup.push_back(cls); in GetComparisonInstructions()
1148 HInstruction* cls = MakeClassLoad(); in TEST_F() local
1149 HInstruction* new_inst = MakeNewInstance(cls); in TEST_F()
1155 main->AddInstruction(cls); in TEST_F()
1161 cls->CopyEnvironmentFrom(suspend_check->GetEnvironment()); in TEST_F()
1173 EXPECT_INS_RETAINED(cls); in TEST_F()
1174 EXPECT_INS_EQ(cls, return_val->InputAt(0)); in TEST_F()
1199 HInstruction* cls = MakeClassLoad(); in TEST_F() local
[all …]
/art/test/613-inlining-dex-cache/src/
DMain.java48 Class cls = loader.loadClass("LoadedByAppClassLoader"); in main() local
49 Method m = cls.getDeclaredMethod("letMeInlineYou"); in main()
54 ensureJitCompiled(cls, "letMeInlineYou"); in main()
77 public static native void ensureJitCompiled(Class cls, String method_name); in ensureJitCompiled() argument
/art/test/832-cha-recursive/src/
DMain.java33 Class<?> cls = Class.forName("LoadedLater"); in $noinline$callRecursiveMethod() local
34 Main m = (Main)cls.newInstance(); in $noinline$callRecursiveMethod()
46 public static native void ensureJitCompiled(Class<?> cls, String methodName); in ensureJitCompiled() argument
/art/test/829-unresolved-enclosing/src/
DMain.java31 Class<?> cls = Class.forName("MissingSuperClass$1LocalClass"); in main() local
33 System.out.println(cls.getEnclosingClass()); in main()
38 System.out.println(cls.getEnclosingMethod()); in main()
/art/test/730-cha-deopt/src/
DMain.java32 Class<?> cls = Class.forName("SubItf"); in main() local
33 Itf itf = (Itf) cls.newInstance(); in main()
50 public static native void ensureJitCompiled(Class<?> cls, String methodName); in ensureJitCompiled() argument
/art/test/907-get-loaded-classes/
Dget_loaded_classes.cc37 static jstring GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName() argument
38 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName()
40 return reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid)); in GetClassName()
/art/test/831-unresolved-field/src/
DMain.java19 Class<?> cls = Class.forName("VerifiedSubClass"); in main() local
20 cls.newInstance(); in main()
/art/test/172-app-image-twice/
Ddebug_print_class.cc25 extern "C" JNIEXPORT void JNICALL Java_Main_debugPrintClass(JNIEnv*, jclass, jclass cls) { in Java_Main_debugPrintClass() argument
27 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_debugPrintClass()
/art/dex2oat/driver/
Dcompiler_driver-inl.h43 ObjPtr<mirror::Class> cls = in ResolveClass() local
45 DCHECK_EQ(cls == nullptr, soa.Self()->IsExceptionPending()); in ResolveClass()
46 if (UNLIKELY(cls == nullptr)) { in ResolveClass()
50 return cls; in ResolveClass()
/art/test/647-jni-get-field-id/src/
DMain.java66 public static void testGetFieldId(Class<?> cls, String name, String signature) { in testGetFieldId() argument
67 System.out.println("getFieldId(" + cls + ", \"" + name + "\", \"" + signature + "\")"); in testGetFieldId()
69 boolean result = getFieldId(cls, name, signature); in testGetFieldId()
84 public static native boolean getFieldId(Class<?> cls, String name, String signature); in getFieldId() argument
/art/test/667-jit-jni-stub/src/
DMain.java174 public native static void callThrough(Class<?> cls, String methodName); in callThrough() argument
179 public native static boolean isAotCompiled(Class<?> cls, String methodName); in isAotCompiled() argument
180 public native static boolean hasJitCompiledEntrypoint(Class<?> cls, String methodName); in hasJitCompiledEntrypoint() argument
181 public native static boolean hasJitCompiledCode(Class<?> cls, String methodName); in hasJitCompiledCode() argument

123456