/base/update/updater/services/package/pkg_algorithm/ |
D | pkg_algorithm.h | 35 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()
|
D | pkg_algorithm.cpp | 73 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()
|
D | pkg_algo_lz4.cpp | 77 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()
|
D | pkg_algo_deflate.cpp | 67 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/ |
D | pkg_lz4file.cpp | 62 {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()
|
D | pkg_gzipfile.cpp | 127 {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 …]
|
D | pkg_pkgfile.cpp | 148 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()
|
D | pkg_zipfile.cpp | 274 {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 …]
|
D | pkg_upgradefile.cpp | 306 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()
|
D | packages_info.cpp | 91 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/ |
D | image_patch.cpp | 109 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/ |
D | PatchGztest_new.gz |
|
D | PatchGztest_old.gz |
|
/base/update/updater/test/unittest/package/ |
D | pkg_manager_unittest.cpp | 120 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()
|
D | pkg_test.h | 127 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/ |
D | TestDecompressGzip.new.gz |
|
/base/update/updater/services/diffpatch/diff/ |
D | update_diff.cpp | 129 if (fileInfo->unpackedSize != bufferSize) { in Extract() 130 … PATCH_LOGE("Failed to check uncompress data size %zu %zu", fileInfo->unpackedSize, bufferSize); in Extract()
|
D | image_diff.cpp | 322 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/ |
D | pkg_managerImpl.cpp | 357 …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/ |
D | update_image_block.cpp | 108 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()
|
D | update_partitions.cpp | 122 tmpPath1, info->unpackedSize, PkgStream::PkgStreamType_Write); in Execute()
|
D | update_processor.cpp | 163 totalSize_ = info->unpackedSize; in Execute()
|
D | update_image_patch.cpp | 132 patchFile, info->unpackedSize, PkgStream::PkgStreamType_Write); in GetPatchFile()
|
/base/update/updater/services/include/package/ |
D | pkg_manager.h | 77 size_t unpackedSize = 0; member
|
/base/update/updater/services/ptable_parse/ |
D | ptable_manager.cpp | 279 (void)pkgManager->CreatePkgStream(outStream, ptableName, info->unpackedSize, in GetPtableBufferFromPkg()
|