/base/update/updater/services/diffpatch/diff/ |
D | update_diff.cpp | 31 Hpackage::PkgManager::ReleasePackageInstance(pkgManager_); in ~ImageParser() 32 pkgManager_ = nullptr; in ~ImageParser() 49 if (pkgManager_ != nullptr) { in GetFileInfo() 50 return pkgManager_->GetFileInfo(fileName); in GetFileInfo() 57 pkgManager_ = Hpackage::PkgManager::CreatePackageInstance(); in Parse() 58 if (pkgManager_ == nullptr) { in Parse() 69 ret = pkgManager_->CreatePkgStream(stream_, packageName, buffer); in Parse() 77 ret = pkgManager_->ParsePackage(stream_, fileIds_, type_); in Parse() 82 ret = pkgManager_->ParsePackage(stream_, fileIds_, type_); in Parse() 87 ret = pkgManager_->ParsePackage(stream_, fileIds_, type_); in Parse() [all …]
|
D | update_diff.h | 48 Hpackage::PkgManager::PkgManagerPtr pkgManager_ { nullptr };
|
/base/update/updater/test/unittest/package/ |
D | pkg_manager_unittest.cpp | 140 int32_t ret = pkgManager_->CreatePackage(packagePath, "", &pkgInfo.pkgInfo, files); in TestPackagePack() 142 … ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, files); in TestPackagePack() 158 …int32_t ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, … in TestPackagePackFileNotExist() 169 … int32_t ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), nullptr, files); in TestPackagePackParamInvalid() 177 std::unique_ptr<TestPkgStream> stream = std::make_unique<TestPkgStream>(pkgManager_, path); in TestPkgStreamImpl() 201 auto stream = std::make_unique<FileStream>(pkgManager_, testPackageName, nullptr, 0); in TestInvalidStream() 262 …int ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, file… in TestCreatePackageInvalidFile() 276 …int ret = pkgManager_->CreatePackage(packagePath, GetTestPrivateKeyName(0), &pkgInfo.pkgInfo, file… in TestCreatePackageInvalidSignMethod() 283 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in TestLz4PackageInvalidFile() 284 EXPECT_NE(pkgManager_, nullptr); in TestLz4PackageInvalidFile() [all …]
|
D | pkg_test.h | 50 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in PkgTest() 54 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in ~PkgTest() 55 PkgManager::ReleasePackageInstance(pkgManager_); in ~PkgTest() 56 pkgManager_ = nullptr; in ~PkgTest() 74 … int32_t ret = pkgManager_->CreatePkgStream(stream, packagePath, 0, PkgStream::PkgStreamType_Read); in BuildFileDigest() 77 … PKG_CHECK(fileLen > 0, pkgManager_->ClosePkgStream(stream); return -1, "invalid file to load"); in BuildFileDigest() 78 PKG_CHECK(fileLen <= SIZE_MAX, pkgManager_->ClosePkgStream(stream); return -1, in BuildFileDigest() 85 PKG_CHECK(algorithm != nullptr, pkgManager_->ClosePkgStream(stream); return -1, in BuildFileDigest() 94 pkgManager_->ClosePkgStream(stream); return ret, in BuildFileDigest() 103 pkgManager_->ClosePkgStream(stream); in BuildFileDigest() [all …]
|
D | pkg_package_unittest.cpp | 74 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in TestPkgFile() 75 if (pkgManager_ == nullptr) { in TestPkgFile() 81 … int ret = pkgManager_->CreatePkgStream(stream, packagePath, 0, PkgStream::PkgStreamType_Read); in TestPkgFile() 82 … auto file = std::make_unique<Lz4PkgFile>(pkgManager_, PkgStreamImpl::ConvertPkgStream(stream)); in TestPkgFile() 97 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in TestPkgFileInvalid() 98 if (pkgManager_ == nullptr) { in TestPkgFileInvalid() 104 … int ret = pkgManager_->CreatePkgStream(stream, packagePath, 0, PkgStream::PkgStreamType_Read); in TestPkgFileInvalid() 106 std::unique_ptr<TestFile> file = std::make_unique<TestFile>(pkgManager_, in TestPkgFileInvalid() 119 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in TestBigZipEntry() 120 EXPECT_NE(pkgManager_, nullptr); in TestBigZipEntry() [all …]
|
D | package_unittest.cpp | 137 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in TestPackageUnpack() 138 EXPECT_NE(pkgManager_, nullptr); in TestPackageUnpack() 141 int32_t ret = pkgManager_->LoadPackage( in TestPackageUnpack() 147 ExtractFile(pkgManager_, components, i); in TestPackageUnpack() 159 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in TestZipPkgDecompress() 160 EXPECT_NE(pkgManager_, nullptr); in TestZipPkgDecompress() 162 int32_t ret = pkgManager_->LoadPackage(TEST_PATH_TO + testZipPackageName, in TestZipPkgDecompress() 168 ExtractFile(pkgManager_, components, i); in TestZipPkgDecompress() 177 pkgManager_ = static_cast<PkgManagerImpl*>(PkgManager::GetPackageInstance()); in TestGZipPkgCompress() 178 EXPECT_NE(pkgManager_, nullptr); in TestGZipPkgCompress() [all …]
|
/base/update/updater/test/unittest/updater_binary/ |
D | update_image_patch_unittest.cpp | 37 UTestBinaryEnv env {&pkgManager_}; in TestImgPatch01() 48 UTestBinaryEnv env {&pkgManager_}; in TestImgPatch02() 65 UTestBinaryEnv env {&pkgManager_}; in TestImgPatch03() 82 UTestBinaryEnv env {&pkgManager_}; in TestImgPatch04() 114 UTestBinaryEnv env2(&pkgManager_); in TestImgPatch05() 133 UTestBinaryEnv env {&pkgManager_}; in TestImgPatch06() 157 TestPkgMgr pkgManager_ {}; member in UpdaterUt::ImgPatchUnittest
|
/base/update/updater/services/include/script/ |
D | script_instruction.h | 32 UScriptEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager) : pkgManager_(pkgManager) {} in UScriptEnv() 38 return pkgManager_; in GetPkgManager() 50 Hpackage::PkgManager::PkgManagerPtr pkgManager_ = nullptr;
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_pkgfile.h | 90 : type_(type), pkgStream_(stream), pkgManager_(manager) {} in PkgFile() 143 PkgManager::PkgManagerPtr pkgManager_ = nullptr; variable
|
D | pkg_pkgfile.cpp | 38 pkgManager_->ClosePkgStream(tmpStream); in ~PkgFile()
|
D | pkg_upgradefile.cpp | 244 pkgManager_->PostDecodeProgress(POST_TYPE_VERIFY_PKG, remainBytes, nullptr); in Verify()
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_stream.cpp | 56 if (pkgManager_ != nullptr) { in PostDecodeProgress() 57 pkgManager_->PostDecodeProgress(type, writeDataLen, context); in PostDecodeProgress()
|
D | pkg_stream.h | 30 : fileName_(fileName), refCount_(0), pkgManager_(pkgManager) {} in PkgStreamImpl() 77 PkgManager::PkgManagerPtr pkgManager_ = nullptr; variable
|