Home
last modified time | relevance | path

Searched refs:magic_ (Results 1 – 25 of 27) sorted by relevance

12

/art/runtime/
Doat.cc83 static_assert(sizeof(magic_) == sizeof(kOatMagic), in OatHeader()
88 magic_ = kOatMagic; in OatHeader()
98 if (magic_ != kOatMagic) { in IsValid()
114 if (magic_ != kOatMagic) { in GetValidationErrorMessage()
118 magic_[0], magic_[1], magic_[2], magic_[3]); in GetValidationErrorMessage()
149 return reinterpret_cast<const char*>(magic_.data()); in GetMagic()
Dimage.cc74 memcpy(magic_, kImageMagic, sizeof(kImageMagic)); in ImageHeader()
116 if (memcmp(magic_, kImageMagic, sizeof(kImageMagic)) != 0) { in IsValid()
143 return reinterpret_cast<const char*>(magic_); in GetMagic()
Dvdex_file.h77 const char* GetMagic() const { return reinterpret_cast<const char*>(magic_); } in GetMagic()
129 uint8_t magic_[4]; member
Doat.h119 std::array<uint8_t, 4> magic_; variable
Dvdex_file.cc53 return (memcmp(magic_, kVdexMagic, sizeof(kVdexMagic)) == 0); in IsMagicValid()
78 memcpy(magic_, kVdexMagic, sizeof(kVdexMagic)); in VerifierDepsHeader()
Dimage.h435 uint8_t magic_[4]; variable
/art/libdexfile/dex/
Dstandard_dex_file.cc71 return IsMagicValid(header_->magic_); in IsMagicValid()
75 return IsVersionValid(header_->magic_); in IsVersionValid()
Dcompact_dex_file.cc46 return IsMagicValid(header_->magic_); in IsMagicValid()
50 return IsVersionValid(header_->magic_); in IsVersionValid()
Ddex_file.cc156 << " " << header_->magic_[0] in CheckMagicAndVersion()
157 << " " << header_->magic_[1] in CheckMagicAndVersion()
158 << " " << header_->magic_[2] in CheckMagicAndVersion()
159 << " " << header_->magic_[3]; in CheckMagicAndVersion()
166 << " " << header_->magic_[4] in CheckMagicAndVersion()
167 << " " << header_->magic_[5] in CheckMagicAndVersion()
168 << " " << header_->magic_[6] in CheckMagicAndVersion()
169 << " " << header_->magic_[7]; in CheckMagicAndVersion()
209 const char* version = reinterpret_cast<const char*>(&magic_[kDexMagicSize]); in GetVersion()
Dcode_item_accessors_test.cc35 CompactDexFile::WriteMagic(header->magic_); in CreateFakeDex()
36 CompactDexFile::WriteCurrentVersion(header->magic_); in CreateFakeDex()
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()
225 size_t skip = sizeof(header->magic_) + sizeof(header->checksum_); in Build()
Ddex_file_loader_test.cc283 EXPECT_EQ(*kExpectedDexFileMagic, *header.magic_); in ValidateDexFileHeader()
Ddex_file_verifier_test.cc44 size_t offset = OFFSETOF_MEMBER(DexFile::Header, magic_) + 6; in MakeDexVersion37()
53 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); in FixUpChecksum()
Ddex_file.h91 uint8_t magic_[8] = {}; member
/art/compiler/jit/
Djit_logger.cc112 uint32_t magic_; // Characters "JiTD" member
235 header.magic_ = PerfJitHeader::kMagic; in WriteJitDumpHeader()
/art/libartbase/base/
Dcommon_art_test.h116 CompactDexFile::WriteMagic(header->magic_); in CreateFakeDex()
117 CompactDexFile::WriteCurrentVersion(header->magic_); in CreateFakeDex()
/art/libdexfile/external/
Ddex_file_ext.cc159 if (art::CompactDexFile::IsMagicValid(header->magic_)) { in ExtDexFileOpenFromMemory()
173 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ExtDexFileOpenFromMemory()
/art/dexlayout/
Dcompact_dex_writer.cc272 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader()
273 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); in WriteHeader()
Ddex_writer.cc796 StandardDexFile::WriteMagic(header.magic_); in WriteHeader()
798 StandardDexFile::WriteCurrentVersion(header.magic_); in WriteHeader()
800 StandardDexFile::WriteVersionBeforeDefaultMethods(header.magic_); in WriteHeader()
806 std::copy_n(header_->Magic(), kMagicAndVersionLen, header.magic_); in WriteHeader()
Ddex_ir.h416 const uint8_t* Magic() const { return magic_; } in Magic()
515 uint8_t magic_[8];
545 memcpy(magic_, magic, sizeof(magic_)); in ConstructorHelper()
Ddex_ir_builder.cc254 Header* header = new Header(disk_header.magic_, in DexIrBuilder()
/art/dexdump/
Ddexdump.cc555 char sanitized[sizeof(pHeader.magic_) * 2 + 1]; in dumpFileHeader()
557 asciify(sanitized, pHeader.magic_, sizeof(pHeader.magic_)); in dumpFileHeader()
1810 fprintf(gOutFile, "', DEX version '%.3s'\n", pDexFile->GetHeader().magic_ + 4); in processDexFile()
/art/runtime/jit/
Ddebugger_interface.cc145 uint8_t magic_[8] = {'A', 'n', 'd', 'r', 'o', 'i', 'd', '2'}; member
/art/dex2oat/
Ddex2oat_test.cc2095 StandardDexFile::WriteMagic(header.magic_); in TEST_F()
2096 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
2123 CompactDexFile::WriteMagic(header.magic_); in TEST_F()
2124 CompactDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
/art/dex2oat/linker/
Doat_writer.cc3255 if (!CompactDexFile::IsMagicValid(header.magic_)) { in WriteDexFiles()
3280 if (!CompactDexFile::IsMagicValid(header.magic_)) { in WriteDexFiles()

12