Home
last modified time | relevance | path

Searched refs:methods (Results 1 – 24 of 24) sorted by relevance

/art/runtime/
Dnative_bridge_art_interface.cc59 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()
Djni_internal_test.cc459 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 …]
Djni_internal.h54 void RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods,
Dclass_linker.cc1882 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 …]
Djni_internal.cc2365 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()
Dcheck_jni.cc1653 …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()
Dclass_linker.h332 jobjectArray interfaces, jobject loader, jobjectArray methods,
/art/test/115-native-bridge/
Dnativebridge.cc54 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/
Djava_lang_reflect_Proxy.cc28 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/
DNarrowingTest.java49 Method[] methods = proxy.getClass().getDeclaredMethods(); in main() local
50 System.out.println("Proxy methods: " + Arrays.deepToString(methods)); in main()
DBasicTest.java75 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/
DMain.java519 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/
Dinfo.txt2 methods.
/art/test/089-many-methods/
Dinfo.txt2 than 65536 methods.
/art/test/097-duplicate-method/
Dinfo.txt1 This is a test to verify that duplicate methods in a dex file are handled
/art/test/032-concrete-sub/
Dinfo.txt3 different notions about which methods are abstract.
/art/test/046-reflect/
Dexpected.txt113 got methods
124 methods are unique
125 methods are .equals
/art/test/303-verification-stress/
Dinfo.txt3 This generates big <clinit> methods in these classes. The goal is to stress the
/art/test/121-modifiers/src/
DAsm.java121 for (MethodNode methodNode :(List<MethodNode>) classNode.methods) { in modify()
/art/test/044-proxy/
Dexpected.txt54 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/
Ddex_cache.h52 ObjectArray<ArtMethod>* methods,
Dclass.cc703 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/
DMain.java469 Method[] methods = niuClass.getDeclaredMethods(); in checkClinitForMethods() local
/art/compiler/jni/
Djni_compiler_test.cc118 JNINativeMethod methods[] = { { method_name, method_sig, native_fnptr } }; in SetUpForTest() local
119 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) in SetUpForTest()