/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/566-polymorphic-inlining/ |
D | polymorphic_inline.cc | 29 static void do_checks(jclass cls, const char* method_name) { in do_checks() argument 31 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in do_checks() 56 static void allocate_profiling_info(jclass cls, const char* method_name) { in allocate_profiling_info() argument 58 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in allocate_profiling_info() 63 extern "C" JNIEXPORT void JNICALL Java_Main_ensureProfilingInfo566(JNIEnv*, jclass cls) { in Java_Main_ensureProfilingInfo566() argument 69 allocate_profiling_info(cls, "testInvokeVirtual"); in Java_Main_ensureProfilingInfo566() 70 allocate_profiling_info(cls, "testInvokeInterface"); in Java_Main_ensureProfilingInfo566() 71 allocate_profiling_info(cls, "$noinline$testInlineToSameTarget"); in Java_Main_ensureProfilingInfo566() 74 extern "C" JNIEXPORT void JNICALL Java_Main_ensureJittedAndPolymorphicInline566(JNIEnv*, jclass cls… in Java_Main_ensureJittedAndPolymorphicInline566() argument 85 do_checks(cls, "testInvokeVirtual"); in Java_Main_ensureJittedAndPolymorphicInline566() [all …]
|
/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 | 43 ObjPtr<mirror::Class> cls = class_linker->FindSystemClass(self, class_name); in InitializeIntrinsic() local 44 if (cls == nullptr) { in InitializeIntrinsic() 48 ArtMethod* method = cls->FindClassMethod(method_name, signature, image_size); in InitializeIntrinsic() 49 if (method == nullptr || method->GetDeclaringClass() != cls) { in InitializeIntrinsic()
|
/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); 67 Class<?> cls = BoxedNullBooleanThrowsNPETest.class; 68 vh = MethodHandles.lookup().findStaticVarHandle(cls, "z", boolean.class); 95 Class<?> cls = BoxedNullByteThrowsNPETest.class; 96 vh = MethodHandles.lookup().findVarHandle(cls, "b", byte.class); 149 Class<?> cls = BoxedNullShortThrowsNPETest.class; 206 Class<?> cls = BoxedNullLongThrowsNPETest.class; 235 Class<?> cls = BoxedNullFloatThrowsNPETest.class; 296 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 | 60 extern "C" JNIEXPORT jboolean JNICALL Java_Main_hasOatFile(JNIEnv* env, jclass cls) { in Java_Main_hasOatFile() argument 63 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_hasOatFile() 72 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_runtimeIsSoftFail() 79 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_hasImage() 86 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_isImageDex2OatEnabled() 93 extern "C" JNIEXPORT jboolean JNICALL Java_Main_compiledWithOptimizing(JNIEnv* env, jclass cls) { in Java_Main_compiledWithOptimizing() argument 96 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_compiledWithOptimizing() 146 jclass cls, in Java_Main_isAotCompiled() argument 152 ArtMethod* method = soa.Decode<mirror::Class>(cls)->FindDeclaredDirectMethodByName( in Java_Main_isAotCompiled() 164 static ArtMethod* GetMethod(ScopedObjectAccess& soa, jclass cls, const ScopedUtfChars& chars) in GetMethod() argument [all …]
|
D | stack_inspect.cc | 41 jclass cls ATTRIBUTE_UNUSED) { in Java_Main_disableStackFrameAsserts() 143 extern "C" JNIEXPORT jboolean JNICALL Java_Main_isManaged(JNIEnv* env, jclass cls) { in Java_Main_isManaged() argument 144 return IsManaged(env, cls, 1); in Java_Main_isManaged() 149 extern "C" JNIEXPORT void JNICALL Java_Main_assertIsManaged(JNIEnv* env, jclass cls) { in Java_Main_assertIsManaged() argument 151 CHECK(Java_Main_isManaged(env, cls)); in Java_Main_assertIsManaged() 171 extern "C" JNIEXPORT jboolean JNICALL Java_Main_isCallerManaged(JNIEnv* env, jclass cls) { in Java_Main_isCallerManaged() argument 172 return IsManaged(env, cls, 2); in Java_Main_isCallerManaged() 177 extern "C" JNIEXPORT void JNICALL Java_Main_assertCallerIsManaged(JNIEnv* env, jclass cls) { in Java_Main_assertCallerIsManaged() argument 179 CHECK(Java_Main_isCallerManaged(env, cls)); in Java_Main_assertCallerIsManaged() 184 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 | 108 VeriClass* cls, in UpdateRegister() argument 111 kind, DexFileReference(&resolver_->GetDexFile(), source_id), cls); in UpdateRegister() 118 void VeriFlowAnalysis::UpdateRegister(uint32_t dex_register, const VeriClass* cls) { in UpdateRegister() argument 120 RegisterValue(RegisterSource::kNone, DexFileReference(nullptr, 0), cls); in UpdateRegister() 123 void VeriFlowAnalysis::UpdateRegister(uint32_t dex_register, int32_t value, const VeriClass* cls) { in UpdateRegister() argument 125 RegisterValue(RegisterSource::kConstant, value, DexFileReference(nullptr, 0), cls); in UpdateRegister() 136 VeriClass* cls = resolver_->GetVeriClass(proto_id.return_type_idx_); in GetReturnType() local 137 return RegisterValue(RegisterSource::kMethod, DexFileReference(&dex_file, method_index), cls); in GetReturnType() 143 VeriClass* cls = resolver_->GetVeriClass(field_id.type_idx_); in GetFieldType() local 144 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/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/tools/amm/AmmTest/jni/ |
D | ammtest.c | 221 Java_com_android_amm_test_SoCodeUse_nGetANumber(JNIEnv* env, jclass cls) { in Java_com_android_amm_test_SoCodeUse_nGetANumber() argument 223 (void) cls; in Java_com_android_amm_test_SoCodeUse_nGetANumber()
|
/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/689-zygote-jit-deopt/src/ |
D | Main.java | 32 private static native void ensureJitCompiled(Class<?> cls, String name); in ensureJitCompiled() argument 33 private static native boolean hasJitCompiledEntrypoint(Class<?> cls, String name); in hasJitCompiledEntrypoint() argument
|
/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/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/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/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/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/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()
|
/art/test/674-hotness-compiled/src/ |
D | Main.java | 44 public static native int getHotnessCounter(Class<?> cls, String methodName); in getHotnessCounter() argument 45 public static native boolean isAotCompiled(Class<?> cls, String methodName); in isAotCompiled() argument
|
/art/test/800-smali/ |
D | jni.cc | 29 extern "C" JNIEXPORT jboolean JNICALL Java_Main_isAotVerified(JNIEnv* env, jclass, jclass cls) { in Java_Main_isAotVerified() argument 33 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(cls); in Java_Main_isAotVerified()
|