Home
last modified time | relevance | path

Searched refs:IsMagicValid (Results 1 – 13 of 13) 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()
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()
Ddex_file_loader.cc156 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid() function in art::DexFileLoader
157 return IsMagicValid(reinterpret_cast<uint8_t*>(&magic)); in IsMagicValid()
160 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::DexFileLoader
161 return StandardDexFile::IsMagicValid(magic) || in IsMagicValid()
162 CompactDexFile::IsMagicValid(magic); in IsMagicValid()
166 if (StandardDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
169 if (CompactDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
289 if (IsMagicValid(magic)) { in OpenAll()
326 if (size >= sizeof(StandardDexFile::Header) && StandardDexFile::IsMagicValid(base)) { in OpenCommon()
336 } else if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(base)) { in OpenCommon()
Dstandard_dex_file.h75 static bool IsMagicValid(const uint8_t* magic);
76 virtual 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.h44 static bool IsMagicValid(uint32_t magic);
45 static bool IsMagicValid(const uint8_t* magic);
Dcompact_dex_file.h255 static bool IsMagicValid(const uint8_t* magic);
256 virtual bool IsMagicValid() const OVERRIDE;
Ddex_file.cc151 if (!IsMagicValid()) { in CheckMagicAndVersion()
/art/runtime/
Dvdex_file.h74 bool IsMagicValid() const;
78 return IsMagicValid() && IsVerifierDepsVersionValid() && IsDexSectionVersionValid(); in IsValid()
Dvdex_file.cc45 bool VdexFile::VerifierDepsHeader::IsMagicValid() const { in IsMagicValid() function in art::VdexFile::VerifierDepsHeader
74 DCHECK(IsMagicValid()); in VerifierDepsHeader()
Doat_file.cc718 const bool valid_magic = DexFileLoader::IsMagicValid(dex_file_pointer); in Setup()
1720 if (CompactDexFile::IsMagicValid(dex_header->magic_)) { in OatDexFile()
/art/runtime/dex/
Dart_dex_file_loader.cc141 if (IsMagicValid(magic)) { in GetMultiDexChecksums()
235 if (IsMagicValid(magic)) { in Open()
/art/dexlayout/
Ddex_writer.cc747 if (CompactDexFile::IsMagicValid(header_->Magic())) { in WriteHeader()