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

12

/art/runtime/
H A Djni_internal.h24 #define NATIVE_METHOD(className, functionName, signature) \
25 { #functionName, signature, reinterpret_cast<void*>(className ## _ ## functionName) }
H A Dutils.cc310 std::string PrettyArguments(const char* signature) { argument
313 CHECK_EQ(*signature, '(');
314 ++signature; // Skip the '('.
315 while (*signature != ')') {
317 while (signature[argument_length] == '[') {
320 if (signature[argument_length] == 'L') {
321 argument_length = (strchr(signature, ';') - signature + 1);
326 std::string argument_descriptor(signature, argument_length);
329 if (signature[argument_lengt
340 PrettyReturnType(const char* signature) argument
361 const Signature signature = m->GetSignature(); local
381 const Signature signature = dex_file.GetMethodSignature(method_id); local
[all...]
H A Ddex_file_test.cc242 // Check the signature for the static initializer.
248 std::string signature(raw->GetMethodSignature(method_id).ToString());
249 ASSERT_EQ("()V", signature);
261 std::string signature(raw->GetMethodSignature(method_id).ToString());
262 ASSERT_EQ("(IDJLjava/lang/Object;)Ljava/lang/Float;", signature);
272 std::string signature(raw->GetMethodSignature(method_id).ToString());
273 ASSERT_EQ("(ZSC)LGetMethodSignature;", signature);
327 const DexFile::ProtoId& signature = java_lang_dex_file_->GetProtoId(to_find.proto_idx_); local
328 const DexFile::MethodId* found = java_lang_dex_file_->FindMethodId(klass, name, signature);
H A Dnative_bridge_art_interface.cc70 methods[count].signature = m.GetShorty();
82 methods[count].signature = m.GetShorty();
H A Dwell_known_classes.cc169 const char* name, const char* signature) {
170 jfieldID fid = is_static ? env->GetStaticFieldID(c, name, signature) :
171 env->GetFieldID(c, name, signature);
179 LOG(FATAL) << "Couldn't find field \"" << name << "\" with signature \"" << signature << "\": "
186 const char* name, const char* signature) {
187 jmethodID mid = is_static ? env->GetStaticMethodID(c, name, signature) :
188 env->GetMethodID(c, name, signature);
196 LOG(FATAL) << "Couldn't find method \"" << name << "\" with signature \"" << signature << "\"
168 CacheField(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signature) argument
185 CacheMethod(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signature) argument
[all...]
H A Ddex_file.cc571 const DexFile::ProtoId& signature) const {
575 const uint16_t proto_idx = GetIndexForProtoId(signature);
695 // Given a signature place the type ids into the given vector
696 bool DexFile::CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx, argument
698 if (signature[0] != '(') {
702 size_t end = signature.size();
706 char c = signature[offset];
716 c = signature[offset];
724 c = signature[offset];
729 std::string descriptor(signature
[all...]
H A Dwell_known_classes.h32 jmethodID CacheMethod(JNIEnv* env, jclass c, bool is_static, const char* name, const char* signature);
H A Dutils_test.cc33 std::string PrettyArguments(const char* signature);
34 std::string PrettyReturnType(const char* signature);
H A Dcommon_throws.h162 const Signature& signature)
H A Ddex_file.h619 const DexFile::ProtoId& signature) const;
632 // Returns a representation of the signature of a method id.
728 // Looks up a proto id for a given return type and signature type list
736 // Given a signature place the type ids into the given vector, returns true on success
737 bool CreateTypeList(const StringPiece& signature, uint16_t* return_type_idx,
740 // Create a Signature from the given string signature or return Signature::NoSignature if not
742 const Signature CreateSignature(const StringPiece& signature) const;
795 // Callback for "new locals table entry". "signature" is an empty string
796 // if no signature is available for an entry.
802 const char* signature);
[all...]
H A Dcommon_throws.cc309 const Signature& signature) {
312 msg << "No " << type << " method " << name << signature
308 ThrowNoSuchMethodError(InvokeType type, mirror::Class* c, const StringPiece& name, const Signature& signature) argument
/art/tools/dexfuzz/src/dexfuzz/program/
H A DIdCreator.java47 private int findProtoIdInsertionPoint(String signature) { argument
48 int returnTypeIdx = findTypeId(convertSignatureToReturnType(signature));
49 String[] parameterListStrings = convertSignatureToParameterList(signature);
86 private int findMethodIdInsertionPoint(String className, String methodName, String signature) { argument
89 int protoIdx = findProtoId(signature);
169 private int createMethodId(String className, String methodName, String signature) { argument
175 int protoIdx = findOrCreateProtoId(signature);
194 int newMethodIdIdx = findMethodIdInsertionPoint(className, methodName, signature);
208 className, methodName, signature, newMethodIdIdx));
218 private int findMethodId(String className, String methodName, String signature) { argument
498 convertSignatureToParametersAndReturnType(String signature) argument
506 convertSignatureToParameterList(String signature) argument
533 convertSignatureToReturnType(String signature) argument
545 convertSignatureToShorty(String signature) argument
694 createProtoId(String signature) argument
753 findProtoId(String signature) argument
797 findOrCreateProtoId(String signature) argument
[all...]
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
H A DNewMethodCaller.java50 public String signature; field in class:NewMethodCaller.AssociatedMutation
68 signature,
80 signature = elements[6];
131 mutation.signature = "()V";
169 mutation.methodName, mutation.signature);
180 mutation.className, mutation.methodName, mutation.signature, insertionPoint));
/art/tools/dexfuzz/src/dexfuzz/rawdex/
H A DHeaderItem.java26 public byte[] signature; // Verification doesn't depend on this, so we don't update it. field in class:HeaderItem
56 signature = new byte[20];
58 signature[i] = file.readByte();
98 file.writeByte(signature[i]);
/art/compiler/
H A Dcommon_compiler_test.h80 const char* method_name, const char* signature)
84 const char* method_name, const char* signature)
H A Dcommon_compiler_test.cc252 const char* signature) {
258 ArtMethod* method = klass->FindDirectMethod(method_name, signature, pointer_size);
260 << class_name << "." << method_name << signature; local
266 const char* signature) {
272 ArtMethod* method = klass->FindVirtualMethod(method_name, signature, pointer_size);
274 << class_name << "." << method_name << signature; local
250 CompileDirectMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name, const char* method_name, const char* signature) argument
264 CompileVirtualMethod(Handle<mirror::ClassLoader> class_loader, const char* class_name, const char* method_name, const char* signature) argument
/art/runtime/native/
H A Djava_lang_Object.cc25 #define NATIVE_METHOD(className, functionName, signature, identifier) \
26 { #functionName, signature, reinterpret_cast<void*>(className ## _ ## identifier) }
/art/runtime/mirror/
H A Dclass.cc348 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const StringPiece& signature, argument
351 ArtMethod* method = FindDeclaredVirtualMethod(name, signature, pointer_size);
359 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature, pointer_size);
367 ArtMethod* Class::FindInterfaceMethod(const StringPiece& name, const Signature& signature, argument
370 ArtMethod* method = FindDeclaredVirtualMethod(name, signature, pointer_size);
378 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature, pointer_size);
406 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature, argument
409 if (name == method.GetName() && method.GetSignature() == signature) {
416 ArtMethod* Class::FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature, argument
419 if (name == method.GetName() && signature
438 FindDirectMethod(const StringPiece& name, const StringPiece& signature, size_t pointer_size) argument
449 FindDirectMethod(const StringPiece& name, const Signature& signature, size_t pointer_size) argument
471 FindDeclaredVirtualMethod(const StringPiece& name, const StringPiece& signature, size_t pointer_size) argument
482 FindDeclaredVirtualMethod(const StringPiece& name, const Signature& signature, size_t pointer_size) argument
507 FindVirtualMethod( const StringPiece& name, const StringPiece& signature, size_t pointer_size) argument
518 FindVirtualMethod( const StringPiece& name, const Signature& signature, size_t pointer_size) argument
[all...]
H A Dclass.h810 ArtMethod* FindInterfaceMethod(const StringPiece& name, const StringPiece& signature,
814 ArtMethod* FindInterfaceMethod(const StringPiece& name, const Signature& signature,
822 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const StringPiece& signature,
826 ArtMethod* FindDeclaredDirectMethod(const StringPiece& name, const Signature& signature,
834 ArtMethod* FindDirectMethod(const StringPiece& name, const StringPiece& signature,
838 ArtMethod* FindDirectMethod(const StringPiece& name, const Signature& signature,
846 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const StringPiece& signature,
850 ArtMethod* FindDeclaredVirtualMethod(const StringPiece& name, const Signature& signature,
858 ArtMethod* FindVirtualMethod(const StringPiece& name, const StringPiece& signature,
862 ArtMethod* FindVirtualMethod(const StringPiece& name, const Signature& signature,
[all...]
/art/compiler/driver/
H A Dcompiler_driver_test.cc51 const char* signature, bool is_virtual)
61 mid_ = env_->GetMethodID(class_, method, signature);
63 mid_ = env_->GetStaticMethodID(class_, method, signature);
65 CHECK(mid_ != nullptr) << "Method not found: " << class_name << "." << method << signature; local
/art/test/115-native-bridge/
H A Dnativebridge.cc35 const char* signature; member in struct:NativeBridgeMethod
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) {
79 printf(" name:%s, signature:%s, shorty:%s.\n",
80 methods[i].name, nb_method->signature, shorty);
/art/compiler/utils/
H A Dtest_dex_file_builder.h59 void AddMethod(const std::string& class_descriptor, const std::string& signature, argument
65 ProtoKey proto_key = CreateProtoKey(signature);
213 // Leave checksum and signature as zeros.
242 uint32_t GetMethodIdx(const std::string& class_descriptor, const std::string& signature, argument
244 ProtoKey proto_key = CreateProtoKey(signature);
311 ProtoKey CreateProtoKey(const std::string& signature) { argument
312 CHECK_EQ(signature[0], '(');
313 const char* args = signature.c_str() + 1;
/art/runtime/jdwp/
H A Djdwp_handler.cc50 std::string signature("unknown");
51 Dbg::GetSignature(ref_type_id, &signature);
52 return StringPrintf("%#" PRIx64 " (%s)", ref_type_id, signature.c_str());
145 * Given a class JNI signature (e.g. "Ljava/lang/Error;"), return the
512 std::string signature; local
513 JdwpError status = Dbg::GetSignature(refTypeId, &signature);
517 expandBufAddUtf8String(pReply, signature);
H A Djdwp_event.cc1220 std::string signature(basket.locationClass->GetDescriptor(&temp));
1224 VLOG(jdwp) << StringPrintf(" type=%#" PRIx64, class_id) << " " << signature;
1251 expandBufAddUtf8String(pReq, signature);
/art/compiler/dex/quick/
H A Dcodegen_util.cc44 const Signature& signature, uint32_t size, It first) {
47 descriptor, name, signature.ToString().c_str(), size));
375 const Signature signature = cu_->dex_file->GetMethodSignature(method_id); local
382 DumpMappingTable("PC2Dex_MappingTable", descriptor, name, signature,
384 DumpMappingTable("Dex2PC_MappingTable", descriptor, name, signature,
43 DumpMappingTable(const char* table_name, const char* descriptor, const char* name, const Signature& signature, uint32_t size, It first) argument

Completed in 676 milliseconds

12