Searched refs:IsMagicValid (Results 1 – 16 of 16) sorted by relevance
56 bool StandardDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::StandardDexFile70 bool StandardDexFile::IsMagicValid() const { in IsMagicValid() function in art::StandardDexFile71 return IsMagicValid(header_->magic_); in IsMagicValid()
35 bool CompactDexFile::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::CompactDexFile44 bool CompactDexFile::IsMagicValid() const { in IsMagicValid() function in art::CompactDexFile45 return IsMagicValid(header_->magic_); in IsMagicValid()
123 bool DexFileLoader::IsMagicValid(uint32_t magic) { in IsMagicValid() function in art::DexFileLoader124 return IsMagicValid(reinterpret_cast<uint8_t*>(&magic)); in IsMagicValid()127 bool DexFileLoader::IsMagicValid(const uint8_t* magic) { in IsMagicValid() function in art::DexFileLoader128 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()
96 static bool IsMagicValid(const uint8_t* magic);97 bool IsMagicValid() const override;
39 EXPECT_EQ(valid_magic, CompactDexFile::IsMagicValid(header)); in TEST()41 EXPECT_EQ(valid_magic, DexFileLoader::IsMagicValid(header)); in TEST()
57 static bool IsMagicValid(uint32_t magic);58 static bool IsMagicValid(const uint8_t* magic);
275 static bool IsMagicValid(const uint8_t* magic);276 bool IsMagicValid() const override;
103 if (IsMagicValid(magic)) { in GetMultiDexChecksums()
164 if (!IsMagicValid()) { in CheckMagicAndVersion()191 if (size >= sizeof(CompactDexFile::Header) && CompactDexFile::IsMagicValid(data)) { in GetDataRange()
259 virtual bool IsMagicValid() const = 0;
114 bool IsMagicValid() const;117 return IsMagicValid() && IsVdexVersionValid(); in IsValid()
52 bool VdexFile::VdexFileHeader::IsMagicValid() const { in IsMagicValid() function in art::VdexFile::VdexFileHeader64 DCHECK(IsMagicValid()); in VdexFileHeader()390 return dex_file_start == nullptr || StandardDexFile::IsMagicValid(dex_file_start); in HasOnlyStandardDexFiles()
884 const bool valid_magic = DexFileLoader::IsMagicValid(dex_file_pointer); in Setup()2200 if (CompactDexFile::IsMagicValid(dex_header->magic_)) { in InitializeTypeLookupTable()
160 if (art::CompactDexFile::IsMagicValid(header->magic_)) { in ADexFile_create()172 } else if (!art::StandardDexFile::IsMagicValid(header->magic_)) { in ADexFile_create()
431 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()
793 if (CompactDexFile::IsMagicValid(header_->Magic())) { in WriteHeader()