Home
last modified time | relevance | path

Searched refs:method_id (Results 1 – 25 of 50) sorted by relevance

12

/art/tools/veridex/
Dhidden_api.cc28 const DexFile::MethodId& method_id = dex_file.GetMethodId(method_index); in GetApiMethodName() local
29 ss << dex_file.StringByTypeIdx(method_id.class_idx_) in GetApiMethodName()
31 << dex_file.GetMethodName(method_id) in GetApiMethodName()
32 << dex_file.GetMethodSignature(method_id).ToString(); in GetApiMethodName()
Dresolver.cc60 const DexFile::MethodId& method_id, in HasSameNameAndSignature() argument
63 return strcmp(method_name, dex_file.GetMethodName(method_id)) == 0 && in HasSameNameAndSignature()
64 strcmp(type, dex_file.GetMethodSignature(method_id).ToString().c_str()) == 0; in HasSameNameAndSignature()
68 const DexFile::MethodId& method_id, in HasSameNameAndSignature() argument
71 return strcmp(method_name, dex_file.GetMethodName(method_id)) == 0 && in HasSameNameAndSignature()
72 dex_file.GetMethodSignature(method_id) == signature; in HasSameNameAndSignature()
284 const DexFile::MethodId& method_id = dex_file_.GetMethodId(method_index); in GetMethod() local
285 VeriClass* kls = GetVeriClass(method_id.class_idx_); in GetMethod()
291 dex_file_.GetMethodName(method_id), in GetMethod()
292 dex_file_.GetMethodSignature(method_id)); in GetMethod()
Dhidden_api_finder.cc31 void HiddenApiFinder::CheckMethod(uint32_t method_id, in CheckMethod() argument
36 std::string name = HiddenApi::GetApiMethodName(resolver->GetDexFile(), method_id); in CheckMethod()
/art/runtime/
Dimtable-inl.h49 const DexFile::MethodId& method_id = dex_file->GetMethodId(method->GetDexMethodIndex()); in GetImtHashComponents() local
52 *class_hash = ComputeModifiedUtf8Hash(dex_file->GetMethodDeclaringClassDescriptor(method_id)); in GetImtHashComponents()
55 *name_hash = ComputeModifiedUtf8Hash(dex_file->GetMethodName(method_id)); in GetImtHashComponents()
57 const DexFile::ProtoId& proto_id = dex_file->GetMethodPrototype(method_id); in GetImtHashComponents()
Djni_internal.h53 static inline ArtMethod* DecodeArtMethod(jmethodID method_id) { in DecodeArtMethod() argument
54 return reinterpret_cast<ArtMethod*>(method_id); in DecodeArtMethod()
Dclass_linker-inl.h211 const DexFile::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch()
213 LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in CheckInvokeClassMismatch()
226 const DexFile::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod() local
227 ObjPtr<mirror::Class> klass = LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in LookupResolvedMethod()
Ddebugger.h394 static std::string GetMethodName(JDWP::MethodId method_id)
396 static bool IsMethodObsolete(JDWP::MethodId method_id)
407 static void OutputLineTable(JDWP::RefTypeId ref_type_id, JDWP::MethodId method_id,
413 static void OutputMethodReturnValue(JDWP::MethodId method_id, const JValue* return_value,
419 static JDWP::JdwpError GetBytecodes(JDWP::RefTypeId class_id, JDWP::MethodId method_id,
638 JDWP::MethodId method_id, uint32_t arg_count,
/art/compiler/driver/
Ddex_compilation_unit.h73 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() local
74 return dex_file_->GetMethodShorty(method_id); in GetShorty()
78 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() local
79 return dex_file_->GetMethodShorty(method_id, shorty_len); in GetShorty()
/art/dexlayout/
Ddex_visualize.cc163 void DumpMethodId(const dex_ir::MethodId* method_id, int class_index) { in DumpMethodId() argument
164 DumpAddressRange(method_id, class_index); in DumpMethodId()
165 if (method_id == nullptr) { in DumpMethodId()
168 DumpTypeId(method_id->Class(), class_index); in DumpMethodId()
169 DumpProtoId(method_id->Proto(), class_index); in DumpMethodId()
170 DumpStringId(method_id->Name(), class_index); in DumpMethodId()
199 for (dex_ir::MethodId* method_id : fixups->MethodIds()) { in DumpMethodItem()
200 DumpMethodId(method_id, class_index); in DumpMethodItem()
Ddexlayout.cc437 dex_ir::MethodId* method_id = header->GetCollections().GetMethodId(index); in IndexString() local
438 const char* name = method_id->Name()->Data(); in IndexString()
439 std::string type_descriptor = GetSignatureForProtoId(method_id->Proto()); in IndexString()
440 const char* back_descriptor = method_id->Class()->GetStringId()->Data(); in IndexString()
470 dex_ir::MethodId* method_id = header->GetCollections().GetMethodId(index); in IndexString() local
471 const char* name = method_id->Name()->Data(); in IndexString()
472 std::string type_descriptor = GetSignatureForProtoId(method_id->Proto()); in IndexString()
473 const char* back_descriptor = method_id->Class()->GetStringId()->Data(); in IndexString()
564 dex_ir::MethodId* method_id = data->GetMethodId(); in DumpEncodedValue() local
565 fputs(method_id->Name()->Data(), out_file_); in DumpEncodedValue()
[all …]
Ddex_ir.cc355 MethodId* method_id = new MethodId(GetTypeId(disk_method_id.class_idx_.index_), in CreateMethodId() local
358 AddIndexedItem(method_ids_, method_id, MethodIdsOffset() + i * MethodId::ItemSize(), i); in CreateMethodId()
517 MethodId* method_id = GetMethodId(methods[i].method_idx_); in CreateAnnotationsDirectoryItem() local
524 new MethodAnnotation(method_id, annotation_set_item))); in CreateAnnotationsDirectoryItem()
533 MethodId* method_id = GetMethodId(parameters[i].method_idx_); in CreateAnnotationsDirectoryItem() local
537 GenerateParameterAnnotation(dex_file, method_id, list, parameters[i].annotations_off_))); in CreateAnnotationsDirectoryItem()
551 const DexFile& dex_file, MethodId* method_id, in GenerateParameterAnnotation() argument
565 return new ParameterAnnotation(method_id, set_ref_list); in GenerateParameterAnnotation()
722 MethodId* method_id = GetMethodId(cdii.GetMemberIndex()); in GenerateMethodItem() local
731 return new MethodItem(access_flags, method_id, code_item); in GenerateMethodItem()
Dcompact_dex_writer.cc62 const dex_ir::MethodId* method_id = method->GetMethodId(); in WriteDebugInfoOffsetTable() local
66 const uint32_t method_idx = method_id->GetIndex(); in WriteDebugInfoOffsetTable()
251 const dex_ir::MethodId* method_id = method->GetMethodId(); in SortDebugInfosByMethodIndex() local
255 method_idx_map.insert(std::make_pair(debug_item, method_id->GetIndex())); in SortDebugInfosByMethodIndex()
Ddex_ir.h88 virtual void Dispatch(const MethodId* method_id) = 0;
426 ParameterAnnotation* GenerateParameterAnnotation(const DexFile& dex_file, MethodId* method_id,
763 MethodItem(uint32_t access_flags, const MethodId* method_id, CodeItem* code) in MethodItem() argument
764 : access_flags_(access_flags), method_id_(method_id), code_(code) { } in MethodItem()
801 void SetMethodId(MethodId* method_id) { u_.method_val_ = method_id; } in SetMethodId() argument
1196 MethodAnnotation(MethodId* method_id, AnnotationSetItem* annotation_set_item) in MethodAnnotation() argument
1197 : method_id_(method_id), annotation_set_item_(annotation_set_item) { } in MethodAnnotation()
1213 ParameterAnnotation(MethodId* method_id, AnnotationSetRefList* annotations) in ParameterAnnotation() argument
1214 : method_id_(method_id), annotations_(annotations) { } in ParameterAnnotation()
Ddex_writer.cc340 for (std::unique_ptr<dex_ir::MethodId>& method_id : header_->GetCollections().MethodIds()) { in WriteMethodIds()
342 ProcessOffset(stream, method_id.get()); in WriteMethodIds()
343 buffer[0] = method_id->Class()->GetIndex(); in WriteMethodIds()
344 buffer[1] = method_id->Proto()->GetIndex(); in WriteMethodIds()
345 buffer[2] = method_id->Name()->GetIndex(); in WriteMethodIds()
346 buffer[3] = method_id->Name()->GetIndex() >> 16; in WriteMethodIds()
347 stream->Write(buffer, method_id->GetSize()); in WriteMethodIds()
/art/libdexfile/dex/
Ddex_file-inl.h92 inline const char* DexFile::GetMethodDeclaringClassDescriptor(const MethodId& method_id) const { in GetMethodDeclaringClassDescriptor() argument
93 const DexFile::TypeId& type_id = GetTypeId(method_id.class_idx_); in GetMethodDeclaringClassDescriptor()
97 inline const Signature DexFile::GetMethodSignature(const MethodId& method_id) const { in GetMethodSignature() argument
98 return Signature(this, GetProtoId(method_id.proto_idx_)); in GetMethodSignature()
105 inline const char* DexFile::GetMethodName(const MethodId& method_id) const { in GetMethodName() argument
106 return StringDataByIdx(method_id.name_idx_); in GetMethodName()
113 inline const char* DexFile::GetMethodShorty(const MethodId& method_id) const { in GetMethodShorty() argument
114 return StringDataByIdx(GetProtoId(method_id.proto_idx_).shorty_idx_); in GetMethodShorty()
117 inline const char* DexFile::GetMethodShorty(const MethodId& method_id, uint32_t* length) const { in GetMethodShorty() argument
119 return StringDataAndUtf16LengthByIdx(GetProtoId(method_id.proto_idx_).shorty_idx_, length); in GetMethodShorty()
Ddex_file.h597 uint32_t GetIndexForMethodId(const MethodId& method_id) const { in GetIndexForMethodId() argument
598 CHECK_GE(&method_id, method_ids_) << GetLocation(); in GetIndexForMethodId()
599 CHECK_LT(&method_id, method_ids_ + header_->method_ids_size_) << GetLocation(); in GetIndexForMethodId()
600 return &method_id - method_ids_; in GetIndexForMethodId()
609 const char* GetMethodDeclaringClassDescriptor(const MethodId& method_id) const;
612 const ProtoId& GetMethodPrototype(const MethodId& method_id) const { in GetMethodPrototype() argument
613 return GetProtoId(method_id.proto_idx_); in GetMethodPrototype()
617 const Signature GetMethodSignature(const MethodId& method_id) const;
623 const char* GetMethodName(const MethodId& method_id) const;
629 const char* GetMethodShorty(const MethodId& method_id) const;
[all …]
/art/test/661-oat-writer-layout/
Dinfo.txt4 MethodHotness bitmask (and sub-sorts by class_def_idx, then method_id).
/art/runtime/jdwp/
Djdwp_handler.cc49 std::string DescribeMethod(const MethodId& method_id) { in DescribeMethod() argument
50 return StringPrintf("%#" PRIx64 " (%s)", method_id, Dbg::GetMethodName(method_id).c_str()); in DescribeMethod()
90 RefTypeId class_id, MethodId method_id, bool is_constructor) in RequestInvoke() argument
99 class_id, method_id, Dbg::GetClassName(class_id).c_str(), in RequestInvoke()
100 Dbg::GetMethodName(method_id).c_str()); in RequestInvoke()
119 class_id, method_id, arg_count, in RequestInvoke()
655 MethodId method_id = request->ReadMethodId(); in CT_InvokeMethod() local
657 return RequestInvoke(state, request, thread_id, 0, class_id, method_id, false); in CT_InvokeMethod()
672 MethodId method_id = request->ReadMethodId(); in CT_NewInstance() local
679 return RequestInvoke(state, request, thread_id, object_id, class_id, method_id, true); in CT_NewInstance()
[all …]
Djdwp_main.cc756 << Dbg::GetClassName(rhs.class_id) << "." << Dbg::GetMethodName(rhs.method_id) in operator <<()
762 return lhs.dex_pc == rhs.dex_pc && lhs.method_id == rhs.method_id && in operator ==()
Djdwp_expand_buf.cc185 expandBufAddMethodId(buf, location.method_id); in expandBufAddLocation()
/art/runtime/dex/
Dart_dex_file_loader_test.cc130 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex()); in TEST_F() local
131 const char* name = raw->StringDataByIdx(method_id.name_idx_); in TEST_F()
133 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F()
203 const DexFile::MethodId& method_id = raw->GetMethodId(it.GetMemberIndex()); in TEST_F() local
205 const char* name = raw->StringDataByIdx(method_id.name_idx_); in TEST_F()
208 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F()
/art/dalvikvm/
Ddalvikvm.cc32 static bool IsMethodPublic(JNIEnv* env, jclass c, jmethodID method_id) { in IsMethodPublic() argument
33 ScopedLocalRef<jobject> reflected(env, env->ToReflectedMethod(c, method_id, JNI_FALSE)); in IsMethodPublic()
/art/runtime/verifier/
Dverifier_deps.cc824 const DexFile::MethodId& method_id = dex_file.GetMethodId(method.GetDexMethodIndex()); in Dump() local
826 << dex_file.GetMethodDeclaringClassDescriptor(method_id) << "->" in Dump()
827 << dex_file.GetMethodName(method_id) in Dump()
828 << dex_file.GetMethodSignature(method_id).ToString() in Dump()
1012 const DexFile::MethodId& method_id = dex_file.GetMethodId(index); in GetMethodDescription() local
1013 return std::string(dex_file.GetMethodDeclaringClassDescriptor(method_id)) in GetMethodDescription()
1015 + dex_file.GetMethodName(method_id) in GetMethodDescription()
1016 + dex_file.GetMethodSignature(method_id).ToString(); in GetMethodDescription()
1027 const DexFile::MethodId& method_id = dex_file.GetMethodId(entry.GetDexMethodIndex()); in VerifyMethods() local
1029 const char* name = dex_file.GetMethodName(method_id); in VerifyMethods()
[all …]
Dmethod_verifier.cc650 const DexFile::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in Verify() local
651 const char* method_name = dex_file_->StringDataByIdx(method_id.name_idx_); in Verify()
2902 const DexFile::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
2904 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
2925 const DexFile::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
2926 is_constructor = strcmp("<init>", dex_file_->StringDataByIdx(method_id.name_idx_)) == 0; in CodeFlowVerifyInstruction()
2928 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
3003 const DexFile::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
3005 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
3058 const DexFile::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
[all …]
/art/runtime/mirror/
Dclass.cc513 const DexFile::MethodId& method_id = dex_file.GetMethodId(dex_method_idx); in FindInterfaceMethod() local
514 StringPiece name = dex_file.StringDataByIdx(method_id.name_idx_); in FindInterfaceMethod()
515 const Signature signature = dex_file.GetMethodSignature(method_id); in FindInterfaceMethod()
640 const DexFile::MethodId& method_id = dex_file.GetMethodId(dex_method_idx); in FindClassMethod() local
641 const Signature signature = dex_file.GetMethodSignature(method_id); in FindClassMethod()
646 name = dex_file.StringDataByIdx(method_id.name_idx_); in FindClassMethod()
667 if (cmp_method_id.name_idx_ == method_id.name_idx_ && in FindClassMethod()
668 cmp_method_id.proto_idx_ == method_id.proto_idx_) { in FindClassMethod()
675 name = dex_file.StringDataByIdx(method_id.name_idx_); in FindClassMethod()
703 name = dex_file.StringDataByIdx(method_id.name_idx_); in FindClassMethod()

12