/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 = m->GetEntryPointFromJni(); in GetNativeMethods() 85 methods[count].name = m->GetName(); in GetNativeMethods() 86 methods[count].signature = m->GetShorty(); in GetNativeMethods() 87 methods[count].fnPtr = m->GetEntryPointFromJni(); in GetNativeMethods()
|
D | jni_internal_test.cc | 469 JNINativeMethod methods[] = { { nullptr, "()V", native_function } }; in TEST_F() local 470 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 476 JNINativeMethod methods[] = { { "notify", nullptr, native_function } }; in TEST_F() local 477 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 483 JNINativeMethod methods[] = { { "notify", "()V", nullptr } }; in TEST_F() local 484 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 490 JNINativeMethod methods[] = { { "foo", "()V", native_function } }; in TEST_F() local 491 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR); in TEST_F() 497 JNINativeMethod methods[] = { { "equals", "(Ljava/lang/Object;)Z", native_function } }; in TEST_F() local 498 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 | 1913 methods(hs.NewHandle(AllocArtMethodArray(self, dex_file.NumMethodIds()))); in AllocDexCache() local 1914 if (methods.Get() == nullptr) { in AllocDexCache() 1922 dex_cache->Init(&dex_file, location.Get(), strings.Get(), types.Get(), methods.Get(), in AllocDexCache() 3778 jobjectArray methods, jobjectArray throws) { in CreateProxyClass() argument 3847 soa.Decode<mirror::ObjectArray<mirror::ArtMethod>*>(methods)->GetLength(); in CreateProxyClass() 3860 soa.Decode<mirror::ObjectArray<mirror::ArtMethod>*>(methods); in CreateProxyClass() 3912 soa.Decode<mirror::ObjectArray<mirror::ArtMethod>*>(methods); in CreateProxyClass() 4419 mirror::ObjectArray<mirror::ArtMethod>* methods = new_class->GetDirectMethods(); in FixupTemporaryDeclaringClass() local 4420 if (methods != nullptr) { in FixupTemporaryDeclaringClass() 4421 for (int index = 0; index < methods->GetLength(); index ++) { in FixupTemporaryDeclaringClass() [all …]
|
D | jni_internal.cc | 2363 static jint RegisterNatives(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, in RegisterNatives() argument 2365 return RegisterNativeMethods(env, java_class, methods, method_count, true); in RegisterNatives() 2368 static jint RegisterNativeMethods(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, in RegisterNativeMethods() argument 2382 CHECK_NON_NULL_ARGUMENT_FN_NAME("RegisterNatives", methods, JNI_ERR); in RegisterNativeMethods() 2384 const char* name = methods[i].name; in RegisterNativeMethods() 2385 const char* sig = methods[i].signature; in RegisterNativeMethods() 2386 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 | 336 jobjectArray interfaces, jobject loader, jobjectArray methods,
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 55 std::unique_ptr<JNINativeMethod[]> methods(new JNINativeMethod[count1]); in trampoline_JNI_OnLoad() local 56 if (methods == nullptr) { in trampoline_JNI_OnLoad() 59 count2 = gNativeBridgeArtCallbacks->getNativeMethods(env, klass, methods.get(), count1); in trampoline_JNI_OnLoad() 65 NativeBridgeMethod* nb_method = find_native_bridge_method(methods[i].name); in trampoline_JNI_OnLoad() 69 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 71 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); in trampoline_JNI_OnLoad() 75 if (strcmp(shorty, methods[i].signature) == 0) { in trampoline_JNI_OnLoad() 77 methods[i].name, nb_method->signature, shorty); in trampoline_JNI_OnLoad() 82 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/089-many-methods/ |
D | info.txt | 2 than 65536 methods.
|
/art/test/300-package-override/ |
D | info.txt | 2 methods.
|
/art/test/126-miranda-multidex/ |
D | info.txt | 1 This test ensures that cross-dex-file Miranda methods are correctly resolved.
|
/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/133-static-invoke-super/ |
D | info.txt | 1 This is a performance test of invoking static methods in super class. To see the numbers, invoke
|
/art/test/032-concrete-sub/ |
D | info.txt | 3 different notions about which methods are abstract.
|
/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/046-reflect/ |
D | expected.txt | 113 got methods 124 methods are unique 125 methods are .equals
|
/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 | 471 Method[] methods = niuClass.getDeclaredMethods(); in checkClinitForMethods() local
|