Home
last modified time | relevance | path

Searched refs:suffix (Results 1 - 25 of 30) sorted by relevance

12

/developtools/packing_tool/packing_tool/frameworks/test/unittest/packager_test/
H A Dpackager_test.cpp124 const std::string suffix; in HWTEST_F() local
125 EXPECT_TRUE(packager.CompatibleProcess(inPutPath, fileList, suffix)); in HWTEST_F()
145 std::string suffix = ".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()
151 EXPECT_FALSE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
152 suffix = ".har"; in HWTEST_F()
153 EXPECT_TRUE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
155 EXPECT_FALSE(packager.IsOutPathValid(outPath, "true", suffix)); in HWTEST_F()
156 suffix in HWTEST_F()
[all...]
/developtools/packing_tool/packing_tool/frameworks/src/
H A Dpackager.cpp95 bool Packager::IsPathValid(const std::string &path, const bool &isFile, const std::string suffix) in IsPathValid() argument
102 if (Utils::EndsWith(name, suffix)) { in IsPathValid()
139 const std::string &suffix) in CompatibleProcess()
147 if (Utils::EndsWith(name, suffix)) { in CompatibleProcess()
161 if (!IsPathValid(formattedPathItem, true, suffix)) { in CompatibleProcess()
171 const std::string &suffix, const std::string &extraSuffix) in CompatibleProcess()
179 if (Utils::EndsWith(name, suffix) || Utils::EndsWith(name, extraSuffix)) { in CompatibleProcess()
193 if (!IsPathValid(formattedPathItem, true, suffix) && in CompatibleProcess()
203 bool Packager::IsOutPathValid(const std::string &outPath, const std::string &forceRewrite, const std::string &suffix) in IsOutPathValid() argument
212 if (suffix in IsOutPathValid()
138 CompatibleProcess(const std::string &inputPath, std::list<std::string> &fileList, const std::string &suffix) CompatibleProcess() argument
170 CompatibleProcess(const std::string &inputPath, std::list<std::string> &fileList, const std::string &suffix, const std::string &extraSuffix) CompatibleProcess() argument
[all...]
H A Dutils.cpp102 bool Utils::EndsWith(const std::string& str, const std::string& suffix) in EndsWith() argument
104 if (str.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), str.rbegin())) { in EndsWith()
356 bool Utils::CheckFileSuffix(const std::string& filePath, const std::string& suffix) in CheckFileSuffix() argument
359 if (fs::is_regular_file(fsFilePath) && EndsWith(fsFilePath.filename(), suffix)) { in CheckFileSuffix()
H A Dhsp_packager.cpp154 const std::string &suffix) in Compatible()
158 fileList, suffix)) { in Compatible()
153 Compatible(const std::string &paramPath, std::list<std::string> &fileList, const std::string &suffix) Compatible() argument
/developtools/packing_tool/ohos_packing_tool/frameworks/src/
H A Dpackager.cpp149 bool Packager::endWith(const std::string &str, const std::string &suffix) in endWith() argument
151 if (str.length() >= suffix.length()) { in endWith()
152 return str.compare(str.length() - suffix.length(), suffix.length(), suffix); in endWith()
/developtools/packing_tool/packing_tool/frameworks/include/
H A Dpackager.h69 bool IsPathValid(const std::string &path, const bool &isFile, const std::string suffix = "");
72 bool CompatibleProcess(const std::string &inputPath, std::list<std::string> &fileList, const std::string &suffix);
74 const std::string &suffix, const std::string &extraSuffix);
75 bool IsOutPathValid(const std::string &outPath, const std::string &forceRewrite, const std::string &suffix);
H A Dutils.h48 static bool EndsWith(const std::string& str, const std::string& suffix);
69 static bool CheckFileSuffix(const std::string& filePath, const std::string& suffix);
H A Dhap_packager.h35 bool Compatible(const std::string &paramPath, std::list<std::string> &fileList, const std::string &suffix);
H A Dhsp_packager.h35 bool Compatible(const std::string &paramPath, std::list<std::string> &fileList, const std::string &suffix);
/developtools/packing_tool/packing_tool/frameworks/test/unittest/utils_Test/
H A Dutils_test.cpp177 std::string suffix = {".txt"}; in HWTEST_F() local
178 EXPECT_TRUE(OHOS::AppPackingTool::Utils::EndsWith(str, suffix)); in HWTEST_F()
425 std::string suffix("json"); in HWTEST_F()
426 EXPECT_TRUE(OHOS::AppPackingTool::Utils::CheckFileSuffix(filePath, suffix)); in HWTEST_F()
582 std::string suffix("xxx"); in HWTEST_F()
583 EXPECT_FALSE(OHOS::AppPackingTool::Utils::CheckFileSuffix(filePath, suffix)); in HWTEST_F()
/developtools/hapsigner/hapsigntool_cpp/utils/src/
H A Dfile_utils.cpp68 std::string suffix = GetSuffix(filePath); in ValidFileType() local
69 bool flag = suffix.empty() || (StringUtils::ContainsCase(types, suffix) == false); in ValidFileType()
391 std::string suffix = name.substr(dotPos + 1); in IsRunnableFile() local
392 if (suffix == "an" || suffix == "abc") { in IsRunnableFile()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/provider/
H A DSignProvider.java332 String suffix = getFileSuffix(input); in sign()
334 tmpOutput = isPathOverlap ? File.createTempFile("signedHap", "." + suffix) : output; in sign()
337 Zip zip = copyFileAndAlignment(input, tmpOutput, alignment, suffix); in sign()
355 appendCodeSignBlock(signerConfig, tmpOutput, suffix, centralDirectoryOffset, zip); in sign()
379 * @param suffix suffix
388 private void appendCodeSignBlock(SignerConfig signerConfig, File tmpOutput, String suffix, in appendCodeSignBlock() argument
393 if (!StringUtils.containsIgnoreCase(CodeSigning.SUPPORT_FILE_FORM, suffix)) { in appendCodeSignBlock()
394 LOGGER.info("no need to sign code for :" + suffix); in appendCodeSignBlock()
401 byte[] codeSignArray = codeSigning.getCodeSignBlock(tmpOutput, codeSignOffset, suffix, profileConten in appendCodeSignBlock()
505 copyFileAndAlignment(File input, File tmpOutput, int alignment, String suffix) copyFileAndAlignment() argument
[all...]
/developtools/hapsigner/hapsigntool_cpp/hap/provider/include/
H A Dsign_provider.h98 int CheckParmaAndInitConfig(SignerConfig& config, Options* options, std::string& suffix);
128 const std::string& suffix, int64_t centralDirectoryOffset, ZipSigner& zip);
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
H A Dkernel_symbols_parser_test.cpp61 std::string RandomName(int len, bool suffix) in RandomName() argument
68 if (suffix) { in RandomName()
/developtools/hapsigner/hapsigntool_cpp/hap/provider/src/
H A Dsign_provider.cpp68 int SignProvider::CheckParmaAndInitConfig(SignerConfig& signerConfig, Options* options, std::string& suffix) in CheckParmaAndInitConfig() argument
87 suffix = FileUtils::GetSuffix(inputFilePath); in CheckParmaAndInitConfig()
88 if (suffix == "") { in CheckParmaAndInitConfig()
217 std::string suffix; in Sign() local
218 if (CheckParmaAndInitConfig(signerConfig, options, suffix) != RET_OK) { in Sign()
245 if (!AppendCodeSignBlock(&signerConfig, tmpOutputFilePath, suffix, dataSrcContents.cDOffset, *zip)) { in Sign()
348 const std::string& suffix, int64_t centralDirectoryOffset, ZipSigner& zip) in AppendCodeSignBlock()
352 std::string suffixTmp = suffix; in AppendCodeSignBlock()
347 AppendCodeSignBlock(SignerConfig* signerConfig, std::string outputFilePath, const std::string& suffix, int64_t centralDirectoryOffset, ZipSigner& zip) AppendCodeSignBlock() argument
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
H A DFileUtils.java82 * abc file suffix
87 * an file suffix
264 String suffix = getSuffix(filePath); in validFileType()
265 ValidateUtils.throwIfNotMatches(!StringUtils.isEmpty(suffix), in validFileType()
272 if (type.equalsIgnoreCase(suffix)) { in validFileType()
281 * Get suffix of file.
284 * @return file suffix. Such as "txt" "json" "p12"
/developtools/packing_tool/adapter/ohos/
H A DScanStatSuffix.java45 private static final String SUFFIX_FOLDER_NAME = "suffix";
50 private static final String SUFFIX_DESC = "show files group by file type[.suffix]";
51 private static final String SUFFIX_PARAM = "--stat-suffix";
88 private static final String HTML_LI_SUFFIX = "<li class=\"suffix\">";
132 private String suffix; field in ScanStatSuffix.ParamModelSuffix
137 return this.suffix; in getSuffix()
139 public void setSuffix(String suffix) { in setSuffix() argument
140 this.suffix = suffix; in setSuffix()
215 * @return suffix htm
[all...]
H A DCompressVerify.java726 * @param suffix process type
730 List<String> fileList, String suffix) { in compatibleProcess()
738 if (fileItem.getName().toLowerCase(Locale.ENGLISH).endsWith(suffix)) { in compatibleProcess()
748 if (!isPathValid(formattedPathItem, TYPE_FILE, suffix)) { in compatibleProcess()
803 * @param suffix used to determine type
806 private static boolean isOutPathValid(Utility utility, String suffix) { in isOutPathValid() argument
814 if (HAP_SUFFIX.equals(suffix)) { in isOutPathValid()
823 if (HAR_SUFFIX.equals(suffix)) { in isOutPathValid()
832 if (APP_SUFFIX.equals(suffix)) { in isOutPathValid()
841 if (RES_SUFFIX.equals(suffix)) { in isOutPathValid()
729 compatibleProcess(Utility utility, String inputPath, List<String> fileList, String suffix) compatibleProcess() argument
[all...]
H A DUncompress.java498 * @param suffix suffix for judgment
501 private static void unzip(Utility utility, String srcPath, String destDirPath, String suffix) in unzip() argument
517 unzipFromFile(utility, srcPath, destDirPath, suffix); in unzip()
526 * @param suffix suffix for judgment
529 private static void unzipFromFile(Utility utility, String srcPath, String destDirPath, String suffix) in unzipFromFile() argument
536 && (HAP_SUFFIX.equals(suffix) || HSP_SUFFIX.equals(suffix))) { in unzipFromFile()
556 if (!entryName.toLowerCase(Locale.ENGLISH).endsWith(suffix) || in unzipFromFile()
[all...]
H A DPackageUtil.java382 String suffix = moduleJsonInfo.isShared() ? Constants.HSP_SUFFIX : Constants.HAP_SUFFIX; in packDir()
383 Path outHap = Files.createFile(outPath.resolve(pkgName + suffix)); in packDir()
752 private static boolean isFileValid(String filePath, String suffix) { in isFileValid() argument
754 return Files.isRegularFile(path) && path.getFileName().toString().endsWith(suffix); in isFileValid()
/developtools/packing_tool/ohos_packing_tool/frameworks/include/
H A Dpackager.h73 bool endWith(const std::string &str, const std::string &suffix);
/developtools/smartperf_host/ide/server/
H A Dmain.go467 suffix string
480 suffix string
488 suffix string
509 pth := filepath.FromSlash(fmt.Sprintf("/upload/%s%s", time.Now().Format("20060102150405000"), getSuffixByUrl(url).suffix))
/developtools/hapsigner/hapsigntool_cpp/hap/verify/src/
H A Dverify_hap.cpp279 std::string suffix = fileNameArray[fileNameArray.size() - 1]; in CheckCodeSign() local
281 suffix, profileContent); in CheckCodeSign()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
H A DVerifyHap.java344 String suffix = fileNameArray[fileNameArray.length - 1]; in checkCodeSign()
346 suffix, profileContent); in checkCodeSign()
/developtools/global_resource_tool/src/
H A Dresource_pack.cpp456 string suffix = FileEntry::FilePath(source).GetExtension(); in CopyIcon() local
457 fileName = idName + suffix; in CopyIcon()

Completed in 18 milliseconds

12