Home
last modified time | relevance | path

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

/art/libdexfile/dex/
Dstandard_dex_file.cc56 bool StandardDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::StandardDexFile
70 bool StandardDexFile::IsMagicValid() const { in IsMagicValid() function in art::StandardDexFile
71 return IsMagicValid(header_->magic_); in IsMagicValid()
Dcompact_dex_file.cc35 bool CompactDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::CompactDexFile
44 bool CompactDexFile::IsMagicValid() const { in IsMagicValid() function in art::CompactDexFile
45 return IsMagicValid(header_->magic_); in IsMagicValid()
Ddex_file_loader.cc123 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid() function in art::DexFileLoader
124 return IsMagicValid(reinterpret_cast<uint8_t*>(&magic)); in IsMagicValid()
127 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::DexFileLoader
128 return StandardDexFile::IsMagicValid(magic) || in IsMagicValid()
129 CompactDexFile::IsMagicValid(magic); in IsMagicValid()
133 if (StandardDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
136 if (CompactDexFile::IsMagicValid(magic)) { in IsVersionAndMagicValid()
324 if (IsMagicValid(magic)) { in Open()
370 if (size >= sizeof(StandardDexFile::Header) && StandardDexFile::IsMagicValid(base)) { in OpenCommon()
373 } else if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(base)) { in OpenCommon()
Dstandard_dex_file.h96 static bool IsMagicValid(const uint8_t* magic);
97 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.h57 static bool IsMagicValid(uint32_t magic);
58 static bool IsMagicValid(const uint8_t* magic);
Dcompact_dex_file.h275 static bool IsMagicValid(const uint8_t* magic);
276 bool IsMagicValid() const override;
Dart_dex_file_loader.cc103 if (IsMagicValid(magic)) { in GetMultiDexChecksums()
Ddex_file.cc164 if (!IsMagicValid()) { in CheckMagicAndVersion()
191 if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(data)) { in GetDataRange()
Ddex_file.h259 virtual bool IsMagicValid() const = 0;
/art/runtime/
Dvdex_file.h114 bool IsMagicValid() const;
117 return IsMagicValid() && IsVdexVersionValid(); in IsValid()
Dvdex_file.cc52 bool VdexFile::VdexFileHeader::IsMagicValid() const { in IsMagicValid() function in art::VdexFile::VdexFileHeader
64 DCHECK(IsMagicValid()); in VdexFileHeader()
390 return dex_file_start == nullptr || StandardDexFile::IsMagicValid(dex_file_start); in HasOnlyStandardDexFiles()
Doat_file.cc884 const bool valid_magic = DexFileLoader::IsMagicValid(dex_file_pointer); in Setup()
2200 if (CompactDexFile::IsMagicValid(dex_header->magic_)) { in InitializeTypeLookupTable()
/art/libdexfile/external/
Ddex_file_ext.cc160 if (art::CompactDexFile::IsMagicValid(header->magic_)) { in ADexFile_create()
172 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ADexFile_create()
/art/dex2oat/linker/
Doat_writer.cc431 const bool valid_standard_dex_magic = DexFileLoader::IsMagicValid(raw_header); in ValidateDexFileHeader()
497 if (!DexFileLoader::IsMagicValid(current_dex_data)) { in AddVdexDexFilesSource()
3375 if (!CompactDexFile::IsMagicValid(header->magic_)) { in WriteDexFiles()
/art/dexlayout/
Ddex_writer.cc793 if (CompactDexFile::IsMagicValid(header_->Magic())) { in WriteHeader()