/art/dexlayout/ |
D | dex_ir.cc | 33 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 …]
|
D | dex_visualize.h | 33 class Header; variable 36 void VisualizeDexLayout(dex_ir::Header* header, 41 void ShowDexSectionStatistics(dex_ir::Header* header, size_t dex_file_index);
|
D | dexlayout.h | 108 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_;
|
D | dex_ir_builder.h | 32 dex_ir::Header* DexIrBuilder(const DexFile& dex_file,
|
D | dex_visualize.cc | 49 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()
|
D | dex_verify.h | 29 bool VerifyOutputDexFile(dex_ir::Header* orig_header, 30 dex_ir::Header* output_header,
|
/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/external/ |
D | dex_file_ext.cc | 151 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()
|
D | dex_file_supp_test.cc | 110 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/ |
D | compact_dex_file.h | 36 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()
|
D | code_item_accessors_test.cc | 33 CompactDexFile::Header* header = in CreateFakeDex() 34 const_cast<CompactDexFile::Header*>(CompactDexFile::Header::At(data->data())); in CreateFakeDex()
|
D | standard_dex_file.h | 31 class Header : public DexFile::Header {
|
D | compact_dex_file.cc | 69 Header temp_header(*Header::At(base_begin)); in CalculateChecksum()
|
D | art_dex_file_loader.cc | 132 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()
|
D | dex_file_loader.cc | 296 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()
|
D | dex_file_loader_test.cc | 282 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()
|
D | test_dex_file_builder.h | 88 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()
|
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() 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()
|
D | dex_file.cc | 69 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/ |
D | common_art_test.h | 114 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/ |
D | dex_cache_arrays_layout.h | 46 const DexFile::Header& header,
|
/art/openjdkjvmti/ |
D | fixed_up_dex_file.cc | 50 reinterpret_cast<art::DexFile::Header*>(const_cast<uint8_t*>(dex_file->Begin()))->checksum_ = in RecomputeDexChecksum()
|
/art/runtime/ |
D | vdex_file.cc | 211 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()
|
D | oat_file_manager.cc | 698 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/ |
D | hiddenapi.cc | 266 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_;
|