/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 | 78 ::ZipEntry* zip_entry, in ZipEntry() argument 80 : handle_(handle), zip_entry_(zip_entry), entry_name_(entry_name) {} in ZipEntry()
|
D | zip_archive.cc | 268 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/ |
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_, 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/ |
D | dex2oat.cc | 1605 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/ |
D | profile_compilation_info.cc | 1214 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()
|
D | profile_compilation_info_test.cc | 175 void TestProfileLoadFromZip(const char* zip_entry, in TestProfileLoadFromZip() argument 198 writer.StartEntry(zip_entry, zip_flags); in TestProfileLoadFromZip()
|
/art/runtime/interpreter/ |
D | unstarted_runtime.cc | 492 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/ |
D | oat_writer.cc | 151 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()
|