/art/runtime/ |
D | imtable-inl.h | 49 const dex::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 dex::ProtoId& proto_id = dex_file->GetMethodPrototype(method_id); in GetImtHashComponents()
|
D | class_linker-inl.h | 279 const dex::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch() 281 LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in CheckInvokeClassMismatch() 294 const dex::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod() local 295 ObjPtr<mirror::Class> klass = LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in LookupResolvedMethod() 371 const dex::MethodId& method_id = referrer->GetDexFile()->GetMethodId(method_idx); in ResolveMethod() local 373 LookupResolvedType(method_id.class_idx_, in ResolveMethod() 383 cls = ResolveType(method_id.class_idx_, h_dex_cache, h_class_loader); in ResolveMethod()
|
D | art_method-inl.h | 219 const dex::MethodId& method_id = GetDexFile()->GetMethodId(GetDexMethodIndex()); in ResolveNameString() local 220 return Runtime::Current()->GetClassLinker()->ResolveString(method_id.name_idx_, this); in ResolveNameString() 339 const dex::MethodId& method_id = dex_file->GetMethodId(GetDexMethodIndex()); in GetReturnTypeIndex() local 340 const dex::ProtoId& proto_id = dex_file->GetMethodPrototype(method_id); in GetReturnTypeIndex()
|
D | hidden_api.cc | 189 const dex::MethodId& method_id = dex_file.GetMethodId(method.GetIndex()); in MemberSignature() local 190 class_name_ = dex_file.GetMethodDeclaringClassDescriptor(method_id); in MemberSignature() 191 member_name_ = dex_file.GetMethodName(method_id); in MemberSignature() 192 type_signature_ = dex_file.GetMethodSignature(method_id).ToString(); in MemberSignature()
|
/art/compiler/driver/ |
D | dex_compilation_unit.h | 74 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() local 75 return dex_file_->GetMethodShorty(method_id); in GetShorty() 79 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() local 80 return dex_file_->GetMethodShorty(method_id, shorty_len); in GetShorty()
|
/art/tools/veridex/ |
D | hidden_api.cc | 75 const dex::MethodId& method_id = dex_file.GetMethodId(method_index); in GetApiMethodName() local 76 ss << dex_file.StringByTypeIdx(method_id.class_idx_) in GetApiMethodName() 78 << dex_file.GetMethodName(method_id) in GetApiMethodName() 79 << dex_file.GetMethodSignature(method_id).ToString(); in GetApiMethodName()
|
D | resolver.cc | 50 const dex::MethodId& method_id, in HasSameNameAndSignature() argument 53 return strcmp(method_name, dex_file.GetMethodName(method_id)) == 0 && in HasSameNameAndSignature() 54 strcmp(type, dex_file.GetMethodSignature(method_id).ToString().c_str()) == 0; in HasSameNameAndSignature() 58 const dex::MethodId& method_id, in HasSameNameAndSignature() argument 61 return strcmp(method_name, dex_file.GetMethodName(method_id)) == 0 && in HasSameNameAndSignature() 62 dex_file.GetMethodSignature(method_id) == signature; in HasSameNameAndSignature() 262 const dex::MethodId& method_id = dex_file_.GetMethodId(method_index); in GetMethod() local 263 VeriClass* kls = GetVeriClass(method_id.class_idx_); in GetMethod() 269 dex_file_.GetMethodName(method_id), in GetMethod() 270 dex_file_.GetMethodSignature(method_id)); in GetMethod()
|
D | hidden_api_finder.cc | 32 void HiddenApiFinder::CheckMethod(uint32_t method_id, in CheckMethod() argument 37 const auto& name = HiddenApi::GetApiMethodName(resolver->GetDexFile(), method_id); in CheckMethod()
|
/art/libprofile/profile/ |
D | profile_boot_info.cc | 110 uint32_t method_id; in Load() local 115 bytes_read = TEMP_FAILURE_RETRY(read(fd, &method_id, sizeof(method_id))); in Load() 120 methods_.push_back(std::make_pair(dex_file_index, method_id)); in Load()
|
/art/runtime/jni/ |
D | jni_internal.h | 136 static inline ArtMethod* DecodeArtMethod(jmethodID method_id) { in DecodeArtMethod() argument 137 if (IsIndexId<kEnableIndexIds>(method_id)) { in DecodeArtMethod() 138 return Runtime::Current()->GetJniIdManager()->DecodeMethodId(method_id); in DecodeArtMethod() 140 return reinterpret_cast<ArtMethod*>(method_id); in DecodeArtMethod()
|
/art/libdexfile/dex/ |
D | dex_file-inl.h | 110 inline const char* DexFile::GetMethodDeclaringClassDescriptor(const dex::MethodId& method_id) in GetMethodDeclaringClassDescriptor() argument 112 const dex::TypeId& type_id = GetTypeId(method_id.class_idx_); in GetMethodDeclaringClassDescriptor() 116 inline const Signature DexFile::GetMethodSignature(const dex::MethodId& method_id) const { in GetMethodSignature() argument 117 return Signature(this, GetProtoId(method_id.proto_idx_)); in GetMethodSignature() 124 inline const char* DexFile::GetMethodName(const dex::MethodId& method_id) const { in GetMethodName() argument 125 return StringDataByIdx(method_id.name_idx_); in GetMethodName() 128 inline const char* DexFile::GetMethodName(const dex::MethodId& method_id, uint32_t* utf_length) in GetMethodName() argument 130 return StringDataAndUtf16LengthByIdx(method_id.name_idx_, utf_length); in GetMethodName() 141 inline const char* DexFile::GetMethodShorty(const dex::MethodId& method_id) const { in GetMethodShorty() argument 142 return StringDataByIdx(GetProtoId(method_id.proto_idx_).shorty_idx_); in GetMethodShorty() [all …]
|
D | art_dex_file_loader_test.cc | 128 const dex::MethodId& method_id = raw->GetMethodId(cur_method->GetIndex()); in TEST_F() local 129 const char* name = raw->StringDataByIdx(method_id.name_idx_); in TEST_F() 131 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F() 202 const dex::MethodId& method_id = raw->GetMethodId(cur_method->GetIndex()); in TEST_F() local 204 const char* name = raw->StringDataByIdx(method_id.name_idx_); in TEST_F() 207 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F()
|
D | dex_file.h | 362 uint32_t GetIndexForMethodId(const dex::MethodId& method_id) const { in GetIndexForMethodId() argument 363 CHECK_GE(&method_id, method_ids_) << GetLocation(); in GetIndexForMethodId() 364 CHECK_LT(&method_id, method_ids_ + header_->method_ids_size_) << GetLocation(); in GetIndexForMethodId() 365 return &method_id - method_ids_; in GetIndexForMethodId() 374 const char* GetMethodDeclaringClassDescriptor(const dex::MethodId& method_id) const; 377 const dex::ProtoId& GetMethodPrototype(const dex::MethodId& method_id) const { in GetMethodPrototype() argument 378 return GetProtoId(method_id.proto_idx_); in GetMethodPrototype() 382 const Signature GetMethodSignature(const dex::MethodId& method_id) const; 388 const char* GetMethodName(const dex::MethodId& method_id) const; 389 const char* GetMethodName(const dex::MethodId& method_id, uint32_t* utf_length) const; [all …]
|
D | dex_file.cc | 526 const MethodId& method_id = GetMethodId(method_idx); in PrettyMethod() local 528 const ProtoId* proto_id = with_signature ? &GetProtoId(method_id.proto_idx_) : nullptr; in PrettyMethod() 533 AppendPrettyDescriptor(GetMethodDeclaringClassDescriptor(method_id), &result); in PrettyMethod() 535 result += GetMethodName(method_id); in PrettyMethod()
|
/art/dexlayout/ |
D | dex_visualize.cc | 163 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()
|
D | dexlayout.cc | 424 dex_ir::MethodId* method_id = header->MethodIds()[index]; in IndexString() local 425 const char* name = method_id->Name()->Data(); in IndexString() 426 std::string type_descriptor = GetSignatureForProtoId(method_id->Proto()); in IndexString() 427 const char* back_descriptor = method_id->Class()->GetStringId()->Data(); in IndexString() 457 dex_ir::MethodId* method_id = header->MethodIds()[index]; in IndexString() local 458 const char* name = method_id->Name()->Data(); in IndexString() 459 std::string type_descriptor = GetSignatureForProtoId(method_id->Proto()); in IndexString() 460 const char* back_descriptor = method_id->Class()->GetStringId()->Data(); in IndexString() 551 dex_ir::MethodId* method_id = data->GetMethodId(); in DumpEncodedValue() local 552 fputs(method_id->Name()->Data(), out_file_); in DumpEncodedValue() [all …]
|
D | compact_dex_writer.cc | 61 const dex_ir::MethodId* method_id = method.GetMethodId(); in WriteDebugInfoOffsetTable() local 65 const uint32_t method_idx = method_id->GetIndex(); in WriteDebugInfoOffsetTable() 249 const dex_ir::MethodId* method_id = method.GetMethodId(); in SortDebugInfosByMethodIndex() local 253 method_idx_map.insert(std::make_pair(debug_item, method_id->GetIndex())); in SortDebugInfosByMethodIndex()
|
D | dex_ir.h | 90 virtual void Dispatch(const MethodId* method_id) = 0; 743 MethodItem(uint32_t access_flags, const MethodId* method_id, CodeItem* code) in MethodItem() argument 744 : access_flags_(access_flags), method_id_(method_id), code_(code) { } in MethodItem() 783 void SetMethodId(MethodId* method_id) { u_.method_val_ = method_id; } in SetMethodId() argument 1176 MethodAnnotation(MethodId* method_id, AnnotationSetItem* annotation_set_item) in MethodAnnotation() argument 1177 : method_id_(method_id), annotation_set_item_(annotation_set_item) { } in MethodAnnotation() 1193 ParameterAnnotation(MethodId* method_id, AnnotationSetRefList* annotations) in ParameterAnnotation() argument 1194 : method_id_(method_id), annotations_(annotations) { } in ParameterAnnotation()
|
D | dex_ir_builder.cc | 210 MethodId* method_id, 756 MethodId* method_id = header_->MethodIds()[methods[i].method_idx_]; in CreateAnnotationsDirectoryItem() local 763 method_id, annotation_set_item)); in CreateAnnotationsDirectoryItem() 772 MethodId* method_id = header_->MethodIds()[parameters[i].method_idx_]; in CreateAnnotationsDirectoryItem() local 776 GenerateParameterAnnotation(dex_file, method_id, list, parameters[i].annotations_off_))); in CreateAnnotationsDirectoryItem() 1227 MethodId* method_id = header_->MethodIds()[method.GetIndex()]; in GenerateMethodItem() local 1236 return MethodItem(access_flags, method_id, code_item); in GenerateMethodItem() 1241 MethodId* method_id, in GenerateParameterAnnotation() argument 1259 return new ParameterAnnotation(method_id, set_ref_list); in GenerateParameterAnnotation()
|
D | dex_writer.cc | 340 for (auto& method_id : header_->MethodIds()) { in WriteMethodIds() local 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/test/661-oat-writer-layout/ |
D | info.txt | 4 MethodHotness bitmask (and sub-sorts by class_def_idx, then method_id).
|
/art/dalvikvm/ |
D | dalvikvm.cc | 32 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/ |
D | verifier_deps.cc | 902 const dex::MethodId& method_id = dex_file.GetMethodId(method.GetDexMethodIndex()); in Dump() local 904 << dex_file.GetMethodDeclaringClassDescriptor(method_id) << "->" in Dump() 905 << dex_file.GetMethodName(method_id) in Dump() 906 << dex_file.GetMethodSignature(method_id).ToString() in Dump() 1090 const dex::MethodId& method_id = dex_file.GetMethodId(index); in GetMethodDescription() local 1091 return std::string(dex_file.GetMethodDeclaringClassDescriptor(method_id)) in GetMethodDescription() 1093 + dex_file.GetMethodName(method_id) in GetMethodDescription() 1094 + dex_file.GetMethodSignature(method_id).ToString(); in GetMethodDescription() 1106 const dex::MethodId& method_id = dex_file.GetMethodId(entry.GetDexMethodIndex()); in VerifyMethods() local 1108 const char* name = dex_file.GetMethodName(method_id); in VerifyMethods() [all …]
|
/art/runtime/mirror/ |
D | class.cc | 619 const dex::MethodId& method_id = dex_file.GetMethodId(dex_method_idx); in FindInterfaceMethod() local 620 std::string_view name = dex_file.StringViewByIdx(method_id.name_idx_); in FindInterfaceMethod() 621 const Signature signature = dex_file.GetMethodSignature(method_id); in FindInterfaceMethod() 746 const dex::MethodId& method_id = dex_file.GetMethodId(dex_method_idx); in FindClassMethod() local 747 const Signature signature = dex_file.GetMethodSignature(method_id); in FindClassMethod() 754 name = dex_file.GetMethodName(method_id, &length); in FindClassMethod() 778 if (cmp_method_id.name_idx_ == method_id.name_idx_ && in FindClassMethod() 779 cmp_method_id.proto_idx_ == method_id.proto_idx_) { in FindClassMethod() 786 name = dex_file.StringDataByIdx(method_id.name_idx_); in FindClassMethod() 814 name = dex_file.StringDataByIdx(method_id.name_idx_); in FindClassMethod()
|
/art/tools/jvmti-agents/ti-alloc-sample/ |
D | ti_alloc_sample.cc | 295 static std::string formatMethod(jvmtiEnv* jvmti, JNIEnv* jni, jmethodID method_id) { in formatMethod() argument 296 ScopedMethodInfo smi(jvmti, jni, method_id); in formatMethod()
|