/art/test/983-source-transform-verify/ |
D | source_transform_art.cc | 38 CHECK_GE(static_cast<size_t>(class_data_len), sizeof(DexFile::Header)); in VerifyClassData() 39 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(class_data); in VerifyClassData()
|
/art/libdexfile/dex/ |
D | code_item_accessors_test.cc | 34 CompactDexFile::Header* header = in CreateFakeDex() 35 const_cast<CompactDexFile::Header*>(CompactDexFile::Header::At(data->data())); in CreateFakeDex() 42 auto* header = reinterpret_cast<DexFile::Header*>(data->data()); in CreateFakeDex()
|
D | compact_dex_file.h | 39 class Header : public DexFile::Header { 41 static const Header* At(const void* at) { in At() 42 return reinterpret_cast<const Header*>(at); in At() 289 const Header& GetHeader() const { in GetHeader() 290 return down_cast<const Header&>(DexFile::GetHeader()); in GetHeader()
|
D | dex_file.cc | 77 const uint32_t non_sum_bytes = OFFSETOF_MEMBER(DexFile::Header, signature_); in CalculateChecksum() 100 uint32_t DexFile::Header::GetExpectedHeaderSize() const { in GetExpectedHeaderSize() 102 return version == 0 ? 0 : version < 41 ? sizeof(Header) : sizeof(HeaderV41); in GetExpectedHeaderSize() 105 bool DexFile::Header::HasDexContainer() const { in HasDexContainer() 113 uint32_t DexFile::Header::HeaderOffset() const { in HeaderOffset() 117 uint32_t DexFile::Header::ContainerSize() const { in ContainerSize() 121 void DexFile::Header::SetDexContainer(size_t header_offset, size_t container_size) { in SetDexContainer() 140 if (size < sizeof(Header)) { in GetSection() 162 header_(reinterpret_cast<const Header*>(base)), in DexFile() 182 CHECK_ALIGNED(begin_, alignof(Header)); in DexFile() [all …]
|
D | dex_file_loader_test.cc | 420 const DexFile::Header& header = dex_file->GetHeader(); in ValidateDexFileHeader() 446 TEST_F(DexFileLoaderTest, Header) { in TEST_F() argument 464 const DexFile::Header& header = raw->GetHeader(); in TEST_F() 473 const DexFile::Header& header = raw->GetHeader(); in TEST_F() 482 const DexFile::Header& header = raw->GetHeader(); in TEST_F() 491 const DexFile::Header& header = raw->GetHeader(); in TEST_F() 514 const DexFile::Header& header = raw->GetHeader(); in TEST_F()
|
D | compact_dex_file.cc | 66 Header temp_header(*Header::At(base_begin)); in CalculateChecksum()
|
D | standard_dex_file.h | 34 class Header : public DexFile::Header {
|
D | test_dex_file_builder.h | 86 uint8_t data[sizeof(DexFile::Header)]; 90 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); 93 header->header_size_ = sizeof(DexFile::Header); 102 uint32_t string_ids_offset = sizeof(DexFile::Header); 224 std::memcpy(&dex_file_data[0], header_data.data, sizeof(DexFile::Header)); 233 std::memcpy(&dex_file_data[0], header_data.data, sizeof(DexFile::Header));
|
D | dex_file_loader.cc | 195 if (!(zip_entry->IsUncompressed() && zip_entry->IsAlignedTo(alignof(DexFile::Header)))) { in GetMultiDexChecksum() 209 const auto* header = reinterpret_cast<const DexFile::Header*>(ptr); in GetMultiDexChecksum() 458 auto header = reinterpret_cast<const DexFile::Header*>(base); in OpenCommon() 459 if (size >= sizeof(StandardDexFile::Header) && StandardDexFile::IsMagicValid(base)) { in OpenCommon() 462 } else if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(base)) { in OpenCommon() 518 if (!zip_entry->IsAlignedTo(alignof(DexFile::Header))) { in OpenFromZipEntry() 522 << "please zipalign to " << alignof(DexFile::Header) << " bytes. " in OpenFromZipEntry()
|
D | dex_file_verifier_test.cc | 44 size_t offset = OFFSETOF_MEMBER(DexFile::Header, magic_) + 6; in MakeDexVersion37() 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() 1319 DexFile::Header* header = const_cast<DexFile::Header*>( in TEST_F() 1320 reinterpret_cast<const DexFile::Header*>(dex_file->Begin())); in TEST_F() 1625 DexFile::Header* header = reinterpret_cast<DexFile::Header*>( in TEST_F()
|
D | dex_file.h | 140 struct Header { struct 187 struct HeaderV41 : public Header { 285 const Header& GetHeader() const { in GetHeader() 864 static constexpr uint32_t kNumNonChecksumBytes = OFFSETOF_MEMBER(DexFile::Header, signature_); 972 const Header* const header_;
|
/art/libdexfile/external/ |
D | dex_file_supp_test.cc | 42 size_t size = sizeof(art::DexFile::Header) - 1; in TEST() 48 EXPECT_EQ(size, sizeof(art::DexFile::Header)); in TEST() 53 size_t size = sizeof(art::DexFile::Header); in TEST()
|
D | dex_file_ext.cc | 150 if (size < sizeof(art::DexFile::Header)) { in ADexFile_create() 152 *new_size = sizeof(art::DexFile::Header); in ADexFile_create() 157 const art::DexFile::Header* header = reinterpret_cast<const art::DexFile::Header*>(address); in ADexFile_create() 226 const art::CompactDexFile::Header& cdex_header = in ADexFile_findMethodAtOffset()
|
D | dex_file_ext_test.cc | 56 size_t size = sizeof(art::DexFile::Header) - 1; in TEST_F() 58 EXPECT_EQ(size, sizeof(art::DexFile::Header)); in TEST_F() 63 size_t size = sizeof(art::DexFile::Header); in TEST_F()
|
/art/libartbase/base/ |
D | common_art_test.h | 192 CHECK_GE(copy.size(), sizeof(DexFile::Header)); in MutateDexFile() 193 reinterpret_cast<DexFile::Header*>(copy.data())->checksum_ = checksum; in MutateDexFile()
|
/art/runtime/oat/ |
D | oat_file.cc | 510 static bool ComputeAndCheckTypeLookupTableData(const DexFile::Header& header, in ComputeAndCheckTypeLookupTableData() 906 if (UNLIKELY(DexSize() - dex_file_offset < sizeof(DexFile::Header))) { in Setup() 913 sizeof(DexFile::Header)); in Setup() 933 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(dex_file_pointer); in Setup() 1745 if (UNLIKELY(!vdex_file->Contains(dex_file_start, sizeof(DexFile::Header)))) { in Open() 1751 sizeof(DexFile::Header), in Open() 1756 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(dex_file_start); in Open() 2201 auto* dex_header = reinterpret_cast<const DexFile::Header*>(dex_file_pointer_); in InitializeTypeLookupTable() 2254 return reinterpret_cast<const DexFile::Header*>(dex_file_pointer_)->file_size_; in FileSize() 2535 const DexFile::Header* header = in InitializeRelocations() [all …]
|
D | oat_file_manager.cc | 494 static std::vector<const DexFile::Header*> GetDexFileHeaders(const std::vector<MemMap>& maps) { in GetDexFileHeaders() 495 std::vector<const DexFile::Header*> headers; in GetDexFileHeaders() 499 headers.push_back(reinterpret_cast<const DexFile::Header*>(map.Begin())); in GetDexFileHeaders() 545 const std::vector<const DexFile::Header*> dex_headers = GetDexFileHeaders(dex_mem_maps); in OpenDexFilesFromOat_Impl()
|
D | oat_file_assistant.h | 354 static bool AnonymousDexVdexLocation(const std::vector<const DexFile::Header*>& dex_headers,
|
D | oat_file_assistant.cc | 553 bool OatFileAssistant::AnonymousDexVdexLocation(const std::vector<const DexFile::Header*>& headers, in AnonymousDexVdexLocation() 563 for (const DexFile::Header* header : headers) { in AnonymousDexVdexLocation()
|
/art/tools/hiddenapi/ |
D | hiddenapi.cc | 289 DexFile::Header* header = const_cast<DexFile::Header*>(&dex_file->GetHeader()); in UpdateDexChecksums() 726 auto* header = reinterpret_cast<DexFile::Header*>(begin); in WriteTo() 736 size_t sha1_start = offsetof(DexFile::Header, file_size_); in WriteTo()
|
/art/runtime/ |
D | vdex_file.h | 296 bool MatchesDexFileChecksums(const std::vector<const DexFile::Header*>& dex_headers) const;
|
D | vdex_file.cc | 192 const uint8_t* data = cursor + reinterpret_cast<const DexFile::Header*>(cursor)->file_size_; in GetNextDexFileData() 370 bool VdexFile::MatchesDexFileChecksums(const std::vector<const DexFile::Header*>& dex_headers) in MatchesDexFileChecksums()
|
D | common_runtime_test.h | 103 const_cast<DexFile::Header&>(dex_file->GetHeader()).checksum_ = dex_file->CalculateChecksum(); in MutateDexFile()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 1513 DexFile::Header header = {}; in TEST_F() 1552 LegacyCompactDexFile::Header header = {}; in TEST_F() 1555 header.file_size_ = sizeof(LegacyCompactDexFile::Header); in TEST_F() 1659 DexFile::Header* header = const_cast<DexFile::Header*>(&dex->GetHeader()); in TEST_F()
|
/art/runtime/jit/ |
D | debugger_interface.cc | 423 const DexFile::Header& header = dexfile->GetHeader(); in AddNativeDebugInfoForDex()
|