Lines Matching refs:srcPath
176 String srcPath = utility.getAppPath(); in uncompressAppByPath() local
181 compressResult = uncompress(utility.getDeviceType(), srcPath, PACK_INFO); in uncompressAppByPath()
183 compressResult = uncompressHapAndHspFromAppPath(srcPath, utility); in uncompressAppByPath()
185 compressResult = uncompressAllAppByPath(srcPath); in uncompressAppByPath()
202 String srcPath, Utility utility) throws BundleException { in uncompressHapAndHspFromAppPath() argument
213 appFile = new ZipFile(srcPath); in uncompressHapAndHspFromAppPath()
238 private static UncompressResult uncompressAllAppByPath(String srcPath) throws BundleException { in uncompressAllAppByPath() argument
244 appFile = new ZipFile(srcPath); in uncompressAllAppByPath()
488 private static void unzip(Utility utility, String srcPath, String destDirPath, String suffix) in unzip() argument
495 if (srcPath.isEmpty() || !UncompressVerify.isPathValid(srcPath, true, "")) { in unzip()
504 unzipFromFile(utility, srcPath, destDirPath, suffix); in unzip()
516 …private static void unzipFromFile(Utility utility, String srcPath, String destDirPath, String suff… in unzipFromFile() argument
521 zipFile = new ZipFile(new File(srcPath)); in unzipFromFile()
524 … List<PackInfo> packInfos = uncompress(utility.getDeviceType(), srcPath, PACK_INFO).getPackInfos(); in unzipFromFile()
624 …private static void dataTransferAllFiles(String srcPath, String destDirPath) throws BundleExceptio… in dataTransferAllFiles() argument
627 if (!FileUtils.matchPattern(srcPath)) { in dataTransferAllFiles()
628 throw new BundleException("Input invalid file " + srcPath); in dataTransferAllFiles()
630 zipFile = new ZipFile(new File(srcPath)); in dataTransferAllFiles()
656 private static void dataTransferFilesByApp(Utility utility, String srcPath, String destDirPath) in dataTransferFilesByApp() argument
660 zipFile = new ZipFile(new File(srcPath)); in dataTransferFilesByApp()
720 private static HapZipInfo unZipHapFileFromHapFile(String srcPath) in unZipHapFileFromHapFile() argument
724 if (!FileUtils.matchPattern(srcPath)) { in unZipHapFileFromHapFile()
725 LOG.error("Input invalid path " + srcPath); in unZipHapFileFromHapFile()
726 throw new BundleException("Input invalid path " + srcPath); in unZipHapFileFromHapFile()
729 File srcFile = new File(srcPath); in unZipHapFileFromHapFile()
750 private static UncompressResult uncompress(String deviceType, String srcPath, String fileName) in uncompress() argument
752 if (srcPath.isEmpty() || fileName.isEmpty()) { in uncompress()
759 HapZipInfo hapZipInfo = unZipHapFileFromHapFile(srcPath); in uncompress()
932 …private static void repackHap(String srcPath, String destDirPath, String fileName, String unpackAp… in repackHap() argument
934 if (srcPath.isEmpty() || destDirPath.isEmpty() || fileName.isEmpty()) { in repackHap()
939 if (!UncompressVerify.isPathValid(srcPath, true, "")) { in repackHap()
951 dataTransferAllFiles(srcPath, tempDir); in repackHap()
966 …private static void packFilesByPath(String srcPath, String destDirPath, String fileName, String un… in packFilesByPath() argument
968 if (srcPath.isEmpty() || destDirPath.isEmpty() || fileName.isEmpty()) { in packFilesByPath()
973 if (!UncompressVerify.isPathValid(srcPath, false, null) || in packFilesByPath()
979 File srcDir = new File(srcPath); in packFilesByPath()
1289 private static HapZipInfo unZipModuleHapFile(String srcPath) in unZipModuleHapFile() argument
1294 File srcFile = new File(srcPath); in unZipModuleHapFile()
1333 private static ModuleResult uncompressModule(String deviceType, String srcPath, String fileName) in uncompressModule() argument
1335 if (srcPath.isEmpty() || fileName.isEmpty()) { in uncompressModule()
1341 HapZipInfo hapZipInfo = unZipModuleHapFile(srcPath); in uncompressModule()
1361 static UncompressResult unCompressModuleHap(String deviceType, String srcPath, String fileName) in unCompressModuleHap() argument
1363 if (srcPath.isEmpty() || fileName.isEmpty()) { in unCompressModuleHap()
1370 moduleResult = uncompressModule(deviceType, srcPath, fileName); in unCompressModuleHap()
1617 …static List<ResourceIndexResult> getResourceFromHap(String srcPath) throws BundleException, IOExce… in getResourceFromHap() argument
1620 File srcFile = new File(srcPath); in getResourceFromHap()