Home
last modified time | relevance | path

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

/base/update/updater/services/package/pkg_algorithm/
Dpkg_algorithm.h34 size_t packedSize = 0; member
36 PkgContextSize(size_t packedSize, size_t unpackedSize) in PkgContextSize()
38 this->packedSize = packedSize; in PkgContextSize()
46 size_t packedSize = 0; member
56 this->packedSize = size.packedSize; in PkgAlgorithmContext()
Dpkg_algorithm.cpp102 context.packedSize = destOffset - context.destOffset; in Pack()
119 size_t remainSize = context.packedSize; in Unpack()
144 if (destOffset - context.destOffset != context.packedSize) { in Unpack()
145 PKG_LOGE("original size error %zu %zu", destOffset, context.packedSize); in Unpack()
166 size_t remainSize = context.packedSize; in UnpackWithVerify()
199 if (destOffset - context.destOffset != context.packedSize) { in UnpackWithVerify()
200 PKG_LOGE("original size error %zu %zu", destOffset, context.packedSize); in UnpackWithVerify()
Dpkg_algo_deflate.cpp103 context.packedSize = destOffset - context.destOffset; in PackCalculate()
126 int32_t ret = ReadData(inStream, context.srcOffset, inBuffer, context.packedSize, readLen); in ReadUnpackData()
142 context.packedSize = context.packedSize - zstream.avail_in - unpackContext.packedSize; in CalculateUnpackData()
170 while ((unpackContext.packedSize > 0) || (unpack_ret != Z_STREAM_END)) { in UnpackCalculate()
Dpkg_algo_lz4.cpp107 context.packedSize = destOffset - context.destOffset; in PackCalculate()
150 … int32_t ret = ReadData(inStream, unpackText.srcOffset, inBuffer, unpackText.packedSize, readLen); in UnpackCalculate()
167 ret = ReadData(inStream, unpackText.srcOffset, inBuffer, unpackText.packedSize, readLen); in UnpackCalculate()
190 context.packedSize = unpackText.srcOffset - context.srcOffset; in UnpackCalculate()
338 context.packedSize = msg.context.destOffset - context.destOffset; in Pack()
409 …if (ReadData(inStream, msg.context.srcOffset, msg.inBuffer, msg.context.packedSize, readLen) != PK… in UnpackDecode()
491 context.packedSize = msg.context.srcOffset - context.srcOffset; in Unpack()
/base/update/updater/services/package/pkg_package/
Dpkg_lz4file.cpp62 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
70 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack()
71 encodeLen = fileInfo_.fileInfo.packedSize; in Pack()
72 PKG_LOGI("Pack packedSize:%zu unpackedSize: %zu offset: %zu %zu", fileInfo_.fileInfo.packedSize, in Pack()
92 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
100 fileInfo_.fileInfo.packedSize = context.packedSize; in Unpack()
102 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack()
125 fileInfo_.fileInfo.packedSize = pkgFile_->GetPkgStream()->GetFileLength(); in DecodeHeader()
Dpkg_gzipfile.cpp141 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
149 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack()
160 …utStream->Write(buffer, BLOCK_SIZE, fileInfo_.fileInfo.dataOffset + fileInfo_.fileInfo.packedSize); in Pack()
165 encodeLen = fileInfo_.fileInfo.packedSize + BLOCK_SIZE; in Pack()
166 PKG_LOGI("Pack packedSize:%zu unpackedSize: %zu offset: %zu %zu", fileInfo_.fileInfo.packedSize, in Pack()
174 fileInfo_.fileInfo.packedSize = context.packedSize; in CheckFileInfo()
176 …int32_t ret = inStream->Read(buffer, context.packedSize + fileInfo_.fileInfo.dataOffset, BLOCK_SIZ… in CheckFileInfo()
203 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack()
214 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack()
229 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack()
[all …]
Dpkg_zipfile.cpp309 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in PackStream()
318 fileInfo_.fileInfo.packedSize = context.packedSize; in PackStream()
337 startOffset + headerLen + fileInfo_.fileInfo.packedSize, encodeDataDescLen); in PackStream()
344 encodeLen = headerLen + fileInfo_.fileInfo.packedSize; in PackStream()
345 PKG_LOGI("Pack packedSize:%zu unpackedSize: %zu offset: %zu %zu", fileInfo_.fileInfo.packedSize, in PackStream()
388 centralDir->compressedSize = fileInfo_.fileInfo.packedSize; in EncodeCentralDirEntry()
426 header->compressedSize = fileInfo_.fileInfo.packedSize; in EncodeLocalFileHeader()
447 dataDesc.compressedSize = fileInfo_.fileInfo.packedSize; in EncodeDataDescriptor()
468 …fileInfo_.fileInfo.packedSize = ReadLE32(buffer.buffer + offsetof(CentralDirEntry, compressedSize)… in DoDecodeCentralDirEntry()
482 size_t packedSize = ReadLE64(extraData + sizeof(uint32_t) + sizeof(uint64_t)); in DoDecodeCentralDirEntry() local
[all …]
Dpkg_pkgfile.cpp150 localFileInfo->packedSize = fileInfo->packedSize; in Init()
157 if (localFileInfo->packedSize == 0) { in Init()
158 localFileInfo->packedSize = inStream->GetFileLength(); in Init()
Dpkg_upgradefile.cpp103 compDataLen += (*it.second).GetFileInfo()->packedSize; in GetEntryOffset()
617 info.dataOffset += entry->GetFileInfo()->packedSize; in SaveEntry()
619 PKG_LOGI("Component packedSize %zu unpackedSize %zu %s", entry->GetFileInfo()->packedSize, in SaveEntry()
822 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize); in EncodeHeader()
837 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack()
855 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack()
857 encodeLen = fileInfo_.fileInfo.packedSize; in Pack()
859 fileInfo_.fileInfo.packedSize); in Pack()
877 fileInfo_.fileInfo.packedSize = ReadLE32(buffer.buffer + offsetof(UpgradeCompInfo, size)); in DecodeHeader()
878 fileInfo_.fileInfo.unpackedSize = fileInfo_.fileInfo.packedSize; in DecodeHeader()
[all …]
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_image_util.cpp58 int64_t packedSize {0}; in PackImage() local
59 imagePacker.FinalizePacking(packedSize); in PackImage()
60 ANS_LOGI("packed size : %{public}" PRId64, packedSize); in PackImage()
62 std::string pixelMapStr(reinterpret_cast<char*>(pbuf), static_cast<size_t>(packedSize)); in PackImage()
123 int64_t packedSize {0}; in PackImage2File() local
124 imagePacker.FinalizePacking(packedSize); in PackImage2File()
125 ANS_LOGI("packed size : %{public}" PRId64, packedSize); in PackImage2File()
/base/theme/wallpaper_mgr/test/unittest/
Dwallpaper_permission_test.cpp87 int64_t packedSize = 0; in CreateTempImage() local
89 imagePacker.FinalizePacking(packedSize); in CreateTempImage()
90 if (packedSize == 0) { in CreateTempImage()
Dwallpaper_test.cpp246 int64_t packedSize = 0; in CreateTempImage() local
248 imagePacker.FinalizePacking(packedSize); in CreateTempImage()
249 if (packedSize == 0) { in CreateTempImage()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
Dmock_image_packer.cpp110 uint32_t ImagePacker::FinalizePacking(int64_t &packedSize) in FinalizePacking() argument
112 packedSize = g_mockImagePackerFinalizePackingRet; in FinalizePacking()
/base/update/updater/test/unittest/test_data/diffpatch/
DPatchGztest_new.gz
DPatchGztest_old.gz1[==========] Running 25 tests from 7 test ...
/base/update/updater/services/diffpatch/diff/
Dimage_diff.cpp24 #define GET_REAL_DATA_LEN(info) (info) ->packedSize + (info)->dataOffset - (info)->headerOffset
374 { orgNewBuffer.buffer, newFileInfo->dataOffset, newFileInfo->packedSize }, in UpdateBlocks()
375 { orgOldBuffer.buffer, oldFileInfo->dataOffset, oldFileInfo->packedSize }, in UpdateBlocks()
452 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
455 BlockBuffer orgData = {orgNewBuffer.buffer + fileInfo->dataOffset, fileInfo->packedSize}; in TestAndSetConfig()
456 …PATCH_DEBUG("DiffFile new orignial hash %zu %s", fileInfo->packedSize, GeneraterBufferHash(orgData… in TestAndSetConfig()
466 if ((bufferSize == fileInfo->packedSize) && in TestAndSetConfig()
545 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig()
546 BlockBuffer orgData = { orgNewBuffer.buffer, fileInfo->packedSize + sizeof(uint32_t) }; in TestAndSetConfig()
548 fileInfo->packedSize + sizeof(uint32_t), GeneraterBufferHash(orgData).c_str()); in TestAndSetConfig()
[all …]
/base/update/updater/test/unittest/package/
Dpkg_manager_unittest.cpp121 info->fileInfo.packedSize = info->fileInfo.unpackedSize; in GetUpgradePkgInfo()
250 info.fileInfo.packedSize = testSize; in TestCreatePackageInvalidFile()
390 …HA256_Update(&sha256Ctx, static_cast<const uint8_t*>(mappedData), lz4Info.fileInfo.packedSize + 4); in CheckDataIntegrityLz4()
397 lz4Info.fileInfo.packedSize, lz4Info.fileInfo.unpackedSize, fileSize); in CheckDataIntegrityLz4()
502 …te(&sha256Ctx, reinterpret_cast<const uint8_t*>(mappedData) + offset, zipInfo.fileInfo.packedSize); in CheckDataIntegrityGzip()
509 zipInfo.fileInfo.packedSize, zipInfo.fileInfo.unpackedSize); in CheckDataIntegrityGzip()
592 info.packedSize, info.unpackedSize); in TestCompressBuffer()
Dpkg_test.h146 PKG_LOGI("FileInfo [%zu] packedSize: %zu \n", i, info->packedSize); in ExtractFile()
/base/update/updater/services/diffpatch/patch/
Dimage_patch.cpp128 info->packedSize = header.targetSize; in ApplyImagePatch()
171 info->packedSize = buffer.length; in DecompressData()
252 fileInfo->fileInfo.packedSize = 0; in GetFileInfo()
306 fileInfo->fileInfo.packedSize = 0; in GetFileInfo()
/base/update/updater/services/include/package/
Dpkg_info_utils.h79 size_t packedSize = 0; member
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_manager.cpp332 int64_t packedSize = 0; in WritePixelMapToStream() local
333 imagePacker.FinalizePacking(packedSize); in WritePixelMapToStream()
334 …rameWork WritePixelMapToStream End! packedSize=%{public}lld.", static_cast<long long>(packedSize)); in WritePixelMapToStream()
335 return packedSize; in WritePixelMapToStream()
/base/update/updater/test/unittest/test_data/applypatch/
DTestDecompressGzip.new.gz1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * ...
/base/update/updater/services/package/pkg_manager/
Dpkg_managerImpl.cpp914 info->packedSize = context.packedSize; in DoCreatePkgStream()
944 PKG_LOGI("packedSize: %zu unpackedSize: %zu ", context.packedSize, context.unpackedSize); in DoCreatePkgStream()
945 PkgStreamImpl::ConvertPkgStream(stream)->Flush(context.packedSize); in DoCreatePkgStream()
946 info->packedSize = context.packedSize; in DoCreatePkgStream()
/base/update/updater/interfaces/kits/packages/
Dpackage.cpp64 info->fileInfo.packedSize = compInfo[i].size; in GetUpgradePkgInfo()
/base/update/updater/services/updater_binary/
Dupdate_image_block.cpp108 LOG(DEBUG) << info->newPatch << " info: size " << file->packedSize << " unpacked size " << in UnpackNewData()