/developtools/packing_tool/packing_tool/frameworks/include/ |
H A D | zip_utils.h | 26 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 D | zip_utils.cpp | 32 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 D | package_normalize.cpp | 128 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 D | packager.cpp | 381 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 D | multiapp_packager.cpp | 177 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 D | appqf_packager.cpp | 56 if (!ZipUtils::GetFileContentFromZip(hqfPath, Constants::PATCH_JSON, content)) { in CheckHqfList()
|
H A D | fast_app_packager.cpp | 323 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 D | version_normalize.cpp | 274 ZipUtils::Unzip(path, tempPath); in Process()
|
/developtools/hapsigner/hapsigntool_cpp/zip/include/ |
H A D | zip_utils.h | 27 class ZipUtils { class 29 ZipUtils() = delete;
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
H A D | ZipUtils.java | 30 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 D | zip_utils_test.cpp | 127 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 D | zip_utils.cpp | 25 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 D | module_json_utils.cpp | 57 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 D | mock_module_json_utils.cpp | 84 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 D | VerifyHap.java | 36 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 D | SignProvider.java | 58 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 D | zip_signer_test.cpp | 512 * @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 D | sign_provider.cpp | 258 if (!ZipUtils::SetCentralDirectoryOffset(dataSrcContents.eocdPair.first, newCentralDirectoryOffset)) { in Sign()
|