Home
last modified time | relevance | path

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

12

/art/dexlayout/
Ddex_visualize.h33 class Header; variable
36 void VisualizeDexLayout(dex_ir::Header* header,
41 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index);
Ddex_writer.h31 DexWriter(dex_ir::Header* header, MemMap* mem_map) : header_(header), mem_map_(mem_map) { } in DexWriter()
33 static void Output(dex_ir::Header* header, MemMap* mem_map);
67 dex_ir::Header* const header_;
Ddexlayout.h75 dex_ir::Header*
82 dex_ir::Header* GetHeader() const { return header_; } in GetHeader()
83 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader()
134 dex_ir::Header* header_;
Ddex_ir_builder.cc29 Header* DexIrBuilder(const DexFile& dex_file) { in DexIrBuilder()
30 const DexFile::Header& disk_header = dex_file.GetHeader(); in DexIrBuilder()
31 Header* header = new Header(disk_header.magic_, in DexIrBuilder()
84 const DexFile::Header& disk_header = dex_file.GetHeader(); in CheckAndSetRemainingOffsets()
Ddex_ir_builder.h27 dex_ir::Header* DexIrBuilder(const DexFile& dex_file);
Ddex_visualize.cc47 explicit Dumper(dex_ir::Header* header) in Dumper()
247 void VisualizeDexLayout(dex_ir::Header* header, in VisualizeDexLayout()
306 static uint32_t FindNextByteAfterSection(dex_ir::Header* header, in FindNextByteAfterSection()
321 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index) { in ShowDexSectionStatistics()
Ddex_verify.h29 bool VerifyOutputDexFile(dex_ir::Header* orig_header,
30 dex_ir::Header* output_header,
Ddex_ir.h49 class Header; variable
80 virtual void Dispatch(Header* header) = 0;
389 class Header : public Item {
391 Header(const uint8_t* magic, in Header() function
413 ~Header() OVERRIDE { } in ~Header()
457 DISALLOW_COPY_AND_ASSIGN(Header);
813 MethodItem* GenerateMethodItem(Header& header, ClassDataItemIterator& cdii);
1223 std::vector<DexFileSection> GetSortedDexFileSections(dex_ir::Header* header,
Ddexdiag.cc292 std::unique_ptr<dex_ir::Header> header(dex_ir::DexIrBuilder(*dex_file)); in ProcessOneDexMapping()
Ddex_verify.cc31 bool VerifyOutputDexFile(dex_ir::Header* orig_header, in VerifyOutputDexFile()
32 dex_ir::Header* output_header, in VerifyOutputDexFile()
/art/runtime/
Dvdex_file.h53 struct Header { struct
55 Header(uint32_t number_of_dex_files_,
110 const Header& GetHeader() const { in GetHeader()
111 return *reinterpret_cast<const Header*>(Begin()); in GetHeader()
126 return mmap_->Size() >= sizeof(Header) && GetHeader().IsValid(); in IsValid()
138 return reinterpret_cast<const uint32_t*>(Begin() + sizeof(Header))[dex_file_index]; in GetLocationChecksum()
165 return Begin() + sizeof(Header) + GetSizeOfChecksumsSection(); in DexBegin()
Dvdex_file.cc32 constexpr uint8_t VdexFile::Header::kVdexInvalidMagic[4];
33 constexpr uint8_t VdexFile::Header::kVdexMagic[4];
34 constexpr uint8_t VdexFile::Header::kVdexVersion[4];
36 bool VdexFile::Header::IsMagicValid() const { in IsMagicValid()
40 bool VdexFile::Header::IsVersionValid() const { in IsVersionValid()
44 VdexFile::Header::Header(uint32_t number_of_dex_files, in Header() function in art::VdexFile::Header
123 reinterpret_cast<Header*>(vdex->mmap_->Begin())->quickening_info_size_ = 0; in Open()
137 const uint8_t* data = cursor + reinterpret_cast<const DexFile::Header*>(cursor)->file_size_; in GetNextDexFileData()
151 size_t size = reinterpret_cast<const DexFile::Header*>(dex_file_start)->file_size_; in OpenAllDexFiles()
Ddex_file_verifier_test.cc39 size_t offset = OFFSETOF_MEMBER(DexFile::Header, magic_) + 6; in MakeDexVersion37()
45 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); in FixUpChecksum()
48 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); in FixUpChecksum()
1345 DexFile::Header* header = const_cast<DexFile::Header*>( in TEST_F()
1346 reinterpret_cast<const DexFile::Header*>(dex_file->Begin())); in TEST_F()
1655 DexFile::Header* header = reinterpret_cast<DexFile::Header*>( in TEST_F()
Doat_file.cc285 const DexFile::Header* header = in FindDexFileMapItem()
286 BoundsCheckedCast<const DexFile::Header*>(dex_begin, dex_begin, dex_end); in FindDexFileMapItem()
443 if (UNLIKELY(DexSize() - dex_file_offset < sizeof(DexFile::Header))) { in Setup()
451 sizeof(DexFile::Header)); in Setup()
474 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(dex_file_pointer); in Setup()
606 reinterpret_cast<const DexFile::Header*>(dex_file_pointer)->method_ids_size_); in Setup()
1394 const DexFile::Header* dex_header = reinterpret_cast<const DexFile::Header*>(dex_file_pointer_); in OatDexFile()
1410 return reinterpret_cast<const DexFile::Header*>(dex_file_pointer_)->file_size_; in FileSize()
Ddex_file.cc74 const uint32_t non_sum = OFFSETOF_MEMBER(DexFile::Header, signature_); in CalculateChecksum()
192 if (map->Size() < sizeof(DexFile::Header)) { in Open()
309 if (map->Size() < sizeof(DexFile::Header)) { in OpenFile()
316 const Header* dex_header = reinterpret_cast<const Header*>(map->Begin()); in OpenFile()
354 if (!zip_entry->IsAlignedTo(alignof(Header))) { in OpenOneDexFileFromZip()
358 << "please zipalign to " << alignof(Header) << " bytes. " in OpenOneDexFileFromZip()
533 header_(reinterpret_cast<const Header*>(base)), in DexFile()
550 CHECK_ALIGNED(begin_, alignof(Header)); in DexFile()
634 uint32_t DexFile::Header::GetVersion() const { in GetVersion()
Ddex_file_test.cc278 const DexFile::Header& header = dex_file->GetHeader(); in ValidateDexFileHeader()
304 TEST_F(DexFileTest, Header) { in TEST_F() argument
322 const DexFile::Header& header = raw->GetHeader(); in TEST_F()
Ddex_file_verifier.h206 const DexFile::Header* const header_;
Ddex_file.h72 struct Header { struct
101 DISALLOW_COPY_AND_ASSIGN(Header); argument
524 const Header& GetHeader() const { in GetHeader()
1199 const Header* const header_;
Ddex_file_verifier.cc115 const DexFile::Header* header, in FindMethodName()
388 if (header_->header_size_ != sizeof(DexFile::Header)) { in CheckHeader()
2881 const DexFile::Header* const header, in GetStringOrError()
2903 const DexFile::Header* const header, in GetClassOrError()
2920 const DexFile::Header* const header, in GetFieldDescriptionOrError()
2937 const DexFile::Header* const header, in GetMethodDescriptionOrError()
/art/compiler/utils/
Dtest_dex_file_builder.h85 uint8_t data[sizeof(DexFile::Header)]; in Build()
89 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); in Build()
92 header->header_size_ = sizeof(DexFile::Header); in Build()
101 uint32_t string_ids_offset = sizeof(DexFile::Header); in Build()
219 std::memcpy(&dex_file_data_[0], header_data.data, sizeof(DexFile::Header)); in Build()
228 std::memcpy(&dex_file_data_[0], header_data.data, sizeof(DexFile::Header)); in Build()
/art/runtime/openjdkjvmti/
Dfixed_up_dex_file.cc44 reinterpret_cast<art::DexFile::Header*>(const_cast<uint8_t*>(dex_file->Begin()))->checksum_ = in RecomputeDexChecksum()
Dti_class.cc100 if (map->Size() < sizeof(art::DexFile::Header)) { in MakeSingleDexFile()
107 uint32_t checksum = reinterpret_cast<const art::DexFile::Header*>(map->Begin())->checksum_; in MakeSingleDexFile()
/art/runtime/utils/
Ddex_cache_arrays_layout.h46 const DexFile::Header& header,
Ddex_cache_arrays_layout-inl.h32 const DexFile::Header& header, in DexCacheArraysLayout()
/art/compiler/
Doat_writer.cc68 typedef DexFile::Header __attribute__((aligned(1))) UnalignedDexFileHeader;
494 if (data.size() < sizeof(DexFile::Header)) { in AddRawDexFileSource()
551 vdex_size_ = sizeof(VdexFile::Header) + oat_dex_files_.size() * sizeof(VdexFile::VdexChecksum); in WriteAndOpenDexFiles()
2635 uint8_t raw_header[sizeof(DexFile::Header)]; in ReadDexFileHeader()
2636 if (!file->ReadFully(&raw_header, sizeof(DexFile::Header))) { in ReadDexFileHeader()
2662 if (header->file_size_ < sizeof(DexFile::Header)) { in ValidateDexFileHeader()
2867 if (extracted_size < sizeof(DexFile::Header)) { in WriteDexFile()
3244 off_t actual_offset = vdex_out->Seek(sizeof(VdexFile::Header), kSeekSet); in WriteChecksumsAndVdexHeader()
3245 if (actual_offset != sizeof(VdexFile::Header)) { in WriteChecksumsAndVdexHeader()
3277 VdexFile::Header vdex_header(oat_dex_files_.size(), in WriteChecksumsAndVdexHeader()
[all …]

12