Home
last modified time | relevance | path

Searched refs:StandardDexFile (Results 1 – 15 of 15) 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] = {
39 void StandardDexFile::WriteMagic(uint8_t* magic) { in WriteMagic()
43 void StandardDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion()
44 std::copy_n(kDexMagicVersions[StandardDexFile::kDexVersionLen - 1], in WriteCurrentVersion()
49 bool StandardDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid()
53 bool StandardDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid()
63 bool StandardDexFile::IsMagicValid() const { in IsMagicValid()
67 bool StandardDexFile::IsVersionValid() const { in IsVersionValid()
[all …]
Dcode_item_accessors-inl.h50 inline void CodeItemInstructionAccessor::Init<StandardDexFile::CodeItem>(
51 const StandardDexFile::CodeItem& code_item) {
63 Init(down_cast<const StandardDexFile::CodeItem&>(*code_item)); in Init()
103 inline void CodeItemDataAccessor::Init<StandardDexFile::CodeItem>(
104 const StandardDexFile::CodeItem& code_item) {
119 Init(down_cast<const StandardDexFile::CodeItem&>(*code_item)); in Init()
179 inline void CodeItemDebugInfoAccessor::Init<StandardDexFile::CodeItem>(
180 const StandardDexFile::CodeItem& code_item,
197 Init(down_cast<const StandardDexFile::CodeItem&>(*code_item), dex_method_index); in Init()
Dstandard_dex_file.h29 class StandardDexFile : public DexFile {
60 friend class StandardDexFile; member
94 StandardDexFile(const uint8_t* base, in StandardDexFile() function
116 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.h439 inline const StandardDexFile* DexFile::AsStandardDexFile() const { in AsStandardDexFile()
441 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.h47 class StandardDexFile; variable
760 ALWAYS_INLINE const StandardDexFile* AsStandardDexFile() const;
Ddex_file_verifier_test.cc60 return new StandardDexFile(dex_bytes, length, "tmp", 0, nullptr, nullptr); in GetDexFile()
Ddex_file_verifier.cc333 : sizeof(StandardDexFile::Header); in CheckHeader()
/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);
184 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()
802 StandardDexFile::kDexMagicSize + StandardDexFile::kDexVersionLen; in WriteHeader()
835 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.cc2063 StandardDexFile::WriteMagic(header.magic_); in TEST_F()
2064 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
/art/runtime/
Dclass_linker_test.cc1533 std::unique_ptr<DexFile> dex_file(new StandardDexFile(old_dex_file->Begin(), in TEST_F()