/ohos5.0/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_zip.c | 283 zipFile zf; in HnpAddFileToZip() 415 if (zipFile == NULL) { in HnpFileCountGet() 423 unzClose(zipFile); in HnpFileCountGet() 430 unzClose(zipFile); in HnpFileCountGet() 437 unzClose(zipFile); in HnpFileCountGet() 455 if (zipFile == NULL) { in HnpUnZip() 465 unzClose(zipFile); in HnpUnZip() 469 unzClose(zipFile); in HnpUnZip() 500 unzClose(zipFile); in HnpUnZip() 511 if (zipFile == NULL) { in HnpCfgGetFromZip() [all …]
|
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/ |
H A D | dlp_zip_test.cpp | 107 std::string zipFile("test_zip"); variable 112 int32_t fd = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); 121 unlink(zipFile.c_str()); 134 std::string zipFile("test_zip"); variable 139 int32_t fd = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); 145 res = AddFileContextToZip(fd2, inZip.c_str(), zipFile.c_str()); 152 unlink(zipFile.c_str()); 167 std::string zipFile("test_zip"); variable 172 int32_t fd = open(zipFile.c_str(), O_WRONLY | O_CREAT, 0666); 176 int32_t fd2 = open(zipFile.c_str(), O_RDWR | O_CREAT, 0666); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | util.cpp | 198 if (zipFile == nullptr) { in ReadZipFile() 206 return CloseZipFile(zipFile, false); in ReadZipFile() 214 return CloseZipFile(zipFile, false); in ReadZipFile() 218 return CloseZipFile(zipFile, false); in ReadZipFile() 222 return CloseZipFile(zipFile, false); in ReadZipFile() 231 unzCloseCurrentFile(zipFile); in ReadZipFile() 234 unzCloseCurrentFile(zipFile); in ReadZipFile() 242 return CloseZipFile(zipFile, true); in ReadZipFile() 245 bool CloseZipFile(const unzFile zipFile, bool ret) in CloseZipFile() argument 247 unzClose(zipFile); in CloseZipFile() [all …]
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/ |
H A D | zip_writer.h | 39 static zipFile OpenForZipping(const std::string &fileName, int append); 40 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… 48 zipFile zipFile_;
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | zip_writer.cpp | 37 bool AddFileContentToZip(zipFile zip_file, FilePath &file_path) in AddFileContentToZip() 76 …zipFile zip_file, FilePath &path, bool isDirectory, struct tm *lastModified, const OPTIONS &option… in OpenNewFileEntry() 87 bool CloseNewFileEntry(zipFile zip_file) in CloseNewFileEntry() 92 bool AddFileEntryToZip(zipFile zip_file, FilePath &relativePath, FilePath &absolutePath, const OPTI… in AddFileEntryToZip() 109 bool AddDirectoryEntryToZip(zipFile zip_file, FilePath &path, struct tm *lastModified, const OPTION… in AddDirectoryEntryToZip() 116 zipFile ZipWriter::InitZipFileWithFd(PlatformFile zipFilefd) in InitZipFileWithFd() 123 zipFile zip_file = OpenFdForZipping(zipFilefd, APPEND_STATUS_CREATE); in InitZipFileWithFd() 131 zipFile ZipWriter::InitZipFileWithFile(const FilePath &zip_file_path) in InitZipFileWithFile() 140 zipFile zip_file = OpenForZipping(zipFilePath.Value(), APPEND_STATUS_CREATE); in InitZipFileWithFile() 148 ZipWriter::ZipWriter(zipFile zip_file) : zipFile_(zip_file) in ZipWriter()
|
H A D | zip_internal.cpp | 254 zipFile OpenForZipping(const std::string &fileNameUtf8, int appendFlag) in OpenForZipping() 263 zipFile OpenFdForZipping(PlatformFile zipFd, int appendFlag) in OpenFdForZipping() 272 …zipFile zipFile, const std::string &strPath, const OPTIONS &options, const struct tm *lastModified… in ZipOpenNewFileInZip() argument 278 if (ZIP_OK != zipOpenNewFileInZip4(zipFile, // file in ZipOpenNewFileInZip()
|
/ohos5.0/base/update/updater/test/fuzztest/package_fuzzer/ |
H A D | package_fuzzer.cpp | 165 ZipFileInfo zipFile; in TestGZipPkgCompress() local 166 zipFile.fileInfo.identity = testPackageName; in TestGZipPkgCompress() 168 zipFile.fileInfo.digestMethod = PKG_DIGEST_TYPE_CRC; in TestGZipPkgCompress() 215 Lz4FileInfo zipFile; in TestLz4PkgCompress() local 217 zipFile.fileInfo.identity = testPackageName; in TestLz4PkgCompress() 218 zipFile.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in TestLz4PkgCompress() 219 zipFile.fileInfo.digestMethod = PKG_DIGEST_TYPE_CRC; in TestLz4PkgCompress() 220 zipFile.compressionLevel = compressionLevel; in TestLz4PkgCompress() 221 zipFile.blockSizeID = 0; in TestLz4PkgCompress() 222 zipFile.contentChecksumFlag = 0; in TestLz4PkgCompress() [all …]
|
H A D | pkg_fuzz_test.h | 180 ZipFileInfo zipFile; in CreateZipPackage() local 181 zipFile.fileInfo.identity = name; in CreateZipPackage() 182 zipFile.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in CreateZipPackage() 183 zipFile.fileInfo.digestMethod = PKG_DIGEST_TYPE_CRC; in CreateZipPackage() 185 files.push_back(std::pair<std::string, ZipFileInfo>(fileName, zipFile)); in CreateZipPackage()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/include/ |
H A D | zip_internal.h | 58 zipFile OpenForZipping(const std::string &fileNameUtf8, int appendFlag); 62 zipFile OpenFdForZipping(PlatformFile zipFd, int appendFlag); 65 …zipFile zipFile, const std::string &strPath, const OPTIONS &options, const struct tm *lastModified…
|
H A D | zip_writer.h | 38 static zipFile InitZipFileWithFd(PlatformFile zipFilefd); 39 static zipFile InitZipFileWithFile(const FilePath &zip_file_path); 41 explicit ZipWriter(zipFile zip_file); 71 zipFile zipFile_;
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | hap_parser.cpp | 38 void UnzCloseFileAndLog(unzFile uf, const char *zipFile) in UnzCloseFileAndLog() argument 42 HILOG_ERROR("Error %d with zipfile %s in unzCloseCurrentFile", err, zipFile); in UnzCloseFileAndLog() 53 unzFile uf = unzOpen64(zipFile); // open zipfile stream in ReadFileFromZip() 55 errInfo = FormatString("Cannot open %s", zipFile); in ReadFileFromZip() 62 errInfo = FormatString("File %s not found in %s", fileName, zipFile); in ReadFileFromZip() 92 errInfo = FormatString("Error %d with zipfile %s in unzReadCurrentFile", err, zipFile); in ReadFileFromZip() 95 UnzCloseFileAndLog(uf, zipFile); // close the zipfile in ReadFileFromZip() 100 UnzCloseFileAndLog(uf, zipFile); // close the zipfile in ReadFileFromZip() 126 int32_t HapParser::ReadIndexFromFile(const char *zipFile, void **buffer, in ReadIndexFromFile() argument 132 int32_t ret = ReadFileFromZip(zipFile, "config.json", &tmpBuf, tmpLen, tmp); in ReadIndexFromFile() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/include/ |
H A D | zip_util.h | 30 … static zipFile CreateZipFile(const std::string& zipPath, int32_t zipMode = APPEND_STATUS_CREATE); 31 static void CloseZipFile(zipFile& zipfile); 33 …zipFile& zipfile, const std::string& srcFile, int keepParentPathStatus, const std::string& dstFile…
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/log/ |
H A D | backup_zip_util.h | 31 …EXPORT static zipFile CreateZipFile(const std::string& zipPath, int32_t zipMode = APPEND_STATUS_CR… 32 EXPORT static void CloseZipFile(zipFile& zipfile); 34 …zipFile& zipfile, const std::string& srcFile, int keepParentPathStatus, const std::string& dstFile…
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/ |
H A D | zip_writer.cpp | 151 zipFile ZipWriter::OpenForZipping(const std::string &fileName, int append) in OpenForZipping() 156 bool ZipWriter::ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath) in ZipOpenNewFileInZip() 173 bool ZipWriter::AddFileContentToZip(zipFile zip_file, std::string &file_path) in AddFileContentToZip() 210 bool ZipWriter::OpenNewFileEntry(zipFile zip_file, std::string &path) in OpenNewFileEntry() 220 bool ZipWriter::CloseNewFileEntry(zipFile zip_file) in CloseNewFileEntry() 231 bool ZipWriter::AddFileEntryToZip(zipFile zip_file, std::string &relativePath, std::string &absolut… in AddFileEntryToZip()
|
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
H A D | dlp_zip.cpp | 52 zipFile zf = zipOpen64(zipName, APPEND_STATUS_ADDINZIP); in AddBuffToZip() 95 zipFile zf = zipOpen64(zipName, APPEND_STATUS_ADDINZIP); in AddFileContextToZip() 203 static zipFile OpenZipFile(int fd) in OpenZipFile() 205 zipFile uf = OpenFdForUnzipping(fd); in OpenZipFile() 215 zipFile uf = OpenZipFile(fd); in CheckUnzipFileInfo() 265 zipFile uf; in UnzipSpecificFile()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/log/ |
H A D | backup_zip_util.cpp | 32 zipFile BackupZipUtil::CreateZipFile(const std::string& zipPath, int32_t zipMode) in CreateZipFile() 37 void BackupZipUtil::CloseZipFile(zipFile& zipfile) in CloseZipFile() 43 …zipFile& zipfile, const std::string& srcFile, int keepParentPathStatus, const std::string& destFil… in AddFileInZip()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | zip_util.cpp | 32 zipFile ZipUtil::CreateZipFile(const std::string& zipPath, int32_t zipMode) in CreateZipFile() 37 void ZipUtil::CloseZipFile(zipFile& zipfile) in CloseZipFile() 43 …zipFile& zipfile, const std::string& srcFile, int keepParentPathStatus, const std::string& destFil… in AddFileInZip()
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/ |
H A D | trace_utils.cpp | 400 … zipFile zipFile = zipOpen((UNIFIED_SHARE_TEMP_PATH + zipFileName).c_str(), APPEND_STATUS_CREATE); in ZipTraceFile() local 401 if (zipFile == nullptr) { in ZipTraceFile() 410 …zipFile, sysFileName.c_str(), &zipInfo, nullptr, 0, nullptr, 0, nullptr, Z_DEFLATED, Z_DEFAULT_COM… in ZipTraceFile() 420 zipWriteInFileInZip(zipFile, buf, static_cast<unsigned int>(numBytes)); in ZipTraceFile() 428 zipCloseFileInZip(zipFile); in ZipTraceFile() 429 zipClose(zipFile, nullptr); in ZipTraceFile()
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_handler_asset.cpp | 409 zipFile outputFile = zipOpen64(zipFileName.c_str(), APPEND_STATUS_CREATE); in CompressFile() 463 unzFile zipFile = unzOpen64(unZipFileName.c_str()); in DecompressFile() local 464 if (!zipFile) { in DecompressFile() 470 if (unzGetGlobalInfo64(zipFile, &globalInfo) != UNZ_OK) { in DecompressFile() 471 unzClose(zipFile); in DecompressFile() 479 std::string filePath = ExtractFile(zipFile, relativePath.c_str()); in DecompressFile() 483 unzCloseCurrentFile(zipFile); in DecompressFile() 484 unzGoToNextFile(zipFile); in DecompressFile() 486 unzClose(zipFile); in DecompressFile()
|
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | hap_parser.h | 40 static int32_t ReadFileFromZip(const char *zipFile, const char *fileName, void **buffer, 51 static int32_t ReadIndexFromFile(const char *zipFile, void **buffer,
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/bootanimation/include/ |
H A D | util.h | 153 bool ReadImageFile(const unzFile zipFile, const std::string& fileName, ImageStructVec& imgVec, 161 bool CloseZipFile(const unzFile zipFile, bool ret);
|
/ohos5.0/base/update/packaging_tools/zipalign/src/main/java/com/ohos/ |
H A D | ZipAlign.java | 105 private static List<String> getEntryNamesFromZip(ZipFile zipFile) { in getEntryNamesFromZip() argument 107 for (Enumeration e = zipFile.entries(); e.hasMoreElements();) { in getEntryNamesFromZip()
|
/ohos5.0/base/update/sys_installer/tools/zipalign/src/main/java/com/ohos/ |
H A D | ZipAlign.java | 106 private static List<String> getEntryNamesFromZip(ZipFile zipFile) { in getEntryNamesFromZip() argument 108 for (Enumeration e = zipFile.entries(); e.hasMoreElements();) { in getEntryNamesFromZip()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/event_store/event_export/task/export/ |
H A D | export_json_file_writer.cpp | 337 auto zipFile = GetZipFile(exportDir_); in Write() local 338 HIVIEW_LOGD("zipFile: %{public}s", StringUtil::HideDeviceIdInfo(zipFile).c_str()); in Write() 340 exportJsonFileZippedListener_(tmpZipFile, zipFile); in Write()
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/include/ |
H A D | hiview_zip_util.h | 43 zipFile zipFile_ { nullptr };
|