Home
last modified time | relevance | path

Searched refs:zip_file (Results 1 – 6 of 6) sorted by relevance

/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/
Dzip_writer.h40 static bool ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath);
41 static bool AddFileContentToZip(zipFile zip_file, std::string &file_path);
42 static bool OpenNewFileEntry(zipFile zip_file, std::string &path);
43 static bool CloseNewFileEntry(zipFile zip_file);
44 …static bool AddFileEntryToZip(zipFile zip_file, std::string &relativePath, std::string &absolutePa…
/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/
Dzip_writer.cpp155 bool ZipWriter::ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath) in ZipOpenNewFileInZip() argument
162 int res = zipOpenNewFileInZip4(zip_file, strPath.c_str(), &fileInfo, in ZipOpenNewFileInZip()
172 bool ZipWriter::AddFileContentToZip(zipFile zip_file, std::string &file_path) in AddFileContentToZip() argument
195 if (zipWriteInFileInZip(zip_file, buf, readSum) != ZIP_OK) { in AddFileContentToZip()
209 bool ZipWriter::OpenNewFileEntry(zipFile zip_file, std::string &path) in OpenNewFileEntry() argument
213 bool ret = ZipOpenNewFileInZip(zip_file, path); in OpenNewFileEntry()
219 bool ZipWriter::CloseNewFileEntry(zipFile zip_file) in CloseNewFileEntry() argument
223 int res = zipCloseFileInZip(zip_file); in CloseNewFileEntry()
230 bool ZipWriter::AddFileEntryToZip(zipFile zip_file, std::string &relativePath, std::string &absolut… in AddFileEntryToZip() argument
235 if (!OpenNewFileEntry(zip_file, relativePath)) { in AddFileEntryToZip()
[all …]
/base/update/packaging_tools/
Dupdate_package.py353 zip_file = zipfile.ZipFile(file_obj.name, 'w', zipfile.ZIP_DEFLATED)
358 zip_file.write(key, value)
362 zip_file.write(update_exe_path, UPDATE_EXE_FILE_NAME)
366 zip_file.write(total_script_file_obj.name, TOTAL_SCRIPT_FILE_NAME)
369 zip_file.write(register_script_file_obj.name, REGISTER_SCRIPT_FILE_NAME)
372 if create_hsd_for_build_tools(zip_file, files_to_sign) is False:
378 zip_file = zipfile.ZipFile(OPTIONS_MANAGER.update_package_file_path,
381 zip_file.write(OPTIONS_MANAGER.update_bin_obj.name, "update.bin")
383 zip_file.write(OPTIONS_MANAGER.build_tools_zip_obj.name, BUILD_TOOLS_FILE_NAME)
385 zip_file.write(OPTIONS_MANAGER.version_mbn_file_path, "version_list")
[all …]
Dbuild_hmp.py163 zip_file = zipfile.ZipFile(out_package_path, 'w', zipfile.ZIP_DEFLATED, allowZip64=True)
165 zip_file.write(module_file, os.path.basename(module_file))
166 zip_file.write(pack_info, os.path.basename(pack_info))
167 zip_file.close()
Dbuild_module_package.py393 zip_file = zipfile.ZipFile(unsigned_package, 'w')
397 zip_file.write(img_file_path, "module.img")
400 zip_file.write(module_file_path, "config.json")
404 zip_file.write(pub_key_file_path, 'pub_key.pem')
405 zip_file.close()
Dpatch_package_process.py539 def package_block_patch(self, zip_file): argument
544 zip_file.write(self.new_dat_file_obj.name, self.partition_new_dat_file_name)
546 zip_file.write(self.patch_dat_file_obj.name, self.partition_patch_dat_file_name)
548 zip_file.write(self.transfer_list_file_obj.name, self.partition_transfer_file_name)