Searched refs:UpdaterState (Results 1 – 4 of 4) sorted by relevance
/base/update/updater/services/flashd/daemon/ |
D | commander.cpp | 26 callback_(type, UpdaterState::SUCCESS, "[Success] " + msg); in NotifySuccess() 34 callback_(type, UpdaterState::FAIL, " " + msg); in NotifyFail() 58 callback_(type, UpdaterState::DOING, std::to_string(currentProcess)); in UpdateProgress()
|
D | daemon_updater.cpp | 69 bool DaemonUpdater::SendToHost(Flashd::CmdType type, Flashd::UpdaterState state, const std::string … in SendToHost() 76 if (state == Flashd::UpdaterState::DOING) { in SendToHost() 87 if (state == Flashd::UpdaterState::FAIL || state == Flashd::UpdaterState::SUCCESS) { in SendToHost() 88 …uint8_t percentage = (state == Flashd::UpdaterState::SUCCESS) ? Flashd::PERCENT_FINISH : Flashd::P… in SendToHost() 94 buffer.push_back((state == Flashd::UpdaterState::SUCCESS) ? Hdc::MSG_OK : Hdc::MSG_FAIL); in SendToHost() 114 … auto callback = [this](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg) { in CreateCommander()
|
D | commander.h | 23 enum class UpdaterState { enum 29 using callbackFun = std::function<void(CmdType type, UpdaterState state, const std::string &msg)>;
|
D | daemon_updater.h | 38 bool SendToHost(Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg);
|