/ohos5.0/base/update/updater/test/unittest/flashd_test/ |
H A D | flashd_unittest.cpp | 34 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 D | flashd_utils_unittest.cpp | 26 using namespace Flashd;
|
/ohos5.0/base/update/updater/services/flashd/ |
H A D | Readme.md | 1 # 升级子系统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 D | partition.h | 23 namespace Flashd {
|
H A D | partition.cpp | 27 namespace Flashd { namespace
|
/ohos5.0/base/update/updater/services/flashd/daemon/ |
H A D | daemon_updater.cpp | 68 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 D | daemon_updater.h | 38 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 D | flashd_main.cpp | 23 namespace Flashd { namespace 27 REGISTER_MODE(Flashd, "updater.flashd.configfs");
|
H A D | commander_factory.h | 25 namespace Flashd {
|
H A D | flashd_utils.h | 22 namespace Flashd {
|
H A D | erase_commander.h | 21 namespace Flashd {
|
H A D | format_commander.h | 22 namespace Flashd {
|
H A D | update_commander.h | 21 namespace Flashd {
|
H A D | flash_commander.h | 21 namespace Flashd {
|
H A D | commander.cpp | 20 namespace Flashd { namespace
|
H A D | erase_commander.cpp | 23 namespace Flashd { namespace
|
H A D | commander_factory.cpp | 24 namespace Flashd { namespace
|
H A D | commander.h | 22 namespace Flashd {
|
H A D | format_commander.cpp | 23 namespace Flashd { namespace
|
H A D | flashd_utils.cpp | 22 namespace Flashd { namespace
|
/ohos5.0/base/update/updater/ |
H A D | updater.md | 113 Flashd分为客户端和服务端,客户端提供统一的用户界面,服务端提供对应的功能服务,二者之间通过HDC作为数据传输通道。适配Flashd模式,可以提供刷机脚本刷机,工厂模式等功能。
|
/ohos5.0/base/update/updater/services/include/flashd/ |
H A D | flashd.h | 21 namespace Flashd {
|
/ohos5.0/base/update/updater/services/flashd/common/ |
H A D | flashd_define.h | 23 namespace Flashd {
|
/ohos5.0/base/update/updater/services/ |
H A D | updater_utils.cpp | 203 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 D | image_writer.h | 26 namespace Flashd {
|