Home
last modified time | relevance | path

Searched refs:PkgStreamImpl (Results 1 – 8 of 8) sorted by relevance

/base/update/updater/services/package/pkg_manager/
Dpkg_stream.h26 class PkgStreamImpl : public PkgStream {
28 explicit PkgStreamImpl(PkgManager::PkgManagerPtr pkgManager, const std::string fileName) in PkgStreamImpl() function
31 virtual ~PkgStreamImpl() {} in ~PkgStreamImpl()
89 class FileStream : public PkgStreamImpl {
92 … : PkgStreamImpl(pkgManager, fileName), stream_(stream), fileLength_(0), streamType_(streamType) {} in FileStream()
117 class MemoryMapStream : public PkgStreamImpl {
120 …int32_t streamType = PkgStreamType_MemoryMap) : PkgStreamImpl(pkgManager, fileName), memMap_(buffe… in PkgStreamImpl() function
166 class ProcessorStream : public PkgStreamImpl {
170 : PkgStreamImpl(pkgManager, fileName), processor_(processor), context_(context) {} in ProcessorStream()
229 class FlowDataStream : public Hpackage::PkgStreamImpl {
[all …]
Dpkg_stream.cpp34 const std::string PkgStreamImpl::GetFileName() const in GetFileName()
39 PkgStreamPtr PkgStreamImpl::ConvertPkgStream(PkgManager::StreamPtr stream) in ConvertPkgStream()
44 void PkgStreamImpl::AddRef() in AddRef()
49 void PkgStreamImpl::DelRef() in DelRef()
54 bool PkgStreamImpl::IsRef() const in IsRef()
59 void PkgStreamImpl::PostDecodeProgress(int type, size_t writeDataLen, const void *context) const in PostDecodeProgress()
Dpkg_managerImpl.cpp176 PkgFilePtr pkgFile = CreatePackage(PkgStreamImpl::ConvertPkgStream(stream), in CreatePackage()
432 … ret = pkgEntry->GetPkgFile()->ExtractFile(pkgEntry, PkgStreamImpl::ConvertPkgStream(output)); in ExtractFile()
907 … int32_t ret = algorithm->Unpack(inStream.get(), PkgStreamImpl::ConvertPkgStream(stream), context); in DoCreatePkgStream()
913 PkgStreamImpl::ConvertPkgStream(stream)->Flush(context.unpackedSize); in DoCreatePkgStream()
939 int32_t ret = algorithm->Pack(inStream.get(), PkgStreamImpl::ConvertPkgStream(stream), context); in DoCreatePkgStream()
945 PkgStreamImpl::ConvertPkgStream(stream)->Flush(context.packedSize); in DoCreatePkgStream()
/base/update/updater/test/unittest/package/
Dpkg_package_unittest.cpp81 … auto file = std::make_unique<Lz4PkgFile>(pkgManager_, PkgStreamImpl::ConvertPkgStream(stream)); in TestPkgFile()
89 ret = entry->Init(&fileInfo.fileInfo, PkgStreamImpl::ConvertPkgStream(stream)); in TestPkgFile()
105 PkgStreamImpl::ConvertPkgStream(stream)); in TestPkgFileInvalid()
107 ret = file->AddEntry(&fileInfo, PkgStreamImpl::ConvertPkgStream(stream)); in TestPkgFileInvalid()
125 PkgStreamImpl::ConvertPkgStream(stream)); in TestBigZipEntry()
Dpkg_manager_unittest.cpp53 class TestPkgStream : public PkgStreamImpl {
56 : PkgStreamImpl(pkgManager, fileName) {} in TestPkgStream()
61 return PkgStreamImpl::Read(buff, start, size, readLen); in Read()
/base/update/updater/test/unittest/test_data/applypatch/
DTestDecompressGzip.new.gz
/base/update/updater/services/package/pkg_verify/
Dhash_data_verifier.cpp115 ret = verifyUtil.GetSignature(PkgStreamImpl::ConvertPkgStream(pkgStream), in LoadPkcs7FromPackage()
136 …int32_t ret = CalcSha256Digest(PkgStreamImpl::ConvertPkgStream(stream), stream->GetFileLength(), h… in VerifyHashData()
/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.cpp961 ret = CalcSha256Digest(PkgStreamImpl::ConvertPkgStream(stream), len, hashVal); in Verify()