Searched refs:CompactDexFile (Results 1 – 16 of 16) sorted by relevance
/art/libdexfile/dex/ |
D | compact_dex_file.cc | 25 constexpr uint8_t CompactDexFile::kDexMagic[kDexMagicSize]; 26 constexpr uint8_t CompactDexFile::kDexMagicVersion[]; 28 void CompactDexFile::WriteMagic(uint8_t* magic) { in WriteMagic() 32 void CompactDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion() 36 bool CompactDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() 40 bool CompactDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid() 45 bool CompactDexFile::IsMagicValid() const { in IsMagicValid() 49 bool CompactDexFile::IsVersionValid() const { in IsVersionValid() 53 bool CompactDexFile::SupportsDefaultMethods() const { in SupportsDefaultMethods() 58 uint32_t CompactDexFile::GetCodeItemSize(const DexFile::CodeItem& item) const { in GetCodeItemSize() [all …]
|
D | compact_dex_file_test.cc | 28 static const size_t len = CompactDexFile::kDexVersionLen + CompactDexFile::kDexMagicSize; in TEST() 34 CompactDexFile::WriteMagic(header); in TEST() 37 CompactDexFile::WriteCurrentVersion(header); in TEST() 39 EXPECT_EQ(valid_magic, CompactDexFile::IsMagicValid(header)); in TEST() 40 EXPECT_EQ(valid_version, CompactDexFile::IsVersionValid(header)); in TEST() 54 uint16_t buffer[sizeof(CompactDexFile::CodeItem) + in TEST() 55 CompactDexFile::CodeItem::kMaxPreHeaderSize] = {}; in TEST() 56 CompactDexFile::CodeItem* code_item = reinterpret_cast<CompactDexFile::CodeItem*>( in TEST() 57 &buffer[CompactDexFile::CodeItem::kMaxPreHeaderSize]); in TEST()
|
D | code_item_accessors_test.cc | 33 CompactDexFile::Header* header = in CreateFakeDex() 34 const_cast<CompactDexFile::Header*>(CompactDexFile::Header::At(data->data())); in CreateFakeDex() 35 CompactDexFile::WriteMagic(header->magic_); in CreateFakeDex() 36 CompactDexFile::WriteCurrentVersion(header->magic_); in CreateFakeDex() 100 CompactDexFile::CodeItem* cdex_code_item = in TEST() 101 reinterpret_cast<CompactDexFile::CodeItem*>(const_cast<uint8_t*>(compact_dex->Begin() + in TEST() 102 CompactDexFile::CodeItem::kMaxPreHeaderSize * sizeof(uint16_t))); in TEST()
|
D | code_item_accessors-inl.h | 35 inline void CodeItemInstructionAccessor::Init(const CompactDexFile::CodeItem& code_item) { in Init() 55 Init(down_cast<const CompactDexFile::CodeItem&>(*code_item)); in Init() 85 inline void CodeItemDataAccessor::Init(const CompactDexFile::CodeItem& code_item) { in Init() 107 CodeItemDataAccessor::Init(down_cast<const CompactDexFile::CodeItem&>(*code_item)); in Init() 168 Init(down_cast<const CompactDexFile::CodeItem&>(*code_item), dex_method_index); in Init() 175 inline void CodeItemDebugInfoAccessor::Init(const CompactDexFile::CodeItem& code_item, in Init() 177 debug_info_offset_ = down_cast<const CompactDexFile*>(dex_file_)->GetDebugInfoOffset( in Init()
|
D | code_item_accessors.h | 69 ALWAYS_INLINE void Init(const CompactDexFile::CodeItem& code_item); 114 ALWAYS_INLINE void Init(const CompactDexFile::CodeItem& code_item); 156 ALWAYS_INLINE void Init(const CompactDexFile::CodeItem& code_item, uint32_t dex_method_index);
|
D | compact_dex_file.h | 27 class CompactDexFile : public DexFile { 80 friend class CompactDexFile; variable 243 friend class CompactDexFile; member 287 CompactDexFile(const uint8_t* base, 300 DISALLOW_COPY_AND_ASSIGN(CompactDexFile);
|
D | dex_file_loader.cc | 162 CompactDexFile::IsMagicValid(magic); in IsMagicValid() 169 if (CompactDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid() 170 return CompactDexFile::IsVersionValid(magic); in IsVersionAndMagicValid() 336 } else if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(base)) { in OpenCommon() 341 const CompactDexFile::Header* const header = CompactDexFile::Header::At(base); in OpenCommon() 345 dex_file.reset(new CompactDexFile(base, in OpenCommon()
|
D | dex_file-inl.h | 499 inline const CompactDexFile* DexFile::AsCompactDexFile() const { in AsCompactDexFile() 501 return down_cast<const CompactDexFile*>(this); in AsCompactDexFile()
|
D | dex_file.h | 39 class CompactDexFile; variable 993 ALWAYS_INLINE const CompactDexFile* AsCompactDexFile() const;
|
D | dex_file_verifier.cc | 389 ? sizeof(CompactDexFile::Header) in CheckHeader()
|
/art/dexlayout/ |
D | compact_dex_writer.cc | 148 CompactDexFile::CodeItem::kAlignment, in WriteCodeItem() 151 CompactDexFile::CodeItem disk_code_item; in WriteCodeItem() 153 uint16_t preheader_storage[CompactDexFile::CodeItem::kMaxPreHeaderSize] = {}; in WriteCodeItem() 154 uint16_t* preheader_end = preheader_storage + CompactDexFile::CodeItem::kMaxPreHeaderSize; in WriteCodeItem() 196 stream->Write(&disk_code_item, OFFSETOF_MEMBER(CompactDexFile::CodeItem, insns_)); in WriteCodeItem() 273 CompactDexFile::Header header; in WriteHeader() 274 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader() 275 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); in WriteHeader() 312 header.feature_flags_ |= static_cast<uint32_t>(CompactDexFile::FeatureFlags::kDefaultMethods); in WriteHeader() 319 return sizeof(CompactDexFile::Header); in GetHeaderSize() [all …]
|
D | dex_writer.cc | 747 if (CompactDexFile::IsMagicValid(header_->Magic())) { in WriteHeader()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 1501 std::vector<std::unique_ptr<const CompactDexFile>> compact_dex_files; in TEST_F() 1507 std::unique_ptr<const CompactDexFile>(dex_file.release()->AsCompactDexFile())); in TEST_F() 1509 for (const std::unique_ptr<const CompactDexFile>& dex_file : compact_dex_files) { in TEST_F() 1511 const CompactDexFile::Header& header = dex_file->GetHeader(); in TEST_F() 1525 for (const std::unique_ptr<const CompactDexFile>& other_dex : compact_dex_files) { in TEST_F() 2062 CompactDexFile::Header header = {}; in TEST_F() 2063 CompactDexFile::WriteMagic(header.magic_); in TEST_F() 2064 CompactDexFile::WriteCurrentVersion(header.magic_); in TEST_F() 2065 header.file_size_ = sizeof(CompactDexFile::Header); in TEST_F()
|
/art/runtime/ |
D | oat_file.cc | 1720 if (CompactDexFile::IsMagicValid(dex_header->magic_)) { in OatDexFile()
|
/art/oatdump/ |
D | oatdump.cc | 1174 CompactDexFile::Header* const header = in ExportDexFile() 1175 reinterpret_cast<CompactDexFile::Header*>(const_cast<uint8_t*>(dex_file->Begin())); in ExportDexFile()
|
/art/dex2oat/linker/ |
D | oat_writer.cc | 3407 if (!CompactDexFile::IsMagicValid(header.magic_)) { in WriteDexFiles() 3432 if (!CompactDexFile::IsMagicValid(header.magic_)) { in WriteDexFiles()
|