Home
last modified time | relevance | path

Searched refs:Header (Results 1 – 25 of 36) sorted by relevance

12

/art/test/983-source-transform-verify/
Dsource_transform_art.cc38 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/
Dcode_item_accessors_test.cc34 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()
Dcompact_dex_file.h39 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()
Ddex_file.cc77 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 …]
Ddex_file_loader_test.cc420 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()
Dcompact_dex_file.cc66 Header temp_header(*Header::At(base_begin)); in CalculateChecksum()
Dstandard_dex_file.h34 class Header : public DexFile::Header {
Dtest_dex_file_builder.h86 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));
Ddex_file_loader.cc195 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()
Ddex_file_verifier_test.cc44 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()
Ddex_file.h140 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/
Ddex_file_supp_test.cc42 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()
Ddex_file_ext.cc150 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()
Ddex_file_ext_test.cc56 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/
Dcommon_art_test.h192 CHECK_GE(copy.size(), sizeof(DexFile::Header)); in MutateDexFile()
193 reinterpret_cast<DexFile::Header*>(copy.data())->checksum_ = checksum; in MutateDexFile()
/art/runtime/oat/
Doat_file.cc510 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 …]
Doat_file_manager.cc494 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()
Doat_file_assistant.h354 static bool AnonymousDexVdexLocation(const std::vector<const DexFile::Header*>& dex_headers,
Doat_file_assistant.cc553 bool OatFileAssistant::AnonymousDexVdexLocation(const std::vector<const DexFile::Header*>& headers, in AnonymousDexVdexLocation()
563 for (const DexFile::Header* header : headers) { in AnonymousDexVdexLocation()
/art/tools/hiddenapi/
Dhiddenapi.cc289 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/
Dvdex_file.h296 bool MatchesDexFileChecksums(const std::vector<const DexFile::Header*>& dex_headers) const;
Dvdex_file.cc192 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()
Dcommon_runtime_test.h103 const_cast<DexFile::Header&>(dex_file->GetHeader()).checksum_ = dex_file->CalculateChecksum(); in MutateDexFile()
/art/dex2oat/
Ddex2oat_test.cc1513 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/
Ddebugger_interface.cc423 const DexFile::Header& header = dexfile->GetHeader(); in AddNativeDebugInfoForDex()

12