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.h73 ::ZipEntry* zip_entry, in ZipEntry() argument
75 : handle_(handle), zip_entry_(zip_entry), entry_name_(entry_name) {} in ZipEntry()
Dzip_archive.cc260 std::unique_ptr< ::ZipEntry> zip_entry(new ::ZipEntry); in Find() local
261 const int32_t error = FindEntry(handle_, ZipString(name), zip_entry.get()); in Find()
267 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_, ZipString(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()
424 zip_entry->GetCrc32(), in OpenOneDexFileFromZip()
/art/dex2oat/
Ddex2oat.cc1399 std::unique_ptr<ZipEntry> zip_entry(dm_file_->Find(VdexFile::kVdexNameInDmFile, &error_msg)); in OpenFile() local
1400 if (zip_entry == nullptr) { in OpenFile()
1404 MemMap input_file = zip_entry->MapDirectlyOrExtract( in OpenFile()
2652 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(input_filename, error_msg)); in ReadCommentedInputFromZip() local
2653 if (zip_entry.get() == nullptr) { in ReadCommentedInputFromZip()
2658 MemMap input_file = zip_entry->ExtractToMemMap(zip_filename, input_filename, error_msg); in ReadCommentedInputFromZip()
/art/libprofile/profile/
Dprofile_compilation_info.cc1295 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(kDexMetadataProfileEntry, error)); in OpenSource() local
1296 if (zip_entry == nullptr) { in OpenSource()
1305 if (zip_entry->GetUncompressedLength() == 0) { in OpenSource()
1311 MemMap map = zip_entry->MapDirectlyOrExtract( in OpenSource()
Dprofile_compilation_info_test.cc143 void TestProfileLoadFromZip(const char* zip_entry, in TestProfileLoadFromZip() argument
166 writer.StartEntry(zip_entry, zip_flags); in TestProfileLoadFromZip()
/art/runtime/interpreter/
Dunstarted_runtime.cc543 std::unique_ptr<ZipEntry> zip_entry(zip_archive->Find(entry_name, error_msg)); in FindAndExtractEntry() local
544 if (zip_entry == nullptr) { in FindAndExtractEntry()
547 MemMap tmp_map = zip_entry->ExtractToMemMap(jar_file.c_str(), entry_name, error_msg); in FindAndExtractEntry()
553 *size = zip_entry->GetUncompressedLength(); in FindAndExtractEntry()
/art/dex2oat/linker/
Doat_writer.cc150 explicit DexFileSource(ZipEntry* zip_entry) in DexFileSource() argument
151 : type_(kZipEntry), source_(zip_entry) { in DexFileSource()
3408 ZipEntry* zip_entry = oat_dex_file->source_.GetZipEntry(); in LayoutAndWriteDexFile() local
3412 mem_map = zip_entry->ExtractToMemMap(location.c_str(), "classes.dex", &error_msg); in LayoutAndWriteDexFile()
3420 zip_entry->GetCrc32(), in LayoutAndWriteDexFile()