Home
last modified time | relevance | path

Searched refs:signature (Results 1 – 25 of 30) sorted by relevance

12

/art/test/115-native-bridge/
Dexpected.txt8 name:booleanMethod, signature:(ZZZZZZZZZZ)Z, shorty:ZZZZZZZZZZZ.
9 name:byteMethod, signature:(BBBBBBBBBB)B, shorty:BBBBBBBBBBB.
10 name:charMethod, signature:(CCCCCCCCCC)C, shorty:CCCCCCCCCCC.
11 name:shortMethod, signature:(SSSSSSSSSS)S, shorty:SSSSSSSSSSS.
12 name:testCallStaticVoidMethodOnSubClassNative, signature:()V, shorty:V.
13 name:testFindClassOnAttachedNativeThread, signature:()V, shorty:V.
14 name:testFindFieldOnAttachedNativeThreadNative, signature:()V, shorty:V.
15 name:testGetMirandaMethodNative, signature:()Ljava/lang/reflect/Method;, shorty:L.
16 name:testZeroLengthByteBuffers, signature:()V, shorty:V.
Dnativebridge.cc32 const char* signature; member
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()
/art/runtime/
Dutils.cc332 std::string PrettyArguments(const char* signature) { in PrettyArguments() argument
335 CHECK_EQ(*signature, '('); in PrettyArguments()
336 ++signature; // Skip the '('. in PrettyArguments()
337 while (*signature != ')') { in PrettyArguments()
339 while (signature[argument_length] == '[') { in PrettyArguments()
342 if (signature[argument_length] == 'L') { in PrettyArguments()
343 argument_length = (strchr(signature, ';') - signature + 1); in PrettyArguments()
348 std::string argument_descriptor(signature, argument_length); in PrettyArguments()
351 if (signature[argument_length] != ')') { in PrettyArguments()
354 signature += argument_length; in PrettyArguments()
[all …]
Dwell_known_classes.cc125 …ieldID CacheField(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signature) { in CacheField() argument
126 …dID fid = is_static ? env->GetStaticFieldID(c, name, signature) : env->GetFieldID(c, name, signatu… in CacheField()
128 LOG(FATAL) << "Couldn't find field \"" << name << "\" with signature \"" << signature << "\""; in CacheField()
133 …hodID CacheMethod(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signature) { in CacheMethod() argument
134 …D mid = is_static ? env->GetStaticMethodID(c, name, signature) : env->GetMethodID(c, name, signatu… in CacheMethod()
136 LOG(FATAL) << "Couldn't find method \"" << name << "\" with signature \"" << signature << "\""; in CacheMethod()
Ddex_file_test.cc247 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F() local
248 ASSERT_EQ("()V", signature); in TEST_F()
260 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F() local
261 ASSERT_EQ("(IDJLjava/lang/Object;)Ljava/lang/Float;", signature); in TEST_F()
271 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F() local
272 ASSERT_EQ("(ZSC)LGetMethodSignature;", signature); in TEST_F()
326 const DexFile::ProtoId& signature = java_lang_dex_file_->GetProtoId(to_find.proto_idx_); in TEST_F() local
327 const DexFile::MethodId* found = java_lang_dex_file_->FindMethodId(klass, name, signature); in TEST_F()
Dnative_bridge_art_interface.cc73 methods[count].signature = m->GetShorty(); in GetNativeMethods()
86 methods[count].signature = m->GetShorty(); in GetNativeMethods()
Ddex_file.cc519 const DexFile::ProtoId& signature) const { in FindMethodId()
523 const uint16_t proto_idx = GetIndexForProtoId(signature); in FindMethodId()
644 bool DexFile::CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx, in CreateTypeList() argument
646 if (signature[0] != '(') { in CreateTypeList()
650 size_t end = signature.size(); in CreateTypeList()
654 char c = signature[offset]; in CreateTypeList()
664 c = signature[offset]; in CreateTypeList()
672 c = signature[offset]; in CreateTypeList()
677 std::string descriptor(signature.data() + start_offset, offset - start_offset); in CreateTypeList()
697 const Signature DexFile::CreateSignature(const StringPiece& signature) const { in CreateSignature()
[all …]
Djni_internal.h32 #define NATIVE_METHOD(className, functionName, signature) \ argument
33 { #functionName, signature, reinterpret_cast<void*>(className ## _ ## functionName) }
Dwell_known_classes.h32 …thodID CacheMethod(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signature);
Dutils_test.cc32 std::string PrettyArguments(const char* signature);
33 std::string PrettyReturnType(const char* signature);
Ddex_file.h602 const DexFile::ProtoId& signature) const;
720 bool CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx,
725 const Signature CreateSignature(const StringPiece& signature) const;
785 const char* signature);
Dcommon_throws.h156 const Signature& signature)
Dcommon_throws.cc308 const Signature& signature) { in ThrowNoSuchMethodError() argument
311 msg << "No " << type << " method " << name << signature in ThrowNoSuchMethodError()
Dthread.cc1708 const char* signature; in ThrowNewWrappedException() local
1719 signature = "(Ljava/lang/String;)V"; in ThrowNewWrappedException()
1721 signature = "(Ljava/lang/String;Ljava/lang/Throwable;)V"; in ThrowNewWrappedException()
1725 signature = "()V"; in ThrowNewWrappedException()
1727 signature = "(Ljava/lang/Throwable;)V"; in ThrowNewWrappedException()
1731 exception_class->FindDeclaredDirectMethod("<init>", signature); in ThrowNewWrappedException()
1733 CHECK(exception_init_method != nullptr) << "No <init>" << signature << " in " in ThrowNewWrappedException()
/art/runtime/mirror/
Dclass.cc361 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const StringPiece& signature) { in FindInterfaceMethod() argument
363 ArtMethod* method = FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod()
371 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod()
379 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const Signature& signature) { in FindInterfaceMethod() argument
381 ArtMethod* method = FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod()
389 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature); in FindInterfaceMethod()
415 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature) { in FindDeclaredDirectMethod() argument
418 if (name == method->GetName() && method->GetSignature() == signature) { in FindDeclaredDirectMethod()
425 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature) { in FindDeclaredDirectMethod() argument
428 if (name == method->GetName() && signature == method->GetSignature()) { in FindDeclaredDirectMethod()
[all …]
Dclass.h754 ArtMethod* FindInterfaceMethod(const StringPiece& name, const StringPiece& signature)
757 ArtMethod* FindInterfaceMethod(const StringPiece& name, const Signature& signature)
763 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature)
766 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature)
772 ArtMethod* FindDirectMethod(const StringPiece& name, const StringPiece& signature)
775 ArtMethod* FindDirectMethod(const StringPiece& name, const Signature& signature)
781 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const StringPiece& signature)
784 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const Signature& signature)
790 ArtMethod* FindVirtualMethod(const StringPiece& name, const StringPiece& signature)
793 ArtMethod* FindVirtualMethod(const StringPiece& name, const Signature& signature)
/art/compiler/driver/
Dcompiler_driver_test.cc51 const char* signature, bool is_virtual) in EnsureCompiled() argument
61 mid_ = env_->GetMethodID(class_, method, signature); in EnsureCompiled()
63 mid_ = env_->GetStaticMethodID(class_, method, signature); in EnsureCompiled()
65 CHECK(mid_ != NULL) << "Method not found: " << class_name << "." << method << signature; in EnsureCompiled()
/art/compiler/
Dcommon_compiler_test.h67 const char* method_name, const char* signature)
71 const char* method_name, const char* signature)
Dcommon_compiler_test.cc374 const char* signature) { in CompileDirectMethod() argument
379 mirror::ArtMethod* method = klass->FindDirectMethod(method_name, signature); in CompileDirectMethod()
381 << class_name << "." << method_name << signature; in CompileDirectMethod()
386 const char* method_name, const char* signature) in CompileVirtualMethod() argument
392 mirror::ArtMethod* method = klass->FindVirtualMethod(method_name, signature); in CompileVirtualMethod()
394 << class_name << "." << method_name << signature; in CompileVirtualMethod()
/art/runtime/native/
Djava_lang_Object.cc23 #define NATIVE_METHOD(className, functionName, signature, identifier) \ argument
24 { #functionName, signature, reinterpret_cast<void*>(className ## _ ## identifier) }
/art/compiler/sea_ir/code_gen/
Dcode_gen.cc278 void CodeGenVisitor::Visit(SignatureNode* signature) { in Visit() argument
279 DCHECK_EQ(signature->GetDefinitions().size(), 1u) << in Visit()
282 void CodeGenPrepassVisitor::Visit(SignatureNode* signature) { in Visit() argument
283 DCHECK_EQ(signature->GetDefinitions().size(), 1u) << in Visit()
286 void CodeGenPostpassVisitor::Visit(SignatureNode* signature) { in Visit() argument
287 DCHECK_EQ(signature->GetDefinitions().size(), 1u) << in Visit()
/art/test/031-class-attributes/
Dexpected.txt231 constructor signature: (LClassAttrs$MemberClass<TXYZ;>;)V
232 method signature: ()Ljava/lang/Class<TXYZ;>;
233 field signature: LClassAttrs$MemberClass<TXYZ;>;
/art/runtime/jdwp/
Djdwp_handler.cc49 std::string signature("unknown"); in DescribeRefTypeId() local
50 Dbg::GetSignature(ref_type_id, &signature); in DescribeRefTypeId()
51 return StringPrintf("%#" PRIx64 " (%s)", ref_type_id, signature.c_str()); in DescribeRefTypeId()
558 std::string signature; in RT_Signature() local
559 JdwpError status = Dbg::GetSignature(refTypeId, &signature); in RT_Signature()
563 expandBufAddUtf8String(pReply, signature); in RT_Signature()
Djdwp_event.cc1274 std::string signature(basket.locationClass->GetDescriptor(&temp)); in PostClassPrepare() local
1278 VLOG(jdwp) << StringPrintf(" type=%#" PRIx64, class_id) << " " << signature; in PostClassPrepare()
1305 expandBufAddUtf8String(pReq, signature); in PostClassPrepare()
/art/compiler/dex/quick/
Dcodegen_util.cc38 const Signature& signature, uint32_t size, It first) { in DumpMappingTable() argument
41 descriptor, name, signature.ToString().c_str(), size)); in DumpMappingTable()
345 const Signature signature = cu_->dex_file->GetMethodSignature(method_id); in CodegenDump() local
352 DumpMappingTable("PC2Dex_MappingTable", descriptor, name, signature, in CodegenDump()
354 DumpMappingTable("Dex2PC_MappingTable", descriptor, name, signature, in CodegenDump()

12