/art/test/674-hiddenapi/src-ex/ |
D | Reflection.java | 25 public static boolean canDiscoverWithGetDeclaredField(Class<?> klass, String name) { in canDiscoverWithGetDeclaredField() argument 27 klass.getDeclaredField(name); in canDiscoverWithGetDeclaredField() 34 public static boolean canDiscoverWithGetDeclaredFields(Class<?> klass, String name) { in canDiscoverWithGetDeclaredFields() argument 35 for (Field f : klass.getDeclaredFields()) { in canDiscoverWithGetDeclaredFields() 43 public static boolean canDiscoverWithGetField(Class<?> klass, String name) { in canDiscoverWithGetField() argument 45 klass.getField(name); in canDiscoverWithGetField() 52 public static boolean canDiscoverWithGetFields(Class<?> klass, String name) { in canDiscoverWithGetFields() argument 53 for (Field f : klass.getFields()) { in canDiscoverWithGetFields() 61 public static boolean canGetField(Class<?> klass, String name) { in canGetField() argument 63 Field f = klass.getDeclaredField(name); in canGetField() [all …]
|
D | ChildClass.java | 33 PrimitiveType(char shorty, Class klass, Object value) { in PrimitiveType() argument 35 mClass = klass; in PrimitiveType() 144 for (Class klass : new Class<?>[] { ParentClass.class, ParentInterface.class }) { in runTest() 146 checkField(klass, "field" + baseName, isStatic, visibility, expected, in runTest() 148 checkMethod(klass, "method" + baseName, isStatic, visibility, expected, in runTest() 183 private static void checkMemberCallback(Class<?> klass, String name, in checkMemberCallback() argument 191 klass.getField(name); in checkMemberCallback() 193 klass.getMethod(name); in checkMemberCallback() 197 klass.getDeclaredField(name); in checkMemberCallback() 199 klass.getDeclaredMethod(name); in checkMemberCallback() [all …]
|
D | JLI.java | 23 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindGetter() argument 25 return lookup.findGetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindGetter() 34 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindSetter() argument 36 return lookup.findSetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindSetter() 45 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindStaticGetter() argument 47 return lookup.findStaticGetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindStaticGetter() 56 MethodHandles.Lookup lookup, Class<?> klass, String fieldName, Class<?> fieldType) { in canDiscoverWithLookupFindStaticSetter() argument 58 return lookup.findStaticSetter(klass, fieldName, fieldType) != null; in canDiscoverWithLookupFindStaticSetter() 67 MethodHandles.Lookup lookup, Class<?> klass, MethodType methodType) { in canDiscoverWithLookupFindConstructor() argument 69 return lookup.findConstructor(klass, methodType) != null; in canDiscoverWithLookupFindConstructor() [all …]
|
D | JNI.java | 18 public static native boolean canDiscoverField(Class<?> klass, String name, boolean isStatic); in canDiscoverField() argument 19 public static native boolean canGetField(Class<?> klass, String name, boolean isStatic); in canGetField() argument 20 public static native boolean canSetField(Class<?> klass, String name, boolean isStatic); in canSetField() argument 22 public static native boolean canDiscoverMethod(Class<?> klass, String name, boolean isStatic); in canDiscoverMethod() argument 23 public static native boolean canInvokeMethodA(Class<?> klass, String name, boolean isStatic); in canInvokeMethodA() argument 24 public static native boolean canInvokeMethodV(Class<?> klass, String name, boolean isStatic); in canInvokeMethodV() argument 26 public static native boolean canDiscoverConstructor(Class<?> klass, String signature); in canDiscoverConstructor() argument 27 public static native boolean canInvokeConstructorA(Class<?> klass, String signature); in canInvokeConstructorA() argument 28 public static native boolean canInvokeConstructorV(Class<?> klass, String signature); in canInvokeConstructorV() argument
|
/art/runtime/mirror/ |
D | object-refvisitor-inl.h | 31 static void CheckNoReferenceField(ObjPtr<mirror::Class> klass) in CheckNoReferenceField() argument 36 CHECK(!klass->IsClassClass<kVerifyFlags>()); in CheckNoReferenceField() 37 CHECK((!klass->IsObjectArrayClass<kVerifyFlags, kReadBarrierOption>())); in CheckNoReferenceField() 40 if (!klass->IsStringClass<kVerifyFlags>()) { in CheckNoReferenceField() 42 ObjPtr<Class> super_class = klass; in CheckNoReferenceField() 54 static void CheckNormalClass(ObjPtr<mirror::Class> klass) in CheckNormalClass() argument 56 DCHECK(!klass->IsVariableSize<kVerifyFlags>()); in CheckNormalClass() 57 DCHECK(!klass->IsClassClass<kVerifyFlags>()); in CheckNormalClass() 58 DCHECK(!klass->IsStringClass<kVerifyFlags>()); in CheckNormalClass() 59 DCHECK(!klass->IsClassLoaderClass<kVerifyFlags>()); in CheckNormalClass() [all …]
|
/art/runtime/ |
D | subtype_check.h | 238 static SubtypeCheckInfo::State EnsureInitialized(ClassPtr klass) in EnsureInitialized() 241 return InitializeOrAssign(klass, /*assign=*/false).GetState(); in EnsureInitialized() 251 static SubtypeCheckInfo::State EnsureAssigned(ClassPtr klass) in EnsureAssigned() 254 return InitializeOrAssign(klass, /*assign=*/true).GetState(); in EnsureAssigned() 266 static SubtypeCheckInfo::State ForceUninitialize(ClassPtr klass) in ForceUninitialize() 283 WriteSubtypeCheckBits(klass, scb_uninitialized); in ForceUninitialize() 295 static SubtypeCheckInfo::State GetState(ClassPtr klass) in GetState() 298 return GetSubtypeCheckInfo(klass).GetState(); in GetState() 307 static BitString::StorageType GetEncodedPathToRootForSource(ClassPtr klass) in GetEncodedPathToRootForSource() 310 DCHECK_NE(SubtypeCheckInfo::kUninitialized, GetSubtypeCheckInfo(klass).GetState()); in GetEncodedPathToRootForSource() [all …]
|
D | cha.cc | 82 void ClassHierarchyAnalysis::ResetSingleImplementationInHierarchy(ObjPtr<mirror::Class> klass, in ResetSingleImplementationInHierarchy() argument 87 DCHECK(klass != nullptr); in ResetSingleImplementationInHierarchy() 91 if (klass->IsInterface()) { in ResetSingleImplementationInHierarchy() 99 if (!alloc->ContainsUnsafe(klass->GetMethodsPtr())) { in ResetSingleImplementationInHierarchy() 104 if (!klass->IsResolved()) { in ResetSingleImplementationInHierarchy() 108 ObjPtr<mirror::Class> super = klass->GetSuperClass<kDefaultVerifyFlags, kWithoutReadBarrier>(); in ResetSingleImplementationInHierarchy() 121 klass->GetClassLoader<kDefaultVerifyFlags, kWithoutReadBarrier>(); in ResetSingleImplementationInHierarchy() 124 klass->GetVTableEntry<kDefaultVerifyFlags, kWithoutReadBarrier>(vtbl_index, pointer_size); in ResetSingleImplementationInHierarchy() 161 ObjPtr<mirror::IfTable> iftable = klass->GetIfTable<kDefaultVerifyFlags, kWithoutReadBarrier>(); in ResetSingleImplementationInHierarchy() 162 const size_t ifcount = klass->GetIfTableCount<kDefaultVerifyFlags>(); in ResetSingleImplementationInHierarchy() [all …]
|
D | class_table.cc | 41 ObjPtr<mirror::Class> ClassTable::UpdateClass(ObjPtr<mirror::Class> klass, size_t hash) { in UpdateClass() argument 44 TableSlot slot(klass, hash); in UpdateClass() 49 LOG(FATAL) << "Updating class found in frozen table " << klass->PrettyDescriptor(); in UpdateClass() 53 LOG(FATAL) << "Updating class not found " << klass->PrettyDescriptor(); in UpdateClass() 57 CHECK_NE(existing, klass) << klass->PrettyDescriptor(); in UpdateClass() 58 CHECK(!existing->IsResolved()) << klass->PrettyDescriptor(); in UpdateClass() 59 CHECK_EQ(klass->GetStatus(), ClassStatus::kResolving) << klass->PrettyDescriptor(); in UpdateClass() 60 CHECK(!klass->IsTemp()) << klass->PrettyDescriptor(); in UpdateClass() 61 VerifyObject(klass); in UpdateClass() 124 void ClassTable::Insert(ObjPtr<mirror::Class> klass) { in Insert() argument [all …]
|
/art/test/1936-thread-end-events/ |
D | method_trace.cc | 40 jfloat JNICALL Java_art_Test989_returnFloatNative(JNIEnv* env, jclass klass) { in Java_art_Test989_returnFloatNative() argument 41 jmethodID targetMethod = env->GetStaticMethodID(klass, "doGetFloat", "()F"); in Java_art_Test989_returnFloatNative() 42 return env->CallStaticFloatMethod(klass, targetMethod); in Java_art_Test989_returnFloatNative() 45 jdouble JNICALL Java_art_Test989_returnDoubleNative(JNIEnv* env, jclass klass) { in Java_art_Test989_returnDoubleNative() argument 46 jmethodID targetMethod = env->GetStaticMethodID(klass, "doGetDouble", "()D"); in Java_art_Test989_returnDoubleNative() 47 return env->CallStaticDoubleMethod(klass, targetMethod); in Java_art_Test989_returnDoubleNative() 50 extern "C" JNIEXPORT jobject JNICALL Java_art_Test989_returnValueNative(JNIEnv* env, jclass klass) { in Java_art_Test989_returnValueNative() argument 51 jmethodID targetMethod = env->GetStaticMethodID(klass, "mkTestObject", "()Ljava/lang/Object;"); in Java_art_Test989_returnValueNative() 52 return env->CallStaticObjectMethod(klass, targetMethod); in Java_art_Test989_returnValueNative() 56 [[maybe_unused]] jclass klass) { in Java_art_Test989_doNothingNative() argument [all …]
|
/art/test/989-method-trace-throw/ |
D | method_trace.cc | 40 jfloat JNICALL Java_art_Test989_returnFloatNative(JNIEnv* env, jclass klass) { in Java_art_Test989_returnFloatNative() argument 41 jmethodID targetMethod = env->GetStaticMethodID(klass, "doGetFloat", "()F"); in Java_art_Test989_returnFloatNative() 42 return env->CallStaticFloatMethod(klass, targetMethod); in Java_art_Test989_returnFloatNative() 45 jdouble JNICALL Java_art_Test989_returnDoubleNative(JNIEnv* env, jclass klass) { in Java_art_Test989_returnDoubleNative() argument 46 jmethodID targetMethod = env->GetStaticMethodID(klass, "doGetDouble", "()D"); in Java_art_Test989_returnDoubleNative() 47 return env->CallStaticDoubleMethod(klass, targetMethod); in Java_art_Test989_returnDoubleNative() 50 extern "C" JNIEXPORT jobject JNICALL Java_art_Test989_returnValueNative(JNIEnv* env, jclass klass) { in Java_art_Test989_returnValueNative() argument 51 jmethodID targetMethod = env->GetStaticMethodID(klass, "mkTestObject", "()Ljava/lang/Object;"); in Java_art_Test989_returnValueNative() 52 return env->CallStaticObjectMethod(klass, targetMethod); in Java_art_Test989_returnValueNative() 56 [[maybe_unused]] jclass klass) { in Java_art_Test989_doNothingNative() argument [all …]
|
/art/test/2038-hiddenapi-jvmti-ext/src/ |
D | Main.java | 33 Class<?> klass = Class.forName("art.Test2038", true, BOOT_CLASS_LOADER); in main() local 34 assertFieldIsHidden(klass, "before set-policy"); in main() 35 assertMethodIsHidden(klass, "before set-policy"); in main() 40 assertFieldNotHidden(klass, "after disable-policy"); in main() 41 assertMethodNotHidden(klass, "after disable-policy"); in main() 45 assertFieldIsHidden(klass, "after set-policy 2"); in main() 46 assertMethodIsHidden(klass, "after set-policy 2"); in main() 49 private static void assertMethodNotHidden(Class<?> klass, String msg) { in assertMethodNotHidden() argument 51 klass.getDeclaredMethod("foo"); in assertMethodNotHidden() 58 private static void assertFieldNotHidden(Class<?> klass, String msg) { in assertFieldNotHidden() argument [all …]
|
/art/test/674-hiddenapi/ |
D | hiddenapi.cc | 53 JNIEnv* env, jclass klass, jstring jpath, jboolean is_core_platform) { in Java_Main_appendToBootClassLoader() argument 73 Java_Main_setDexDomain(env, klass, int_index, is_core_platform); in Java_Main_appendToBootClassLoader() 88 static jobject NewInstance(JNIEnv* env, jclass klass) { in NewInstance() argument 89 jmethodID constructor = env->GetMethodID(klass, "<init>", "()V"); in NewInstance() 93 return env->NewObject(klass, constructor); in NewInstance() 97 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canDiscoverField() argument 99 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canDiscoverField() 100 : env->GetFieldID(klass, utf_name.c_str(), "I"); in Java_JNI_canDiscoverField() 110 JNIEnv* env, jclass, jclass klass, jstring name, jboolean is_static) { in Java_JNI_canGetField() argument 112 jfieldID field = is_static ? env->GetStaticFieldID(klass, utf_name.c_str(), "I") in Java_JNI_canGetField() [all …]
|
/art/test/999-redefine-hiddenapi/src/ |
D | Main.java | 33 Class<?> klass = Class.forName("art.Test999", true, BOOT_CLASS_LOADER); in main() local 34 assertFieldIsHidden(klass, "before redefinition"); in main() 35 assertMethodIsHidden(klass, "before redefinition"); in main() 39 art.Redefinition.doCommonClassRedefinition(klass, CLASS_BYTES, DEX_BYTES); in main() 42 assertFieldIsHidden(klass, "after first redefinition"); in main() 43 assertMethodIsHidden(klass, "after first redefinition"); in main() 46 private static void assertMethodIsHidden(Class<?> klass, String msg) { in assertMethodIsHidden() argument 48 klass.getDeclaredMethod("foo"); in assertMethodIsHidden() 55 private static void assertFieldIsHidden(Class<?> klass, String msg) { in assertFieldIsHidden() argument 57 klass.getDeclaredField("bar"); in assertFieldIsHidden()
|
/art/runtime/entrypoints/quick/ |
D | quick_alloc_entrypoints.cc | 39 mirror::Class* klass, in artAllocObjectFromCode() argument 42 DCHECK(klass != nullptr); in artAllocObjectFromCode() 50 size_t byte_count = klass->GetObjectSizeAllocFastPath(); in artAllocObjectFromCode() 56 obj->SetClass(klass); in artAllocObjectFromCode() 65 return AllocObjectFromCodeInitialized<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode() 67 return AllocObjectFromCodeResolved<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode() 69 return AllocObjectFromCode<kInstrumented>(klass, self, allocator_type).Ptr(); in artAllocObjectFromCode() 75 mirror::Class* klass, Thread* self) \ 77 return artAllocObjectFromCode<false, true, instrumented_bool, allocator_type>(klass, self); \ 80 mirror::Class* klass, Thread* self) \ [all …]
|
/art/openjdkjvmti/ |
D | ti_class.h | 48 jclass klass, 53 jclass klass, 58 jclass klass, 62 static jvmtiError GetClassModifiers(jvmtiEnv* env, jclass klass, jint* modifiers_ptr); 65 jclass klass, 69 static jvmtiError GetClassStatus(jvmtiEnv* env, jclass klass, jint* status_ptr); 71 static jvmtiError GetClassLoader(jvmtiEnv* env, jclass klass, jobject* classloader_ptr); 83 static jvmtiError IsInterface(jvmtiEnv* env, jclass klass, jboolean* is_interface_ptr); 84 static jvmtiError IsArrayClass(jvmtiEnv* env, jclass klass, jboolean* is_array_class_ptr); 87 jclass klass, [all …]
|
D | ti_field.h | 45 jclass klass, 52 jclass klass, 57 jclass klass, 62 jclass klass, 66 static jvmtiError SetFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field) 68 static jvmtiError ClearFieldModificationWatch(jvmtiEnv* env, jclass klass, jfieldID field) 70 static jvmtiError SetFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field) 72 static jvmtiError ClearFieldAccessWatch(jvmtiEnv* env, jclass klass, jfieldID field)
|
/art/runtime/native/ |
D | java_lang_Class.cc | 151 ObjPtr<mirror::Class> klass = mirror::Class::GetPrimitiveClass(soa.Decode<mirror::String>(name)); in Class_getPrimitiveClass() local 152 return soa.AddLocalReference<jclass>(klass); in Class_getPrimitiveClass() 165 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getInterfacesInternal() local 166 if (klass->IsObsoleteObject()) { in Class_getInterfacesInternal() 171 if (klass->IsProxyClass()) { in Class_getInterfacesInternal() 174 hs2.NewHandle(klass->GetProxyInterfaces()); in Class_getInterfacesInternal() 179 const dex::TypeList* iface_list = klass->GetInterfaceTypeList(); in Class_getInterfacesInternal() 201 ObjPtr<mirror::Class> interface = linker->LookupResolvedType(type_idx, klass.Get()); in Class_getInterfacesInternal() 212 ObjPtr<mirror::Class> klass = DecodeClass(soa, javaThis); in Class_getDeclaredFieldsUnchecked() local 214 klass->GetDeclaredFields(soa.Self(), in Class_getDeclaredFieldsUnchecked() [all …]
|
/art/runtime/oat/ |
D | aot_class_linker.cc | 50 Handle<mirror::Class> klass, in InitializeClass() argument 55 DCHECK(klass != nullptr); in InitializeClass() 56 if (klass->IsInitialized() || klass->IsInitializing()) { in InitializeClass() 57 return ClassLinker::InitializeClass(self, klass, can_init_statics, can_init_parents); in InitializeClass() 65 Runtime::Current()->GetHeap()->ObjectIsInBootImageSpace(klass->GetDexCache())) { in InitializeClass() 69 klass->PrettyTypeOf().c_str()); in InitializeClass() 72 CHECK(klass->IsThrowableClass()) << klass->PrettyDescriptor(); in InitializeClass() 76 if (strict_mode && klass->IsBootStrapClassLoaded()) { in InitializeClass() 79 klass->PrettyTypeOf().c_str()); in InitializeClass() 85 if (strict_mode && !klass->IsInterface() && klass->HasSuperClass()) { in InitializeClass() [all …]
|
/art/compiler/optimizing/ |
D | reference_type_propagation.h | 51 static bool IsAdmissible(ObjPtr<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_) { in IsAdmissible() argument 52 while (klass != nullptr && klass->IsArrayClass()) { in IsAdmissible() 53 DCHECK(klass->IsResolved()); in IsAdmissible() 54 klass = klass->GetComponentType(); in IsAdmissible() 56 return klass != nullptr && klass->IsResolved(); in IsAdmissible()
|
D | sharpening.cc | 54 ObjPtr<mirror::Class> klass = method->GetDeclaringClass(); in BootImageAOTCanEmbedMethod() local 55 DCHECK(klass != nullptr); in BootImageAOTCanEmbedMethod() 56 const DexFile& dex_file = klass->GetDexFile(); in BootImageAOTCanEmbedMethod() 57 return compiler_options.IsImageClass(dex_file.GetTypeDescriptor(klass->GetDexTypeIndex())); in BootImageAOTCanEmbedMethod() 165 Handle<mirror::Class> klass = load_class->GetClass(); in ComputeLoadClassKind() local 193 if (klass != nullptr) { in ComputeLoadClassKind() 198 is_in_image = Runtime::Current()->GetHeap()->ObjectIsInBootImageSpace(klass.Get()) || in ComputeLoadClassKind() 236 is_in_image = Runtime::Current()->GetHeap()->ObjectIsInBootImageSpace(klass.Get()) || in ComputeLoadClassKind() 238 } else if (klass != nullptr && runtime->GetHeap()->ObjectIsInBootImageSpace(klass.Get())) { in ComputeLoadClassKind() 242 } else if ((klass != nullptr) && in ComputeLoadClassKind() [all …]
|
/art/runtime/gc/ |
D | verification-inl.h | 28 bool Verification::IsValidClassUnchecked(mirror::Class* klass) const { in IsValidClassUnchecked() argument 29 mirror::Class* k1 = klass->GetClass<kVerifyNone, kReadBarrierOption>(); in IsValidClassUnchecked() 44 bool Verification::IsValidClass(mirror::Class* klass) const { in IsValidClass() argument 45 if (!IsValidHeapObjectAddress(klass)) { in IsValidClass() 48 return IsValidClassUnchecked<kReadBarrierOption>(klass); in IsValidClass() 56 mirror::Class* klass = obj->GetClass<kVerifyNone, kReadBarrierOption>(); in IsValidObject() local 57 return IsValidClass(klass); in IsValidObject()
|
/art/runtime/verifier/ |
D | reg_type_cache.cc | 162 ObjPtr<mirror::Class> klass = nullptr; in ResolveClass() local 164 klass = class_linker_->FindClass(self, descriptor, loader); in ResolveClass() 166 klass = class_linker_->LookupClass(self, descriptor, loader.Get()); in ResolveClass() 167 if (klass != nullptr && !klass->IsResolved()) { in ResolveClass() 169 klass = nullptr; in ResolveClass() 172 return klass; in ResolveClass() 192 ObjPtr<mirror::Class> klass = ResolveClass(descriptor, loader); in From() local 193 if (klass != nullptr) { in From() 198 DCHECK(!klass->IsPrimitive()); in From() 201 if (klass->CannotBeAssignedFromOtherTypes()) { in From() [all …]
|
/art/runtime/entrypoints/ |
D | entrypoint_utils-inl.h | 185 inline ObjPtr<mirror::Class> CheckClassInitializedForObjectAlloc(ObjPtr<mirror::Class> klass, in CheckClassInitializedForObjectAlloc() argument 190 if (UNLIKELY(!klass->IsVisiblyInitialized())) { in CheckClassInitializedForObjectAlloc() 192 Handle<mirror::Class> h_class(hs.NewHandle(klass)); in CheckClassInitializedForObjectAlloc() 210 return klass; in CheckClassInitializedForObjectAlloc() 213 ALWAYS_INLINE inline ObjPtr<mirror::Class> CheckObjectAlloc(ObjPtr<mirror::Class> klass, in CheckObjectAlloc() argument 218 if (UNLIKELY(!klass->IsInstantiable())) { in CheckObjectAlloc() 219 self->ThrowNewException("Ljava/lang/InstantiationError;", klass->PrettyDescriptor().c_str()); in CheckObjectAlloc() 223 if (UNLIKELY(klass->IsClassClass())) { in CheckObjectAlloc() 225 klass->PrettyDescriptor().c_str()); in CheckObjectAlloc() 229 return CheckClassInitializedForObjectAlloc(klass, self, slow_path); in CheckObjectAlloc() [all …]
|
/art/test/690-hiddenapi-same-name-methods/src/ |
D | Main.java | 49 Class<?> klass = Class.forName(className, true, BOOT_CLASS_LOADER); in main() local 50 checkMethodList(klass, /* expectedLength= */ 2); in main() 51 checkMethod(klass); in main() 55 private static void checkMethodList(Class<?> klass, int expectedLength) { in checkMethodList() argument 56 String className = klass.getName(); in checkMethodList() 57 Method[] methods = klass.getDeclaredMethods(); in checkMethodList() 83 private static void checkMethod(Class<?> klass) throws NoSuchMethodException { in checkMethod() argument 84 String className = klass.getName(); in checkMethod() 85 Method method = klass.getDeclaredMethod(METHOD_NAME); in checkMethod()
|
/art/test/986-native-method-bind/ |
D | native_bind.cc | 37 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Test986")); in doUpPrintCall() local 38 jmethodID targetMethod = env->GetStaticMethodID(klass.get(), function, "()V"); in doUpPrintCall() 39 env->CallStaticVoidMethod(klass.get(), targetMethod); in doUpPrintCall() 43 JNIEnv* env, [[maybe_unused]] jclass klass) { in Java_art_Test986_00024Transform_sayHi__() argument 48 JNIEnv* env, [[maybe_unused]] jclass klass) { in Java_art_Test986_00024Transform_sayHi2() argument 52 extern "C" JNIEXPORT void JNICALL NoReallySayGoodbye(JNIEnv* env, [[maybe_unused]] jclass klass) { in NoReallySayGoodbye() argument 71 ScopedLocalRef<jclass> klass(env, env->FindClass("art/Test986")); in doJvmtiMethodBind() local 73 klass.get(), in doJvmtiMethodBind() 81 env->CallStaticObjectMethod(klass.get(), in doJvmtiMethodBind() 98 [[maybe_unused]] JNIEnv* env, [[maybe_unused]] jclass klass) { in Java_art_Test986_setupNativeBindNotify() argument [all …]
|