Home
last modified time | relevance | path

Searched refs:pkgInfo (Results 1 – 12 of 12) sorted by relevance

/base/update/updater/test/unittest/updater_binary/
Dupdater_binary_unittest.cpp116 UpgradePkgInfoExt pkgInfo; in CreatePackageBin() local
118 pkgInfo.softwareVersion = strdup("100.100.100.100"); in CreatePackageBin()
119 pkgInfo.date = strdup("2021-02-02"); in CreatePackageBin()
120 pkgInfo.time = strdup("21:23:49"); in CreatePackageBin()
121 pkgInfo.productUpdateId = strdup("555.555.100.555"); in CreatePackageBin()
124 pkgInfo.entryCount = testFileNames_.size() + fileNameIndex; in CreatePackageBin()
125 pkgInfo.updateFileVersion = updateFileVersion; in CreatePackageBin()
126 pkgInfo.digestMethod = PKG_DIGEST_TYPE_SHA256; in CreatePackageBin()
127 pkgInfo.signMethod = PKG_SIGN_METHOD_RSA; in CreatePackageBin()
128 pkgInfo.pkgType = PKG_PACK_TYPE_UPGRADE; in CreatePackageBin()
[all …]
/base/update/updater/test/unittest/package/
Dpackage_unittest.cpp88 UpgradePkgInfoExt pkgInfo; in TestPackagePack() local
89 pkgInfo.softwareVersion = strdup("100.100.100.100"); in TestPackagePack()
90 pkgInfo.date = strdup("2021-02-02"); in TestPackagePack()
91 pkgInfo.time = strdup("21:23:49"); in TestPackagePack()
92 pkgInfo.productUpdateId = strdup("555.555.100.555"); in TestPackagePack()
93 pkgInfo.entryCount = testFileNames_.size(); in TestPackagePack()
94 pkgInfo.digestMethod = type; in TestPackagePack()
95 pkgInfo.signMethod = PKG_SIGN_METHOD_RSA; in TestPackagePack()
96 pkgInfo.pkgType = PKG_PACK_TYPE_UPGRADE; in TestPackagePack()
97 pkgInfo.updateFileVersion = updateFileVersion; in TestPackagePack()
[all …]
Dpkg_manager_unittest.cpp97 …void GetUpgradePkgInfo(UpgradePkgInfo &pkgInfo, std::vector<std::pair<std::string, ComponentInfo>>… in GetUpgradePkgInfo() argument
99 pkgInfo.softwareVersion = "100.100.100.100"; in GetUpgradePkgInfo()
100 pkgInfo.date = "2021-02-02"; in GetUpgradePkgInfo()
101 pkgInfo.time = "21:23:49"; in GetUpgradePkgInfo()
102 pkgInfo.productUpdateId = "555.555.100.555"; in GetUpgradePkgInfo()
103 pkgInfo.pkgInfo.entryCount = testFileNames_.size(); in GetUpgradePkgInfo()
104 pkgInfo.pkgInfo.digestMethod = PKG_DIGEST_TYPE_SHA256; in GetUpgradePkgInfo()
105 pkgInfo.pkgInfo.signMethod = PKG_SIGN_METHOD_RSA; in GetUpgradePkgInfo()
106 pkgInfo.pkgInfo.pkgType = PKG_PACK_TYPE_UPGRADE; in GetUpgradePkgInfo()
107 pkgInfo.updateFileVersion = TEST_FILE_VERSION; in GetUpgradePkgInfo()
[all …]
Dpkg_test.h159 PkgInfo pkgInfo; in CreateZipPackage() local
160 pkgInfo.signMethod = PKG_SIGN_METHOD_RSA; in CreateZipPackage()
161 pkgInfo.digestMethod = digestMethod; in CreateZipPackage()
162 pkgInfo.pkgType = PKG_PACK_TYPE_ZIP; in CreateZipPackage()
163 …ret = pkgManager->CreatePackage(packageName, GetTestPrivateKeyName(digestMethod), &pkgInfo, files); in CreateZipPackage()
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/
DUpdaterStartUpdaterProc_fuzzer.cpp97 UpgradePkgInfoExt pkgInfo; in CreatePackageZip() local
98 pkgInfo.softwareVersion = strdup("100.100.100.100"); in CreatePackageZip()
99 pkgInfo.date = strdup("2021-07-16"); in CreatePackageZip()
100 pkgInfo.time = strdup("13:14:00"); in CreatePackageZip()
101 pkgInfo.productUpdateId = strdup("555.555.100.555"); in CreatePackageZip()
102 pkgInfo.entryCount = fstabFile.size(); in CreatePackageZip()
103 pkgInfo.updateFileVersion = updateFileVersion; in CreatePackageZip()
104 pkgInfo.digestMethod = PKG_DIGEST_TYPE_SHA256; in CreatePackageZip()
105 pkgInfo.signMethod = PKG_SIGN_METHOD_RSA; in CreatePackageZip()
106 pkgInfo.pkgType = PKG_PACK_TYPE_ZIP; in CreatePackageZip()
[all …]
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
Dextractandexecutescript_fuzzer.cpp225 UpgradePkgInfoExt pkgInfo; in CreatePackageBin() local
226 pkgInfo.softwareVersion = strdup("100.100.100.100"); in CreatePackageBin()
227 pkgInfo.date = strdup("2021-02-02"); in CreatePackageBin()
228 pkgInfo.time = strdup("21:23:49"); in CreatePackageBin()
229 pkgInfo.productUpdateId = strdup("555.555.100.555"); in CreatePackageBin()
230 pkgInfo.entryCount = inputFile.size(); in CreatePackageBin()
231 pkgInfo.updateFileVersion = updateFileVersion; in CreatePackageBin()
232 pkgInfo.digestMethod = PKG_DIGEST_TYPE_SHA256; in CreatePackageBin()
233 pkgInfo.signMethod = PKG_SIGN_METHOD_RSA; in CreatePackageBin()
234 pkgInfo.pkgType = PKG_PACK_TYPE_UPGRADE; in CreatePackageBin()
[all …]
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp50 upgradePackageInfo->pkgInfo.digestMethod = pkgInfoExt->digestMethod; in GetUpgradePkgInfo()
51 upgradePackageInfo->pkgInfo.signMethod = pkgInfoExt->signMethod; in GetUpgradePkgInfo()
52 upgradePackageInfo->pkgInfo.entryCount = pkgInfoExt->entryCount; in GetUpgradePkgInfo()
53 upgradePackageInfo->pkgInfo.pkgType = PKG_PACK_TYPE_UPGRADE; in GetUpgradePkgInfo()
77 int32_t GetZipPkgInfo(PkgManager::PkgInfoPtr pkgInfo, in GetZipPkgInfo() argument
82 pkgInfo->signMethod = pkgInfoExt->signMethod; in GetZipPkgInfo()
83 pkgInfo->digestMethod = pkgInfoExt->digestMethod; in GetZipPkgInfo()
84 pkgInfo->entryCount = pkgInfoExt->entryCount; in GetZipPkgInfo()
85 pkgInfo->pkgType = pkgInfoExt->pkgType; in GetZipPkgInfo()
87 for (uint32_t i = 0; i < pkgInfo->entryCount; i++) { in GetZipPkgInfo()
[all …]
/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.cpp78 return DigestAlgorithm::GetDigestLen(pkgInfo_.pkgInfo.digestMethod); in GetDigestLen()
86 PKG_CHECK(pkgEntryMapId_.size() < pkgInfo_.pkgInfo.entryCount, return PKG_INVALID_PARAM, in AddEntry()
100 …size_t dataOffset = UPGRADE_FILE_HEADER_LEN + pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo… in AddEntry()
133 …sizeof(UpgradePkgTime) + pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo) + UPGRADE_RESERVE_L… in SavePackage()
154 …WriteLE16(buffer.data() + offset + sizeof(uint16_t), pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeC… in SavePackage()
161 offset += pkgInfo_.pkgInfo.entryCount * sizeof(UpgradeCompInfo); in SavePackage()
206 if (pkgInfo_.pkgInfo.digestMethod == PKG_DIGEST_TYPE_SHA384) { in LoadPackage()
249 ret = verifier(&pkgInfo_.pkgInfo, digest.data, signData); in Verify()
304 pkgInfo_.pkgInfo.entryCount++; in ReadComponents()
320 pkgInfo_.pkgInfo.pkgType = PkgFile::PKG_TYPE_UPGRADE; in ReadUpgradePkgHeader()
[all …]
Dpkg_upgradefile.h106 return &pkgInfo_.pkgInfo; in GetPkgInfo()
/base/update/updater/interfaces/kits/include/package/
Dpackage.h110 int32_t CreatePackage(const UpgradePkgInfoExt *pkgInfo, ComponentInfoExt comp[],
/base/update/updater/utils/
Dutils.cpp369 PkgInfo pkgInfo; in CompressLogs() local
370 pkgInfo.signMethod = PKG_SIGN_METHOD_NONE; in CompressLogs()
371 pkgInfo.digestMethod = PKG_SIGN_METHOD_NONE; in CompressLogs()
372 pkgInfo.pkgType = PKG_PACK_TYPE_ZIP; in CompressLogs()
386 int32_t ret = pkgManager->CreatePackage(pkgName, GetCertName(), &pkgInfo, files); in CompressLogs()
/base/update/updater/services/include/package/
Dpkg_manager.h87 PkgInfo pkgInfo; member