Searched defs:methods (Results 1 - 7 of 7) sorted by relevance

/art/runtime/native/
H A Djava_lang_reflect_Proxy.cc28 jobject loader, jobjectArray methods, jobjectArray throws) {
31 mirror::Class* result = class_linker->CreateProxyClass(soa, name, interfaces, loader, methods,
27 Proxy_generateProxy(JNIEnv* env, jclass, jstring name, jobjectArray interfaces, jobject loader, jobjectArray methods, jobjectArray throws) argument
/art/runtime/
H A Dnative_bridge_art_interface.cc59 uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, argument
61 if ((clazz == nullptr) || (methods == nullptr)) {
72 methods[count].name = m->GetName();
73 methods[count].signature = m->GetShorty();
74 methods[count].fnPtr = m->GetEntryPointFromJni();
85 methods[count].name = m->GetName();
86 methods[count].signature = m->GetShorty();
87 methods[count].fnPtr = m->GetEntryPointFromJni();
99 // The interface is expected to expose the following methods:
104 // native bridge can call back to get all native methods o
[all...]
H A Djni_internal_test.cc469 JNINativeMethod methods[] = { { nullptr, "()V", native_function } }; local
470 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
476 JNINativeMethod methods[] = { { "notify", nullptr, native_function } }; local
477 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
483 JNINativeMethod methods[] = { { "notify", "()V", nullptr } }; local
484 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
490 JNINativeMethod methods[] = { { "foo", "()V", native_function } }; local
491 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
495 // Check that registering non-native methods causes a NoSuchMethodError.
497 JNINativeMethod methods[] local
504 JNINativeMethod methods[] = { { "notify", "()V", native_function } }; local
512 JNINativeMethod methods[] = { }; local
521 JNINativeMethod methods[] = { }; local
529 JNINativeMethod methods[] = { }; local
[all...]
H A Dcheck_jni.cc805 // make any JNI calls other than the Exception* methods.
1653 static jint RegisterNatives(JNIEnv* env, jclass c, const JNINativeMethod* methods, jint nMethods) { argument
1654 CHECK_JNI_ENTRY(kFlag_Default, "EcpI", env, c, methods, nMethods);
1655 return CHECK_JNI_EXIT("I", baseEnv(env)->RegisterNatives(env, c, methods, nMethods));
H A Dclass_linker.cc362 // Create runtime resolution and imt conflict methods. Also setup the default imt.
1913 methods(hs.NewHandle(AllocArtMethodArray(self, dex_file.NumMethodIds())));
1914 if (methods.Get() == nullptr) {
1922 dex_cache->Init(&dex_file, location.Get(), strings.Get(), types.Get(), methods.Get(),
2371 // Process methods
2394 // Although we overwrite the trampoline of non-static methods, we may get here via the resolution
2395 // method for direct methods (or virtual methods made direct).
2403 // by search for its position in the declared virtual methods.
2550 return; // No direct methods
3776 CreateProxyClass(ScopedObjectAccessAlreadyRunnable& soa, jstring name, jobjectArray interfaces, jobject loader, jobjectArray methods, jobjectArray throws) argument
4419 mirror::ObjectArray<mirror::ArtMethod>* methods = new_class->GetDirectMethods(); local
[all...]
H A Djni_internal.cc156 // private methods and constructors.
2363 static jint RegisterNatives(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, argument
2365 return RegisterNativeMethods(env, java_class, methods, method_count, true);
2368 static jint RegisterNativeMethods(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, argument
2378 LOG(WARNING) << "JNI RegisterNativeMethods: attempt to register 0 native methods for "
2382 CHECK_NON_NULL_ARGUMENT_FN_NAME("RegisterNatives", methods, JNI_ERR);
2384 const char* name = methods[i].name;
2385 const char* sig = methods[i].signature;
2386 const void* fnPtr = methods[i].fnPtr;
2434 VLOG(jni) << "[Unregistering JNI native methods fo
3427 RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods, jint method_count) argument
[all...]
/art/compiler/jni/
H A Djni_compiler_test.cc118 JNINativeMethod methods[] = { { method_name, method_sig, native_fnptr } }; local
119 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1))
136 // We have to list the methods here so we can share them between default and generic JNI.

Completed in 182 milliseconds