/art/test/688-shared-library/src-art/ |
D | Main.java | 45 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/ |
D | Main.java | 25 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/ |
D | Main.java | 22 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/ |
D | test_native.cc | 25 jclass cls = env->FindClass("InheritAbstract"); in Java_TestCase_testNativeInternal() local 26 CHECK(cls != nullptr); in Java_TestCase_testNativeInternal() 27 jmethodID constructor = env->GetMethodID(cls, "<init>", "()V"); in Java_TestCase_testNativeInternal() 29 jmethodID method_id = env->GetMethodID(cls, "methodPublicSdkNotInAbstractParent", "()I"); in Java_TestCase_testNativeInternal() 33 jobject obj = env->NewObject(cls, constructor); in Java_TestCase_testNativeInternal()
|
/art/runtime/ |
D | fault_handler.cc | 67 mirror::CompressedReference<mirror::Class> cls; in SafeGetDeclaringClass() local 68 ssize_t rc = SafeCopy(&cls, method_declaring_class, sizeof(cls)); in SafeGetDeclaringClass() 73 CHECK_EQ(actual_class, cls.AsMirrorPtr()); in SafeGetDeclaringClass() 76 if (rc != sizeof(cls)) { in SafeGetDeclaringClass() 80 return cls.AsMirrorPtr(); in SafeGetDeclaringClass() 86 mirror::HeapReference<mirror::Class> cls; in SafeGetClass() local 87 ssize_t rc = SafeCopy(&cls, obj_cls, sizeof(cls)); in SafeGetClass() 92 CHECK_EQ(actual_class, cls.AsMirrorPtr()); in SafeGetClass() 95 if (rc != sizeof(cls)) { in SafeGetClass() 99 return cls.AsMirrorPtr(); in SafeGetClass() [all …]
|
D | runtime_intrinsics.cc | 40 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/712-varhandle-invocations/src/ |
D | VarHandleAccessorExceptionTests.java | 47 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 …]
|
D | VarHandleTypeConversionTests.java | 30 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/ |
D | Main.java | 24 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/test/common/ |
D | runtime_state.cc | 64 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 …]
|
D | stack_inspect.cc | 42 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-art/ |
D | Main.java | 52 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/ |
D | flow_analysis.cc | 116 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 …]
|
D | flow_analysis.h | 139 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/ |
D | load_store_elimination_test.cc | 449 HInstruction* cls = MakeClassLoad(); in GetComparisonInstructions() local 451 new (GetAllocator()) HStaticFieldGet(cls, in GetComparisonInstructions() 460 setup.push_back(cls); in GetComparisonInstructions() 1144 HInstruction* cls = MakeClassLoad(); in TEST_F() local 1145 HInstruction* new_inst = MakeNewInstance(cls); in TEST_F() 1151 main->AddInstruction(cls); in TEST_F() 1157 cls->CopyEnvironmentFrom(suspend_check->GetEnvironment()); in TEST_F() 1169 EXPECT_INS_RETAINED(cls); in TEST_F() 1170 EXPECT_INS_EQ(cls, return_val->InputAt(0)); in TEST_F() 1195 HInstruction* cls = MakeClassLoad(); in TEST_F() local [all …]
|
/art/test/613-inlining-dex-cache/src-art/ |
D | Main.java | 48 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/730-cha-deopt/src/ |
D | Main.java | 32 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/ |
D | get_loaded_classes.cc | 37 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/172-app-image-twice/ |
D | debug_print_class.cc | 25 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/ |
D | compiler_driver-inl.h | 43 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/ |
D | Main.java | 66 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/626-const-class-linking/ |
D | clear_dex_cache_types.cc | 27 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() 36 extern "C" JNIEXPORT void JNICALL Java_Main_nativeSkipVerification(JNIEnv*, jclass, jclass cls) { in Java_Main_nativeSkipVerification() argument 39 Handle<mirror::Class> klass = hs.NewHandle(soa.Decode<mirror::Class>(cls)); in Java_Main_nativeSkipVerification()
|
/art/test/667-jit-jni-stub/src/ |
D | Main.java | 174 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
|
/art/test/689-zygote-jit-deopt/src/ |
D | Main.java | 37 private static native void ensureJitCompiled(Class<?> cls, String name); in ensureJitCompiled() argument 38 private static native boolean hasJitCompiledEntrypoint(Class<?> cls, String name); in hasJitCompiledEntrypoint() argument
|
/art/test/647-jni-get-field-id/ |
D | get_field_id.cc | 25 jclass cls, in Java_Main_getFieldId() argument 36 jfieldID field_id = env->GetFieldID(cls, name_chars.c_str(), signature_chars.c_str()); in Java_Main_getFieldId()
|