Home
last modified time | relevance | path

Searched refs:unpackedSize (Results 1 – 25 of 28) sorted by relevance

12

/base/update/updater/services/package/pkg_algorithm/
Dpkg_algorithm.h35 size_t unpackedSize = 0; member
36 PkgContextSize(size_t packedSize, size_t unpackedSize) in PkgContextSize()
39 this->unpackedSize = unpackedSize; in PkgContextSize()
47 size_t unpackedSize = 0; member
57 this->unpackedSize = size.unpackedSize; in PkgAlgorithmContext()
Dpkg_algorithm.cpp73 size_t remainSize = context.unpackedSize; in Pack()
98 if (srcOffset - context.srcOffset != context.unpackedSize) { in Pack()
99 PKG_LOGE("original size error %zu %zu", srcOffset, context.unpackedSize); in Pack()
148 context.unpackedSize = srcOffset - context.srcOffset; in Unpack()
Dpkg_algo_lz4.cpp77 size_t remainSize = context.unpackedSize; in Pack()
103 PKG_CHECK(srcOffset - context.srcOffset == context.unpackedSize, in Pack()
104 return ret, "original size error %zu %zu", srcOffset, context.unpackedSize); in Pack()
157 context.unpackedSize = destOffset - context.destOffset; in Unpack()
214 size_t remainSize = context.unpackedSize; in Pack()
249 PKG_CHECK(srcOffset - context.srcOffset == context.unpackedSize, in Pack()
250 return ret, "original size error %zu %zu", srcOffset, context.unpackedSize); in Pack()
359 context.unpackedSize = destOffset - context.destOffset; in Unpack()
Dpkg_algo_deflate.cpp67 size_t remainSize = context.unpackedSize; in Pack()
89 PKG_CHECK(srcOffset == context.unpackedSize, return PKG_INVALID_PKG_FORMAT, in Pack()
90 "original size error %zu %zu", srcOffset, context.unpackedSize); in Pack()
143 context.unpackedSize = destOffset - context.destOffset; in UnpackCalculate()
/base/update/updater/services/package/pkg_package/
Dpkg_lz4file.cpp62 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
73 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Pack()
92 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
101 fileInfo_.fileInfo.unpackedSize = context.unpackedSize; in Unpack()
103 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
104 outStream->Flush(fileInfo_.fileInfo.unpackedSize); in Unpack()
124 fileInfo_.fileInfo.unpackedSize = pkgFile_->GetPkgStream()->GetFileLength(); in DecodeHeader()
Dpkg_gzipfile.cpp127 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
145 WriteLE32(buffer.buffer + sizeof(uint32_t), fileInfo_.fileInfo.unpackedSize); in Pack()
153 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Pack()
164 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
171 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
184 fileInfo_.fileInfo.unpackedSize = ReadLE32(buffer.buffer + sizeof(uint32_t)); in Unpack()
186 PKG_CHECK(fileInfo_.fileInfo.unpackedSize == context.unpackedSize, in Unpack()
190 … fileInfo_.fileInfo.unpackedSize, fileInfo_.fileInfo.headerOffset, fileInfo_.fileInfo.dataOffset); in Unpack()
191 outStream->Flush(fileInfo_.fileInfo.unpackedSize); in Unpack()
258 fileInfo_.fileInfo.unpackedSize = ReadLE32(buffer.buffer + sizeof(uint32_t)); in DecodeHeader()
[all …]
Dpkg_pkgfile.cpp148 localFileInfo->unpackedSize = fileInfo->unpackedSize; in Init()
151 if (localFileInfo->unpackedSize == 0) { in Init()
152 localFileInfo->unpackedSize = inStream->GetFileLength(); in Init()
157 if (localFileInfo->unpackedSize == 0) { in Init()
Dpkg_zipfile.cpp274 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
300 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize, in Pack()
328 centralDir->uncompressedSize = fileInfo_.fileInfo.unpackedSize; in EncodeCentralDirEntry()
366 header->uncompressedSize = fileInfo_.fileInfo.unpackedSize; in EncodeLocalFileHeader()
387 dataDesc.uncompressedSize = fileInfo_.fileInfo.unpackedSize; in EncodeDataDescriptor()
439 …fileInfo_.fileInfo.unpackedSize = ReadLE32(buffer.buffer + offsetof(CentralDirEntry, uncompressedS… in DecodeCentralDirEntry()
451 size_t unpackedSize = ReadLE64(extraData + sizeof(uint32_t)); in DecodeCentralDirEntry() local
453 if (fileInfo_.fileInfo.packedSize == UINT_MAX || fileInfo_.fileInfo.unpackedSize == UINT_MAX) { in DecodeCentralDirEntry()
454 fileInfo_.fileInfo.unpackedSize = in DecodeCentralDirEntry()
455 … (fileInfo_.fileInfo.unpackedSize == UINT_MAX) ? unpackedSize : fileInfo_.fileInfo.unpackedSize; in DecodeCentralDirEntry()
[all …]
Dpkg_upgradefile.cpp306 entry->GetFileInfo()->unpackedSize, entry->GetFileInfo()->identity.c_str()); in ReadComponents()
390 WriteLE32(reinterpret_cast<uint8_t *>(&comp.size), fileInfo_.fileInfo.unpackedSize); in EncodeHeader()
404 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize); in EncodeHeader()
419 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
440 …KG_LOGI("Pack start:%zu unpackSize:%zu packSize:%zu", startOffset, fileInfo_.fileInfo.unpackedSize, in Pack()
460 fileInfo_.fileInfo.unpackedSize = fileInfo_.fileInfo.packedSize; in DecodeHeader()
482 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize, fileName_.c_str()); in DecodeHeader()
501 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
515 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize); in Unpack()
516 outStream->Flush(fileInfo_.fileInfo.unpackedSize); in Unpack()
Dpackages_info.cpp91 int32_t ret = manager->CreatePkgStream(outStream, versionList, info->unpackedSize, in GetOTAVersion()
131 int32_t ret = manager->CreatePkgStream(outStream, boardIdName, info->unpackedSize, in GetBoardID()
/base/update/updater/services/diffpatch/patch/
Dimage_patch.cpp109 info->unpackedSize = header.expandedLen; in ApplyImagePatch()
141 info->unpackedSize = expandedLen; in DecompressData()
155 …PATCH_CHECK(info->unpackedSize <= (expandedLen - bonusData_.size()), return -1, "Source inflation … in DecompressData()
160 ret = memcpy_s(memBuffer.buffer + info->unpackedSize, in DecompressData()
161 expandedLen - info->unpackedSize, bonusData_.data(), bonusData_.size()); in DecompressData()
209 fileInfo->fileInfo.unpackedSize = 0; in GetFileInfo()
263 fileInfo->fileInfo.unpackedSize = 0; in GetFileInfo()
/base/update/updater/test/unittest/test_data/diffpatch/
DPatchGztest_new.gz
DPatchGztest_old.gz
/base/update/updater/test/unittest/package/
Dpkg_manager_unittest.cpp120 info->fileInfo.unpackedSize = GetFileSize(filePath); in GetUpgradePkgInfo()
121 info->fileInfo.packedSize = info->fileInfo.unpackedSize; in GetUpgradePkgInfo()
128 info->originalSize = info->fileInfo.unpackedSize; in GetUpgradePkgInfo()
249 info.fileInfo.unpackedSize = testSize; in TestCreatePackageInvalidFile()
434 lz4Info.fileInfo.packedSize, lz4Info.fileInfo.unpackedSize, fileSize); in TestDecompressLz4()
529 zipInfo.fileInfo.packedSize, zipInfo.fileInfo.unpackedSize); in TestDecompressGzip()
559 Hpackage::PkgBuffer buffer(uncompressedData.data(), info.unpackedSize); in TestCompressBuffer()
562 info.packedSize, info.unpackedSize); in TestCompressBuffer()
Dpkg_test.h127 PKG_LOGI("comp [%zu] size: %zu \n", i, (*compInfo).fileInfo.unpackedSize); in ExtractFile()
135 PKG_LOGI("FileInfo [%zu] unpackedSize: %zu \n", i, info->unpackedSize); in ExtractFile()
/base/update/updater/test/unittest/test_data/applypatch/
DTestDecompressGzip.new.gz
/base/update/updater/services/diffpatch/diff/
Dupdate_diff.cpp129 if (fileInfo->unpackedSize != bufferSize) { in Extract()
130 … PATCH_LOGE("Failed to check uncompress data size %zu %zu", fileInfo->unpackedSize, bufferSize); in Extract()
Dimage_diff.cpp322 PATCH_CHECK(limit_ == 0 || newFileInfo->unpackedSize < limit_, return PATCH_EXCEED_LIMIT, in DiffFile()
339 BlockBuffer newData = {newBuffer.data(), newFileInfo->unpackedSize}; in DiffFile()
359 block.srcOriginalLength = oldFileInfo->unpackedSize; in DiffFile()
360 block.destOriginalLength = newFileInfo->unpackedSize; in DiffFile()
433 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
523 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
/base/update/updater/services/package/pkg_manager/
Dpkg_managerImpl.cpp357 …ret = CreatePkgStream(stream, tempPath + name + ".tmp", info->unpackedSize, PkgStream::PkgStreamTy… in ExtraAndLoadPackage()
359 …ret = CreatePkgStream(stream, tempPath + name + ".tmp", info->unpackedSize, PkgStream::PkgStreamTy… in ExtraAndLoadPackage()
803 PKG_LOGI("packedSize: %zu unpackedSize: %zu ", buffer.length, context.unpackedSize); in CreatePkgStream()
804 PkgStreamImpl::ConvertPkgStream(stream)->Flush(context.unpackedSize); in CreatePkgStream()
806 info->unpackedSize = context.unpackedSize; in CreatePkgStream()
835 PKG_LOGI("packedSize: %zu unpackedSize: %zu ", context.packedSize, context.unpackedSize); in CreatePkgStream()
838 info->unpackedSize = context.unpackedSize; in CreatePkgStream()
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp108 file->unpackedSize << " name " << file->identity; in UnpackNewData()
258 diffPackage, info->unpackedSize, PkgStream::PkgStreamType_Write); in ExtractDiffPackageAndLoad()
328 infos.transferName, info->unpackedSize, PkgStream::PkgStreamType_MemoryMap); in ExecuteUpdateBlock()
347 infos.patchDataName, info->unpackedSize, PkgStream::PkgStreamType_MemoryMap); in ExecuteUpdateBlock()
Dupdate_partitions.cpp122 tmpPath1, info->unpackedSize, PkgStream::PkgStreamType_Write); in Execute()
Dupdate_processor.cpp163 totalSize_ = info->unpackedSize; in Execute()
Dupdate_image_patch.cpp132 patchFile, info->unpackedSize, PkgStream::PkgStreamType_Write); in GetPatchFile()
/base/update/updater/services/include/package/
Dpkg_manager.h77 size_t unpackedSize = 0; member
/base/update/updater/services/ptable_parse/
Dptable_manager.cpp279 (void)pkgManager->CreatePkgStream(outStream, ptableName, info->unpackedSize, in GetPtableBufferFromPkg()

12