Searched refs:UpdaterState (Results 1 - 5 of 5) sorted by relevance
/base/update/updater/test/unittest/flashd_test/ |
H A D | flashd_unittest.cpp | 63 Flashd::UpdaterState ret = UpdaterState::DOING; in HWTEST_F() 64 auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg) { in HWTEST_F() 73 EXPECT_EQ(UpdaterState::FAIL, ret); in HWTEST_F() 78 EXPECT_EQ(UpdaterState::FAIL, ret); in HWTEST_F() 84 EXPECT_EQ(UpdaterState::FAIL, ret); in HWTEST_F() 90 EXPECT_EQ(UpdaterState::FAIL, ret); in HWTEST_F() 97 Flashd::UpdaterState ret = UpdaterState::DOING; in HWTEST_F() 98 auto callbackFail = [&ret](Flashd::CmdType type, Flashd::UpdaterState stat in HWTEST_F() [all...] |
/base/update/updater/services/flashd/daemon/ |
H A 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()
|
H A D | daemon_updater.cpp | 68 bool DaemonUpdater::SendToHost(Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg) 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::PERCENT_CLEAR; in SendToHost() 93 buffer.push_back((state == Flashd::UpdaterState::SUCCESS) ? Hdc::MSG_OK : Hdc::MSG_FAIL); in SendToHost() 112 auto callback = [this](Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg) { in CreateCommander()
|
H A D | commander.h | 23 enum class UpdaterState { class 29 using callbackFun = std::function<void(CmdType type, UpdaterState state, const std::string &msg)>;
|
H A D | daemon_updater.h | 38 bool SendToHost(Flashd::CmdType type, Flashd::UpdaterState state, const std::string &msg);
|
Completed in 3 milliseconds