Home
last modified time | relevance | path

Searched refs:hapPath (Results 1 – 13 of 13) sorted by relevance

/developtools/packing_tool/adapter/ohos/
DConvertHapToBin.java40 public static boolean packHapTobin(final String hapPath, final String binPath) { in packHapTobin() argument
41 if (hapPath.isEmpty() || binPath.isEmpty()) { in packHapTobin()
46 if (!FileUtils.checkFileIsExists(hapPath)) { in packHapTobin()
50 Optional<String> absHapPath = FileUtils.getFormatedPath(hapPath); in packHapTobin()
99 String hapPath = ""; in main() local
105 hapPath = args[count + 1]; in main()
117 if (!hapPath.isEmpty() && !binPath.isEmpty()) { in main()
118 packHapTobin(hapPath, binPath); in main()
DCompressEntrance.java40 public static boolean pack(String hapPath, String packInfoPath, String outPath) { in pack() argument
41 if (hapPath == null || hapPath.isEmpty()) { in pack()
58 utility.setHapPath(hapPath); in pack()
83 public static String getHapSha256(String hapPath) { in getHapSha256() argument
84 if (!hapPath.endsWith(HAP_SUFFIX)) { in getHapSha256()
88 return FileUtils.getSha256(hapPath); in getHapSha256()
DUncompressEntrance.java181 public static boolean unpackHap(String hapPath, String outPath, boolean unpackApk) { in unpackHap() argument
182 if (hapPath == null || hapPath.isEmpty()) { in unpackHap()
194 utility.setHapPath(hapPath); in unpackHap()
365 public static UncompressResult parseHap(String hapPath) { in parseHap() argument
369 utility.setHapPath(hapPath); in parseHap()
409 …public static List<ResourceIndexResult> parseResource(String hapPath) throws BundleException, IOEx… in parseResource() argument
410 return getResourceFromHap(hapPath); in parseResource()
DUtility.java56 private String hapPath = ""; field in Utility
277 return hapPath; in getHapPath()
280 public void setHapPath(String hapPath) { in setHapPath() argument
281 if (!hapPath.startsWith(CMD_PREFIX)) { in setHapPath()
282 this.hapPath = hapPath; in setHapPath()
284 this.absoluteHapPath = getFormattedPath(hapPath); in setHapPath()
DCompressor.java1070 for (String hapPath : fileList) { in compressAppMode()
1071 pathToFile(utility, hapPath, NULL_DIR_NAME, false); in compressAppMode()
1140 for (String hapPath : fileList) { in compressAppModeForMultiProject()
1141 pathToFile(utility, hapPath, NULL_DIR_NAME, false); in compressAppModeForMultiProject()
1161 File hapPath = new File(utility.getAbsoluteHapPath()); in hapAddition() local
1162 String hapFileName = hapPath.getName(); in hapAddition()
1458 private static String readModlueNameFromHap(String hapPath) throws BundleException { in readModlueNameFromHap() argument
1460 File hapFile = new File(hapPath); in readModlueNameFromHap()
1461 if (isModuleHap(hapPath)) { in readModlueNameFromHap()
1486 for (String hapPath : utility.getFormattedHapList()) { in disposeHap()
[all …]
DFileUtils.java201 public static void unzip(final String hapPath, final String destDir) { in unzip() argument
212 zipFile = new ZipFile(hapPath); in unzip()
489 public static String getSha256(String hapPath) { in getSha256() argument
493 File file = new File(hapPath); in getSha256()
DCompressVerify.java531 for (String hapPath : tmpHapPathList) { in checkBundleTypeConsistency()
532 HapVerifyInfo hapVerifyInfo = Compressor.parseStageHapVerifyInfo(hapPath); in checkBundleTypeConsistency()
969 String hapPath = utility.getAbsoluteHapPath(); in isVerifyValidInHapAdditionMode() local
970 File hapFile = new File(hapPath); in isVerifyValidInHapAdditionMode()
975 if (!(hapPath.endsWith(HAP_SUFFIX) || hapPath.endsWith(HSP_SUFFIX))) { in isVerifyValidInHapAdditionMode()
DUncompress.java394 …static UncompressResult uncompressHapByPath(String deviceType, String hapPath) throws BundleExcept… in uncompressHapByPath() argument
397 if (isModuleHap(hapPath, compressResult)) { in uncompressHapByPath()
398 compressResult = unCompressModuleHap(deviceType, hapPath, MODULE_JSON); in uncompressHapByPath()
400 compressResult = uncompress(deviceType, hapPath, HARMONY_PROFILE); in uncompressHapByPath()
1483 public static boolean isModuleHap(String hapPath, UncompressResult compressResult) { in isModuleHap() argument
1486 zipFile = new ZipFile(new File(hapPath)); in isModuleHap()
DScanStatSuffix.java284 String hapPath = soFilePath.substring(0, index); in setMapData() local
285 File hapFile = new File(hapPath); in setMapData()
DModuleJsonUtil.java732 public static List<String> parseFaEntry(String hapPath) throws BundleException { in parseFaEntry() argument
733 String configJson = FileUtils.getJsonInZips(new File(hapPath), CONFIG_JSON); in parseFaEntry()
768 public static List<String> parseStageEntry(String hapPath) throws BundleException { in parseStageEntry() argument
769 String moduleJson = FileUtils.getJsonInZips(new File(hapPath), MODULE_JSON); in parseStageEntry()
/developtools/ace_ets2bundle/compiler/src/
Dutils.ts355 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant
356 const tempFilePath: string = filePath.replace(hapPath, '');
377 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant
378 const tempFilePath: string = filePath.replace(hapPath, '');
Dark_utils.ts646 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant
647 const tempFilePath: string = filePath.replace(hapPath, '');
/developtools/packing_tool/
DREADME_zh.md344 | UncompressEntrance | UncomperssResult parseHap(String hapPath) | Java接口 | 接口功能…