Home
last modified time | relevance | path

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

/art/libdexfile/dex/
Dart_dex_file_loader.cc79 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums() local
80 if (zip_entry.get() == nullptr) { in GetMultiDexChecksums()
92 if (!(zip_entry->IsUncompressed() && zip_entry->IsAlignedTo(alignof(DexFile::Header)))) { in GetMultiDexChecksums()
96 checksums->push_back(zip_entry->GetCrc32()); in GetMultiDexChecksums()
99 zip_entry.reset(zip_archive->Find(zip_entry_name.c_str(), error_msg)); in GetMultiDexChecksums()
100 } while (zip_entry.get() != nullptr); in GetMultiDexChecksums()
Ddex_file_loader.cc413 std::unique_ptr<ZipEntry> zip_entry(zip_archive.Find(entry_name, error_msg)); in OpenFromZipEntry() local
414 if (zip_entry == nullptr) { in OpenFromZipEntry()
418 if (zip_entry->GetUncompressedLength() == 0) { in OpenFromZipEntry()
427 if (file_.has_value() && zip_entry->IsUncompressed()) { in OpenFromZipEntry()
428 if (!zip_entry->IsAlignedTo(alignof(DexFile::Header))) { in OpenFromZipEntry()
436 map = zip_entry->MapDirectlyFromFile(location.c_str(), /*out*/ error_msg); in OpenFromZipEntry()
450 map = zip_entry->ExtractToMemMap(location.c_str(), entry_name, error_msg); in OpenFromZipEntry()
470 zip_entry->GetCrc32(), in OpenFromZipEntry()
/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.cc297 std::unique_ptr< ::ZipEntry> zip_entry(new ::ZipEntry); in Find() local
298 const int32_t error = FindEntry(handle_, name, zip_entry.get()); in Find()
304 return new ZipEntry(handle_, zip_entry.release(), name); in Find()
/art/test/
Drun-test933 zip_entry = f"target/{TEST_NAME}/" variable
936 zip_entry = f"jvm/{TEST_NAME}/" variable
939 zip_entry = f"host/{TEST_NAME}/" variable
941 zip_entries = [e for e in zip.namelist() if e.startswith(zip_entry)]
943 for entry in (Path(tmp_dir) / ".unzipped" / zip_entry).iterdir():
/art/runtime/
Dvdex_file.cc156 std::unique_ptr<ZipEntry> zip_entry(archive.Find(VdexFile::kVdexNameInDmFile, &error_msg)); in OpenFromDm() local
157 if (zip_entry == nullptr) { in OpenFromDm()
162 MemMap input_file = zip_entry->MapDirectlyOrExtract( in OpenFromDm()
/art/runtime/interpreter/
Dunstarted_runtime.cc531 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(entry_name, error_msg)); in FindAndExtractEntry() local
532 if (zip_entry == nullptr) { in FindAndExtractEntry()
535 MemMap tmp_map = zip_entry->ExtractToMemMap(bcp_jar_file.c_str(), entry_name, error_msg); in FindAndExtractEntry()
541 *size = zip_entry->GetUncompressedLength(); in FindAndExtractEntry()
/art/libprofile/profile/
Dprofile_compilation_info.cc1457 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(kDexMetadataProfileEntry, error)); in OpenSource() local
1458 if (zip_entry == nullptr) { in OpenSource()
1467 if (zip_entry->GetUncompressedLength() == 0) { in OpenSource()
1473 MemMap map = zip_entry->MapDirectlyOrExtract( in OpenSource()
Dprofile_compilation_info_test.cc131 void TestProfileLoadFromZip(const char* zip_entry, in TestProfileLoadFromZip() argument
153 writer.StartEntry(zip_entry, zip_flags); in TestProfileLoadFromZip()