Lines Matching refs:DexFile
104 static std::unique_ptr<const DexFile> OpenDexFileBase64(const char* base64, in OpenDexFileBase64()
126 std::vector<std::unique_ptr<const DexFile>> tmp; in OpenDexFileBase64()
127 bool success = DexFile::Open(location, location, error_msg, &tmp); in OpenDexFileBase64()
130 std::unique_ptr<const DexFile> dex_file = std::move(tmp[0]); in OpenDexFileBase64()
155 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kGoodTestDex, tmp.GetFilename().c_str(), in TEST_F()
161 DexFile::Header* header = reinterpret_cast<DexFile::Header*>(dex_file); in FixUpChecksum()
164 const uint32_t non_sum = sizeof(DexFile::Header::magic_) + sizeof(DexFile::Header::checksum_); in FixUpChecksum()
170 static std::unique_ptr<const DexFile> FixChecksumAndOpen(uint8_t* bytes, size_t length, in FixChecksumAndOpen()
192 std::vector<std::unique_ptr<const DexFile>> tmp; in FixChecksumAndOpen()
193 if (!DexFile::Open(location, location, error_msg, &tmp)) { in FixChecksumAndOpen()
197 std::unique_ptr<const DexFile> dex_file = std::move(tmp[0]); in FixChecksumAndOpen()
214 std::unique_ptr<const DexFile> file(FixChecksumAndOpen(dex_bytes.get(), length, location, in ModifyAndLoad()
302 std::unique_ptr<const DexFile> raw(OpenDexFileBase64(kDebugInfoTestDex, in TEST_F()