Home
last modified time | relevance | path

Searched refs:packMethod (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/base/update/updater/test/unittest/diffpatch/
H A Dbzip2_unittest.cpp236 if (info->packMethod == PKG_COMPRESS_METHOD_ZIP) { in DeflateAdapterTest()
238 } else if (info->packMethod == PKG_COMPRESS_METHOD_LZ4) { in DeflateAdapterTest()
285 zipInfo.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP;
298 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4;
310 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4;
322 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4;
334 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4;
346 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4;
359 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4_BLOCK;
371 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4_BLOCK;
[all …]
/ohos5.0/base/update/updater/test/fuzztest/package_fuzzer/
H A Dpkg_fuzz_test.h151 if (info->packMethod == PKG_COMPRESS_METHOD_NONE) { in ExtractFile()
167 PKG_LOGI("FileInfo [%zu] packMethod: %d \n", num, info->packMethod); in ExtractFile()
182 zipFile.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in CreateZipPackage()
H A Dpackage_fuzzer.cpp167 zipFile.fileInfo.packMethod = PKG_COMPRESS_METHOD_GZIP; in TestGZipPkgCompress()
218 zipFile.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in TestLz4PkgCompress()
/ohos5.0/base/update/updater/test/unittest/package/
H A Dpkg_test.h131 if (info->packMethod == PKG_COMPRESS_METHOD_NONE) { in ExtractFile()
147 PKG_LOGI("FileInfo [%zu] packMethod: %d \n", i, info->packMethod); in ExtractFile()
163 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in CreateZipPackage()
H A Dpkg_manager_unittest.cpp122 info->fileInfo.packMethod = PKG_COMPRESS_METHOD_NONE; in GetUpgradePkgInfo()
251 info.fileInfo.packMethod = PKG_COMPRESS_METHOD_NONE; in TestCreatePackageInvalidFile()
288 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in TestLz4PackageInvalidFile()
313 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in TestLz4PackageInvalidPkgType()
336 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in TestZipPackageInvalidFile()
371 lz4Info.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in TestDecompressLz4plus()
458 zipInfo.fileInfo.packMethod = PKG_COMPRESS_METHOD_GZIP; in TestDecompressGzipInitFile()
H A Dpackage_unittest.cpp179 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_GZIP; in TestGZipPkgCompress()
237 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in TestLz4PkgCompress()
H A Dpkg_algo_unittest.cpp125 config.packMethod = invalidType; in TestInvalidParam()
/ohos5.0/base/update/updater/services/diffpatch/patch/
H A Dimage_patch.cpp256 fileInfo->fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in GetFileInfo()
310 …fileInfo->fileInfo.packMethod = (method_ == LZ4B_MAGIC) ? PKG_COMPRESS_METHOD_LZ4_BLOCK : PKG_COMP… in GetFileInfo()
326 if (fileInfo_->packMethod == PKG_COMPRESS_METHOD_ZIP) { in Init()
328 } else if (fileInfo_->packMethod == PKG_COMPRESS_METHOD_LZ4) { in Init()
330 } else if (fileInfo_->packMethod == PKG_COMPRESS_METHOD_LZ4_BLOCK) { in Init()
/ohos5.0/base/update/updater/services/package/pkg_package/
H A Dpkg_pkgfile.cpp148 localFileInfo->packMethod = fileInfo->packMethod; in Init()
H A Dpkg_lz4file.cpp118 fileInfo_.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in DecodeHeader()
120 fileInfo_.fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4_BLOCK; in DecodeHeader()
H A Dpkg_gzipfile.cpp281 fileInfo_.fileInfo.packMethod = PKG_COMPRESS_METHOD_GZIP; in DecodeHeader()
H A Dpkg_zipfile.cpp752 fileInfo_.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in DecodeHeader()
H A Dpkg_upgradefile.cpp896 fileInfo_.fileInfo.packMethod = PKG_COMPRESS_METHOD_NONE; in DecodeHeader()
/ohos5.0/base/update/updater/interfaces/kits/packages/
H A Dpackage.cpp65 info->fileInfo.packMethod = PKG_COMPRESS_METHOD_NONE; in GetUpgradePkgInfo()
91 info->fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in GetZipPkgInfo()
111 info->fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in GetLz4PkgInfo()
/ohos5.0/base/update/updater/services/diffpatch/diff/
H A Dimage_diff.cpp444 zipInfo.fileInfo.packMethod = info->fileInfo.packMethod; in TestAndSetConfig()
525 method_ = static_cast<int32_t>(info->fileInfo.packMethod); in TestAndSetConfig()
540 lz4Info.fileInfo.packMethod = info->fileInfo.packMethod; in TestAndSetConfig()
/ohos5.0/base/update/updater/services/include/package/
H A Dpkg_info_utils.h83 uint16_t packMethod = 0; member
/ohos5.0/base/update/updater/services/package/pkg_algorithm/
H A Dpkg_algorithm.cpp213 switch (config->packMethod) { in GetAlgorithm()
H A Dpkg_algo_lz4.cpp499 lz4Info->fileInfo.packMethod = PKG_COMPRESS_METHOD_LZ4; in UpdateFileInfo()
/ohos5.0/base/update/updater/utils/
H A Dutils.cpp474 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in CompressFiles()
501 file.fileInfo.packMethod = PKG_COMPRESS_METHOD_ZIP; in CompressLogs()