Searched refs:StandardDexFile (Results 1 – 16 of 16) 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] = { 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 …]
|
D | code_item_accessors-inl.h | 51 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()
|
D | standard_dex_file.h | 29 class StandardDexFile : public DexFile { 76 friend class StandardDexFile; member 114 StandardDexFile(const uint8_t* base, in StandardDexFile() function 136 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 | 440 inline const StandardDexFile* DexFile::AsStandardDexFile() const { in AsStandardDexFile() 442 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 | 46 class StandardDexFile; variable 763 ALWAYS_INLINE const StandardDexFile* AsStandardDexFile() const;
|
D | dex_file_verifier_test.cc | 62 return new StandardDexFile(dex_bytes, length, "tmp", 0, nullptr, nullptr); in GetDexFile()
|
D | dex_file_verifier.cc | 604 : sizeof(StandardDexFile::Header); in CheckHeader()
|
/art/tools/cpp-define-generator/ |
D | code_item.def | 22 art::StandardDexFile::CodeItem::RegistersSizeOffset()) 24 art::StandardDexFile::CodeItem::InsSizeOffset()) 26 art::StandardDexFile::CodeItem::OutsSizeOffset()) 28 art::StandardDexFile::CodeItem::InsnsOffset())
|
/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); 206 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() 800 StandardDexFile::WriteVersionBeforeDefaultMethods(header.magic_); in WriteHeader() 805 StandardDexFile::kDexMagicSize + StandardDexFile::kDexVersionLen; in WriteHeader() 838 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 | 2095 StandardDexFile::WriteMagic(header.magic_); in TEST_F() 2096 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
|
/art/runtime/ |
D | class_linker_test.cc | 1540 std::unique_ptr<DexFile> dex_file(new StandardDexFile(old_dex_file->Begin(), in TEST_F()
|