Lines Matching defs:writer

28     ImageProcessor writer, const std::string& expected)

30 if (writer == nullptr) {
34 std::unique_ptr<ImagePatchWriter> patchWriter = std::make_unique<ImagePatchWriter>(writer, expected, "");
36 PATCH_LOGE("ApplyImagePatch : Failed to create patch writer");
41 PATCH_LOGE("ApplyImagePatch : Failed to init patch writer");
52 bool UpdateApplyPatch::PreCheck(const PatchParam &param, const UpdatePatchWriterPtr writer)
54 if (writer == nullptr) {
70 UpdatePatchWriterPtr writer, const std::vector<uint8_t> &bonusData)
72 if (!PreCheck(param, writer)) {
92 imagePatch = std::make_unique<NormalImagePatch>(writer);
95 imagePatch = std::make_unique<RowImagePatch>(writer);
98 imagePatch = std::make_unique<ZipImagePatch>(writer, ((i == 1) ? bonusData : empty));
101 imagePatch = std::make_unique<Lz4ImagePatch>(writer, ((i == 1) ? bonusData : empty));
131 const BlockBuffer &oldInfo, UpdatePatchWriterPtr writer)
148 std::unique_ptr<BlocksStreamPatch> patch = std::make_unique<BlocksStreamPatch>(patchInfo, stream, writer);
162 const BlockBuffer &oldInfo, ImageProcessor writer, const std::string& expected)
164 if (writer == nullptr) {
168 std::unique_ptr<ImagePatchWriter> patchWriter = std::make_unique<ImagePatchWriter>(writer, expected, "");
170 PATCH_LOGE("ApplyBlockPatch : Failed to create patch writer");
175 PATCH_LOGE("ApplyBlockPatch : Failed to init patch writer");
213 Hpackage::PkgManager::StreamPtr stream, UpdatePatchWriterPtr writer)
215 std::unique_ptr<BlocksStreamPatch> patch = std::make_unique<BlocksStreamPatch>(patchInfo, stream, writer);
239 std::unique_ptr<FilePatchWriter> writer = std::make_unique<FilePatchWriter>(newName);
240 if (writer == nullptr) {
241 PATCH_LOGE("Failed to create writer");
244 writer->Init();
257 if (UpdatePatch::UpdateApplyPatch::ApplyImagePatch(param, writer.get(), empty) != 0) {
264 if (ApplyBlockPatch(patchInfo, oldInfo, writer.get()) != 0) {
272 writer->Finish();