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

/art/runtime/native/
H A Djava_lang_reflect_Proxy.cc30 jobject loader, jobjectArray methods, jobjectArray throws) {
34 soa, name, interfaces, loader, methods, throws));
29 Proxy_generateProxy(JNIEnv* env, jclass, jstring name, jobjectArray interfaces, jobject loader, jobjectArray methods, jobjectArray throws) argument
/art/runtime/
H A Dnative_bridge_art_interface.cc57 static uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* methods, argument
59 if ((clazz == nullptr) || (methods == nullptr)) {
69 methods[count].name = m.GetName();
70 methods[count].signature = m.GetShorty();
71 methods[count].fnPtr = m.GetEntryPointFromJni();
81 methods[count].name = m.GetName();
82 methods[count].signature = m.GetShorty();
83 methods[count].fnPtr = m.GetEntryPointFromJni();
95 // The interface is expected to expose the following methods:
100 // native bridge can call back to get all native methods o
[all...]
H A Djni_internal.h36 void RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods,
H A Djni_internal_test.cc320 JNINativeMethod methods[] = { }; local
321 EXPECT_EQ(env_->RegisterNatives(nullptr, methods, 0), JNI_ERR);
326 // Passing methods as null is a failure.
329 check_jni_abort_catcher->Check("methods == null");
900 JNINativeMethod methods[] = { { nullptr, "()V", native_function } }; local
901 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
907 JNINativeMethod methods[] = { { "notify", nullptr, native_function } }; local
908 EXPECT_EQ(env_->RegisterNatives(jlobject, methods, 1), JNI_ERR);
914 JNINativeMethod methods[] = { { "notify", "()V", nullptr } }; local
915 EXPECT_EQ(env_->RegisterNatives(jlobject, methods,
921 JNINativeMethod methods[] = { { "foo", "()V", native_function } }; local
928 JNINativeMethod methods[] = { { "equals", "(Ljava/lang/Object;)Z", native_function } }; local
936 JNINativeMethod methods[] = { { "notify", "()V", native_function } }; local
944 JNINativeMethod methods[] = { }; local
953 JNINativeMethod methods[] = { }; local
[all...]
H A Djni_internal.cc139 // private methods and constructors.
2075 static jint RegisterNatives(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, argument
2077 return RegisterNativeMethods(env, java_class, methods, method_count, true);
2080 static jint RegisterNativeMethods(JNIEnv* env, jclass java_class, const JNINativeMethod* methods, argument
2091 LOG(WARNING) << "JNI RegisterNativeMethods: attempt to register 0 native methods for "
2095 CHECK_NON_NULL_ARGUMENT_FN_NAME("RegisterNatives", methods, JNI_ERR);
2097 const char* name = methods[i].name;
2098 const char* sig = methods[i].signature;
2099 const void* fnPtr = methods[i].fnPtr;
2153 // Search first only comparing methods whic
2726 RegisterNativeMethods(JNIEnv* env, const char* jni_class_name, const JNINativeMethod* methods, jint method_count) argument
[all...]
H A Dstack.cc165 // Process register map (which native and runtime methods don't have)
673 // Runtime methods have null declaring class.
690 const auto* methods = &header.GetMethodsSection(); local
691 if (methods->Contains(reinterpret_cast<const uint8_t*>(method) - image_space->Begin())) {
H A Dclass_linker.cc426 // Create runtime resolution and imt conflict methods.
1031 auto& methods = header.GetMethodsSection(); local
1033 CHECK(methods.Contains(offset)) << m << " not in " << methods; local
1191 const auto& methods = header.GetMethodsSection(); local
1193 for (uintptr_t pos = 0; pos < methods.Size(); pos += art_method_size) {
1194 auto* method = reinterpret_cast<ArtMethod*>(space->Begin() + pos + methods.Offset());
1490 auto methods(hs.NewHandle(AllocPointerArray(self, dex_file.NumMethodIds())));
1491 if (methods.Get() == nullptr) {
1500 dex_cache->Init(&dex_file, location.Get(), strings.Get(), types.Get(), methods
3267 CreateProxyClass(ScopedObjectAccessAlreadyRunnable& soa, jstring name, jobjectArray interfaces, jobject loader, jobjectArray methods, jobjectArray throws) argument
[all...]
H A Dclass_linker.h278 // <clinit> methods so they could not be initialized by the compiler.
348 // TODO: replace this with multiple methods that allocate the correct managed type.
386 jobjectArray interfaces, jobject loader, jobjectArray methods,
642 // Ensures that methods have the kAccPreverified bit set. We use the kAccPreverfied bit on the
H A Dcheck_jni.cc1064 // make any JNI calls other than the Exception* methods.
1459 static jint RegisterNatives(JNIEnv* env, jclass c, const JNINativeMethod* methods, jint nMethods) { argument
1462 JniValueType args[4] = {{.E = env }, {.c = c}, {.p = methods}, {.I = nMethods}};
1465 result.i = baseEnv(env)->RegisterNatives(env, c, methods, nMethods);
/art/test/044-proxy/src/
H A DNarrowingTest.java49 Method[] methods = proxy.getClass().getDeclaredMethods();
50 System.out.println("Proxy methods: " + Arrays.deepToString(methods));
H A DBasicTest.java75 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 Dnativebridge.cc58 std::unique_ptr<JNINativeMethod[]> methods(new JNINativeMethod[count1]);
59 if (methods == nullptr) {
62 count2 = gNativeBridgeArtCallbacks->getNativeMethods(env, klass, methods.get(), count1);
68 NativeBridgeMethod* nb_method = find_native_bridge_method(methods[i].name);
72 mid = env->GetStaticMethodID(klass, methods[i].name, nb_method->signature);
74 mid = env->GetMethodID(klass, methods[i].name, nb_method->signature);
78 if (strcmp(shorty, methods[i].signature) == 0) {
80 methods[i].name, nb_method->signature, shorty);
85 methods.release();
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DClassDataItem.java97 private void incrementEncodedMethods(int insertedIdx, EncodedMethod[] methods) { argument
99 for (EncodedMethod method : methods) {
/art/runtime/mirror/
H A Dclass-inl.h89 auto* methods = GetDirectMethodsPtrUnchecked(); local
90 DCHECK(methods != nullptr);
91 return reinterpret_cast<ArtMethod*>(reinterpret_cast<uintptr_t>(methods) +
97 auto* methods = GetDirectMethodsPtr(); local
98 DCHECK(methods != nullptr);
99 return reinterpret_cast<ArtMethod*>(reinterpret_cast<uintptr_t>(methods) +
110 // TODO: we reassign virtual methods to grow the table for miranda
111 // methods.. they should really just be assigned once.
132 auto* methods = GetVirtualMethodsPtrUnchecked(); local
133 DCHECK(methods !
843 auto* methods = GetDirectMethodsPtrUnchecked(); local
850 auto* methods = GetDirectMethodsPtrUnchecked(); local
863 auto* methods = GetVirtualMethodsPtrUnchecked(); local
870 auto* methods = GetVirtualMethodsPtrUnchecked(); local
[all...]
H A Ddex_cache.h50 ObjectArray<Class>* types, PointerArray* methods, PointerArray* fields,
H A Dclass.cc252 os << " direct methods (" << h_this->NumDirectMethods() << " entries):\n";
806 void Class::PopulateEmbeddedImtAndVTable(ArtMethod* const (&methods)[kImtSize], argument
809 auto method = methods[i];
H A Dclass.h65 // Interface method table size. Increasing this value reduces the chance of two interface methods
602 // Note that access to methods's class is checked and this may require looking up the class
702 // Returns the number of static, private, and constructor methods.
725 // Returns the number of non-inherited virtual methods.
788 void PopulateEmbeddedImtAndVTable(ArtMethod* const (&methods)[kImtSize], size_t pointer_size)
1199 // interface methods. There is one pair per interface supported by this class. That means one
1208 // methods for the methods in the interface.
1221 // copied in, and virtual methods from our class either replace those from the super or are
1222 // appended. For abstract classes, methods ma
[all...]
/art/test/064-field-access/src/
H A DMain.java519 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 DAsm.java121 for (MethodNode methodNode :(List<MethodNode>) classNode.methods) {
/art/test/800-smali/src/
H A DMain.java128 Method[] methods = c.getDeclaredMethods();
130 // For simplicity we assume that test methods are not overloaded. So searching by name
133 for (Method m : methods) {
/art/compiler/dex/
H A Dmir_optimization_test.cc445 static const MethodDef methods[] = { local
448 PrepareMethods(methods);
490 static const MethodDef methods[] = { local
493 PrepareMethods(methods);
542 static const MethodDef methods[] = { local
563 PrepareMethods(methods);
651 static const MethodDef methods[] = { local
690 PrepareMethods(methods);
739 static const MethodDef methods[] = { local
761 PrepareMethods(methods);
[all...]
H A Dtype_inference_test.cc880 static const MethodDef methods[] = { local
915 PrepareMethods(methods);
947 static const MethodDef methods[] = { local
982 PrepareMethods(methods);
1237 static const MethodDef methods[] = { local
1270 PrepareMethods(methods);
1826 static const MethodDef methods[] = { local
1835 PrepareMethods(methods);
1854 static const MethodDef methods[] = { local
1863 PrepareMethods(methods);
[all...]
/art/patchoat/
H A Dpatchoat.cc486 auto* methods = dex_cache->GetResolvedMethods(); local
487 if (methods != nullptr) {
488 CHECK(!methods->IsObjectArray());
489 CHECK(methods->IsArrayInstance());
490 FixupNativePointerArray(methods);
/art/test/046-reflect/src/
H A DMain.java484 // Getting the declared methods doesn't run <clinit>.
485 Method[] methods = niuClass.getDeclaredMethods();
486 System.out.println("got methods");
587 System.out.println("ERROR: methods shouldn't have reference equality");
589 System.out.println("methods are unique");
592 System.out.println("methods are .equals");
594 System.out.println("ERROR: methods fail equality");
/art/compiler/jni/
H A Djni_compiler_test.cc111 JNINativeMethod methods[] = { { method_name, method_sig, native_fnptr } }; local
112 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1))
129 // We have to list the methods here so we can share them between default and generic JNI.

Completed in 515 milliseconds