Home
last modified time | relevance | path

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

12

/art/runtime/
Dimtable-inl.h49 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()
Dclass_linker-inl.h280 const dex::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch()
282 LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in CheckInvokeClassMismatch()
295 const dex::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod() local
296 ObjPtr<mirror::Class> klass = LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in LookupResolvedMethod()
372 const dex::MethodId& method_id = referrer->GetDexFile()->GetMethodId(method_idx); in ResolveMethod() local
374 LookupResolvedType(method_id.class_idx_, in ResolveMethod()
384 cls = ResolveType(method_id.class_idx_, h_dex_cache, h_class_loader); in ResolveMethod()
Dart_method-inl.h221 const dex::MethodId& method_id = GetDexFile()->GetMethodId(GetDexMethodIndex()); in ResolveNameString() local
222 return Runtime::Current()->GetClassLinker()->ResolveString(method_id.name_idx_, this); in ResolveNameString()
341 const dex::MethodId& method_id = dex_file->GetMethodId(GetDexMethodIndex()); in GetReturnTypeIndex() local
342 const dex::ProtoId& proto_id = dex_file->GetMethodPrototype(method_id); in GetReturnTypeIndex()
Dhidden_api.cc195 const dex::MethodId& method_id = dex_file.GetMethodId(method.GetIndex()); in MemberSignature() local
196 class_name_ = dex_file.GetMethodDeclaringClassDescriptor(method_id); in MemberSignature()
197 member_name_ = dex_file.GetMethodName(method_id); in MemberSignature()
198 type_signature_ = dex_file.GetMethodSignature(method_id).ToString(); in MemberSignature()
/art/compiler/driver/
Ddex_compilation_unit.h74 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/
Dhidden_api.cc75 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()
Dresolver.cc50 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()
Dhidden_api_finder.cc32 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/
Dprofile_boot_info.cc110 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/
Djni_internal.h136 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/
Ddex_file-inl.h110 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 …]
Dart_dex_file_loader_test.cc128 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()
Ddex_file.h362 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 …]
Ddex_file.cc526 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/
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.cc424 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 …]
Dcompact_dex_writer.cc61 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()
Ddex_ir_builder.cc210 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()
Ddex_ir.h90 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()
Ddex_writer.cc340 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/
Dinfo.txt4 MethodHotness bitmask (and sub-sorts by class_def_idx, then method_id).
/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.cc955 const dex::MethodId& method_id = dex_file.GetMethodId(method.GetDexMethodIndex()); in Dump() local
957 << dex_file.GetMethodDeclaringClassDescriptor(method_id) << "->" in Dump()
958 << dex_file.GetMethodName(method_id) in Dump()
959 << dex_file.GetMethodSignature(method_id).ToString() in Dump()
1143 const dex::MethodId& method_id = dex_file.GetMethodId(index); in GetMethodDescription() local
1144 return std::string(dex_file.GetMethodDeclaringClassDescriptor(method_id)) in GetMethodDescription()
1146 + dex_file.GetMethodName(method_id) in GetMethodDescription()
1147 + dex_file.GetMethodSignature(method_id).ToString(); in GetMethodDescription()
1159 const dex::MethodId& method_id = dex_file.GetMethodId(entry.GetDexMethodIndex()); in VerifyMethods() local
1161 const char* name = dex_file.GetMethodName(method_id); in VerifyMethods()
[all …]
Dmethod_verifier.cc690 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetDeclaringClass() local
692 = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(method_id.class_idx_)); in GetDeclaringClass()
904 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in Verify() local
905 const char* method_name = dex_file_->StringDataByIdx(method_id.name_idx_); in Verify()
2973 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
2975 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
2996 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
2997 is_constructor = strcmp("<init>", dex_file_->StringDataByIdx(method_id.name_idx_)) == 0; in CodeFlowVerifyInstruction()
2999 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
3076 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
[all …]
/art/runtime/mirror/
Dclass.cc619 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()

12