Home
last modified time | relevance | path

Searched refs:ZipUtils (Results 1 - 18 of 18) sorted by relevance

/developtools/packing_tool/packing_tool/frameworks/include/
H A Dzip_utils.h26 class ZipUtils { class
28 ZipUtils();
29 virtual ~ZipUtils();
31 ZipUtils(const ZipUtils &) = delete;
32 ZipUtils &operator=(const ZipUtils &) = delete;
/developtools/packing_tool/packing_tool/frameworks/src/
H A Dzip_utils.cpp32 ZipUtils::ZipUtils() in ZipUtils() function in OHOS::AppPackingTool::ZipUtils
35 ZipUtils::~ZipUtils() in ~ZipUtils()
38 int32_t ZipUtils::Zip(const std::string& filePath, const std::string& zipFilePath, in Zip()
57 int32_t ZipUtils::Unzip(const std::string& zipPath, const std::string& filePath) in Unzip()
72 bool ZipUtils::IsFileExistsInZip(const std::string& zipFilePath, const std::string& filename) in IsFileExistsInZip()
120 bool ZipUtils::IsFileNameExistsInZip(const std::string& zipFilePath, const std::string& filename) in IsFileNameExistsInZip()
167 bool ZipUtils::GetFileContentFromZip(const std::string& zipFilePath, const std::string& filename, in GetFileContentFromZip()
219 bool ZipUtils
[all...]
H A Dpackage_normalize.cpp128 if (ZipUtils::Unzip(path, tempPath) != ZIP_ERR_SUCCESS) { in Process()
151 if (ZipUtils::Zip(tempPath, outPath + Constants::LINUX_FILE_SEPARATOR + filePath) != ZIP_ERR_SUCCESS) { in Process()
H A Dpackager.cpp381 if (!ZipUtils::IsFileExistsInZip(hapPath, Constants::MODULE_JSON)) { in IsModuleHap()
393 ZipUtils::Unzip(hapPathItem, unzipPathString); in CompressPackinfoIntoHap()
416 ZipUtils::Zip(unzipPathString, outPathString); in CompressPackinfoIntoHap()
H A Dmultiapp_packager.cpp177 ZipUtils::Unzip(appPath, tempPath); in CopyHapAndHspFromApp()
213 if (ZipUtils::IsFileExistsInZip(filePath, jsonName)) { in GetJsonInZips()
214 if (ZipUtils::GetFileContentFromZip(filePath, jsonName, jsonStr)) { in GetJsonInZips()
H A Dappqf_packager.cpp56 if (!ZipUtils::GetFileContentFromZip(hqfPath, Constants::PATCH_JSON, content)) { in CheckHqfList()
H A Dfast_app_packager.cpp323 if (!ZipUtils::GetFileContentFromZip(path, Constants::MODULE_JSON, fileContent)) { in GetModuleJsonContentFromPath()
461 if (!ZipUtils::GetFileContentFromZip(path, Constants::PACK_INFO, fileContent)) { in GetPackInfoContentFromPath()
857 ZipUtils::Unzip(hspPath, unzipPathString); in UzipHspAndRemovePackInfo()
H A Dversion_normalize.cpp274 ZipUtils::Unzip(path, tempPath); in Process()
/developtools/hapsigner/hapsigntool_cpp/zip/include/
H A Dzip_utils.h27 class ZipUtils { class
29 ZipUtils() = delete;
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
H A DZipUtils.java30 public class ZipUtils { class
56 private ZipUtils() { in ZipUtils() method in ZipUtils
199 long centralDirectoryStartOffset = ZipUtils.getCentralDirectoryOffset(eocdBuffer); in findZipInfo()
204 long centralDirectorySizeLong = ZipUtils.getCentralDirectorySize(eocdBuffer); in findZipInfo()
214 int centralDirectoryCount = ZipUtils.getCentralDirectoryCount(eocdBuffer); in findZipInfo()
/developtools/packing_tool/packing_tool/frameworks/test/unittest/zip_utils_test/
H A Dzip_utils_test.cpp127 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
145 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
167 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
188 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
209 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
231 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
254 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
275 OHOS::AppPackingTool::ZipUtils zipUtils; in HWTEST_F()
/developtools/hapsigner/hapsigntool_cpp/zip/src/
H A Dzip_utils.cpp25 bool ZipUtils::SetCentralDirectoryOffset(ByteBuffer& eocd, int64_t offset) in SetCentralDirectoryOffset()
34 bool ZipUtils::SetUInt32ToBuffer(ByteBuffer& buffer, int offset, int64_t value) in SetUInt32ToBuffer()
/developtools/packing_tool/packing_tool/frameworks/src/json/
H A Dmodule_json_utils.cpp57 if (!ZipUtils::GetFileContentFromZip(hapFilePath, MODULE_JSON, fileContent)) { in GetStageHapVerifyInfo()
61 if (!ZipUtils::GetResourceMapFromZip(hapFilePath, resourceMap)) { in GetStageHapVerifyInfo()
89 if (!ZipUtils::GetFileContentFromZip(hapFilePath, CONFIG_JSON, fileContent)) { in GetFaHapVerifyInfo()
199 return ZipUtils::IsFileExistsInZip(hapFilePath, MODULE_JSON); in IsModuleHap()
/developtools/packing_tool/packing_tool/frameworks/test/unittest/app_packager_test/mock/
H A Dmock_module_json_utils.cpp84 if (!ZipUtils::GetFileContentFromZip(hapFilePath, MODULE_JSON, fileContent)) { in GetStageHapVerifyInfo()
88 if (!ZipUtils::GetResourceMapFromZip(hapFilePath, resourceMap)) { in GetStageHapVerifyInfo()
128 if (!ZipUtils::GetFileContentFromZip(hapFilePath, CONFIG_JSON, fileContent)) { in GetFaHapVerifyInfo()
246 return ZipUtils::IsFileExistsInZip(hapFilePath, MODULE_JSON); in IsModuleHap()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
H A DVerifyHap.java36 import com.ohos.hapsigntool.zip.ZipUtils;
245 ZipFileInfo zipInfo = ZipUtils.findZipInfo(hapFile); in verifyHap()
247 if (ZipUtils.checkZip64EoCDLocatorIsPresent(hapFile, eocdOffset)) { in verifyHap()
300 ZipUtils.setCentralDirectoryOffset(eocdBbyteBuffer, signingBlockOffset); in getHapVerify()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/
H A DSignProvider.java58 import com.ohos.hapsigntool.zip.ZipUtils;
341 ZipFileInfo zipInfo = ZipUtils.findZipInfo(outputHapIn); in sign()
358 ZipUtils.setCentralDirectoryOffset(eocdBuffer, newCentralDirectoryOffset); in sign()
/developtools/hapsigner/hapsigntool_cpp_test/unittest/zip/
H A Dzip_signer_test.cpp512 * @tc.desc: Test function of ZipUtils::SetCentralDirectoryOffset() interface for SUCCESS.
528 EXPECT_EQ(ZipUtils::SetCentralDirectoryOffset(eocdPair.first, newCentralDirOffset), true); in HWTEST_F()
533 * @tc.desc: Test function of ZipUtils::SetCentralDirectoryOffset() interface.
548 EXPECT_EQ(ZipUtils::SetCentralDirectoryOffset(eocdPair.first, -1), false); in HWTEST_F()
553 * @tc.desc: Test function of ZipUtils::SetCentralDirectoryOffset() interface for FAIL.
569 ASSERT_FALSE(ZipUtils::SetCentralDirectoryOffset(eocdPair.first, 0x100000000LL)); in HWTEST_F()
/developtools/hapsigner/hapsigntool_cpp/hap/provider/src/
H A Dsign_provider.cpp258 if (!ZipUtils::SetCentralDirectoryOffset(dataSrcContents.eocdPair.first, newCentralDirectoryOffset)) { in Sign()

Completed in 12 milliseconds