/art/libartbase/base/ |
D | zip_archive_test.cc | 39 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()
|
D | zip_archive.h | 73 ::ZipEntry* zip_entry, in ZipEntry() argument 75 : handle_(handle), zip_entry_(zip_entry), entry_name_(entry_name) {} in ZipEntry()
|
D | zip_archive.cc | 260 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/ |
D | art_dex_file_loader.cc | 118 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 …]
|
D | dex_file_loader.cc | 95 ::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/ |
D | dex2oat.cc | 1399 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/ |
D | profile_compilation_info.cc | 1295 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()
|
D | profile_compilation_info_test.cc | 143 void TestProfileLoadFromZip(const char* zip_entry, in TestProfileLoadFromZip() argument 166 writer.StartEntry(zip_entry, zip_flags); in TestProfileLoadFromZip()
|
/art/runtime/interpreter/ |
D | unstarted_runtime.cc | 543 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/ |
D | oat_writer.cc | 150 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()
|