Searched refs:packedSize (Results 1 – 25 of 25) sorted by relevance
34 size_t packedSize = 0; member36 PkgContextSize(size_t packedSize, size_t unpackedSize) in PkgContextSize()38 this->packedSize = packedSize; in PkgContextSize()46 size_t packedSize = 0; member56 this->packedSize = size.packedSize; in PkgAlgorithmContext()
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()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()
103 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()
107 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()
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()
141 {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 …]
309 {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 …]
150 localFileInfo->packedSize = fileInfo->packedSize; in Init()157 if (localFileInfo->packedSize == 0) { in Init()158 localFileInfo->packedSize = inStream->GetFileLength(); in Init()
103 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 …]
58 int64_t packedSize {0}; in PackImage() local59 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() local124 imagePacker.FinalizePacking(packedSize); in PackImage2File()125 ANS_LOGI("packed size : %{public}" PRId64, packedSize); in PackImage2File()
87 int64_t packedSize = 0; in CreateTempImage() local89 imagePacker.FinalizePacking(packedSize); in CreateTempImage()90 if (packedSize == 0) { in CreateTempImage()
246 int64_t packedSize = 0; in CreateTempImage() local248 imagePacker.FinalizePacking(packedSize); in CreateTempImage()249 if (packedSize == 0) { in CreateTempImage()
110 uint32_t ImagePacker::FinalizePacking(int64_t &packedSize) in FinalizePacking() argument112 packedSize = g_mockImagePackerFinalizePackingRet; in FinalizePacking()
1[==========] Running 25 tests from 7 test ...
24 #define GET_REAL_DATA_LEN(info) (info) ->packedSize + (info)->dataOffset - (info)->headerOffset374 { 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 …]
121 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()
146 PKG_LOGI("FileInfo [%zu] packedSize: %zu \n", i, info->packedSize); in ExtractFile()
128 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()
79 size_t packedSize = 0; member
332 int64_t packedSize = 0; in WritePixelMapToStream() local333 imagePacker.FinalizePacking(packedSize); in WritePixelMapToStream()334 …rameWork WritePixelMapToStream End! packedSize=%{public}lld.", static_cast<long long>(packedSize)); in WritePixelMapToStream()335 return packedSize; in WritePixelMapToStream()
1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * ...
914 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()
64 info->fileInfo.packedSize = compInfo[i].size; in GetUpgradePkgInfo()
108 LOG(DEBUG) << info->newPatch << " info: size " << file->packedSize << " unpacked size " << in UnpackNewData()