Home
last modified time | relevance | path

Searched refs:IsMagicValid (Results 1 – 16 of 16) sorted by relevance

/art/libdexfile/dex/
Dstandard_dex_file.cc49 bool StandardDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::StandardDexFile
63 bool StandardDexFile::IsMagicValid() const { in IsMagicValid() function in art::StandardDexFile
64 return IsMagicValid(header_->magic_); in IsMagicValid()
Ddex_file_loader.cc152 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid() function in art::DexFileLoader
153 return IsMagicValid(reinterpret_cast<uint8_t*>(&magic)); in IsMagicValid()
156 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::DexFileLoader
157 return StandardDexFile::IsMagicValid(magic) || in IsMagicValid()
158 CompactDexFile::IsMagicValid(magic); in IsMagicValid()
162 if (StandardDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
165 if (CompactDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
295 if (IsMagicValid(magic)) { in OpenAll()
332 if (size >= sizeof(StandardDexFile::Header) && StandardDexFile::IsMagicValid(base)) { in OpenCommon()
342 } else if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(base)) { in OpenCommon()
Dcompact_dex_file.cc36 bool CompactDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::CompactDexFile
45 bool CompactDexFile::IsMagicValid() const { in IsMagicValid() function in art::CompactDexFile
46 return IsMagicValid(header_->magic_); in IsMagicValid()
Dstandard_dex_file.h75 static bool IsMagicValid(const uint8_t* magic);
76 bool IsMagicValid() const override;
Dcompact_dex_file_test.cc39 EXPECT_EQ(valid_magic, CompactDexFile::IsMagicValid(header)); in TEST()
41 EXPECT_EQ(valid_magic, DexFileLoader::IsMagicValid(header)); in TEST()
Ddex_file_loader.h53 static bool IsMagicValid(uint32_t magic);
54 static bool IsMagicValid(const uint8_t* magic);
Dcompact_dex_file.h255 static bool IsMagicValid(const uint8_t* magic);
256 bool IsMagicValid() const override;
Dart_dex_file_loader.cc142 if (IsMagicValid(magic)) { in GetMultiDexChecksums()
265 if (IsMagicValid(magic)) { in OpenWithMagic()
Ddex_file.cc152 if (!IsMagicValid()) { in CheckMagicAndVersion()
Ddex_file.h218 virtual bool IsMagicValid() const = 0;
/art/runtime/
Dvdex_file.h84 bool IsMagicValid() const;
88 return IsMagicValid() && IsVerifierDepsVersionValid() && IsDexSectionVersionValid(); in IsValid()
Dvdex_file.cc51 bool VdexFile::VerifierDepsHeader::IsMagicValid() const { in IsMagicValid() function in art::VdexFile::VerifierDepsHeader
84 DCHECK(IsMagicValid()); in VerifierDepsHeader()
Doat_file.cc707 const bool valid_magic = DexFileLoader::IsMagicValid(dex_file_pointer); in Setup()
1894 if (CompactDexFile::IsMagicValid(dex_header->magic_)) { in OatDexFile()
/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/dex2oat/linker/
Doat_writer.cc467 const bool valid_standard_dex_magic = DexFileLoader::IsMagicValid(raw_header); in ValidateDexFileHeader()
511 } else if (DexFileLoader::IsMagicValid(magic)) { in AddDexFileSource()
588 if (!DexFileLoader::IsMagicValid(current_dex_data)) { in AddVdexDexFilesSource()
3238 if (!CompactDexFile::IsMagicValid(header.magic_)) { in WriteDexFiles()
3263 if (!CompactDexFile::IsMagicValid(header.magic_)) { in WriteDexFiles()
/art/dexlayout/
Ddex_writer.cc795 if (CompactDexFile::IsMagicValid(header_->Magic())) { in WriteHeader()