/base/update/updater/services/package/pkg_algorithm/ |
D | pkg_algorithm.h | 34 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()
|
D | pkg_algorithm.cpp | 102 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()
|
D | pkg_algo_deflate.cpp | 92 context.packedSize = destOffset - context.destOffset; in Pack() 109 size_t remainCompressedSize = context.packedSize; in UnpackCalculate() 142 context.packedSize = context.packedSize - zstream.avail_in - remainCompressedSize; in UnpackCalculate()
|
D | pkg_algo_lz4.cpp | 105 context.packedSize = destOffset - context.destOffset; in Pack() 123 size_t remainSize = context.packedSize; in Unpack() 156 context.packedSize = srcOffset - context.srcOffset; in Unpack() 251 context.packedSize = destOffset - context.destOffset; in Pack() 309 size_t remainSize = context.packedSize; in Unpack() 358 context.packedSize = srcOffset - context.srcOffset; in Unpack()
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_lz4file.cpp | 62 {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()
|
D | pkg_gzipfile.cpp | 127 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack() 135 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack() 146 …utStream->Write(buffer, BLOCK_SIZE, fileInfo_.fileInfo.dataOffset + fileInfo_.fileInfo.packedSize); in Pack() 151 encodeLen = fileInfo_.fileInfo.packedSize + BLOCK_SIZE; in Pack() 152 PKG_LOGI("Pack packedSize:%zu unpackedSize: %zu offset: %zu %zu", fileInfo_.fileInfo.packedSize, in Pack() 163 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack() 171 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Unpack() 179 fileInfo_.fileInfo.packedSize = context.packedSize; in Unpack() 181 …ret = inStream->Read(buffer, context.packedSize + fileInfo_.fileInfo.dataOffset, BLOCK_SIZE, readL… in Unpack() 189 …I("packedSize: %zu unpackedSize: %zu offset header: %zu data: %zu", fileInfo_.fileInfo.packedSize, in Unpack() [all …]
|
D | pkg_zipfile.cpp | 274 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack() 280 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack() 293 startOffset + headerLen + fileInfo_.fileInfo.packedSize, encodeDataDescLen); in Pack() 298 encodeLen = headerLen + fileInfo_.fileInfo.packedSize; in Pack() 300 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize, in Pack() 327 centralDir->compressedSize = fileInfo_.fileInfo.packedSize; in EncodeCentralDirEntry() 365 header->compressedSize = fileInfo_.fileInfo.packedSize; in EncodeLocalFileHeader() 386 dataDesc.compressedSize = fileInfo_.fileInfo.packedSize; in EncodeDataDescriptor() 438 …fileInfo_.fileInfo.packedSize = ReadLE32(buffer.buffer + offsetof(CentralDirEntry, compressedSize)… in DecodeCentralDirEntry() 452 size_t packedSize = ReadLE64(extraData + sizeof(uint32_t) + sizeof(uint64_t)); in DecodeCentralDirEntry() local [all …]
|
D | pkg_pkgfile.cpp | 147 localFileInfo->packedSize = fileInfo->packedSize; in Init() 154 if (localFileInfo->packedSize == 0) { in Init() 155 localFileInfo->packedSize = inStream->GetFileLength(); in Init()
|
D | pkg_upgradefile.cpp | 92 compDataLen += (*it.second).GetFileInfo()->packedSize; in AddEntry() 303 dataOffset += entry->GetFileInfo()->packedSize; in ReadComponents() 305 PKG_LOGI("Component packedSize %zu unpackedSize %zu %s", entry->GetFileInfo()->packedSize, in ReadComponents() 404 fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize); in EncodeHeader() 419 {fileInfo_.fileInfo.packedSize, fileInfo_.fileInfo.unpackedSize}, in Pack() 437 fileInfo_.fileInfo.packedSize = context.packedSize; in Pack() 439 encodeLen = fileInfo_.fileInfo.packedSize; in Pack() 441 fileInfo_.fileInfo.packedSize); in Pack() 459 fileInfo_.fileInfo.packedSize = ReadLE32(buffer.buffer + offsetof(UpgradeCompInfo, size)); in DecodeHeader() 460 fileInfo_.fileInfo.unpackedSize = fileInfo_.fileInfo.packedSize; in DecodeHeader() [all …]
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
D | ans_image_util.cpp | 58 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/ |
D | wallpaper_permission_test.cpp | 91 int64_t packedSize = 0; in CreateTempImage() local 93 imagePacker.FinalizePacking(packedSize); in CreateTempImage() 94 if (packedSize == 0) { in CreateTempImage()
|
D | wallpaper_test.cpp | 176 int64_t packedSize = 0; in CreateTempImage() local 178 imagePacker.FinalizePacking(packedSize); in CreateTempImage() 179 if (packedSize == 0) { in CreateTempImage()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/ |
D | mock_image_packer.cpp | 110 uint32_t ImagePacker::FinalizePacking(int64_t &packedSize) in FinalizePacking() argument 112 packedSize = g_mockImagePackerFinalizePackingRet; in FinalizePacking()
|
/base/update/updater/test/unittest/test_data/diffpatch/ |
D | PatchGztest_new.gz |
|
D | PatchGztest_old.gz |
|
/base/update/updater/services/diffpatch/diff/ |
D | image_diff.cpp | 24 #define GET_REAL_DATA_LEN(info) (info) ->packedSize + (info)->dataOffset - (info)->headerOffset 354 { orgNewBuffer.buffer, newFileInfo->dataOffset, newFileInfo->packedSize }, in DiffFile() 355 { orgOldBuffer.buffer, oldFileInfo->dataOffset, oldFileInfo->packedSize }, in DiffFile() 433 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig() 436 BlockBuffer orgData = {orgNewBuffer.buffer + fileInfo->dataOffset, fileInfo->packedSize}; in TestAndSetConfig() 437 …PATCH_DEBUG("DiffFile new orignial hash %zu %s", fileInfo->packedSize, GeneraterBufferHash(orgData… in TestAndSetConfig() 446 if ((bufferSize == fileInfo->packedSize) && in TestAndSetConfig() 523 fileInfo->unpackedSize, fileInfo->packedSize, fileInfo->dataOffset, fileInfo->headerOffset); in TestAndSetConfig() 524 BlockBuffer orgData = { orgNewBuffer.buffer, fileInfo->packedSize + sizeof(uint32_t) }; in TestAndSetConfig() 526 fileInfo->packedSize + sizeof(uint32_t), GeneraterBufferHash(orgData).c_str()); in TestAndSetConfig() [all …]
|
/base/update/updater/services/diffpatch/patch/ |
D | image_patch.cpp | 108 info->packedSize = header.targetSize; in ApplyImagePatch() 140 info->packedSize = buffer.length; in DecompressData() 208 fileInfo->fileInfo.packedSize = 0; in GetFileInfo() 262 fileInfo->fileInfo.packedSize = 0; in GetFileInfo()
|
/base/update/updater/test/unittest/package/ |
D | pkg_manager_unittest.cpp | 121 info->fileInfo.packedSize = info->fileInfo.unpackedSize; in GetUpgradePkgInfo() 250 info.fileInfo.packedSize = testSize; in TestCreatePackageInvalidFile() 427 …HA256_Update(&sha256Ctx, static_cast<const uint8_t*>(mappedData), lz4Info.fileInfo.packedSize + 4); in TestDecompressLz4() 434 lz4Info.fileInfo.packedSize, lz4Info.fileInfo.unpackedSize, fileSize); in TestDecompressLz4() 522 …te(&sha256Ctx, reinterpret_cast<const uint8_t*>(mappedData) + offset, zipInfo.fileInfo.packedSize); in TestDecompressGzip() 529 zipInfo.fileInfo.packedSize, zipInfo.fileInfo.unpackedSize); in TestDecompressGzip() 562 info.packedSize, info.unpackedSize); in TestCompressBuffer()
|
D | pkg_test.h | 136 PKG_LOGI("FileInfo [%zu] packedSize: %zu \n", i, info->packedSize); in ExtractFile()
|
/base/theme/wallpaper_mgr/frameworks/innerkitsimpl/wallpaper_manager/src/ |
D | wallpaper_manager.cpp | 278 int64_t packedSize = 0; in WritePixelMapToStream() local 279 imagePacker.FinalizePacking(packedSize); in WritePixelMapToStream() 280 …rameWork WritePixelMapToStream End! packedSize=%{public}lld.", static_cast<long long>(packedSize)); in WritePixelMapToStream() 281 return packedSize; in WritePixelMapToStream()
|
/base/update/updater/test/unittest/test_data/applypatch/ |
D | TestDecompressGzip.new.gz |
|
/base/update/updater/services/package/pkg_manager/ |
D | pkg_managerImpl.cpp | 805 info->packedSize = context.packedSize; in CreatePkgStream() 835 PKG_LOGI("packedSize: %zu unpackedSize: %zu ", context.packedSize, context.unpackedSize); in CreatePkgStream() 836 PkgStreamImpl::ConvertPkgStream(stream)->Flush(context.packedSize); in CreatePkgStream() 837 info->packedSize = context.packedSize; in CreatePkgStream()
|
/base/theme/wallpaper_mgr/services/src/ |
D | wallpaper_service.cpp | 430 int64_t packedSize = 0; in WritePixelMapToFile() local 432 imagePacker.FinalizePacking(packedSize); in WritePixelMapToFile() 433 return packedSize; in WritePixelMapToFile() 513 int64_t packedSize = WritePixelMapToFile(tmpPath, std::move(wallpaperPixelMap)); in MakeCropWallpaper() local 514 if (packedSize != 0) { in MakeCropWallpaper()
|
/base/update/updater/services/include/package/ |
D | pkg_manager.h | 76 size_t packedSize = 0; member
|
/base/update/updater/interfaces/kits/packages/ |
D | package.cpp | 64 info->fileInfo.packedSize = compInfo[i].size; in GetUpgradePkgInfo()
|