Home
last modified time | relevance | path

Searched refs:UpdaterState (Results 1 – 4 of 4) sorted by relevance

/base/update/updater/services/flashd/daemon/
Dcommander.cpp26 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()
Ddaemon_updater.cpp69 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()
Dcommander.h23 enum class UpdaterState { enum
29 using callbackFun = std::function<void(CmdType type, UpdaterState state, const std::string &msg)>;
Ddaemon_updater.h38 bool SendToHost(Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg);