Home
last modified time | relevance | path

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

12

/art/runtime/
Doat.cc84 static_assert(decltype(magic_)().size() == kOatMagic.size(), in OatHeader()
89 magic_ = kOatMagic; in OatHeader()
99 if (magic_ != kOatMagic) { in IsValid()
115 if (magic_ != kOatMagic) { in GetValidationErrorMessage()
119 magic_[0], magic_[1], magic_[2], magic_[3]); in GetValidationErrorMessage()
150 return reinterpret_cast<const char*>(magic_.data()); in GetMagic()
Dimage.cc75 memcpy(magic_, kImageMagic, sizeof(kImageMagic)); in ImageHeader()
117 if (memcmp(magic_, kImageMagic, sizeof(kImageMagic)) != 0) { in IsValid()
144 return reinterpret_cast<const char*>(magic_); in GetMagic()
Dvdex_file.h107 const char* GetMagic() const { return reinterpret_cast<const char*>(magic_); } in GetMagic()
129 uint8_t magic_[4]; member
Doat.h125 std::array<uint8_t, 4> magic_; variable
Dvdex_file.cc52 return (memcmp(magic_, kVdexMagic, sizeof(kVdexMagic)) == 0); in IsMagicValid()
61 memcpy(magic_, kVdexMagic, sizeof(kVdexMagic)); in VdexFileHeader()
Dimage.h432 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.h91 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_);
92 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u);
227 size_t skip = sizeof(header->magic_) + sizeof(header->checksum_);
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.h92 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/libdexfile/external/
Ddex_file_ext.cc158 if (art::CompactDexFile::IsMagicValid(header->magic_)) { in ADexFile_create()
170 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ADexFile_create()
/art/dexlayout/
Dcompact_dex_writer.cc270 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader()
271 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.cc594 char sanitized[sizeof(pHeader.magic_) * 2 + 1]; in dumpFileHeader()
596 asciify(sanitized, pHeader.magic_, sizeof(pHeader.magic_)); in dumpFileHeader()
1825 fprintf(gOutFile, "', DEX version '%.3s'\n", pDexFile->GetHeader().magic_ + 4); in processDexFile()
/art/libprofile/profile/
Dprofile_compilation_info.cc284 static_assert(sizeof(magic_) == sizeof(kProfileMagic)); in FileHeader()
287 memcpy(magic_, kProfileMagic, sizeof(kProfileMagic)); in FileHeader()
294 return memcmp(magic_, kProfileMagic, sizeof(kProfileMagic)) == 0 && in IsValid()
319 uint8_t magic_[4] = {0, 0, 0, 0}; member in art::ProfileCompilationInfo::FileHeader
329 if (memcmp(magic_, kProfileMagic, sizeof(kProfileMagic)) != 0) { in InvalidHeaderMessage()
/art/dex2oat/
Ddex2oat_test.cc1813 StandardDexFile::WriteMagic(header.magic_); in TEST_F()
1814 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
1841 CompactDexFile::WriteMagic(header.magic_); in TEST_F()
1842 CompactDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
/art/runtime/jit/
Ddebugger_interface.cc153 uint8_t magic_[8] = {'A', 'n', 'd', 'r', 'o', 'i', 'd', '2'}; member
/art/runtime/jni/
Dcheck_jni.cc1654 magic_(kGuardMagic), adler_(adler), original_ptr_(original_buf), original_length_(len) { in GuardedCopy()
1700 if (UNLIKELY(memcmp(&magic_, &kMagicCmp, 4) != 0)) { in CheckHeader()
1702 memcpy(buf, &magic_, 4); in CheckHeader()
1783 const uint32_t magic_; member in art::__anonaa3778310111::GuardedCopy

12