Home
last modified time | relevance | path

Searched refs:DataWriter (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/base/update/updater/services/applypatch/
H A Ddata_writer.cpp28 UpdaterEnv *DataWriter::env_ = nullptr;
29 int DataWriter::OpenPath(const std::string &path) in OpenPath()
59 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter()
74 UpdaterEnv *DataWriter::GetUpdaterEnv() in GetUpdaterEnv()
79 void DataWriter::SetUpdaterEnv(UpdaterEnv *env) in SetUpdaterEnv()
84 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(WriteMode mode, const std::string &path, in CreateDataWriter()
91 std::unique_ptr<DataWriter> DataWriter::CreateDataWriter(const std::string &mode, const std::string… in CreateDataWriter()
101 void DataWriter::ReleaseDataWriter(std::unique_ptr<DataWriter> &writer) in ReleaseDataWriter()
106 void DataWriter::RegisterDataWriter(const std::string &mode, WriterConstructor constructor) in RegisterDataWriter()
H A Draw_writer.cpp25 DataWriter::RegisterDataWriter("WRITE_RAW", in RegisterRawWriter()
27 uint64_t offset) -> std::unique_ptr<DataWriter> { in RegisterRawWriter()
H A Draw_writer.h26 class RawWriter : public DataWriter {
/ohos5.0/base/update/updater/services/include/applypatch/
H A Ddata_writer.h32 class DataWriter {
34 using DataWriterPtr = DataWriter *;
35 …using WriterConstructor = std::unique_ptr<DataWriter> (*)(const std::string &, const std::string &,
38 virtual ~DataWriter() {} in ~DataWriter()
39 …static std::unique_ptr<DataWriter> CreateDataWriter(WriteMode mode, const std::string &path, Updat…
41 …static std::unique_ptr<DataWriter> CreateDataWriter(WriteMode mode, const std::string &path, uint6…
42 …static std::unique_ptr<DataWriter> CreateDataWriter(const std::string &mode, const std::string &pa…
46 static void ReleaseDataWriter(std::unique_ptr<DataWriter> &writer);
H A Dblock_writer.h25 class BlockWriter : public DataWriter {
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_profiler/unittest/
H A Drs_profiler_archive_test.cpp40 DataWriter writer(buf);
58 DataWriter writer(buf);
76 DataWriter writer(buf);
94 DataWriter writer(buf);
112 DataWriter writer(buf);
130 DataWriter writer(buf);
149 DataWriter writer(buf);
167 DataWriter writer(buf);
185 DataWriter writer(buf);
224 DataWriter writer(buf);
[all …]
/ohos5.0/base/update/updater/test/unittest/applypatch_test/
H A Dapplypatch_unittest.cpp74 std::unique_ptr<DataWriter> writer = DataWriter::CreateDataWriter(mode, filePath);
104 DataWriter::ReleaseDataWriter(writer);
110 std::unique_ptr<DataWriter> writer = nullptr;
116 writer = DataWriter::CreateDataWriter(mode, "", DataWriter::GetUpdaterEnv());
118 DataWriter::ReleaseDataWriter(writer);
H A Dimagepatch_unittest.h37 class FileWriter : public DataWriter {
/ohos5.0/base/update/updater/services/flow_update/update_bin/
H A Dcomponent_processor.cpp171 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, writePath, in PreProcess()
221 DataWriter::ReleaseDataWriter(writer_); in PostProcess()
267 DataWriter *writer = static_cast<DataWriter *>(p); in RawImageWriteProcessor()
301 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, writePath, in PreProcess()
352 DataWriter *writer = static_cast<DataWriter *>(p);
370 DataWriter::ReleaseDataWriter(writer_); in PostProcess()
H A Dbin_flow_update.h43 std::unique_ptr<DataWriter> writer;
57 std::unique_ptr<DataWriter> GetDataWriter(const std::string &partition);
H A Dcomponent_processor.h141 std::unique_ptr<DataWriter> writer_ = nullptr;
156 std::unique_ptr<DataWriter> writer_ = nullptr;
H A Dbin_flow_update.cpp137 std::unique_ptr<DataWriter> BinFlowUpdate::GetDataWriter(const std::string &partition) in GetDataWriter()
156 return DataWriter::CreateDataWriter(WRITE_RAW, writePath, static_cast<uint64_t>(0)); in GetDataWriter()
/ohos5.0/base/update/updater/services/updater_binary/
H A Dupdate_processor.cpp122 DataWriter *writer = static_cast<DataWriter *>(p); in RawImageWriteProcessor()
148 …const std::unique_ptr<DataWriter> &writer, [[maybe_unused]] uint64_t partitionSize, Uscript::UScri…
222 std::unique_ptr<DataWriter> writer = DataWriter::CreateDataWriter(WRITE_RAW, writePath, in Execute()
230 DataWriter::ReleaseDataWriter(writer); in Execute()
235 DataWriter::ReleaseDataWriter(writer); in Execute()
H A Dupdate_processor.h75 bool WriteRawImage(const std::string &partitionName, const std::unique_ptr<DataWriter> &writer,
H A Dupdate_image_patch.cpp100 std::unique_ptr<DataWriter> writer = DataWriter::CreateDataWriter(WRITE_RAW, para.devPath); in ApplyPatch()
/ohos5.0/base/update/updater/services/flashd/image_writer/
H A Dimage_writer.cpp44 …writer_ = DataWriter::CreateDataWriter(ptnInfo.writeMode, ptnInfo.writePath, partition, ptnInfo.st… in GetDataWriter()
46 writer_ = DataWriter::CreateDataWriter(WRITE_RAW, GetBlockDeviceByMountPoint(partition)); in GetDataWriter()
H A Dimage_writer.h40 std::unique_ptr<DataWriter> writer_ = nullptr;
/ohos5.0/base/update/updater/services/ptable_parse/
H A Dptable.cpp502 std::unique_ptr<DataWriter> writer = DataWriter::CreateDataWriter(WRITE_RAW, path, offset); in WriteBufferToPath()
510 DataWriter::ReleaseDataWriter(writer); in WriteBufferToPath()
513 DataWriter::ReleaseDataWriter(writer); in WriteBufferToPath()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_capturedata.cpp106 DataWriter archive(out); in Serialize()
H A Drs_profiler_archive.h144 using DataWriter = DataArchive<false>; variable
H A Drs_profiler_beta_recorder.cpp267 DataWriter archive(out); in WriteBetaRecordMetrics()
H A Drs_profiler_network.cpp246 DataWriter archive(out); in SendCaptureData()
H A Drs_profiler.cpp413 DataWriter archive(out); in OnParallelRenderEnd()
815 DataWriter archive(out); in RecordUpdate()