Home
last modified time | relevance | path

Searched refs:zip_entry (Results 1 – 10 of 10) sorted by relevance

/art/libartbase/base/
Dzip_archive_test.cc39 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find("classes.dex", &error_msg)); in TEST_F() local
40 ASSERT_TRUE(zip_entry.get() != nullptr); in TEST_F()
47 bool success = zip_entry->ExtractToFile(*file, &error_msg); in TEST_F()
64 EXPECT_EQ(zip_entry->GetCrc32(), computed_crc); in TEST_F()
Dzip_archive.h78 ::ZipEntry* zip_entry, in ZipEntry() argument
80 : handle_(handle), zip_entry_(zip_entry), entry_name_(entry_name) {} in ZipEntry()
Dzip_archive.cc268 std::unique_ptr< ::ZipEntry> zip_entry(new ::ZipEntry); in Find() local
269 const int32_t error = FindEntry(handle_, name, zip_entry.get()); in Find()
275 return new ZipEntry(handle_, zip_entry.release(), name); in Find()
/art/libdexfile/dex/
Dart_dex_file_loader.cc118 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums() local
119 if (zip_entry.get() == nullptr) { in GetMultiDexChecksums()
132 if (!(zip_entry->IsUncompressed() && zip_entry->IsAlignedTo(alignof(DexFile::Header)))) { in GetMultiDexChecksums()
136 checksums->push_back(zip_entry->GetCrc32()); in GetMultiDexChecksums()
138 zip_entry.reset(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums()
139 } while (zip_entry.get() != nullptr); in GetMultiDexChecksums()
390 std::unique_ptr<ZipEntry> zip_entry(zip_archive.Find(entry_name, error_msg)); in OpenOneDexFileFromZip() local
391 if (zip_entry == nullptr) { in OpenOneDexFileFromZip()
395 if (zip_entry->GetUncompressedLength() == 0) { in OpenOneDexFileFromZip()
402 if (zip_entry->IsUncompressed()) { in OpenOneDexFileFromZip()
[all …]
Ddex_file_loader.cc95 ::ZipEntry* zip_entry, in DexZipEntry() argument
97 : handle_(handle), zip_entry_(zip_entry), entry_name_(entry_name) {} in DexZipEntry()
125 std::unique_ptr< ::ZipEntry> zip_entry(new ::ZipEntry); in Find() local
126 const int32_t error = FindEntry(handle_, name, zip_entry.get()); in Find()
131 return new DexZipEntry(handle_, zip_entry.release(), name); in Find()
399 std::unique_ptr<DexZipEntry> zip_entry(zip_archive.Find(entry_name, error_msg)); in OpenOneDexFileFromZip() local
400 if (zip_entry == nullptr) { in OpenOneDexFileFromZip()
404 if (zip_entry->GetUncompressedLength() == 0) { in OpenOneDexFileFromZip()
410 std::vector<uint8_t> map(zip_entry->Extract(error_msg)); in OpenOneDexFileFromZip()
426 zip_entry->GetCrc32(), in OpenOneDexFileFromZip()
/art/dex2oat/
Ddex2oat.cc1605 std::unique_ptr<ZipEntry> zip_entry(dm_file_->Find(VdexFile::kVdexNameInDmFile, &error_msg)); in OpenFile() local
1606 if (zip_entry == nullptr) { in OpenFile()
1610 MemMap input_file = zip_entry->MapDirectlyOrExtract( in OpenFile()
2920 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(input_filename, error_msg)); in ReadCommentedInputFromZip() local
2921 if (zip_entry.get() == nullptr) { in ReadCommentedInputFromZip()
2926 MemMap input_file = zip_entry->ExtractToMemMap(zip_filename, input_filename, error_msg); in ReadCommentedInputFromZip()
/art/libprofile/profile/
Dprofile_compilation_info.cc1214 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(kDexMetadataProfileEntry, error)); in OpenSource() local
1215 if (zip_entry == nullptr) { in OpenSource()
1224 if (zip_entry->GetUncompressedLength() == 0) { in OpenSource()
1230 MemMap map = zip_entry->MapDirectlyOrExtract( in OpenSource()
Dprofile_compilation_info_test.cc175 void TestProfileLoadFromZip(const char* zip_entry, in TestProfileLoadFromZip() argument
198 writer.StartEntry(zip_entry, zip_flags); in TestProfileLoadFromZip()
/art/runtime/interpreter/
Dunstarted_runtime.cc492 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(entry_name, error_msg)); in FindAndExtractEntry() local
493 if (zip_entry == nullptr) { in FindAndExtractEntry()
496 MemMap tmp_map = zip_entry->ExtractToMemMap(jar_file.c_str(), entry_name, error_msg); in FindAndExtractEntry()
502 *size = zip_entry->GetUncompressedLength(); in FindAndExtractEntry()
/art/dex2oat/linker/
Doat_writer.cc151 explicit DexFileSource(ZipEntry* zip_entry) in DexFileSource() argument
152 : type_(kZipEntry), source_(zip_entry) { in DexFileSource()
3369 ZipEntry* zip_entry = oat_dex_file->source_.GetZipEntry(); in LayoutDexFile() local
3373 mem_map = zip_entry->ExtractToMemMap(location.c_str(), "classes.dex", &error_msg); in LayoutDexFile()
3381 zip_entry->GetCrc32(), in LayoutDexFile()