/art/runtime/native/ |
H A D | java_lang_reflect_Proxy.cc | 28 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 D | native_bridge_art_interface.cc | 59 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 D | jni_internal_test.cc | 469 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 D | jni_internal.h | 54 void RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods,
|
H A D | class_linker.cc | 362 // 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 D | jni_internal.cc | 156 // 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...] |
H A D | check_jni.cc | 805 // 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 D | class_linker.h | 230 // <clinit> methods so they could not be initialized by the compiler. 301 // TODO: replace this with multiple methods that allocate the correct managed type. 336 jobjectArray interfaces, jobject loader, jobjectArray methods, 666 // Ensures that methods have the kAccPreverified bit set. We use the kAccPreverfied bit on the
|
/art/test/044-proxy/src/ |
H A D | NarrowingTest.java | 49 Method[] methods = proxy.getClass().getDeclaredMethods(); 50 System.out.println("Proxy methods: " + Arrays.deepToString(methods));
|
H A D | BasicTest.java | 75 Method[] methods = proxy.getClass().getDeclaredMethods(); 76 Arrays.sort(methods, new Comparator<Method>() { 87 System.out.println("Proxy methods: " + Arrays.deepToString(methods)); 88 Method meth = methods[methods.length -1];
|
/art/test/115-native-bridge/ |
H A D | nativebridge.cc | 55 std::unique_ptr<JNINativeMethod[]> methods(new JNINativeMethod[count1]); 56 if (methods == nullptr) { 59 count2 = gNativeBridgeArtCallbacks->getNativeMethods(env, klass, methods.get(), count1); 65 NativeBridgeMethod* nb_method = find_native_bridge_method(methods[i].name); 69 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature); 71 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature); 75 if (strcmp(shorty, methods[i].signature) == 0) { 77 methods[i].name, nb_method->signature, shorty); 82 methods.release();
|
/art/test/064-field-access/src/ |
H A D | Main.java | 519 Method[] methods; 527 methods = SamePackage.class.getDeclaredMethods(); 528 check(methods.length == 4); 535 methods = PublicClass.class.getDeclaredMethods(); 536 check(methods.length == 4); 542 methods = PublicClass.class.getSuperclass().getDeclaredMethods(); 543 check(methods.length == 4); 608 for (Method m : methods) {
|
/art/test/121-modifiers/src/ |
H A D | Asm.java | 121 for (MethodNode methodNode :(List<MethodNode>) classNode.methods) {
|
/art/runtime/mirror/ |
H A D | dex_cache.h | 52 ObjectArray<ArtMethod>* methods,
|
H A D | class.cc | 252 os << " direct methods (" << h_this->NumDirectMethods() << " entries):\n"; 703 static void SetPreverifiedFlagOnMethods(mirror::ObjectArray<mirror::ArtMethod>* methods) 705 if (methods != nullptr) { 706 for (int32_t index = 0, end = methods->GetLength(); index < end; ++index) { 707 mirror::ArtMethod* method = methods->GetWithoutChecks(index);
|
/art/test/046-reflect/src/ |
H A D | Main.java | 470 // Getting the declared methods doesn't run <clinit>. 471 Method[] methods = niuClass.getDeclaredMethods(); 472 System.out.println("got methods"); 573 System.out.println("ERROR: methods shouldn't have reference equality"); 575 System.out.println("methods are unique"); 578 System.out.println("methods are .equals"); 580 System.out.println("ERROR: methods fail equality");
|
/art/compiler/jni/ |
H A D | jni_compiler_test.cc | 118 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.
|