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 = const_cast<void*>(m->GetNativeMethod());
85 methods[count].name = m->GetName();
86 methods[count].signature = m->GetShorty();
87 methods[count].fnPtr = const_cast<void*>(m->GetNativeMethod());
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.cc459 JNINativeMethod methods[] = { { nullptr, "()V", native_function } }; local
460 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
466 JNINativeMethod methods[] = { { "notify", nullptr, native_function } }; local
467 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
473 JNINativeMethod methods[] = { { "notify", "()V", nullptr } }; local
474 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
480 JNINativeMethod methods[] = { { "foo", "()V", native_function } }; local
481 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
485 // Check that registering non-native methods causes a NoSuchMethodError.
487 JNINativeMethod methods[] local
494 JNINativeMethod methods[] = { { "notify", "()V", native_function } }; local
502 JNINativeMethod methods[] = { }; local
511 JNINativeMethod methods[] = { }; local
519 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.cc371 // Create runtime resolution and imt conflict methods. Also setup the default imt.
1882 methods(hs.NewHandle(AllocArtMethodArray(self, dex_file.NumMethodIds())));
1883 if (methods.Get() == nullptr) {
1891 dex_cache->Init(&dex_file, location.Get(), strings.Get(), types.Get(), methods.Get(),
2344 // Process methods
2367 // Although we overwrite the trampoline of non-static methods, we may get here via the resolution
2368 // method for direct methods (or virtual methods made direct).
2376 // by search for its position in the declared virtual methods.
2514 return; // No direct methods
3719 CreateProxyClass(ScopedObjectAccessAlreadyRunnable& soa, jstring name, jobjectArray interfaces, jobject loader, jobjectArray methods, jobjectArray throws) argument
4347 mirror::ObjectArray<mirror::ArtMethod>* methods = new_class->GetDirectMethods(); local
[all...]
H A Djni_internal.cc156 // private methods and constructors.
2365 static jint RegisterNatives(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, argument
2367 return RegisterNativeMethods(env, java_class, methods, method_count, true);
2370 static jint RegisterNativeMethods(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, argument
2380 LOG(WARNING) << "JNI RegisterNativeMethods: attempt to register 0 native methods for "
2384 CHECK_NON_NULL_ARGUMENT_FN_NAME("RegisterNatives", methods, JNI_ERR);
2386 const char* name = methods[i].name;
2387 const char* sig = methods[i].signature;
2388 const void* fnPtr = methods[i].fnPtr;
2436 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 680 milliseconds