Home
last modified time | relevance | path

Searched refs:outPath (Results 1 - 25 of 36) sorted by relevance

12

/developtools/packing_tool/packing_tool/frameworks/test/unittest/packager_test/
H A Dpackager_test.cpp144 std::string outPath = "/data/test/entry-default-unsigned.hap"; in HWTEST_F() local
148 EXPECT_TRUE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
149 EXPECT_FALSE(packager.IsOutPathValid(outPath, "false", suffix)); in HWTEST_F()
150 outPath = "/data/test/entry-default-unsigned.har"; in HWTEST_F()
151 EXPECT_FALSE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
153 EXPECT_TRUE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
154 outPath = "/data/test/entry-default-unsigned.hsp"; in HWTEST_F()
155 EXPECT_FALSE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
157 EXPECT_TRUE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
158 outPath in HWTEST_F()
[all...]
/developtools/packing_tool/packing_tool/frameworks/src/
H A Dapp_packager.cpp54 std::string outPath; in Process() local
56 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process()
58 if (fs::exists(outPath)) { in Process()
59 fs::remove_all(outPath); in Process()
204 bool AppPackager::GetAndCheckOutPath(std::string &outPath) in GetAndCheckOutPath() argument
210 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in GetAndCheckOutPath()
211 if (outPath.empty()) { in GetAndCheckOutPath()
215 if (outPath.find('.') == std::string::npos || in GetAndCheckOutPath()
216 outPath.substr(outPath in GetAndCheckOutPath()
344 std::string outPath; IsVerifyValidInAppMode() local
356 PrepareDirectoriesAndFiles(const std::string outPath) PrepareDirectoriesAndFiles() argument
510 std::string outPath; CompressAppMode() local
[all...]
H A Dhqf_packager.cpp52 fs::path outPath(parameterMap_.at(Constants::PARAM_OUT_PATH)); in PreProcess()
54 if (fs::exists(outPath) && fs::is_regular_file(outPath)) { in PreProcess()
55 LOGE("%s already exist and can not overwrite.", outPath.c_str()); in PreProcess()
60 if (!fs::exists(outPath.parent_path())) { in PreProcess()
61 fs::create_directories(outPath.parent_path()); in PreProcess()
102 std::string outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process() local
103 zipWrapper_.Open(outPath); in Process()
H A Dmultiapp_packager.cpp58 std::string outPath; in Process() local
60 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process()
62 if (fs::exists(outPath)) { in Process()
63 fs::remove_all(outPath); in Process()
76 bool MultiAppPackager::GetAndCheckOutPath(std::string &outPath) in GetAndCheckOutPath() argument
82 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in GetAndCheckOutPath()
83 if (outPath.empty()) { in GetAndCheckOutPath()
87 if (outPath.find('.') == std::string::npos || in GetAndCheckOutPath()
88 outPath.substr(outPath in GetAndCheckOutPath()
148 std::string outPath; IsVerifyValidInMultiAppMode() local
332 std::string outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); PrepareFilesForCompression() local
[all...]
H A Dappqf_packager.cpp97 fs::path outPath(parameterMap_.at(Constants::PARAM_OUT_PATH)); in PreProcess()
99 if (fs::exists(outPath) && fs::is_regular_file(outPath)) { in PreProcess()
104 if (!fs::exists(outPath.parent_path())) { in PreProcess()
105 fs::create_directories(outPath.parent_path()); in PreProcess()
125 std::string outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process() local
126 zipWrapper_.Open(outPath); in Process()
H A Dhsp_packager.cpp49 std::string outPath; in Process() local
51 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process()
53 if (fs::exists(outPath)) { in Process()
54 fs::remove_all(outPath); in Process()
65 std::string outPath; in PostProcess() local
67 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in PostProcess()
69 if (fs::exists(outPath)) { in PostProcess()
70 fs::remove_all(outPath); in PostProcess()
138 std::string outPath = ""; in IsVerifyValidInHspMode() local
142 outPath in IsVerifyValidInHspMode()
244 std::string outPath; CompressHspMode() local
[all...]
H A Dhap_packager.cpp51 std::string outPath = ""; in PreProcess() local
55 outPath = it->second; in PreProcess()
63 return IsOutPathValid(outPath, forceRewrite, Constants::HAP_SUFFIX); in PreProcess()
76 std::string outPath; in Process() local
78 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process()
80 if (fs::exists(outPath)) { in Process()
81 fs::remove_all(outPath); in Process()
93 std::string outPath; in PostProcess() local
95 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in PostProcess()
97 if (fs::exists(outPath)) { in PostProcess()
199 std::string outPath = ""; IsVerifyValidInHapMode() local
500 std::string outPath; OpenZipWrapper() local
[all...]
H A Dfast_app_packager.cpp61 std::string outPath; in Process() local
63 outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process()
65 if (fs::exists(outPath)) { in Process()
66 fs::remove_all(outPath); in Process()
109 std::string outPath = ""; in IsVerifyValidInFastAppMode() local
113 outPath = it->second; in IsVerifyValidInFastAppMode()
121 return IsOutPathValid(outPath, forceRewrite, Constants::APP_SUFFIX); in IsVerifyValidInFastAppMode()
563 bool FastAppPackager::Pack(const fs::path &inputPath, const fs::path &appPackInfo, const fs::path &outPath, in Pack() argument
575 return PackDir(inputPath, appPackInfo, outPath, path); in Pack()
578 return RepackHsp(inputPath, appPackInfo, outPath, pat in Pack()
585 PackDir(const fs::path &inputPath, const fs::path &appPackInfo, const fs::path &outPath, fs::path &path) PackDir() argument
614 RepackHsp(const fs::path &inputPath, const fs::path &appPackInfo, const fs::path &outPath, fs::path &path) RepackHsp() argument
657 std::string outPath; PackFastApp() local
[all...]
H A Dpackage_normalize.cpp122 std::string outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process() local
123 std::string tempPath = outPath + Constants::LINUX_FILE_SEPARATOR + Constants::COMPRESSOR_PACKAGENORMALIZE_TEMP_DIR in Process()
151 if (ZipUtils::Zip(tempPath, outPath + Constants::LINUX_FILE_SEPARATOR + filePath) != ZIP_ERR_SUCCESS) { in Process()
H A Dversion_normalize.cpp266 std::string outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process() local
267 std::string tempPath = outPath + Constants::LINUX_FILE_SEPARATOR + Constants::COMPRESSOR_VERSIONNORMALIZE_TEMP_DIR in Process()
280 outPath + Constants::LINUX_FILE_SEPARATOR + fs::path(path).filename().string())) { in Process()
287 if (!JsonUtils::StrToFile(NormalizeVersionUtils::ArrayToString(normalizeVersionList), outPath + in Process()
/developtools/packing_tool/adapter/ohos/
H A DCompressEntrance.java37 * @param outPath Indicates the out path.
40 public static boolean pack(String hapPath, String packInfoPath, String outPath) { in pack() argument
51 if (outPath == null || outPath.isEmpty()) { in pack()
52 LOG.error("CompressEntrance::pack outPath is invalid!"); in pack()
60 utility.setOutPath(outPath); in pack()
H A DUncompressEntrance.java133 * @param outPath Indicates the out path.
140 public static boolean unpack(String appPath, String outPath, String deviceType, boolean unpackApk) { in unpack() argument
146 if (outPath == null || outPath.isEmpty()) { in unpack()
147 LOG.error("UncompressEntrance::unpack outPath is invalid!"); in unpack()
155 utility.setOutPath(outPath); in unpack()
176 * @param outPath Indicates the out path.
181 public static boolean unpackHap(String hapPath, String outPath, boolean unpackApk) { in unpackHap() argument
187 if (outPath == null || outPath in unpackHap()
228 parseApp(String appPath, String parseMode, String deviceType, String hapName, String outPath) parseApp() argument
269 parseApp(InputStream input, String parseMode, String deviceType, String hapName, String outPath) parseApp() argument
[all...]
H A DScan.java165 String outPath = path + LINUX_FILE_SEPARATOR + fileName; in getAllInputFileList()
166 File outDir = new File(outPath); in getAllInputFileList()
170 unpackHap(targetPath, outPath); in getAllInputFileList()
179 private static void unpackHap(String srcPath, String outPath) throws BundleException { in unpackHap() argument
182 File destDir = new File(outPath); in unpackHap()
186 unpackEntryToFile(zipInputStream, outPath); in unpackHap()
193 private static void unpackEntryToFile(ZipInputStream zipInputStream, String outPath) in unpackEntryToFile() argument
198 File entryFile = new File(outPath, entryName); in unpackEntryToFile()
H A DScanStatSuffix.java226 String outPath = currentDir + File.separator + TMP_FOLDER_NAME; in statSuffix()
228 unpackHap(packageName, outPath); in statSuffix()
230 suffixResult.setPathList(getPathListData(outPath, packageName, soList)); in statSuffix()
231 List<ParamModelSuffix> resulList = setMapData(outPath, fileList, soList); in statSuffix()
232 File deleteFile = new File(outPath); in statSuffix()
249 private List<String> getPathListData(String outPath, String packageName, ArrayList<String> soList) { in getPathListData() argument
251 FileUtils.getFileList(outPath, soList); in getPathListData()
262 private List<ParamModelSuffix> setMapData(String outPath, List<String> fileList, ArrayList<String> soList) { in setMapData() argument
292 File deleteFile = new File(outPath); in setMapData()
494 private static void unpackHap(String srcPath, String outPath) throw argument
508 unpackEntryToFile(ZipInputStream zipInputStream, String outPath) unpackEntryToFile() argument
[all...]
H A DPackageNormalize.java68 Path outPath = Paths.get(utility.getOutPath()); 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()
86 Path tmpDir = Files.createTempDirectory(outPath, TMP); in normalize()
110 // 3.zip hsp, module.json, pack.info to outPath in normalize()
H A DUtility.java68 private String outPath = ""; field in Utility
395 return outPath; in getOutPath()
398 public void setOutPath(String outPath) { in setOutPath() argument
399 if (!outPath.startsWith(CMD_PREFIX)) { in setOutPath()
400 this.outPath = getFormattedPath(outPath); in setOutPath()
/developtools/ace_ets2bundle/compiler/
H A Duglify-source.js41 function uglifyCode(code, outPath) {
43 fs.writeFileSync(outPath, uglifyCode);
/developtools/packing_tool/packing_tool/frameworks/include/
H A Dapp_packager.h40 bool PrepareDirectoriesAndFiles(const std::string outPath);
45 bool GetAndCheckOutPath(std::string &outPath);
H A Dfast_app_packager.h52 bool Pack(const fs::path &inputPath, const fs::path &appPackInfo, const fs::path &outPath, fs::path &path);
53 bool PackDir(const fs::path &inputPath, const fs::path &appPackInfo, const fs::path &outPath, fs::path &path);
54 bool RepackHsp(const fs::path &inputPath, const fs::path &appPackInfo, const fs::path &outPath, fs::path &path);
/developtools/packing_tool/packing_tool/frameworks/test/unittest/multiapp_packager_test/
H A Dmultiapp_packager_test.cpp753 std::string outPath = tempDir + "/output.app"; in HWTEST_F() local
755 {OHOS::AppPackingTool::Constants::PARAM_OUT_PATH, outPath}, in HWTEST_F()
781 std::string outPath = tempDir + "/output.app"; in HWTEST_F() local
783 {OHOS::AppPackingTool::Constants::PARAM_OUT_PATH, outPath}, in HWTEST_F()
813 std::string outPath = tempDir + "/output.app"; in HWTEST_F() local
815 {OHOS::AppPackingTool::Constants::PARAM_OUT_PATH, outPath}, in HWTEST_F()
841 std::string outPath = tempDir + "/output.app"; in HWTEST_F() local
843 {OHOS::AppPackingTool::Constants::PARAM_OUT_PATH, outPath}, in HWTEST_F()
886 std::string outPath = tempDir + "/output.app"; in HWTEST_F() local
888 { OHOS::AppPackingTool::Constants::PARAM_OUT_PATH, outPath }, in HWTEST_F()
911 std::string outPath = tempDir + "/output.app"; HWTEST_F() local
941 std::string outPath = tempDir + "/output.app"; HWTEST_F() local
973 std::string outPath = tempDir + "/output.app"; HWTEST_F() local
[all...]
/developtools/packing_tool/ohos_packing_tool/frameworks/src/
H A Dhap_packager.cpp53 std::string outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process() local
54 zipFile zf = zipOpen64(outPath.c_str(), APPEND_STATUS_CREATE); in Process()
H A Dhsp_packager.cpp43 std::string outPath = parameterMap_.at(Constants::PARAM_OUT_PATH); in Process() local
44 zipFile zf = zipOpen64(outPath.c_str(), APPEND_STATUS_CREATE); in Process()
/developtools/global_resource_tool/src/
H A Dresource_append.cpp265 FileEntry::FilePath outPath(outputPath); in ScanFile()
266 return ResourceUtil::CopyFileInner(fileInfo.filePath, outPath.Append(ID_DEFINED_FILE).GetPath()); in ScanFile()
556 FileEntry::FilePath outPath(packageParser_.GetOutput()); in LoadResourceItemFromMem()
557 if (ResourceUtil::FileExist(outPath.Append(data).GetPath())) { in LoadResourceItemFromMem()
560 if (!ResourceUtil::CreateDirs(outPath.Append(data).GetParent().GetPath())) { in LoadResourceItemFromMem()
568 if (!ResourceUtil::CopyFileInner(filePathStr, outPath.Append(data).GetPath())) { in LoadResourceItemFromMem()
/developtools/profiler/device/plugins/hiebpf_plugin/tools/include/
H A Debpf_converter.h28 EbpfConverter(const std::string& inputPath, const std::string& outPath);
/developtools/profiler/host/smartperf/client/client_command/include/
H A Dsmartperf_command.h106 std::string outPath = "/data/local/tmp/data.csv"; member in OHOS::SmartPerf::SmartPerfCommand

Completed in 15 milliseconds

12