/aosp12/art/libdexfile/dex/ |
H A D | dex_file_verifier.cc | 86 case DexFile::kDexTypeHeaderItem: in IsDataSectionType() 88 case DexFile::kDexTypeTypeIdItem: in IsDataSectionType() 89 case DexFile::kDexTypeProtoIdItem: in IsDataSectionType() 90 case DexFile::kDexTypeFieldIdItem: in IsDataSectionType() 96 case DexFile::kDexTypeMapList: in IsDataSectionType() 97 case DexFile::kDexTypeTypeList: in IsDataSectionType() 101 case DexFile::kDexTypeCodeItem: in IsDataSectionType() 375 const DexFile* const dex_file_; 691 DexFile::MapItemType item_type = static_cast<DexFile::MapItemType>(item->type_); in CheckMap() 2315 DexFile::MapItemType type = static_cast<DexFile::MapItemType>(item->type_); in CheckIntraSection() [all …]
|
H A D | dex_file_verifier_test.cc | 50 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); in FixUpChecksum() 53 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); in FixUpChecksum() 157 [](DexFile* dex_file) { in TEST_F() 167 [](DexFile* dex_file) { in TEST_F() 177 [](DexFile* dex_file) { in TEST_F() 326 [](DexFile* dex_file) { in TEST_F() 338 [](DexFile* dex_file) { in TEST_F() 630 [](DexFile* dex_file) { in TEST_F() 682 [](DexFile* dex_file) { in TEST_F() 1326 DexFile::Header* header = const_cast<DexFile::Header*>( in TEST_F() [all …]
|
H A D | dex_file-inl.h | 70 inline const char* DexFile::StringDataByIdx(dex::StringIndex idx) const { in StringDataByIdx() 89 inline const char* DexFile::StringByTypeIdx(dex::TypeIndex idx) const { in StringByTypeIdx() 133 inline const char* DexFile::GetMethodName(uint32_t idx) const { in GetMethodName() 141 inline const char* DexFile::GetMethodShorty(uint32_t idx) const { in GetMethodShorty() 175 inline bool DexFile::StringEquals(const DexFile* df1, dex::StringIndex sidx1, in StringEquals() 185 bool DexFile::DecodeDebugLocalInfo(const uint8_t* stream, in DecodeDebugLocalInfo() 341 bool DexFile::DecodeDebugLocalInfo(uint32_t registers_size, in DecodeDebugLocalInfo() 377 bool DexFile::DecodeDebugPositionInfo(const uint8_t* stream, in DecodeDebugPositionInfo() 439 inline const CompactDexFile* DexFile::AsCompactDexFile() const { in AsCompactDexFile() 444 inline const StandardDexFile* DexFile::AsStandardDexFile() const { in AsStandardDexFile() [all …]
|
H A D | dex_file.cc | 64 uint32_t DexFile::CalculateChecksum() const { in CalculateChecksum() 77 int DexFile::GetPermissions() const { in GetPermissions() 82 bool DexFile::IsReadOnly() const { in IsReadOnly() 87 bool DexFile::EnableWrite() const { in EnableWrite() 92 bool DexFile::DisableWrite() const { in DisableWrite() 97 DexFile::DexFile(const uint8_t* base, in DexFile() function in art::DexFile 138 DexFile::~DexFile() { in ~DexFile() 145 bool DexFile::Init(std::string* error_msg) { in Init() 176 void DexFile::InitializeSectionsFromMapList() { in InitializeSectionsFromMapList() 208 uint32_t DexFile::Header::GetVersion() const { in GetVersion() [all …]
|
H A D | dex_file_loader_test.cc | 219 std::vector<std::unique_ptr<const DexFile>> tmp; in OpenDexFilesBase64() 238 std::vector<std::unique_ptr<const DexFile>> dex_files; in OpenDexFileBase64() 282 const DexFile::Header& header = dex_file->GetHeader(); in ValidateDexFileHeader() 316 std::unique_ptr<const DexFile> raw = in TEST_F() 326 const DexFile::Header& header = raw->GetHeader(); in TEST_F() 335 const DexFile::Header& header = raw->GetHeader(); in TEST_F() 344 const DexFile::Header& header = raw->GetHeader(); in TEST_F() 355 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F() 374 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F() 414 std::vector<std::unique_ptr<const DexFile>> dex_files; in TEST_F() [all …]
|
H A D | art_dex_file_loader.h | 30 class DexFile; variable 62 std::unique_ptr<const DexFile> Open( 74 std::unique_ptr<const DexFile> Open(const std::string& location, 87 std::vector<std::unique_ptr<const DexFile>>* dex_files) const; 93 std::vector<std::unique_ptr<const DexFile>>* dex_files) const; 103 std::vector<std::unique_ptr<const DexFile>>* dex_files) const; 106 std::unique_ptr<const DexFile> OpenDex(int fd, 119 std::vector<std::unique_ptr<const DexFile>>* dex_files) const; 128 std::vector<std::unique_ptr<const DexFile>>* dex_files) const; 130 std::unique_ptr<const DexFile> OpenFile(int fd, [all …]
|
H A D | art_dex_file_loader.cc | 145 std::unique_ptr<const DexFile> dex_file(OpenFile(fd.Release(), in GetMultiDexChecksums() 161 std::unique_ptr<const DexFile> ArtDexFileLoader::Open( in Open() 196 if (size < sizeof(DexFile::Header)) { in Open() 204 std::unique_ptr<DexFile> dex_file = OpenCommon(begin, in Open() 280 std::unique_ptr<const DexFile> dex_file(OpenFile(fd, in OpenWithMagic() 297 std::unique_ptr<const DexFile> ArtDexFileLoader::OpenDex(int fd, in OpenDex() 363 if (size < sizeof(DexFile::Header)) { in OpenFile() 370 const DexFile::Header* dex_header = reinterpret_cast<const DexFile::Header*>(begin); in OpenFile() 372 std::unique_ptr<DexFile> dex_file = OpenCommon(begin, in OpenFile() 417 if (!zip_entry->IsAlignedTo(alignof(DexFile::Header))) { in OpenOneDexFileFromZip() [all …]
|
/aosp12/art/runtime/dex/ |
H A D | dex_file_annotations.cc | 58 struct DexFile::AnnotationValue { 120 const DexFile& dex_file, in ClassData() 131 const DexFile& dex_file_; 145 return actual == DexFile::kDexVisibilityRuntime || actual == DexFile::kDexVisibilityBuild; in IsVisibilityCompatible() 214 case DexFile::kDexAnnotationByte: in SkipAnnotationValue() 216 case DexFile::kDexAnnotationChar: in SkipAnnotationValue() 217 case DexFile::kDexAnnotationInt: in SkipAnnotationValue() 218 case DexFile::kDexAnnotationLong: in SkipAnnotationValue() 222 case DexFile::kDexAnnotationType: in SkipAnnotationValue() 225 case DexFile::kDexAnnotationEnum: in SkipAnnotationValue() [all …]
|
/aosp12/art/runtime/verifier/ |
H A D | verifier_deps.h | 37 class DexFile; variable 93 const DexFile& dex_file, 103 const DexFile& dex_file, 135 bool ContainsDexFile(const DexFile& dex_file) const { in ContainsDexFile() 143 const std::vector<const DexFile*>& dex_files, 192 DexFileDeps* GetDexFileDeps(const DexFile& dex_file); 211 void AddAssignability(const DexFile& dex_file, 217 void AddAssignability(const DexFile& dex_file, 229 const DexFile& dex_file, 239 const std::vector<const DexFile*>& dex_files, [all …]
|
/aosp12/art/libdexfile/external/ |
H A D | dex_file_supp_test.cc | 35 std::unique_ptr<DexFile> dex_file; in TEST() 42 size_t size = sizeof(art::DexFile::Header) - 1; in TEST() 43 std::unique_ptr<DexFile> dex_file; in TEST() 44 DexFile::Error error = DexFile::Create(kDexData, size, &size, "", &dex_file); in TEST() 48 EXPECT_EQ(size, sizeof(art::DexFile::Header)); in TEST() 53 size_t size = sizeof(art::DexFile::Header); in TEST() 54 std::unique_ptr<DexFile> dex_file; in TEST() 55 DexFile::Error error = DexFile::Create(kDexData, size, &size, "", &dex_file); in TEST() 63 static std::unique_ptr<DexFile> GetTestDexData() { in GetTestDexData() 65 std::unique_ptr<DexFile> dex_file; in GetTestDexData() [all …]
|
/aosp12/art/dexlayout/ |
H A D | dex_ir_builder.cc | 57 case DexFile::DBG_END_SEQUENCE: in GetDebugInfoStreamSize() 59 case DexFile::DBG_ADVANCE_PC: in GetDebugInfoStreamSize() 62 case DexFile::DBG_ADVANCE_LINE: in GetDebugInfoStreamSize() 65 case DexFile::DBG_START_LOCAL: in GetDebugInfoStreamSize() 76 case DexFile::DBG_END_LOCAL: in GetDebugInfoStreamSize() 77 case DexFile::DBG_RESTART_LOCAL: in GetDebugInfoStreamSize() 83 case DexFile::DBG_SET_FILE: { in GetDebugInfoStreamSize() 209 const DexFile& dex_file, 530 DexFile::MethodHandleType type = in CreateMethodHandleItem() 537 static_assert(DexFile::MethodHandleType::kLast == DexFile::MethodHandleType::kInvokeInterface, in CreateMethodHandleItem() [all …]
|
H A D | dex_ir.cc | 56 DexFile::kDexTypeHeaderItem, 61 DexFile::kDexTypeStringIdItem, 66 DexFile::kDexTypeTypeIdItem, 71 DexFile::kDexTypeProtoIdItem, 76 DexFile::kDexTypeFieldIdItem, 81 DexFile::kDexTypeMethodIdItem, 86 DexFile::kDexTypeClassDefItem, 91 DexFile::kDexTypeCallSiteIdItem, 106 DexFile::kDexTypeTypeList, 136 DexFile::kDexTypeDebugInfoItem, [all …]
|
H A D | dex_writer.cc | 123 case DexFile::kDexAnnotationByte: in WriteEncodedValue() 126 case DexFile::kDexAnnotationShort: in WriteEncodedValue() 129 case DexFile::kDexAnnotationChar: in WriteEncodedValue() 132 case DexFile::kDexAnnotationInt: in WriteEncodedValue() 135 case DexFile::kDexAnnotationLong: in WriteEncodedValue() 138 case DexFile::kDexAnnotationFloat: in WriteEncodedValue() 155 case DexFile::kDexAnnotationType: in WriteEncodedValue() 158 case DexFile::kDexAnnotationField: in WriteEncodedValue() 159 case DexFile::kDexAnnotationEnum: in WriteEncodedValue() 165 case DexFile::kDexAnnotationArray: in WriteEncodedValue() [all …]
|
H A D | dex_visualize.cc | 216 { DexFile::kDexTypeHeaderItem, 1 }, 217 { DexFile::kDexTypeStringIdItem, 2 }, 218 { DexFile::kDexTypeTypeIdItem, 3 }, 219 { DexFile::kDexTypeProtoIdItem, 4 }, 220 { DexFile::kDexTypeFieldIdItem, 5 }, 221 { DexFile::kDexTypeMethodIdItem, 6 }, 222 { DexFile::kDexTypeClassDefItem, 7 }, 223 { DexFile::kDexTypeTypeList, 8 }, 226 { DexFile::kDexTypeClassDataItem, 11 }, 227 { DexFile::kDexTypeCodeItem, 12 }, [all …]
|
H A D | dexdiag.cc | 67 { DexFile::kDexTypeHeaderItem, { "Header", 'H' } }, 68 { DexFile::kDexTypeStringIdItem, { "StringId", 'S' } }, 69 { DexFile::kDexTypeTypeIdItem, { "TypeId", 'T' } }, 70 { DexFile::kDexTypeProtoIdItem, { "ProtoId", 'P' } }, 71 { DexFile::kDexTypeFieldIdItem, { "FieldId", 'F' } }, 72 { DexFile::kDexTypeMethodIdItem, { "MethodId", 'M' } }, 73 { DexFile::kDexTypeClassDefItem, { "ClassDef", 'C' } }, 76 { DexFile::kDexTypeMapList, { "TypeMap", 'L' } }, 77 { DexFile::kDexTypeTypeList, { "TypeList", 't' } }, 81 { DexFile::kDexTypeCodeItem, { "CodeItem", 'X' } }, [all …]
|
/aosp12/system/unwinding/libunwindstack/ |
H A D | DexFile.cpp | 39 std::map<DexFile::MappedFileKey, std::weak_ptr<DexFile::DexFileApi>> DexFile::g_mapped_dex_files; 40 std::mutex DexFile::g_lock; 50 std::shared_ptr<DexFile> DexFile::CreateFromDisk(uint64_t addr, uint64_t size, MapInfo* map) { in CreateFromDisk() 68 return std::shared_ptr<DexFile>(new DexFile(addr, size, std::move(dex_api))); in CreateFromDisk() 76 std::unique_ptr<art_api::dex::DexFile> dex; in CreateFromDisk() 83 return std::shared_ptr<DexFile>(new DexFile(addr, size, std::move(dex_api))); in CreateFromDisk() 86 std::shared_ptr<DexFile> DexFile::Create(uint64_t base_addr, uint64_t file_size, Memory* memory, in Create() 107 std::shared_ptr<DexFile> dex_file = CreateFromDisk(base_addr, file_size, info); in Create() 120 std::unique_ptr<art_api::dex::DexFile> dex; in Create() 121 art_api::dex::DexFile::Create(copy->GetPtr(0), file_size, nullptr, "", &dex); in Create() [all …]
|
H A D | DexFiles.cpp | 30 bool GlobalDebugInterface<DexFile>::Load(Maps* maps, std::shared_ptr<Memory>& memory, uint64_t addr, in Load() 31 uint64_t size, /*out*/ std::shared_ptr<DexFile>& dex) { in Load() 32 dex = DexFile::Create(addr, size, memory.get(), maps->Find(addr)); in Load() 38 return CreateGlobalDebugImpl<DexFile>(arch, memory, search_libs, "__dex_debug_descriptor"); in CreateDexFiles() 44 bool GlobalDebugInterface<DexFile>::Load(Maps*, std::shared_ptr<Memory>&, uint64_t, uint64_t, 45 std::shared_ptr<DexFile>&) {
|
/aosp12/art/compiler/utils/ |
H A D | atomic_dex_ref_map.h | 27 class DexFile; variable 54 void AddDexFile(const DexFile* dex_file); 55 void AddDexFiles(const std::vector<const DexFile*>& dex_files); 58 std::vector<const DexFile*> GetDexFiles() const; 60 bool HaveDexFile(const DexFile* dex_file) const { in HaveDexFile() 73 using DexFileArrays = SafeMap<const DexFile*, ElementArray>; 75 const ElementArray* GetArray(const DexFile* dex_file) const; 76 ElementArray* GetArray(const DexFile* dex_file); 78 static size_t NumberOfDexIndices(const DexFile* dex_file);
|
/aosp12/art/dex2oat/driver/ |
H A D | compiler_driver.h | 64 class DexFile; variable 105 const std::vector<const DexFile*>& dex_files, 111 const std::vector<const DexFile*>& dex_files, 233 const std::vector<const DexFile*>& dex_files, 237 const DexFile& dex_file, 247 const std::vector<const DexFile*>& dex_files, 252 const std::vector<const DexFile*>& dex_files, 257 const DexFile& dex_file, 268 const DexFile& dex_file, 280 const DexFile& dex_file, [all …]
|
/aosp12/system/unwinding/libunwindstack/tests/ |
H A D | DexFileTest.cpp | 64 EXPECT_TRUE(DexFile::Create(0, sizeof(kDexData), &memory, &info) != nullptr); in TEST() 92 EXPECT_TRUE(DexFile::Create(0x500, sizeof(kDexData), &memory, &info) != nullptr); in TEST() 105 EXPECT_TRUE(DexFile::Create(0x600, sizeof(kDexData), &memory, &info) != nullptr); in TEST() 118 EXPECT_TRUE(DexFile::Create(0x400, sizeof(kDexData), &memory, &info) != nullptr); in TEST() 145 std::shared_ptr<DexFile> dex_file = DexFile::Create(0x4000, sizeof(kDexData), &memory, &info); in TEST() 150 dex_file = DexFile::Create(0x4000, sizeof(kDexData), &memory, &info); in TEST() 158 EXPECT_TRUE(DexFile::Create(0x4000, size, &memory, nullptr) == nullptr); in TEST() 165 EXPECT_TRUE(DexFile::Create(0x4000, size, &memory, nullptr) == nullptr); in TEST() 172 std::shared_ptr<DexFile> dex_file(DexFile::Create(0x4000, sizeof(kDexData), &memory, &info)); in TEST() 190 std::shared_ptr<DexFile> dex_file(DexFile::Create(0x4000, sizeof(kDexData), &memory, &info)); in TEST() [all …]
|
/aosp12/art/runtime/ |
H A D | dex_reference_collection.h | 27 class DexFile; variable 36 using MapAllocator = Allocator<std::pair<const DexFile*, IndexVector>>; 38 const DexFile*, 40 std::less<const DexFile*>, 41 Allocator<std::pair<const DexFile* const, IndexVector>>>; 48 void AddReference(const DexFile* dex, IndexType index) { in AddReference() 66 const DexFile* current_dex_file_ = nullptr; 70 ALWAYS_INLINE IndexVector* GetOrInsertVector(const DexFile* dex) { in GetOrInsertVector()
|
H A D | class_loader_context_test.cc | 615 std::vector<const DexFile*> compilation_sources_raw = in TEST_F() 651 std::vector<const DexFile*> compilation_sources_raw = in TEST_F() 688 std::vector<const DexFile*> compilation_sources_raw = in TEST_F() 706 std::vector<const DexFile*> class_loader_1_dex_files = in TEST_F() 721 std::vector<const DexFile*> class_loader_2_dex_files = in TEST_F() 730 std::vector<const DexFile*> class_loader_3_dex_files = in TEST_F() 758 std::vector<const DexFile*> compilation_sources_raw = in TEST_F() 846 std::vector<const DexFile*> compilation_sources_raw = in TEST_F() 946 std::vector<const DexFile*> compilation_sources_raw = in TEST_F() 1061 std::vector<const DexFile*> compilation_sources_raw = in TEST_F() [all …]
|
/aosp12/art/libprofile/profile/ |
H A D | profile_boot_info_test.cc | 38 std::vector<const DexFile*> dex_files; in TEST_F() 48 std::unique_ptr<const DexFile> dex(OpenTestDexFile("ManyMethods")); in TEST_F() 49 std::vector<const DexFile*> dex_files = { dex.get() }; in TEST_F() 67 std::vector<std::unique_ptr<const DexFile>> dex_files = OpenTestDexFiles("MultiDex"); in TEST_F() 68 std::vector<const DexFile*> dex_files2; in TEST_F() 69 for (const std::unique_ptr<const DexFile>& file : dex_files) { in TEST_F() 96 std::unique_ptr<const DexFile> dex(OpenTestDexFile("ManyMethods")); in TEST_F() 105 std::vector<std::unique_ptr<const DexFile>> dex_files = OpenTestDexFiles("MultiDex"); in TEST_F() 106 std::vector<const DexFile*> dex_files2; in TEST_F() 107 for (const std::unique_ptr<const DexFile>& file : dex_files) { in TEST_F()
|
/aosp12/art/libartbase/base/ |
H A D | common_art_test.h | 44 class DexFile; variable 165 std::vector<std::unique_ptr<const DexFile>> dex_files; in MutateDexFile() 175 const std::unique_ptr<const DexFile>& dex = dex_files[0]; in MutateDexFile() 177 DexFile* dex_file = const_cast<DexFile*>(dex.get()); in MutateDexFile() 232 std::unique_ptr<const DexFile> LoadExpectSingleDexFile(const char* location); 237 std::vector<std::unique_ptr<const DexFile>> OpenDexFiles(const char* filename); 240 std::unique_ptr<const DexFile> OpenDexFile(const char* filename); 243 std::vector<std::unique_ptr<const DexFile>> OpenTestDexFiles(const char* name); 245 std::unique_ptr<const DexFile> OpenTestDexFile(const char* name); 261 const std::vector<std::unique_ptr<const DexFile>>& dex_files); [all …]
|
/aosp12/art/runtime/native/ |
H A D | dalvik_system_DexFile.cc | 338 std::vector<const DexFile*> dex_files; in DexFile_verifyInBackgroundNative() 353 std::vector<const DexFile*> dex_files; in DexFile_closeDexFile() 404 std::vector<const DexFile*> dex_files; in DexFile_defineClassNative() 466 std::vector<const DexFile*> dex_files; in DexFile_getClassNameList() 788 std::vector<const DexFile*> dex_files; in DexFile_isBackedByOatFile() 878 std::vector<const DexFile*> dex_files; in DexFile_getStaticSizeOfDexFile() 903 std::vector<const DexFile*> dex_files; in DexFile_setTrusted() 918 NATIVE_METHOD(DexFile, 927 NATIVE_METHOD(DexFile, getDexOptNeeded, 950 NATIVE_METHOD(DexFile, [all …]
|