/art/test/817-hiddenapi/ |
D | test_native.cc | 32 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/ |
D | dex_file-inl.h | 168 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 …]
|
D | dex_file.h | 462 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 …]
|
D | art_dex_file_loader_test.cc | 177 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()
|
D | dex_file_verifier_test.cc | 151 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()
|
D | dex_file_verifier.cc | 220 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/ |
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 | 265 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()
|
D | sdk_checker.cc | 75 const dex::MethodId* method_id = in ShouldDenyAccess() local 77 if (method_id != nullptr) { in ShouldDenyAccess()
|
D | art_method-inl.h | 444 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);
|
D | hidden_api.cc | 281 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()
|
D | trace.cc | 678 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/ |
D | dex_compilation_unit.h | 75 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/ |
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.cc | 84 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()
|
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/test/2246-trace-v2/ |
D | dump_trace.cc | 178 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/ |
D | jni_internal.h | 144 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/ |
D | info.txt | 4 MethodHotness bitmask (and sub-sorts by class_def_idx, then method_id).
|
/art/dalvikvm/ |
D | dalvikvm.cc | 33 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/ |
D | class.cc | 575 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/ |
D | dex_file_ext.cc | 298 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/ |
D | method_verifier.cc | 670 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/ |
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()
|