Home
last modified time | relevance | path

Searched refs:StandardDexFile (Results 1 – 16 of 16) sorted by relevance

/art/libdexfile/dex/
Dstandard_dex_file.cc26 const uint8_t StandardDexFile::kDexMagic[] = { 'd', 'e', 'x', '\n' };
27 const uint8_t StandardDexFile::kDexMagicVersions[StandardDexFile::kNumDexVersions]
28 [StandardDexFile::kDexVersionLen] = {
41 void StandardDexFile::WriteMagic(uint8_t* magic) { in WriteMagic()
45 void StandardDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion()
46 std::copy_n(kDexMagicVersions[StandardDexFile::kDexVersionLen - 1], in WriteCurrentVersion()
52 void StandardDexFile::WriteVersionBeforeDefaultMethods(uint8_t* magic) { in WriteVersionBeforeDefaultMethods()
56 bool StandardDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid()
60 bool StandardDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid()
70 bool StandardDexFile::IsMagicValid() const { in IsMagicValid()
[all …]
Dcode_item_accessors-inl.h51 inline void CodeItemInstructionAccessor::Init<StandardDexFile::CodeItem>(
52 const StandardDexFile::CodeItem& code_item) {
64 Init(down_cast<const StandardDexFile::CodeItem&>(*code_item)); in Init()
104 inline void CodeItemDataAccessor::Init<StandardDexFile::CodeItem>(
105 const StandardDexFile::CodeItem& code_item) {
120 Init(down_cast<const StandardDexFile::CodeItem&>(*code_item)); in Init()
180 inline void CodeItemDebugInfoAccessor::Init<StandardDexFile::CodeItem>(
181 const StandardDexFile::CodeItem& code_item,
198 Init(down_cast<const StandardDexFile::CodeItem&>(*code_item), dex_method_index); in Init()
Dstandard_dex_file.h29 class StandardDexFile : public DexFile {
76 friend class StandardDexFile; member
114 StandardDexFile(const uint8_t* base, in StandardDexFile() function
136 DISALLOW_COPY_AND_ASSIGN(StandardDexFile);
Dcode_item_accessors_test.cc40 StandardDexFile::WriteMagic(data->data()); in CreateFakeDex()
41 StandardDexFile::WriteCurrentVersion(data->data()); in CreateFakeDex()
91 StandardDexFile::CodeItem* dex_code_item = in TEST()
92 reinterpret_cast<StandardDexFile::CodeItem*>(const_cast<uint8_t*>(standard_dex->Begin())); in TEST()
Ddex_file_loader.cc157 return StandardDexFile::IsMagicValid(magic) || in IsMagicValid()
162 if (StandardDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
163 return StandardDexFile::IsVersionValid(magic); in IsVersionAndMagicValid()
332 if (size >= sizeof(StandardDexFile::Header) && StandardDexFile::IsMagicValid(base)) { in OpenCommon()
336 dex_file.reset(new StandardDexFile(base, in OpenCommon()
Ddex_file-inl.h440 inline const StandardDexFile* DexFile::AsStandardDexFile() const { in AsStandardDexFile()
442 return down_cast<const StandardDexFile*>(this); in AsStandardDexFile()
Dtest_dex_file_builder.h93 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_); in Build()
94 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build()
Ddex_file.h46 class StandardDexFile; variable
763 ALWAYS_INLINE const StandardDexFile* AsStandardDexFile() const;
Ddex_file_verifier_test.cc62 return new StandardDexFile(dex_bytes, length, "tmp", 0, nullptr, nullptr); in GetDexFile()
Ddex_file_verifier.cc604 : sizeof(StandardDexFile::Header); in CheckHeader()
/art/tools/cpp-define-generator/
Dcode_item.def22 art::StandardDexFile::CodeItem::RegistersSizeOffset())
24 art::StandardDexFile::CodeItem::InsSizeOffset())
26 art::StandardDexFile::CodeItem::OutsSizeOffset())
28 art::StandardDexFile::CodeItem::InsnsOffset())
/art/compiler/optimizing/
Doptimizing_unit_test.h132 dex_files_.emplace_back(new StandardDexFile( in CreateGraph()
134 sizeof(StandardDexFile::Header), in CreateGraph()
157 CHECK_ALIGNED(aligned_data, StandardDexFile::CodeItem::kAlignment);
206 std::vector<std::unique_ptr<const StandardDexFile>> dex_files_;
/art/dexlayout/
Ddex_writer.cc579 StandardDexFile::CodeItem disk_code_item; in WriteCodeItem()
592 stream->Write(&disk_code_item, OFFSETOF_MEMBER(StandardDexFile::CodeItem, insns_)); in WriteCodeItem()
794 StandardDexFile::Header header; in WriteHeader()
796 StandardDexFile::WriteMagic(header.magic_); in WriteHeader()
798 StandardDexFile::WriteCurrentVersion(header.magic_); in WriteHeader()
800 StandardDexFile::WriteVersionBeforeDefaultMethods(header.magic_); in WriteHeader()
805 StandardDexFile::kDexMagicSize + StandardDexFile::kDexVersionLen; in WriteHeader()
838 return sizeof(StandardDexFile::Header); in GetHeaderSize()
/art/libdexfile/external/
Ddex_file_ext.cc173 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ExtDexFileOpenFromMemory()
/art/dex2oat/
Ddex2oat_test.cc2095 StandardDexFile::WriteMagic(header.magic_); in TEST_F()
2096 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
/art/runtime/
Dclass_linker_test.cc1540 std::unique_ptr<DexFile> dex_file(new StandardDexFile(old_dex_file->Begin(), in TEST_F()