Home
last modified time | relevance | path

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

12

/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 = 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()
Djni_internal_test.cc469 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 …]
Djni_internal.h54 void RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods,
Dclass_linker.cc1913 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 …]
Djni_internal.cc2363 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()
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.h336 jobjectArray interfaces, jobject loader, jobjectArray methods,
/art/test/115-native-bridge/
Dnativebridge.cc55 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/
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/089-many-methods/
Dinfo.txt2 than 65536 methods.
/art/test/300-package-override/
Dinfo.txt2 methods.
/art/test/126-miranda-multidex/
Dinfo.txt1 This test ensures that cross-dex-file Miranda methods are correctly resolved.
/art/test/097-duplicate-method/
Dinfo.txt1 This is a test to verify that duplicate methods in a dex file are handled
/art/test/133-static-invoke-super/
Dinfo.txt1 This is a performance test of invoking static methods in super class. To see the numbers, invoke
/art/test/032-concrete-sub/
Dinfo.txt3 different notions about which methods are abstract.
/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/046-reflect/
Dexpected.txt113 got methods
124 methods are unique
125 methods are .equals
/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.java471 Method[] methods = niuClass.getDeclaredMethods(); in checkClinitForMethods() local

12