Home
last modified time | relevance | path

Searched refs:Flashd (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/base/update/updater/test/unittest/flashd_test/
H A Dflashd_unittest.cpp34 using namespace Flashd;
63 Flashd::UpdaterState ret = UpdaterState::DOING;
64 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10202()
98 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10302()
132 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10402()
166 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10502()
308 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10602()
338 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10702()
383 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10802()
412 …auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &ms… in __anon43aa4ae10902()
[all …]
H A Dflashd_utils_unittest.cpp26 using namespace Flashd;
/ohos5.0/base/update/updater/services/flashd/
H A DReadme.md1 # 升级子系统Flashd使用指导<a name="ZH-CN_TOPIC_0000001148614629"></a>
14 Flashd是OpenHarmony升级子系统的一个刷机模式,可以提供格式化用户分区,擦除分区,刷写镜像,zip格式整包升级的功能。
15 Flashd分为客户端和服务端,客户端提供统一的用户界面,服务端提供对应的功能服务,二者之间通过HDC作为数据传输通道。
20 1. 如何进入Flashd模式
23 设备就会重启进入Flashd模式。
25 2. 如何退出Flashd模式
28 设备就会退出Flashd模式重启到正常系统。
H A Dpartition.h23 namespace Flashd {
H A Dpartition.cpp27 namespace Flashd { namespace
/ohos5.0/base/update/updater/services/flashd/daemon/
H A Ddaemon_updater.cpp68 bool DaemonUpdater::SendToHost(Flashd::CmdType type, Flashd::UpdaterState state, const std::string … in SendToHost()
75 if (state == Flashd::UpdaterState::DOING) { in SendToHost()
86 if (state == Flashd::UpdaterState::FAIL || state == Flashd::UpdaterState::SUCCESS) { in SendToHost()
87 …uint8_t percentage = (state == Flashd::UpdaterState::SUCCESS) ? Flashd::PERCENT_FINISH : Flashd::P… in SendToHost()
93 buffer.push_back((state == Flashd::UpdaterState::SUCCESS) ? Hdc::MSG_OK : Hdc::MSG_FAIL); in SendToHost()
105 std::unique_ptr<Flashd::Commander> DaemonUpdater::CreateCommander(const std::string &cmd) in CreateCommander()
112 … auto callback = [this](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg) { in CreateCommander()
115 return Flashd::CommanderFactory::GetInstance().CreateCommander(cmd, callback); in CreateCommander()
H A Ddaemon_updater.h38 bool SendToHost(Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg);
39 std::unique_ptr<Flashd::Commander> CreateCommander(const std::string &cmd);
43 std::unique_ptr<Flashd::Commander> commander_ = nullptr;
H A Dflashd_main.cpp23 namespace Flashd { namespace
27 REGISTER_MODE(Flashd, "updater.flashd.configfs");
H A Dcommander_factory.h25 namespace Flashd {
H A Dflashd_utils.h22 namespace Flashd {
H A Derase_commander.h21 namespace Flashd {
H A Dformat_commander.h22 namespace Flashd {
H A Dupdate_commander.h21 namespace Flashd {
H A Dflash_commander.h21 namespace Flashd {
H A Dcommander.cpp20 namespace Flashd { namespace
H A Derase_commander.cpp23 namespace Flashd { namespace
H A Dcommander_factory.cpp24 namespace Flashd { namespace
H A Dcommander.h22 namespace Flashd {
H A Dformat_commander.cpp23 namespace Flashd { namespace
H A Dflashd_utils.cpp22 namespace Flashd { namespace
/ohos5.0/base/update/updater/
H A Dupdater.md113 Flashd分为客户端和服务端,客户端提供统一的用户界面,服务端提供对应的功能服务,二者之间通过HDC作为数据传输通道。适配Flashd模式,可以提供刷机脚本刷机,工厂模式等功能。
/ohos5.0/base/update/updater/services/include/flashd/
H A Dflashd.h21 namespace Flashd {
/ohos5.0/base/update/updater/services/flashd/common/
H A Dflashd_define.h23 namespace Flashd {
/ohos5.0/base/update/updater/services/
H A Dupdater_utils.cpp203 if (access(Flashd::FLASHD_FILE_PATH, 0) == 0 && !DeleteUpdaterPath(Flashd::FLASHD_FILE_PATH)) { in PostUpdater()
/ohos5.0/base/update/updater/services/flashd/image_writer/
H A Dimage_writer.h26 namespace Flashd {

12