| /developtools/packing_tool/adapter/ohos/ |
| D | ConvertHapToBin.java | 40 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()
|
| D | CompressEntrance.java | 40 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()
|
| D | UncompressEntrance.java | 181 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()
|
| D | Utility.java | 52 private String hapPath = ""; field in Utility 263 return hapPath; in getHapPath() 266 public void setHapPath(String hapPath) { in setHapPath() argument 267 if (!hapPath.startsWith(CMD_PREFIX)) { in setHapPath() 268 this.hapPath = hapPath; in setHapPath()
|
| D | Compressor.java | 972 for (String hapPath : fileList) { in compressAppMode() 973 pathToFile(utility, hapPath, NULL_DIR_NAME, false); in compressAppMode() 1042 for (String hapPath : fileList) { in compressAppModeForMultiProject() 1043 pathToFile(utility, hapPath, NULL_DIR_NAME, false); in compressAppModeForMultiProject() 1177 private static String readModlueNameFromHap(String hapPath) throws BundleException { in readModlueNameFromHap() argument 1179 File hapFile = new File(hapPath); in readModlueNameFromHap() 1180 if (isModuleHap(hapPath)) { in readModlueNameFromHap() 1205 for (String hapPath : utility.getFormattedHapList()) { in disposeHap() 1206 if (seletedHaps.contains(new File(hapPath).getName())) { in disposeHap() 1207 … LOG.error("Compressor::disposeHap file duplicated, file is " + new File(hapPath).getName() + "."); in disposeHap() [all …]
|
| D | FileUtils.java | 201 public static void unzip(final String hapPath, final String destDir) { in unzip() argument 212 zipFile = new ZipFile(hapPath); in unzip() 488 public static String getSha256(String hapPath) { in getSha256() argument 492 File file = new File(hapPath); in getSha256()
|
| D | Uncompress.java | 395 …static UncompressResult uncompressHapByPath(String deviceType, String hapPath) throws BundleExcept… in uncompressHapByPath() argument 398 if (isModuleHap(hapPath, compressResult)) { in uncompressHapByPath() 399 compressResult = unCompressModuleHap(deviceType, hapPath, MODULE_JSON); in uncompressHapByPath() 401 compressResult = uncompress(deviceType, hapPath, HARMONY_PROFILE); in uncompressHapByPath() 1486 public static boolean isModuleHap(String hapPath, UncompressResult compressResult) { in isModuleHap() argument 1489 zipFile = new ZipFile(new File(hapPath)); in isModuleHap()
|
| D | ModuleJsonUtil.java | 850 public static List<String> parseFaEntry(String hapPath) throws BundleException { in parseFaEntry() argument 851 String configJson = FileUtils.getJsonInZips(new File(hapPath), CONFIG_JSON); in parseFaEntry() 886 public static List<String> parseStageEntry(String hapPath) throws BundleException { in parseStageEntry() argument 887 String moduleJson = FileUtils.getJsonInZips(new File(hapPath), MODULE_JSON); in parseStageEntry()
|
| /developtools/ace_ets2bundle/compiler/src/ |
| D | utils.ts | 332 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant 333 const tempFilePath: string = filePath.replace(hapPath, ''); 354 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant 355 const tempFilePath: string = filePath.replace(hapPath, '');
|
| D | ark_utils.ts | 446 const hapPath: string = toUnixPath(projectConfig.projectRootPath); constant 447 const tempFilePath: string = filePath.replace(hapPath, '');
|
| /developtools/packing_tool/ |
| D | README_zh.md | 301 | UncompressEntrance | UncomperssResult parseHap(String hapPath) | Java接口 | 接口功能…
|