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.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/libdexfile/dex/
Ddex_file_loader.cc190 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(name.c_str(), error_msg)); in GetMultiDexChecksum() local
191 if (zip_entry == nullptr) { in GetMultiDexChecksum()
195 if (!(zip_entry->IsUncompressed() && zip_entry->IsAlignedTo(alignof(DexFile::Header)))) { in GetMultiDexChecksum()
199 *checksum = checksum->value_or(kEmptyMultiDexChecksum) ^ zip_entry->GetCrc32(); in GetMultiDexChecksum()
503 std::unique_ptr<ZipEntry> zip_entry(zip_archive.Find(entry_name, error_msg)); in OpenFromZipEntry() local
504 if (zip_entry == nullptr) { in OpenFromZipEntry()
508 if (zip_entry->GetUncompressedLength() == 0) { in OpenFromZipEntry()
517 if (file_->IsValid() && zip_entry->IsUncompressed()) { in OpenFromZipEntry()
518 if (!zip_entry->IsAlignedTo(alignof(DexFile::Header))) { in OpenFromZipEntry()
526 map = zip_entry->MapDirectlyFromFile(location.c_str(), /*out*/ error_msg); in OpenFromZipEntry()
[all …]
/art/test/
Drun-test904 zip_entry = f"target/{TEST_NAME}/" variable
907 zip_entry = f"jvm/{TEST_NAME}/" variable
910 zip_entry = f"host/{TEST_NAME}/" variable
912 zip_entries = [e for e in zip.namelist() if e.startswith(zip_entry)]
914 for entry in (Path(tmp_dir) / ".unzipped" / zip_entry).iterdir():
/art/runtime/
Dvdex_file.cc155 std::unique_ptr<ZipEntry> zip_entry(archive.Find(VdexFile::kVdexNameInDmFile, &error_msg)); in OpenFromDm() local
156 if (zip_entry == nullptr) { in OpenFromDm()
161 MemMap input_file = zip_entry->MapDirectlyOrExtract( in OpenFromDm()
/art/artd/
Dartd.cc375 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find("primary.prof", &error_msg)); in AnalyzeCopyAndRewriteProfileFailure() local
376 if (zip_entry == nullptr || zip_entry->GetUncompressedLength() == 0) { in AnalyzeCopyAndRewriteProfileFailure()
413 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(kEmbeddedProfileEntry, &error_msg)); in ExtractEmbeddedProfileToFd() local
415 if (zip_entry == nullptr || (size = zip_entry->GetUncompressedLength()) == 0) { in ExtractEmbeddedProfileToFd()
450 if (!zip_entry->ExtractToMemory(mem_map.Begin(), &error_msg)) { in ExtractEmbeddedProfileToFd()
/art/libprofile/profile/
Dprofile_compilation_info.cc1492 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(kDexMetadataProfileEntry, error)); in OpenSource() local
1493 if (zip_entry == nullptr) { in OpenSource()
1502 if (zip_entry->GetUncompressedLength() == 0) { in OpenSource()
1508 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()
/art/runtime/interpreter/
Dunstarted_runtime.cc540 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(entry_name, error_msg)); in FindAndExtractEntry() local
541 if (zip_entry == nullptr) { in FindAndExtractEntry()
544 MemMap tmp_map = zip_entry->ExtractToMemMap(bcp_jar_file.c_str(), entry_name, error_msg); in FindAndExtractEntry()
550 *size = zip_entry->GetUncompressedLength(); in FindAndExtractEntry()