Lines Matching refs:dex_file
408 auto process_fn = [profile_filter_keys](std::unique_ptr<const DexFile>&& dex_file) { in GetProfileFilterKeyFromApks() argument
412 dex_file->GetLocation()), dex_file->GetLocationChecksum()); in GetProfileFilterKeyFromApks()
418 auto process_fn = [dex_files](std::unique_ptr<const DexFile>&& dex_file) { in OpenApkFilesFromLocations() argument
419 dex_files->emplace_back(std::move(dex_file)); in OpenApkFilesFromLocations()
482 for (std::unique_ptr<const DexFile>& dex_file : dex_files_for_location) { in OpenApkFilesFromLocations()
483 process_fn(std::move(dex_file)); in OpenApkFilesFromLocations()
569 for (const std::unique_ptr<const DexFile>& dex_file : dex_files) { in DumpProfileInfo() local
571 oss << dex_file->GetLocation() in DumpProfileInfo()
572 << " [checksum=" << std::hex << dex_file->GetLocationChecksum() << "]\n"; in DumpProfileInfo()
639 for (const std::unique_ptr<const DexFile>& dex_file : *dex_files) { in GetClassNamesAndMethods()
645 if (profile_info.GetClassesAndMethods(*dex_file.get(), in GetClassNamesAndMethods()
651 const dex::TypeId& type_id = dex_file->GetTypeId(type_index); in GetClassNamesAndMethods()
652 out_lines->insert(std::string(dex_file->GetTypeDescriptor(type_id))); in GetClassNamesAndMethods()
658 const dex::MethodId& id = dex_file->GetMethodId(dex_method_idx); in GetClassNamesAndMethods()
659 std::string signature_string(dex_file->GetMethodSignature(id).ToString()); in GetClassNamesAndMethods()
660 std::string type_string(dex_file->GetTypeDescriptor(dex_file->GetTypeId(id.class_idx_))); in GetClassNamesAndMethods()
661 std::string method_name(dex_file->GetMethodName(id)); in GetClassNamesAndMethods()
809 const DexFile* dex_file = dex_file_ptr.get(); in FindClass() local
811 if (kInvalidTypeIndex >= dex_file->NumTypeIds()) { in FindClass()
814 *class_ref = TypeReference(dex_file, dex::TypeIndex(kInvalidTypeIndex)); in FindClass()
823 const dex::TypeId* type_id = dex_file->FindTypeId(klass_descriptor.c_str()); in FindClass()
827 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClass()
828 if (dex_file->FindClassDef(type_index) == nullptr) { in FindClass()
832 *class_ref = TypeReference(dex_file, type_index); in FindClass()
841 const DexFile* dex_file = class_ref.dex_file; in FindMethodIndex() local
844 return kInvalidMethodIndex >= dex_file->NumMethodIds() in FindMethodIndex()
859 const dex::StringId* name_id = dex_file->FindStringId(name.c_str()); in FindMethodIndex()
866 if (!dex_file->CreateTypeList(signature, &return_type_idx, ¶m_type_idxs)) { in FindMethodIndex()
870 const dex::ProtoId* proto_id = dex_file->FindProtoId(return_type_idx, param_type_idxs); in FindMethodIndex()
875 const dex::MethodId* method_id = dex_file->FindMethodId( in FindMethodIndex()
876 dex_file->GetTypeId(class_ref.TypeIndex()), *name_id, *proto_id); in FindMethodIndex()
882 return dex_file->GetIndexForMethodId(*method_id); in FindMethodIndex()
894 const DexFile* dex_file = class_ref.dex_file; in HasSingleInvoke() local
895 uint32_t offset = dex_file->FindCodeItemOffset( in HasSingleInvoke()
896 *dex_file->FindClassDef(class_ref.TypeIndex()), in HasSingleInvoke()
898 const dex::CodeItem* code_item = dex_file->GetCodeItem(offset); in HasSingleInvoke()
901 for (const DexInstructionPcPair& inst : CodeItemInstructionAccessor(*dex_file, code_item)) { in HasSingleInvoke()
906 << dex_file->PrettyMethod(method_index); in HasSingleInvoke()
914 LOG(ERROR) << "Could not find any INVOKE_VIRTUAL: " << dex_file->PrettyMethod(method_index); in HasSingleInvoke()
983 const DexFile* dex_file = class_ref.dex_file; in ProcessLine() local
985 dex_file->GetLocation(), in ProcessLine()
986 DexFileLoader::GetBaseLocation(dex_file->GetLocation()), in ProcessLine()
987 dex_file->GetLocationChecksum(), in ProcessLine()
988 dex_file->NumMethodIds()); in ProcessLine()
993 *dex_file, in ProcessLine()
994 dex_file->GetIndexForClassDef(*dex_file->FindClassDef(class_ref.TypeIndex()))); in ProcessLine()
1053 MethodReference ref(class_ref.dex_file, method_index); in ProcessLine()