Home
last modified time | relevance | path

Searched refs:cls (Results 1 – 25 of 147) 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/850-checker-branches/src/
DMain.java22 Class<?> cls = Class.forName("TestCase"); in main() local
23 ensureJitBaselineCompiled(cls, "withBranch"); in main()
24 Method m = cls.getDeclaredMethod("withBranch", boolean.class); in main()
28 ensureJitCompiled(cls, "withBranch"); in main()
31 public static native void ensureJitBaselineCompiled(Class<?> cls, String methodName); in ensureJitBaselineCompiled() argument
32 public static native void ensureJitCompiled(Class<?> cls, String methodName); in ensureJitCompiled() argument
/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);
63 Class<?> cls = VoidReturnTypeTest.class;
64 vh = MethodHandles.lookup().findVarHandle(cls, "i", Object.class);
115 Class<?> cls = BoxedNullBooleanThrowsNPETest.class;
116 vh = MethodHandles.lookup().findStaticVarHandle(cls, "z", boolean.class);
143 Class<?> cls = BoxedNullByteThrowsNPETest.class;
144 vh = MethodHandles.lookup().findVarHandle(cls, "b", byte.class);
197 Class<?> cls = BoxedNullShortThrowsNPETest.class;
254 Class<?> cls = BoxedNullLongThrowsNPETest.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/
Druntime_image.cc238 mirror::Class* GetClassContent(ObjPtr<mirror::Class> cls) REQUIRES_SHARED(Locks::mutator_lock_) { in GetClassContent() argument
239 if (cls == nullptr || IsInBootImage(cls.Ptr())) { in GetClassContent()
240 return cls.Ptr(); in GetClassContent()
242 const dex::ClassDef* class_def = cls->GetClassDef(); in GetClassContent()
243 DCHECK(class_def != nullptr) << cls->PrettyClass(); in GetClassContent()
245 DCHECK(it != classes_.end()) << cls->PrettyClass(); in GetClassContent()
463 bool CanEmitHelper(Handle<mirror::Class> cls) REQUIRES_SHARED(Locks::mutator_lock_) { in CanEmitHelper() argument
466 if (!ContainsElement(dex_files_, &cls->GetDexFile())) { in CanEmitHelper()
472 MutableHandle<mirror::Class> other_class = hs.NewHandle(cls->GetSuperClass()); in CanEmitHelper()
477 other_class.Assign(cls->GetComponentType()); in CanEmitHelper()
[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/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/test/common/
Druntime_state.cc69 extern "C" JNIEXPORT jboolean JNICALL Java_Main_hasOatFile(JNIEnv* env, jclass cls) { in Java_Main_hasOatFile() argument
72 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_hasOatFile()
80 jclass cls) { in Java_Main_getCompilerFilter() argument
83 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_getCompilerFilter()
99 [[maybe_unused]] jclass cls) { in Java_Main_runtimeIsSoftFail() argument
106 [[maybe_unused]] jclass cls) { in Java_Main_hasImage() argument
113 [[maybe_unused]] jclass cls) { in Java_Main_isImageDex2OatEnabled() argument
120 extern "C" JNIEXPORT jboolean JNICALL Java_Main_compiledWithOptimizing(JNIEnv* env, jclass cls) { in Java_Main_compiledWithOptimizing() argument
123 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_compiledWithOptimizing()
169 jclass cls, in Java_Main_isAotCompiled() argument
[all …]
Dstack_inspect.cc42 [[maybe_unused]] jclass cls) { in Java_Main_disableStackFrameAsserts() argument
149 extern "C" JNIEXPORT jboolean JNICALL Java_Main_isManaged(JNIEnv* env, jclass cls) { in Java_Main_isManaged() argument
150 return IsManaged(env, cls, 1); in Java_Main_isManaged()
155 extern "C" JNIEXPORT void JNICALL Java_Main_assertIsManaged(JNIEnv* env, jclass cls) { in Java_Main_assertIsManaged() argument
157 CHECK(Java_Main_isManaged(env, cls)); in Java_Main_assertIsManaged()
177 extern "C" JNIEXPORT jboolean JNICALL Java_Main_isCallerManaged(JNIEnv* env, jclass cls) { in Java_Main_isCallerManaged() argument
178 return IsManaged(env, cls, 2); in Java_Main_isCallerManaged()
183 extern "C" JNIEXPORT void JNICALL Java_Main_assertCallerIsManaged(JNIEnv* env, jclass cls) { in Java_Main_assertCallerIsManaged() argument
185 CHECK(Java_Main_isCallerManaged(env, cls)); in Java_Main_assertCallerIsManaged()
190 JNIEnv* env, [[maybe_unused]] jclass cls) { in Java_Main_getThisOfCaller() 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/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/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatClassObj.java172 AhatClassObj cls = this; in isSubClassOf() local
173 while (cls != null) { in isSubClassOf()
174 if (className.equals(cls.getName())) { in isSubClassOf()
177 cls = cls.getSuperClassObj(); in isSubClassOf()
/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/667-jit-jni-stub/src/
DMain.java154 public native static void callThrough(Class<?> cls, String methodName); in callThrough() argument
155 public native static void deoptimizeNativeMethod(Class<?> cls, String methodName); in deoptimizeNativeMethod() argument
160 public native static boolean isAotCompiled(Class<?> cls, String methodName); in isAotCompiled() argument
161 public native static boolean hasJitCompiledEntrypoint(Class<?> cls, String methodName); in hasJitCompiledEntrypoint() argument
162 public native static boolean hasJitCompiledCode(Class<?> cls, String methodName); in hasJitCompiledCode() argument
/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/compiler/optimizing/
Dload_store_elimination_test.cc1003 HInstruction* cls = MakeClassLoad(); in TEST_F() local
1004 HInstruction* new_inst = MakeNewInstance(cls); in TEST_F()
1010 main->AddInstruction(cls); in TEST_F()
1016 cls->CopyEnvironmentFrom(suspend_check->GetEnvironment()); in TEST_F()
1028 EXPECT_INS_RETAINED(cls); in TEST_F()
1029 EXPECT_INS_EQ(cls, return_val->InputAt(0)); in TEST_F()
1054 HInstruction* cls = MakeClassLoad(); in TEST_F() local
1055 HInstruction* new_inst = MakeNewInstance(cls); in TEST_F()
1061 main->AddInstruction(cls); in TEST_F()
1067 cls->CopyEnvironmentFrom(suspend_check->GetEnvironment()); in TEST_F()
[all …]
/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/626-const-class-linking/
Dclear_dex_cache_types.cc27 extern "C" JNIEXPORT void JNICALL Java_Main_nativeClearResolvedTypes(JNIEnv*, jclass, jclass cls) { in Java_Main_nativeClearResolvedTypes() argument
29 ObjPtr<mirror::DexCache> dex_cache = soa.Decode<mirror::Class>(cls)->GetDexCache(); in Java_Main_nativeClearResolvedTypes()
35 extern "C" JNIEXPORT void JNICALL Java_Main_nativeSkipVerification(JNIEnv*, jclass, jclass cls) { in Java_Main_nativeSkipVerification() argument
38 Handle<mirror::Class> klass = hs.NewHandle(soa.Decode<mirror::Class>(cls)); in Java_Main_nativeSkipVerification()

123456