Home
last modified time | relevance | path

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

123

/art/dexlayout/
Ddex_ir.cc33 static uint32_t HeaderOffset(const dex_ir::Header* header ATTRIBUTE_UNUSED) { in HeaderOffset()
37 static uint32_t HeaderSize(const dex_ir::Header* header ATTRIBUTE_UNUSED) { in HeaderSize()
48 std::function<uint32_t(dex_ir::Header*)> size_fn;
50 std::function<uint32_t(dex_ir::Header*)> offset_fn;
62 [](const dex_ir::Header* h) { return h->StringIds().Size(); }, in __anon0e6c32920102()
63 [](const dex_ir::Header* h) { return h->StringIds().GetOffset(); } in __anon0e6c32920202()
67 [](const dex_ir::Header* h) { return h->TypeIds().Size(); }, in __anon0e6c32920302()
68 [](const dex_ir::Header* h) { return h->TypeIds().GetOffset(); } in __anon0e6c32920402()
72 [](const dex_ir::Header* h) { return h->ProtoIds().Size(); }, in __anon0e6c32920502()
73 [](const dex_ir::Header* h) { return h->ProtoIds().GetOffset(); } in __anon0e6c32920602()
[all …]
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);
Ddexlayout.h108 dex_ir::Header* header) in DexLayout()
121 dex_ir::Header* GetHeader() const { return header_; } in GetHeader()
122 void SetHeader(dex_ir::Header* header) { header_ = header; } in SetHeader()
192 dex_ir::Header* header_;
Ddex_ir_builder.h32 dex_ir::Header* DexIrBuilder(const DexFile& dex_file,
Ddex_visualize.cc49 explicit Dumper(dex_ir::Header* header) in Dumper()
245 void VisualizeDexLayout(dex_ir::Header* header, in VisualizeDexLayout()
304 static uint32_t FindNextByteAfterSection(dex_ir::Header* header, in FindNextByteAfterSection()
319 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,
/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/external/
Ddex_file_ext.cc151 if (*size < sizeof(art::DexFile::Header)) { in ExtDexFileOpenFromMemory()
152 *size = sizeof(art::DexFile::Header); in ExtDexFileOpenFromMemory()
157 const art::DexFile::Header* header = reinterpret_cast<const art::DexFile::Header*>(addr); in ExtDexFileOpenFromMemory()
227 if (length < offset + sizeof(art::DexFile::Header)) { in ExtDexFileOpenFromFd()
246 const art::DexFile::Header* header = reinterpret_cast<const art::DexFile::Header*>(map->data()); in ExtDexFileOpenFromFd()
297 const art::CompactDexFile::Header& cdex_header = in ExtDexFileGetMethodInfoForOffset()
Ddex_file_supp_test.cc110 size_t size = sizeof(art::DexFile::Header) - 1; in TEST()
113 EXPECT_EQ(size, sizeof(art::DexFile::Header)); in TEST()
118 size_t size = sizeof(art::DexFile::Header); in TEST()
140 ASSERT_EQ(sizeof(art::DexFile::Header) - 1, in TEST()
142 TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(art::DexFile::Header) - 1)))); in TEST()
152 ASSERT_EQ(sizeof(art::DexFile::Header), in TEST()
154 TEMP_FAILURE_RETRY(write(tf.fd, kDexData, sizeof(art::DexFile::Header))))); in TEST()
/art/libdexfile/dex/
Dcompact_dex_file.h36 class Header : public DexFile::Header {
38 static const Header* At(const void* at) { in At()
39 return reinterpret_cast<const Header*>(at); in At()
268 const Header& GetHeader() const { in GetHeader()
269 return down_cast<const Header&>(DexFile::GetHeader()); in GetHeader()
Dcode_item_accessors_test.cc33 CompactDexFile::Header* header = in CreateFakeDex()
34 const_cast<CompactDexFile::Header*>(CompactDexFile::Header::At(data->data())); in CreateFakeDex()
Dstandard_dex_file.h31 class Header : public DexFile::Header {
Dcompact_dex_file.cc69 Header temp_header(*Header::At(base_begin)); in CalculateChecksum()
Dart_dex_file_loader.cc132 if (!(zip_entry->IsUncompressed() && zip_entry->IsAlignedTo(alignof(DexFile::Header)))) { in GetMultiDexChecksums()
194 if (size < sizeof(DexFile::Header)) { in Open()
349 if (size < sizeof(DexFile::Header)) { in OpenFile()
356 const DexFile::Header* dex_header = reinterpret_cast<const DexFile::Header*>(begin); in OpenFile()
403 if (!zip_entry->IsAlignedTo(alignof(DexFile::Header))) { in OpenOneDexFileFromZip()
407 << "please zipalign to " << alignof(DexFile::Header) << " bytes. " in OpenOneDexFileFromZip()
Ddex_file_loader.cc296 const DexFile::Header* dex_header = reinterpret_cast<const DexFile::Header*>(base); in OpenAll()
332 if (size >= sizeof(StandardDexFile::Header) && StandardDexFile::IsMagicValid(base)) { in OpenCommon()
342 } else if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(base)) { in OpenCommon()
347 const CompactDexFile::Header* const header = CompactDexFile::Header::At(base); in OpenCommon()
Ddex_file_loader_test.cc282 const DexFile::Header& header = dex_file->GetHeader(); in ValidateDexFileHeader()
308 TEST_F(DexFileLoaderTest, Header) { in TEST_F() argument
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()
Dtest_dex_file_builder.h88 uint8_t data[sizeof(DexFile::Header)]; in Build()
92 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(&header_data.data); in Build()
95 header->header_size_ = sizeof(DexFile::Header); in Build()
104 uint32_t string_ids_offset = sizeof(DexFile::Header); in Build()
222 std::memcpy(&dex_file_data_[0], header_data.data, sizeof(DexFile::Header)); in Build()
231 std::memcpy(&dex_file_data_[0], header_data.data, sizeof(DexFile::Header)); in Build()
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()
1326 DexFile::Header* header = const_cast<DexFile::Header*>( in TEST_F()
1327 reinterpret_cast<const DexFile::Header*>(dex_file->Begin())); in TEST_F()
1636 DexFile::Header* header = reinterpret_cast<DexFile::Header*>( in TEST_F()
Ddex_file.cc69 const uint32_t non_sum_bytes = OFFSETOF_MEMBER(DexFile::Header, signature_); in CalculateChecksum()
112 header_(reinterpret_cast<const Header*>(base)), in DexFile()
133 CHECK_ALIGNED(begin_, alignof(Header)); in DexFile()
208 uint32_t DexFile::Header::GetVersion() const { in GetVersion()
/art/libartbase/base/
Dcommon_art_test.h114 CompactDexFile::Header* header = in CreateFakeDex()
115 const_cast<CompactDexFile::Header*>(CompactDexFile::Header::At(storage->data())); in CreateFakeDex()
218 const_cast<DexFile::Header&>(dex_file->GetHeader()).checksum_ = dex_file->CalculateChecksum(); in MutateDexFile()
/art/runtime/utils/
Ddex_cache_arrays_layout.h46 const DexFile::Header& header,
/art/openjdkjvmti/
Dfixed_up_dex_file.cc50 reinterpret_cast<art::DexFile::Header*>(const_cast<uint8_t*>(dex_file->Begin()))->checksum_ = in RecomputeDexChecksum()
/art/runtime/
Dvdex_file.cc211 const uint8_t* data = cursor + reinterpret_cast<const DexFile::Header*>(cursor)->file_size_; in GetNextDexFileData()
231 size_t size = reinterpret_cast<const DexFile::Header*>(dex_file_start)->file_size_; in OpenAllDexFiles()
465 bool VdexFile::MatchesDexFileChecksums(const std::vector<const DexFile::Header*>& dex_headers) in MatchesDexFileChecksums()
Doat_file_manager.cc698 static std::vector<const DexFile::Header*> GetDexFileHeaders(const std::vector<MemMap>& maps) { in GetDexFileHeaders()
699 std::vector<const DexFile::Header*> headers; in GetDexFileHeaders()
703 headers.push_back(reinterpret_cast<const DexFile::Header*>(map.Begin())); in GetDexFileHeaders()
708 static std::vector<const DexFile::Header*> GetDexFileHeaders( in GetDexFileHeaders()
710 std::vector<const DexFile::Header*> headers; in GetDexFileHeaders()
759 const std::vector<const DexFile::Header*> dex_headers = GetDexFileHeaders(dex_mem_maps); in OpenDexFilesFromOat_Impl()
/art/tools/hiddenapi/
Dhiddenapi.cc266 DexFile::Header* header = const_cast<DexFile::Header*>(&dex_file->GetHeader()); in UpdateDexChecksums()
745 loaded_dex_header_ = const_cast<DexFile::Header*>(&loaded_dex_->GetHeader()); in ReloadDex()
749 DexFile::Header& GetHeader() const { in GetHeader()
774 DexFile::Header& header = GetHeader(); in UpdateDataSize()
856 DexFile::Header* loaded_dex_header_;

123