Home
last modified time | relevance | path

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

12

/art/test/817-hiddenapi/
Dtest_native.cc32 jmethodID method_id = env->GetMethodID(cls, "methodPublicSdkNotInAbstractParent", "()I"); in Java_TestCase_testNativeInternal() local
33 if (method_id == nullptr) { in Java_TestCase_testNativeInternal()
37 return env->CallIntMethod(obj, method_id); in Java_TestCase_testNativeInternal()
/art/libdexfile/dex/
Ddex_file-inl.h168 const dex::MethodId& method_id) const { in GetMethodDeclaringClassDescriptor() argument
169 return GetTypeDescriptor(method_id.class_idx_); in GetMethodDeclaringClassDescriptor()
177 const dex::MethodId& method_id) const { in GetMethodDeclaringClassDescriptorView() argument
178 return GetTypeDescriptorView(method_id.class_idx_); in GetMethodDeclaringClassDescriptorView()
185 inline const Signature DexFile::GetMethodSignature(const dex::MethodId& method_id) const { in GetMethodSignature() argument
186 return Signature(this, GetProtoId(method_id.proto_idx_)); in GetMethodSignature()
193 inline const char* DexFile::GetMethodName(const dex::MethodId& method_id) const { in GetMethodName() argument
194 return GetStringData(method_id.name_idx_); in GetMethodName()
197 inline const char* DexFile::GetMethodName(const dex::MethodId& method_id, uint32_t* utf_length) in GetMethodName() argument
199 return GetStringDataAndUtf16Length(method_id.name_idx_, utf_length); in GetMethodName()
[all …]
Ddex_file.h462 uint32_t GetIndexForMethodId(const dex::MethodId& method_id) const { in GetIndexForMethodId() argument
463 CHECK_GE(&method_id, method_ids_) << GetLocation(); in GetIndexForMethodId()
464 CHECK_LT(&method_id, method_ids_ + header_->method_ids_size_) << GetLocation(); in GetIndexForMethodId()
465 return &method_id - method_ids_; in GetIndexForMethodId()
478 const char* GetMethodDeclaringClassDescriptor(const dex::MethodId& method_id) const;
480 std::string_view GetMethodDeclaringClassDescriptorView(const dex::MethodId& method_id) const;
484 const dex::ProtoId& GetMethodPrototype(const dex::MethodId& method_id) const { in GetMethodPrototype() argument
485 return GetProtoId(method_id.proto_idx_); in GetMethodPrototype()
489 const Signature GetMethodSignature(const dex::MethodId& method_id) const;
495 const char* GetMethodName(const dex::MethodId& method_id) const;
[all …]
Dart_dex_file_loader_test.cc177 const dex::MethodId& method_id = raw->GetMethodId(cur_method->GetIndex()); in TEST_F() local
178 const char* name = raw->GetStringData(method_id.name_idx_); in TEST_F()
180 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F()
251 const dex::MethodId& method_id = raw->GetMethodId(cur_method->GetIndex()); in TEST_F() local
253 const char* name = raw->GetStringData(method_id.name_idx_); in TEST_F()
256 std::string signature(raw->GetMethodSignature(method_id).ToString()); in TEST_F()
Ddex_file_verifier_test.cc151 dex::MethodId* method_id = const_cast<dex::MethodId*>(&dex_file->GetMethodId(0)); in TEST_F() local
152 method_id->class_idx_ = dex::TypeIndex(0xFF); in TEST_F()
161 dex::MethodId* method_id = const_cast<dex::MethodId*>(&dex_file->GetMethodId(0)); in TEST_F() local
162 method_id->proto_idx_ = dex::ProtoIndex(0xFF); in TEST_F()
171 dex::MethodId* method_id = const_cast<dex::MethodId*>(&dex_file->GetMethodId(0)); in TEST_F() local
172 method_id->name_idx_ = dex::StringIndex(0xFF); in TEST_F()
Ddex_file_verifier.cc220 const dex::MethodId& method_id = OffsetToPtr<dex::MethodId>(header_->method_ids_off_)[idx]; in GetMethodDescription() local
223 std::string class_name = GetClass(method_id.class_idx_); in GetMethodDescription()
224 std::string method_name = GetString(method_id.name_idx_); in GetMethodDescription()
945 const dex::MethodId& method_id = OffsetToPtr<dex::MethodId>(header_->method_ids_off_)[idx]; in CheckClassDataItemMethod() local
948 dex::TypeIndex my_class_index = method_id.class_idx_; in CheckClassDataItemMethod()
959 uint32_t string_idx = method_id.name_idx_.index_; in CheckClassDataItemMethod()
1418 const dex::MethodId* method_id = reinterpret_cast<const dex::MethodId*>(ptr_); in CheckIntraMethodIdItem() local
1419 if (!CheckIndex(method_id->class_idx_.index_, header_->type_ids_size_, "method_id.class") || in CheckIntraMethodIdItem()
1420 !CheckIndex(method_id->proto_idx_.index_, header_->proto_ids_size_, "method_id.proto") || in CheckIntraMethodIdItem()
1421 !CheckIndex(method_id->name_idx_.index_, header_->string_ids_size_, "method_id.name")) { in CheckIntraMethodIdItem()
[all …]
/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.h265 const dex::MethodId& method_id = dex_cache->GetDexFile()->GetMethodId(method_idx); in CheckInvokeClassMismatch()
267 LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in CheckInvokeClassMismatch()
280 const dex::MethodId& method_id = dex_file.GetMethodId(method_idx); in LookupResolvedMethod() local
281 ObjPtr<mirror::Class> klass = LookupResolvedType(method_id.class_idx_, dex_cache, class_loader); in LookupResolvedMethod()
339 const dex::MethodId& method_id = dex_file.GetMethodId(method_idx); in ResolveMethod() local
344 klass = LookupResolvedType(method_id.class_idx_, dex_cache.Get(), class_loader.Get()); in ResolveMethod()
348 klass = ResolveType(method_id.class_idx_, dex_cache, class_loader); in ResolveMethod()
359 klass = ResolveType(method_id.class_idx_, dex_cache, class_loader); in ResolveMethod()
421 const char* name = dex_file.GetStringData(method_id.name_idx_); in ResolveMethod()
422 const Signature signature = dex_file.GetMethodSignature(method_id); in ResolveMethod()
Dsdk_checker.cc75 const dex::MethodId* method_id = in ShouldDenyAccess() local
77 if (method_id != nullptr) { in ShouldDenyAccess()
Dart_method-inl.h444 const dex::MethodId& method_id = GetDexFile()->GetMethodId(GetDexMethodIndex());
445 return Runtime::Current()->GetClassLinker()->ResolveString(method_id.name_idx_, this);
451 const dex::MethodId& method_id = dex_file->GetMethodId(GetDexMethodIndex());
452 const dex::StringIndex name_idx = method_id.name_idx_;
583 const dex::MethodId& method_id = dex_file->GetMethodId(GetDexMethodIndex());
584 const dex::ProtoId& proto_id = dex_file->GetMethodPrototype(method_id);
Dhidden_api.cc281 const dex::MethodId& method_id = dex_file.GetMethodId(method.GetIndex()); in MemberSignature() local
282 class_name_ = dex_file.GetMethodDeclaringClassDescriptor(method_id); in MemberSignature()
283 member_name_ = dex_file.GetMethodName(method_id); in MemberSignature()
284 type_signature_ = dex_file.GetMethodSignature(method_id).ToString(); in MemberSignature()
Dtrace.cc678 uint64_t method_id = reinterpret_cast<uint64_t>(&method); in RecordMethodInfoV2() local
695 Append8LE(buf + index + 1, method_id); in RecordMethodInfoV2()
1435 void TraceWriter::RecordMethodInfoV1(const std::string& method_info_line, uint64_t method_id) { in RecordMethodInfoV1() argument
1447 method_line = GetMethodLine(method_info_line, method_id); in RecordMethodInfoV1()
1709 auto [method_id, is_new_method] = GetMethodEncoding(record.method); in FlushEntriesFormatV1()
1711 RecordMethodInfoV1(method_infos.find(record.method)->second, method_id); in FlushEntriesFormatV1()
1717 method_id, in FlushEntriesFormatV1()
1755 uint64_t method_id = reinterpret_cast<uintptr_t>(record.method); in FlushEntriesFormatV2() local
1756 uint64_t method_action_encoding = method_id | record.action; in FlushEntriesFormatV2()
/art/compiler/driver/
Ddex_compilation_unit.h75 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() local
76 return dex_file_->GetMethodShorty(method_id); in GetShorty()
80 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetShorty() local
81 return dex_file_->GetMethodShorty(method_id, shorty_len); in GetShorty()
/art/tools/veridex/
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.cc84 const dex::MethodId& method_id = dex_file.GetMethodId(method_index); in GetApiMethodName() local
85 ss << dex_file.GetTypeDescriptorView(method_id.class_idx_) in GetApiMethodName()
87 << dex_file.GetMethodName(method_id) in GetApiMethodName()
88 << dex_file.GetMethodSignature(method_id).ToString(); in GetApiMethodName()
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/test/2246-trace-v2/
Ddump_trace.cc178 uint64_t method_id = (method_value >> kTraceActionBits) << kTraceActionBits; in ProcessTraceEntries() local
195 if (method_map.find(method_id) == method_map.end()) { in ProcessTraceEntries()
196 LOG(FATAL) << "No entry for init method " << std::hex << method_id << " " << method_value; in ProcessTraceEntries()
200 method_map[method_id], in ProcessTraceEntries()
216 method_id = (curr_method_value >> kTraceActionBits) << kTraceActionBits; in ProcessTraceEntries()
217 if (method_map.find(method_id) == method_map.end()) { in ProcessTraceEntries()
218 LOG(FATAL) << "No entry for method " << std::hex << method_id; in ProcessTraceEntries()
222 method_map[method_id], in ProcessTraceEntries()
/art/runtime/jni/
Djni_internal.h144 static inline ArtMethod* DecodeArtMethod(jmethodID method_id) { in DecodeArtMethod() argument
145 if (IsIndexId<kEnableIndexIds>(method_id)) { in DecodeArtMethod()
146 return Runtime::Current()->GetJniIdManager()->DecodeMethodId(method_id); in DecodeArtMethod()
148 return reinterpret_cast<ArtMethod*>(method_id); in DecodeArtMethod()
/art/test/661-oat-writer-layout/
Dinfo.txt4 MethodHotness bitmask (and sub-sorts by class_def_idx, then method_id).
/art/dalvikvm/
Ddalvikvm.cc33 static bool IsMethodPublic(JNIEnv* env, jclass c, jmethodID method_id) { in IsMethodPublic() argument
34 ScopedLocalRef<jobject> reflected(env, env->ToReflectedMethod(c, method_id, JNI_FALSE)); in IsMethodPublic()
/art/runtime/mirror/
Dclass.cc575 const dex::MethodId& method_id = dex_file.GetMethodId(dex_method_idx); in FindInterfaceMethod() local
576 std::string_view name = dex_file.GetStringView(method_id.name_idx_); in FindInterfaceMethod()
577 const Signature signature = dex_file.GetMethodSignature(method_id); in FindInterfaceMethod()
795 const dex::MethodId& method_id = get_method_id(mid); in FindDeclaredClassMethod() local
796 return DexFile::CompareMemberNames(name, dex_file.GetMethodNameView(method_id)); in FindDeclaredClassMethod()
801 const dex::MethodId& method_id = get_method_id(mid); in FindDeclaredClassMethod() local
802 return signature.Compare(dex_file.GetMethodSignature(method_id)); in FindDeclaredClassMethod()
805 const dex::MethodId& method_id = get_method_id(mid); in FindDeclaredClassMethod() local
806 return method_id.name_idx_; in FindDeclaredClassMethod()
850 const dex::MethodId& method_id = dex_file.GetMethodId(dex_method_idx); in FindClassMethod() local
[all …]
/art/libdexfile/external/
Ddex_file_ext.cc298 const art::dex::MethodId& method_id = self->adex->dex_file_->GetMethodId(self->index); in ADexFile_Method_getClassDescriptor() local
299 const char* name = self->adex->dex_file_->GetMethodDeclaringClassDescriptor(method_id); in ADexFile_Method_getClassDescriptor()
/art/runtime/verifier/
Dmethod_verifier.cc670 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in GetDeclaringClass() local
672 = dex_file_->GetTypeDescriptor(dex_file_->GetTypeId(method_id.class_idx_)); in GetDeclaringClass()
853 const dex::MethodId& method_id = dex_file_->GetMethodId(dex_method_idx_); in Verify() local
854 const std::string_view method_name = dex_file_->GetStringView(method_id.name_idx_); in Verify()
926 const char* shorty = dex_file_->GetMethodShorty(method_id); in Verify()
2876 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
2878 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
2899 const dex::MethodId& method_id = dex_file_->GetMethodId(method_idx); in CodeFlowVerifyInstruction() local
2900 is_constructor = dex_file_->GetStringView(method_id.name_idx_) == "<init>"; in CodeFlowVerifyInstruction()
2902 dex_file_->GetProtoId(method_id.proto_idx_).return_type_idx_; in CodeFlowVerifyInstruction()
[all …]
/art/tools/jvmti-agents/ti-alloc-sample/
Dti_alloc_sample.cc295 static std::string formatMethod(jvmtiEnv* jvmti, JNIEnv* jni, jmethodID method_id) { in formatMethod() argument
296 ScopedMethodInfo smi(jvmti, jni, method_id); in formatMethod()

12