Home
last modified time | relevance | path

Searched refs:entry_name (Results 1 – 9 of 9) sorted by relevance

/bootable/recovery/updater/
Dbuild_info.cpp47 std::string entry_name = directory + fstab_info.mount_point + ".img"; in ParseTargetFile() local
48 if (!target_file.EntryExists(entry_name)) { in ParseTargetFile()
49 LOG(WARNING) << "Failed to find the image entry in the target file: " << entry_name; in ParseTargetFile()
55 if (!target_file.ExtractImage(entry_name, fstab_info, work_dir_, &image_file)) { in ParseTargetFile()
Dupdater.cpp164 bool Updater::ReadEntryToString(ZipArchiveHandle za, const std::string& entry_name, in ReadEntryToString() argument
167 int find_err = FindEntry(za, entry_name, &entry); in ReadEntryToString()
169 LOG(ERROR) << "failed to find " << entry_name in ReadEntryToString()
178 LOG(ERROR) << "failed to read " << entry_name in ReadEntryToString()
Dtarget_files.cpp232 bool TargetFile::ExtractImage(const std::string_view entry_name, const FstabInfo& fstab_info, in ExtractImage() argument
234 if (!EntryExists(entry_name)) { in ExtractImage()
240 if (!ExtractEntryToTempFile(entry_name, image_file)) { in ExtractImage()
245 if (!ExtractEntryToTempFile(entry_name, &sparse_image)) { in ExtractImage()
/bootable/recovery/tests/unit/
Dpackage_test.cpp108 std::string_view entry_name = "dir1/file3.txt"; in TEST_F() local
110 ASSERT_EQ(0, FindEntry(zip, entry_name, &entry)); in TEST_F()
112 std::vector<uint8_t> extracted(entry_name.size()); in TEST_F()
114 ASSERT_EQ(entry_name, std::string(extracted.begin(), extracted.end())); in TEST_F()
Dverifier_test.cpp84 std::string entry_name = name; in BuildCertificateArchive() local
85 if (!android::base::EndsWith(entry_name, "x509.pem")) { in BuildCertificateArchive()
86 entry_name += "x509.pem"; in BuildCertificateArchive()
88 ASSERT_EQ(0, zip_writer.StartEntry(entry_name.c_str(), ZipWriter::kCompress)); in BuildCertificateArchive()
/bootable/recovery/applypatch/
Dimgdiff.cpp259 size_t raw_data_len, std::string entry_name) in ImageChunk() argument
265 entry_name_(std::move(entry_name)) { in ImageChunk()
733 std::string entry_name = temp_entries[nextentry].first; in InitializeChunks() local
734 if (!AddZipEntryToChunks(handle, entry_name, &temp_entries[nextentry].second)) { in InitializeChunks()
735 LOG(ERROR) << "Failed to add " << entry_name << " to target chunks"; in InitializeChunks()
759 bool ZipModeImage::AddZipEntryToChunks(ZipArchiveHandle handle, const std::string& entry_name, in AddZipEntryToChunks() argument
769 std::string name = entry_name + "-" + std::to_string(count); in AddZipEntryToChunks()
781 LOG(ERROR) << "Failed to extract " << entry_name << " with size " << uncompressed_len << ": " in AddZipEntryToChunks()
785 ImageChunk curr(CHUNK_DEFLATE, entry->offset, &file_content_, compressed_len, entry_name); in AddZipEntryToChunks()
789 chunks_.emplace_back(CHUNK_NORMAL, entry->offset, &file_content_, compressed_len, entry_name); in AddZipEntryToChunks()
/bootable/recovery/updater/include/updater/
Dtarget_files.h56 bool ExtractImage(const std::string_view entry_name, const FstabInfo& fstab_info,
Dupdater.h80 bool ReadEntryToString(ZipArchiveHandle za, const std::string& entry_name, std::string* content);
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h42 std::string entry_name = {});
260 bool AddZipEntryToChunks(ZipArchiveHandle handle, const std::string& entry_name, ZipEntry* entry);