Home
last modified time | relevance | path

Searched refs:CompactDexFile (Results 1 – 17 of 17) sorted by relevance

/art/tools/cpp-define-generator/
Dcode_item.def32 art::CompactDexFile::CodeItem::FieldsOffset())
34 art::CompactDexFile::CodeItem::InsnsCountAndFlagsOffset())
36 art::CompactDexFile::CodeItem::InsnsOffset())
39 art::CompactDexFile::CodeItem::kFlagPreHeaderRegistersSize |
40 art::CompactDexFile::CodeItem::kFlagPreHeaderInsSize |
41 art::CompactDexFile::CodeItem::kFlagPreHeaderOutsSize)
43 art::CompactDexFile::CodeItem::kFlagPreHeaderRegistersSize)
45 art::CompactDexFile::CodeItem::kFlagPreHeaderInsSize)
47 art::CompactDexFile::CodeItem::kFlagPreHeaderOutsSize)
49 art::CompactDexFile::CodeItem::kFlagPreHeaderInsnsSize)
[all …]
/art/libdexfile/dex/
Dcompact_dex_file.cc27 void CompactDexFile::WriteMagic(uint8_t* magic) { in WriteMagic()
31 void CompactDexFile::WriteCurrentVersion(uint8_t* magic) { in WriteCurrentVersion()
35 bool CompactDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid()
39 bool CompactDexFile::IsVersionValid(const uint8_t* magic) { in IsVersionValid()
44 bool CompactDexFile::IsMagicValid() const { in IsMagicValid()
48 bool CompactDexFile::IsVersionValid() const { in IsVersionValid()
52 bool CompactDexFile::SupportsDefaultMethods() const { in SupportsDefaultMethods()
57 uint32_t CompactDexFile::GetCodeItemSize(const dex::CodeItem& item) const { in GetCodeItemSize()
64 uint32_t CompactDexFile::CalculateChecksum(const uint8_t* base_begin, in CalculateChecksum()
82 uint32_t CompactDexFile::CalculateChecksum() const { in CalculateChecksum()
[all …]
Dcompact_dex_file_test.cc28 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()
Dcode_item_accessors_test.cc33 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()
Dcode_item_accessors-inl.h38 inline void CodeItemInstructionAccessor::Init<CompactDexFile::CodeItem>(
39 const CompactDexFile::CodeItem& code_item) {
61 Init(down_cast<const CompactDexFile::CodeItem&>(*code_item)); in Init()
92 inline void CodeItemDataAccessor::Init<CompactDexFile::CodeItem>(
93 const CompactDexFile::CodeItem& code_item) {
117 Init(down_cast<const CompactDexFile::CodeItem&>(*code_item)); in Init()
171 inline void CodeItemDebugInfoAccessor::Init<CompactDexFile::CodeItem>(
172 const CompactDexFile::CodeItem& code_item,
174 debug_info_offset_ = down_cast<const CompactDexFile*>(dex_file_)->GetDebugInfoOffset(
195 Init(down_cast<const CompactDexFile::CodeItem&>(*code_item), dex_method_index); in Init()
Dcompact_dex_file.h29 class CompactDexFile : public DexFile {
83 friend class CompactDexFile; variable
263 friend class CompactDexFile; member
307 CompactDexFile(const uint8_t* base,
319 DISALLOW_COPY_AND_ASSIGN(CompactDexFile);
Ddex_file_loader.cc129 CompactDexFile::IsMagicValid(magic); in IsMagicValid()
136 if (CompactDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
137 return CompactDexFile::IsVersionValid(magic); in IsVersionAndMagicValid()
373 } else if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(base)) { in OpenCommon()
375 dex_file.reset(new CompactDexFile(base, size, location, checksum, oat_dex_file, container)); in OpenCommon()
Ddex_file.cc191 if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(data)) { in GetDataRange()
192 auto header = reinterpret_cast<const CompactDexFile::Header*>(data); in GetDataRange()
Ddex_file-inl.h476 inline const CompactDexFile* DexFile::AsCompactDexFile() const { in AsCompactDexFile()
478 return down_cast<const CompactDexFile*>(this); in AsCompactDexFile()
Ddex_file.h42 class CompactDexFile; variable
826 ALWAYS_INLINE const CompactDexFile* AsCompactDexFile() const;
Ddex_file_verifier.cc594 ? sizeof(CompactDexFile::Header) in CheckHeader()
/art/dexlayout/
Dcompact_dex_writer.cc149 CompactDexFile::CodeItem::kAlignment, in WriteCodeItem()
152 CompactDexFile::CodeItem disk_code_item; in WriteCodeItem()
154 uint16_t preheader_storage[CompactDexFile::CodeItem::kMaxPreHeaderSize] = {}; in WriteCodeItem()
155 uint16_t* preheader_end = preheader_storage + CompactDexFile::CodeItem::kMaxPreHeaderSize; in WriteCodeItem()
197 stream->Write(&disk_code_item, OFFSETOF_MEMBER(CompactDexFile::CodeItem, insns_)); in WriteCodeItem()
269 CompactDexFile::Header header; in WriteHeader()
270 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader()
271 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); in WriteHeader()
307 header.feature_flags_ |= static_cast<uint32_t>(CompactDexFile::FeatureFlags::kDefaultMethods); in WriteHeader()
314 return sizeof(CompactDexFile::Header); in GetHeaderSize()
[all …]
Ddex_writer.cc793 if (CompactDexFile::IsMagicValid(header_->Magic())) { in WriteHeader()
/art/libdexfile/external/
Ddex_file_ext.cc160 if (art::CompactDexFile::IsMagicValid(header->magic_)) { in ADexFile_create()
216 const art::CompactDexFile::Header& cdex_header = in ADexFile_findMethodAtOffset()
/art/dex2oat/
Ddex2oat_test.cc1423 std::vector<std::unique_ptr<const CompactDexFile>> compact_dex_files; in TEST_F()
1429 std::unique_ptr<const CompactDexFile>(dex_file.release()->AsCompactDexFile())); in TEST_F()
1431 for (const std::unique_ptr<const CompactDexFile>& dex_file : compact_dex_files) { in TEST_F()
1433 const CompactDexFile::Header& header = dex_file->GetHeader(); in TEST_F()
1446 for (const std::unique_ptr<const CompactDexFile>& other_dex : compact_dex_files) { in TEST_F()
1882 CompactDexFile::Header header = {}; in TEST_F()
1883 CompactDexFile::WriteMagic(header.magic_); in TEST_F()
1884 CompactDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
1885 header.file_size_ = sizeof(CompactDexFile::Header); in TEST_F()
/art/runtime/
Doat_file.cc2200 if (CompactDexFile::IsMagicValid(dex_header->magic_)) { in InitializeTypeLookupTable()
/art/dex2oat/linker/
Doat_writer.cc3375 if (!CompactDexFile::IsMagicValid(header->magic_)) { in WriteDexFiles()