Searched refs:StandardDexFile (Results 1 – 15 of 15) sorted by relevance
/art/libdexfile/dex/ |
D | standard_dex_file.cc | 26 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 …]
|
D | code_item_accessors-inl.h | 50 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()
|
D | standard_dex_file.h | 29 class StandardDexFile : public DexFile { 60 friend class StandardDexFile; member 94 StandardDexFile(const uint8_t* base, in StandardDexFile() function 116 DISALLOW_COPY_AND_ASSIGN(StandardDexFile);
|
D | code_item_accessors_test.cc | 40 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()
|
D | dex_file_loader.cc | 157 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()
|
D | dex_file-inl.h | 439 inline const StandardDexFile* DexFile::AsStandardDexFile() const { in AsStandardDexFile() 441 return down_cast<const StandardDexFile*>(this); in AsStandardDexFile()
|
D | test_dex_file_builder.h | 93 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_); in Build() 94 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build()
|
D | dex_file.h | 47 class StandardDexFile; variable 760 ALWAYS_INLINE const StandardDexFile* AsStandardDexFile() const;
|
D | dex_file_verifier_test.cc | 60 return new StandardDexFile(dex_bytes, length, "tmp", 0, nullptr, nullptr); in GetDexFile()
|
D | dex_file_verifier.cc | 333 : sizeof(StandardDexFile::Header); in CheckHeader()
|
/art/compiler/optimizing/ |
D | optimizing_unit_test.h | 132 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/ |
D | dex_writer.cc | 579 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/ |
D | dex_file_ext.cc | 173 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ExtDexFileOpenFromMemory()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 2063 StandardDexFile::WriteMagic(header.magic_); in TEST_F() 2064 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
|
/art/runtime/ |
D | class_linker_test.cc | 1533 std::unique_ptr<DexFile> dex_file(new StandardDexFile(old_dex_file->Begin(), in TEST_F()
|