/art/runtime/ |
D | native_bridge_art_interface.cc | 59 uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, in GetNativeMethods() argument 61 if ((clazz == nullptr) || (methods == nullptr)) { in GetNativeMethods() 72 methods[count].name = m->GetName(); in GetNativeMethods() 73 methods[count].signature = m->GetShorty(); in GetNativeMethods() 74 methods[count].fnPtr = const_cast<void*>(m->GetNativeMethod()); in GetNativeMethods() 85 methods[count].name = m->GetName(); in GetNativeMethods() 86 methods[count].signature = m->GetShorty(); in GetNativeMethods() 87 methods[count].fnPtr = const_cast<void*>(m->GetNativeMethod()); in GetNativeMethods()
|
D | jni_internal_test.cc | 459 JNINativeMethod methods[] = { { nullptr, "()V", native_function } }; in TEST_F() local 460 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 466 JNINativeMethod methods[] = { { "notify", nullptr, native_function } }; in TEST_F() local 467 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 473 JNINativeMethod methods[] = { { "notify", "()V", nullptr } }; in TEST_F() local 474 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 480 JNINativeMethod methods[] = { { "foo", "()V", native_function } }; in TEST_F() local 481 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 487 JNINativeMethod methods[] = { { "equals", "(Ljava/lang/Object;)Z", native_function } }; in TEST_F() local 488 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() [all …]
|
D | jni_internal.h | 54 void RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods,
|
D | class_linker.cc | 1882 methods(hs.NewHandle(AllocArtMethodArray(self, dex_file.NumMethodIds()))); in AllocDexCache() local 1883 if (methods.Get() == nullptr) { in AllocDexCache() 1891 dex_cache->Init(&dex_file, location.Get(), strings.Get(), types.Get(), methods.Get(), in AllocDexCache() 3721 jobjectArray methods, jobjectArray throws) { in CreateProxyClass() argument 3790 soa.Decode<mirror::ObjectArray<mirror::ArtMethod>*>(methods)->GetLength(); in CreateProxyClass() 3803 soa.Decode<mirror::ObjectArray<mirror::ArtMethod>*>(methods); in CreateProxyClass() 3855 soa.Decode<mirror::ObjectArray<mirror::ArtMethod>*>(methods); in CreateProxyClass() 4347 mirror::ObjectArray<mirror::ArtMethod>* methods = new_class->GetDirectMethods(); in FixupTemporaryDeclaringClass() local 4348 if (methods != nullptr) { in FixupTemporaryDeclaringClass() 4349 for (int index = 0; index < methods->GetLength(); index ++) { in FixupTemporaryDeclaringClass() [all …]
|
D | jni_internal.cc | 2365 static jint RegisterNatives(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, in RegisterNatives() argument 2367 return RegisterNativeMethods(env, java_class, methods, method_count, true); in RegisterNatives() 2370 static jint RegisterNativeMethods(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, in RegisterNativeMethods() argument 2384 CHECK_NON_NULL_ARGUMENT_FN_NAME("RegisterNatives", methods, JNI_ERR); in RegisterNativeMethods() 2386 const char* name = methods[i].name; in RegisterNativeMethods() 2387 const char* sig = methods[i].signature; in RegisterNativeMethods() 2388 const void* fnPtr = methods[i].fnPtr; in RegisterNativeMethods() 3427 void RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods, in RegisterNativeMethods() argument 3433 JNI::RegisterNativeMethods(env, c.get(), methods, method_count, false); in RegisterNativeMethods()
|
D | check_jni.cc | 1653 …static jint RegisterNatives(JNIEnv* env, jclass c, const JNINativeMethod* methods, jint nMethods) { in RegisterNatives() argument 1654 CHECK_JNI_ENTRY(kFlag_Default, "EcpI", env, c, methods, nMethods); in RegisterNatives() 1655 return CHECK_JNI_EXIT("I", baseEnv(env)->RegisterNatives(env, c, methods, nMethods)); in RegisterNatives()
|
D | class_linker.h | 332 jobjectArray interfaces, jobject loader, jobjectArray methods,
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 54 std::unique_ptr<JNINativeMethod[]> methods(new JNINativeMethod[count1]); in trampoline_JNI_OnLoad() local 55 if (methods == nullptr) { in trampoline_JNI_OnLoad() 58 count2 = gNativeBridgeArtCallbacks->getNativeMethods(env, klass, methods.get(), count1); in trampoline_JNI_OnLoad() 64 NativeBridgeMethod* nb_method = find_native_bridge_method(methods[i].name); in trampoline_JNI_OnLoad() 68 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 70 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 74 if (strcmp(shorty, methods[i].signature) == 0) { in trampoline_JNI_OnLoad() 76 methods[i].name, nb_method->signature, shorty); in trampoline_JNI_OnLoad() 81 methods.release(); in trampoline_JNI_OnLoad()
|
/art/runtime/native/ |
D | java_lang_reflect_Proxy.cc | 28 jobject loader, jobjectArray methods, jobjectArray throws) { in Proxy_generateProxy() argument 31 mirror::Class* result = class_linker->CreateProxyClass(soa, name, interfaces, loader, methods, in Proxy_generateProxy()
|
/art/test/044-proxy/src/ |
D | NarrowingTest.java | 49 Method[] methods = proxy.getClass().getDeclaredMethods(); in main() local 50 System.out.println("Proxy methods: " + Arrays.deepToString(methods)); in main()
|
D | BasicTest.java | 75 Method[] methods = proxy.getClass().getDeclaredMethods(); in main() local 76 Arrays.sort(methods, new Comparator<Method>() { in main() 87 System.out.println("Proxy methods: " + Arrays.deepToString(methods)); in main() 88 Method meth = methods[methods.length -1]; in main()
|
/art/test/064-field-access/src/ |
D | Main.java | 519 Method[] methods; in doReflectionTests() local 527 methods = SamePackage.class.getDeclaredMethods(); in doReflectionTests() 528 check(methods.length == 4); in doReflectionTests() 535 methods = PublicClass.class.getDeclaredMethods(); in doReflectionTests() 536 check(methods.length == 4); in doReflectionTests() 542 methods = PublicClass.class.getSuperclass().getDeclaredMethods(); in doReflectionTests() 543 check(methods.length == 4); in doReflectionTests() 608 for (Method m : methods) { in doReflectionTests()
|
/art/test/300-package-override/ |
D | info.txt | 2 methods.
|
/art/test/089-many-methods/ |
D | info.txt | 2 than 65536 methods.
|
/art/test/097-duplicate-method/ |
D | info.txt | 1 This is a test to verify that duplicate methods in a dex file are handled
|
/art/test/032-concrete-sub/ |
D | info.txt | 3 different notions about which methods are abstract.
|
/art/test/046-reflect/ |
D | expected.txt | 113 got methods 124 methods are unique 125 methods are .equals
|
/art/test/303-verification-stress/ |
D | info.txt | 3 This generates big <clinit> methods in these classes. The goal is to stress the
|
/art/test/121-modifiers/src/ |
D | Asm.java | 121 for (MethodNode methodNode :(List<MethodNode>) classNode.methods) { in modify()
|
/art/test/044-proxy/ |
D | expected.txt | 54 Proxy methods: [public final java.lang.String $Proxy1.blob(), public final double $Proxy1.blue(int)… 87 Proxy methods: [public final boolean $Proxy3.equals(java.lang.Object), public final java.lang.Objec…
|
/art/runtime/mirror/ |
D | dex_cache.h | 52 ObjectArray<ArtMethod>* methods,
|
D | class.cc | 703 static void SetPreverifiedFlagOnMethods(mirror::ObjectArray<mirror::ArtMethod>* methods) in SetPreverifiedFlagOnMethods() argument 705 if (methods != nullptr) { in SetPreverifiedFlagOnMethods() 706 for (int32_t index = 0, end = methods->GetLength(); index < end; ++index) { in SetPreverifiedFlagOnMethods() 707 mirror::ArtMethod* method = methods->GetWithoutChecks(index); in SetPreverifiedFlagOnMethods()
|
/art/test/046-reflect/src/ |
D | Main.java | 469 Method[] methods = niuClass.getDeclaredMethods(); in checkClinitForMethods() local
|
/art/compiler/jni/ |
D | jni_compiler_test.cc | 118 JNINativeMethod methods[] = { { method_name, method_sig, native_fnptr } }; in SetUpForTest() local 119 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) in SetUpForTest()
|