Home
last modified time | relevance | path

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

12

/art/libdexfile/dex/
Dstandard_dex_file.cc64 return IsMagicValid(header_->magic_); in IsMagicValid()
68 return IsVersionValid(header_->magic_); in IsVersionValid()
Dcompact_dex_file.cc46 return IsMagicValid(header_->magic_); in IsMagicValid()
50 return IsVersionValid(header_->magic_); in IsVersionValid()
Dcode_item_accessors_test.cc35 CompactDexFile::WriteMagic(header->magic_); in CreateFakeDex()
36 CompactDexFile::WriteCurrentVersion(header->magic_); in CreateFakeDex()
Ddex_file.cc154 << " " << header_->magic_[0] in CheckMagicAndVersion()
155 << " " << header_->magic_[1] in CheckMagicAndVersion()
156 << " " << header_->magic_[2] in CheckMagicAndVersion()
157 << " " << header_->magic_[3]; in CheckMagicAndVersion()
164 << " " << header_->magic_[4] in CheckMagicAndVersion()
165 << " " << header_->magic_[5] in CheckMagicAndVersion()
166 << " " << header_->magic_[6] in CheckMagicAndVersion()
167 << " " << header_->magic_[7]; in CheckMagicAndVersion()
202 const char* version = reinterpret_cast<const char*>(&magic_[kDexMagicSize]); in GetVersion()
Dtest_dex_file_builder.h92 std::copy_n(StandardDexFile::kDexMagic, 4u, header->magic_); in Build()
93 std::copy_n(StandardDexFile::kDexMagicVersions[0], 4u, header->magic_ + 4u); in Build()
224 size_t skip = sizeof(header->magic_) + sizeof(header->checksum_); in Build()
Ddex_file_loader_test.cc279 EXPECT_EQ(*kExpectedDexFileMagic, *header.magic_); in ValidateDexFileHeader()
Ddex_file_verifier_test.cc41 size_t offset = OFFSETOF_MEMBER(DexFile::Header, magic_) + 6; in MakeDexVersion37()
50 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); in FixUpChecksum()
Ddex_file.h85 uint8_t magic_[8] = {}; member
/art/runtime/
Doat.cc89 static_assert(sizeof(magic_) == sizeof(kOatMagic), in OatHeader()
94 memcpy(magic_, kOatMagic, sizeof(kOatMagic)); in OatHeader()
104 if (memcmp(magic_, kOatMagic, sizeof(kOatMagic)) != 0) { in IsValid()
123 if (memcmp(magic_, kOatMagic, sizeof(kOatMagic)) != 0) { in GetValidationErrorMessage()
127 magic_[0], magic_[1], magic_[2], magic_[3]); in GetValidationErrorMessage()
149 return reinterpret_cast<const char*>(magic_); in GetMagic()
Dimage.cc75 memcpy(magic_, kImageMagic, sizeof(kImageMagic)); in ImageHeader()
103 if (memcmp(magic_, kImageMagic, sizeof(kImageMagic)) != 0) { in IsValid()
130 return reinterpret_cast<const char*>(magic_); in GetMagic()
Dvdex_file.h67 const char* GetMagic() const { return reinterpret_cast<const char*>(magic_); } in GetMagic()
107 uint8_t magic_[4]; member
Dvdex_file.cc46 return (memcmp(magic_, kVdexMagic, sizeof(kVdexMagic)) == 0); in IsMagicValid()
67 memcpy(magic_, kVdexMagic, sizeof(kVdexMagic)); in VerifierDepsHeader()
Doat.h135 uint8_t magic_[4]; variable
Dimage.h388 uint8_t magic_[4]; variable
Dcheck_jni.cc1599 magic_(kGuardMagic), adler_(adler), original_ptr_(original_buf), original_length_(len) { in GuardedCopy()
1645 if (UNLIKELY(memcmp(&magic_, &kMagicCmp, 4) != 0)) { in CheckHeader()
1647 memcpy(buf, &magic_, 4); in CheckHeader()
1728 const uint32_t magic_; member in art::__anona1964fb70111::GuardedCopy
Doat_file.cc1720 if (CompactDexFile::IsMagicValid(dex_header->magic_)) { in OatDexFile()
/art/compiler/jit/
Djit_logger.cc113 uint32_t magic_; // Characters "JiTD" member
236 header.magic_ = PerfJitHeader::kMagic; in WriteJitDumpHeader()
/art/runtime/jit/
Ddebugger_interface.cc106 uint8_t magic_[8] = {'A', 'n', 'd', 'r', 'o', 'i', 'd', '1'}; member
/art/dexlayout/
Ddex_ir_builder.cc36 Header* header = new Header(disk_header.magic_, in DexIrBuilder()
Dcompact_dex_writer.cc274 CompactDexFile::WriteMagic(&header.magic_[0]); in WriteHeader()
275 CompactDexFile::WriteCurrentVersion(&header.magic_[0]); in WriteHeader()
Ddex_ir.h549 memcpy(magic_, magic, sizeof(magic_)); in Header()
556 const uint8_t* Magic() const { return magic_; } in Magic()
587 uint8_t magic_[8];
Ddex_writer.cc748 StandardDexFile::WriteMagic(header.magic_); in WriteHeader()
750 StandardDexFile::WriteCurrentVersion(header.magic_); in WriteHeader()
755 std::copy_n(header_->Magic(), kMagicAndVersionLen, header.magic_); in WriteHeader()
Ddexlayout.cc1888 file_name, dex_file->GetHeader().magic_ + 4); in ProcessDexFile()
/art/dexdump/
Ddexdump.cc557 char sanitized[sizeof(pHeader.magic_) * 2 + 1]; in dumpFileHeader()
559 asciify(sanitized, pHeader.magic_, sizeof(pHeader.magic_)); in dumpFileHeader()
1835 fprintf(gOutFile, "', DEX version '%.3s'\n", pDexFile->GetHeader().magic_ + 4); in processDexFile()
/art/dex2oat/
Ddex2oat_test.cc2035 StandardDexFile::WriteMagic(header.magic_); in TEST_F()
2036 StandardDexFile::WriteCurrentVersion(header.magic_); in TEST_F()
2063 CompactDexFile::WriteMagic(header.magic_); in TEST_F()
2064 CompactDexFile::WriteCurrentVersion(header.magic_); in TEST_F()

12