Home
last modified time | relevance | path

Searched refs:hspPath (Results 1 - 11 of 11) sorted by relevance

/developtools/packing_tool/packing_tool/frameworks/src/
H A Dapp_packager.cpp72 bool AppPackager::CheckBundleTypeConsistency(const std::string &hapPath, const std::string &hspPath) in CheckBundleTypeConsistency() argument
78 Packager::CompatibleProcess(hspPath, tmpHspPathList, Constants::HSP_SUFFIX); in CheckBundleTypeConsistency()
105 for (const auto& hspPath : tmpHspPathList) { in CheckBundleTypeConsistency()
107 if (!ModuleJsonUtils::GetStageHapVerifyInfo(hspPath, hapVerifyInfo)) { in CheckBundleTypeConsistency()
119 bool AppPackager::VerifyIsSharedApp(const std::list<std::string>& hspPath) in VerifyIsSharedApp() argument
122 if (!ModuleJsonUtils::GetStageHapVerifyInfo(hspPath.front(), hapVerifyInfo)) { in VerifyIsSharedApp()
131 bool AppPackager::IsSharedApp(const std::string &hapPath, const std::string &hspPath) in IsSharedApp() argument
136 if (hspPath.empty()) { in IsSharedApp()
140 if (CompatibleProcess(hspPath, tmpHspPathList, Constants::HSP_SUFFIX) in IsSharedApp()
167 bool AppPackager::IsAppService(const std::string &hapPath, const std::string &hspPath) in IsAppService() argument
189 CheckInputModulePath(const std::string &hapPath, const std::string &hspPath) CheckInputModulePath() argument
223 GetAndCheckHapPathAndHspPath(std::string &hapPath, std::string &hspPath) GetAndCheckHapPathAndHspPath() argument
327 std::string hspPath; IsVerifyValidInAppMode() local
[all...]
H A Dfast_app_packager.cpp255 for (const auto& hspPath : hspPathList) { in ModuleJsonAndPackInfoExists()
256 fs::path path = fs::path(hspPath); in ModuleJsonAndPackInfoExists()
289 for (const auto& hspPath : hspPathList) { in CheckBundleTypeConsistency()
290 if (GetBundleTypeFromPath(hspPath) != bundleType) { in CheckBundleTypeConsistency()
547 for (const auto& hspPath : formattedHspPathList_) { in Pack()
548 fs::path path = fs::path(hspPath); in Pack()
855 std::string FastAppPackager::UzipHspAndRemovePackInfo(const std::string& hspPath, const std::string& unzipPathString) in UzipHspAndRemovePackInfo() argument
857 ZipUtils::Unzip(hspPath, unzipPathString); in UzipHspAndRemovePackInfo()
/developtools/packing_tool/packing_tool/frameworks/include/
H A Dapp_packager.h33 bool CheckBundleTypeConsistency(const std::string &hapPath, const std::string &hspPath);
34 bool VerifyIsSharedApp(const std::list<std::string> &hspPath);
35 bool IsSharedApp(const std::string &hapPath, const std::string &hspPath);
37 bool IsAppService(const std::string &hapPath, const std::string &hspPath);
38 bool CheckInputModulePath(const std::string &hapPath, const std::string &hspPath);
46 bool GetAndCheckHapPathAndHspPath(std::string &hapPath, std::string &hspPath);
H A Dfast_app_packager.h69 std::string UzipHspAndRemovePackInfo(const std::string& hspPath, const std::string& unzipPathString);
/developtools/packing_tool/packing_tool/frameworks/test/unittest/app_packager_test/
H A Dapp_packager_test.cpp163 const std::string hspPath; in HWTEST_F() local
166 EXPECT_TRUE(appPackager.CheckBundleTypeConsistency(hapPath, hspPath)); in HWTEST_F()
181 const std::string hspPath; in HWTEST_F() local
191 EXPECT_FALSE(appPackager.CheckBundleTypeConsistency(hapPath, hspPath)); in HWTEST_F()
206 const std::string hspPath; in HWTEST_F() local
215 EXPECT_FALSE(appPackager.CheckBundleTypeConsistency(hapPath, hspPath)); in HWTEST_F()
231 const std::string hspPath(HSP_PATH); in HWTEST_F()
234 EXPECT_TRUE(appPackager.CheckBundleTypeConsistency(hapPath, hspPath)); in HWTEST_F()
249 const std::string hspPath(HSP_PATH); in HWTEST_F()
259 EXPECT_FALSE(appPackager.CheckBundleTypeConsistency(hapPath, hspPath)); in HWTEST_F()
298 const std::string hspPath; HWTEST_F() local
349 const std::string hspPath; HWTEST_F() local
366 std::list<std::string> hspPath; HWTEST_F() local
384 std::list<std::string> hspPath; HWTEST_F() local
403 std::list<std::string> hspPath; HWTEST_F() local
422 const std::string hspPath; HWTEST_F() local
440 const std::string hspPath; HWTEST_F() local
552 const std::string hspPath; HWTEST_F() local
572 const std::string hspPath; HWTEST_F() local
631 const std::string hspPath; HWTEST_F() local
671 const std::string hspPath; HWTEST_F() local
[all...]
/developtools/packing_tool/adapter/ohos/
H A DPackageNormalize.java69 for (String hspPath : utility.getFormattedHspPathList()) { in normalize()
71 normalize(Paths.get(hspPath), outPath, utility.getBundleName(), utility.getVersionCode()); in normalize()
83 private static void normalize(Path hspPath, Path outPath, String bundleName, int versionCode) in normalize() argument
85 Path outHspPath = outPath.resolve(hspPath.getFileName()); in normalize()
89 try (ZipFile hspFile = new ZipFile(hspPath.toFile()); in normalize()
H A DUtility.java75 private String hspPath = ""; field in Utility
454 public void setHspPath(String hspPath) { in setHspPath() argument
455 if (!hspPath.startsWith(CMD_PREFIX)) { in setHspPath()
456 this.hspPath = hspPath; in setHspPath()
461 return hspPath; in getHspPath()
H A DPackageUtil.java712 for (String hspPath : hspPathList) { in checkBundleTypeConsistency()
713 if (!bundleType.equals(getBundleTypeFromPath(Paths.get(hspPath)))) { in checkBundleTypeConsistency()
736 for (String hspPath : hspPathList) { in moduleJsonAndPackInfoExists()
737 Path path = Paths.get(hspPath); in moduleJsonAndPackInfoExists()
920 for (String hspPath : hspPathList) { in isPackInfoValid()
921 List<String> list = getPackageNameFromPath(Paths.get(hspPath)); in isPackInfoValid()
923 LOG.error("module pack.info format err: " + hspPath); in isPackInfoValid()
928 LOG.error("module pack.info name not exist in app pack.info name list: " + hspPath); in isPackInfoValid()
932 LOG.error("package name is redundant in " + hspPath); in isPackInfoValid()
H A DCompressVerify.java482 LOG.warning("CompressVerify::isArgsValidInAppMode input hap-path or hspPath is invalid."); in isVerifyValidInAppMode()
558 for (String hspPath : tmpHspPathList) { in checkBundleTypeConsistency()
559 HapVerifyInfo hapVerifyInfo = Compressor.parseStageHapVerifyInfo(hspPath); in checkBundleTypeConsistency()
1126 private static boolean verifyIsSharedApp(List<String> hspPath) { in verifyIsSharedApp() argument
1128 HapVerifyInfo hapVerifyInfo = Compressor.parseStageHapVerifyInfo(hspPath.get(0)); in verifyIsSharedApp()
H A DCompressor.java1275 for (String hspPath : utility.getFormattedHspPathList()) { in compressFastAppMode()
1276 Path path = Paths.get(hspPath); in compressFastAppMode()
/developtools/packing_tool/packing_tool/frameworks/test/unittest/fast_app_packager_test/
H A Dfast_app_packager_test.cpp798 std::string hspPath; in HWTEST_F() local
801 fastAppackager.UzipHspAndRemovePackInfo(hspPath, unzipPathString); in HWTEST_F()

Completed in 16 milliseconds