Home
last modified time | relevance | path

Searched refs:writer_ (Results 1 – 14 of 14) sorted by relevance

/base/update/updater/services/flashd/image_writer/
Dimage_writer.cpp46 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, writePath, ptnInfo.startAddr); in GetDataWriter()
48 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, GetBlockDeviceByMountPoint(partition)); in GetDataWriter()
50 if (writer_ == nullptr) { in GetDataWriter()
59 if (writer_ == nullptr) { in Write()
65 if (!writer_->Write(data, len, nullptr)) { in Write()
Dimage_writer.h40 std::unique_ptr<DataWriter> writer_ = nullptr; variable
/base/hiviewdfx/hiview/base/event_store/store/
Dsys_event_doc.cpp38 : writer_(nullptr), reader_(nullptr), domain_(domain), name_(name), type_(0) in SysEventDoc()
41 SysEventDoc::SysEventDoc(const std::string& file) : writer_(nullptr), reader_(nullptr), type_(0), c… in SysEventDoc()
62 if (ret = writer_->Write(sysEvent); ret == DOC_STORE_NEW_FILE) { in Insert()
68 writer_ = std::make_shared<SysEventDocWriter>(curFile_); in Insert()
70 return writer_->Write(sysEvent); in Insert()
88 if (writer_ == nullptr || IsNeedUpdateCurFile()) { in InitWriter()
95 writer_ = std::make_shared<SysEventDocWriter>(curFile_); in InitWriter()
/base/update/updater/services/flashd/
Dpartition.h28 writer_(std::move(writer)) {} in Partition()
38 std::unique_ptr<FlashdWriter> writer_ = nullptr; variable
Dpartition.cpp30 if (buffer == nullptr || bufferSize <= 0 || writer_ == nullptr) { in DoFlash()
35 if (auto ret = writer_->Write(devName_, buffer, bufferSize); ret != 0) { in DoFlash()
/base/update/updater/services/diffpatch/patch/
Dimage_patch.h29 explicit ImagePatch(UpdatePatchWriterPtr writer) : writer_(writer) {} in ImagePatch()
46 UpdatePatchWriterPtr writer_ {nullptr};
120 : UpdatePatchWriter(), fileInfo_(fileInfo), writer_(writer) {} in CompressedFileRestore()
134 UpdatePatchWriterPtr writer_ { nullptr };
Dblocks_patch.h70 : BlocksPatch(patchInfo), stream_(stream), writer_(writer) {} in BlocksStreamPatch()
77 UpdatePatchWriterPtr writer_ { nullptr };
Dimage_patch.cpp53 int32_t ret = UpdateApplyPatch::ApplyBlockPatch(patchInfo, oldInfo, writer_); in ApplyImagePatch()
77 int32_t ret = writer_->Write(0, data, dataLen); in ApplyImagePatch()
130 …tr<CompressedFileRestore> zipWriter = std::make_unique<CompressedFileRestore>(info.get(), writer_); in ApplyImagePatch()
321 deflateAdapter_.reset(new ZipAdapter(writer_, 0, fileInfo_)); in Init()
323 deflateAdapter_.reset(new Lz4FrameAdapter(writer_, 0, fileInfo_)); in Init()
325 deflateAdapter_.reset(new Lz4BlockAdapter(writer_, 0, fileInfo_)); in Init()
Dblocks_patch.cpp270 return writer_->Write(newOffset_, diffBuffer, static_cast<size_t>(ctrlData.diffLength)); in RestoreDiffData()
286 return writer_->Write(newOffset_, extraBuffer, static_cast<size_t>(ctrlData.extraLength)); in RestoreExtraData()
Dupdate_patch.cpp282 if (writer_ == nullptr) { in Init()
301 return writer_(start, buffer, len); in Write()
/base/update/updater/services/flow_update/update_bin/
Dcomponent_processor.cpp166 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, writePath, in PreProcess()
168 if (writer_ == nullptr) { in PreProcess()
197 …int ret = env.GetPkgManager()->CreatePkgStream(outStream, partitionName, processor, writer_.get()); in DoProcess()
216 DataWriter::ReleaseDataWriter(writer_); in PostProcess()
298 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, writePath, in PreProcess()
300 if (writer_ == nullptr) { in PreProcess()
329 …int ret = env.GetPkgManager()->CreatePkgStream(outStream, partitionName, processor, writer_.get()); in DoProcess()
371 DataWriter::ReleaseDataWriter(writer_); in PostProcess()
Dcomponent_processor.h125 std::unique_ptr<DataWriter> writer_ = nullptr; variable
140 std::unique_ptr<DataWriter> writer_ = nullptr; variable
/base/update/updater/services/include/patch/
Dupdate_patch.h89 writer_(writer), expected_(expected), partitionName_(partitionName) {} in ImagePatchWriter()
98 UpdateApplyPatch::ImageProcessor writer_; variable
/base/hiviewdfx/hiview/base/event_store/store/include/
Dsys_event_doc.h52 std::shared_ptr<EventDocWriter> writer_;