Home
last modified time | relevance | path

Searched refs:Stage (Results 1 – 7 of 7) sorted by relevance

/system/update_engine/update_manager/
Dboxed_value_unittest.cc205 BoxedValue(new Stage(Stage::kIdle)).ToString()); in TEST()
207 BoxedValue(new Stage(Stage::kCheckingForUpdate)).ToString()); in TEST()
209 BoxedValue(new Stage(Stage::kUpdateAvailable)).ToString()); in TEST()
211 BoxedValue(new Stage(Stage::kDownloading)).ToString()); in TEST()
213 BoxedValue(new Stage(Stage::kVerifying)).ToString()); in TEST()
215 BoxedValue(new Stage(Stage::kFinalizing)).ToString()); in TEST()
217 BoxedValue(new Stage(Stage::kUpdatedNeedReboot)).ToString()); in TEST()
219 BoxedValue(new Stage(Stage::kReportingErrorEvent)).ToString()); in TEST()
221 BoxedValue(new Stage(Stage::kAttemptingRollback)).ToString()); in TEST()
Dboxed_value.cc152 string BoxedValue::ValuePrinter<Stage>(const void* value) { in ValuePrinter()
153 const Stage* val = reinterpret_cast<const Stage*>(value); in ValuePrinter()
155 case Stage::kIdle: in ValuePrinter()
157 case Stage::kCheckingForUpdate: in ValuePrinter()
159 case Stage::kUpdateAvailable: in ValuePrinter()
161 case Stage::kDownloading: in ValuePrinter()
163 case Stage::kVerifying: in ValuePrinter()
165 case Stage::kFinalizing: in ValuePrinter()
167 case Stage::kUpdatedNeedReboot: in ValuePrinter()
169 case Stage::kReportingErrorEvent: in ValuePrinter()
[all …]
Dreal_updater_provider.cc132 class StageVariable : public UpdaterVariableBase<Stage> {
135 : UpdaterVariableBase<Stage>(name, kVariableModePoll, system_state) {} in StageVariable()
140 Stage stage;
145 const Stage* GetValue(TimeDelta /* timeout */, string* errmsg) override;
151 {update_engine::kUpdateStatusIdle, Stage::kIdle},
152 {update_engine::kUpdateStatusCheckingForUpdate, Stage::kCheckingForUpdate},
153 {update_engine::kUpdateStatusUpdateAvailable, Stage::kUpdateAvailable},
154 {update_engine::kUpdateStatusDownloading, Stage::kDownloading},
155 {update_engine::kUpdateStatusVerifying, Stage::kVerifying},
156 {update_engine::kUpdateStatusFinalizing, Stage::kFinalizing},
[all …]
Dupdater_provider.h29 enum class Stage { enum
75 virtual Variable<Stage>* var_stage() = 0;
Dreal_updater_provider_unittest.cc180 UmTestUtils::ExpectVariableHasValue(Stage::kIdle, provider_->var_stage()); in TEST_F()
189 UmTestUtils::ExpectVariableHasValue(Stage::kCheckingForUpdate, in TEST_F()
199 UmTestUtils::ExpectVariableHasValue(Stage::kUpdateAvailable, in TEST_F()
208 UmTestUtils::ExpectVariableHasValue(Stage::kDownloading, in TEST_F()
217 UmTestUtils::ExpectVariableHasValue(Stage::kVerifying, in TEST_F()
226 UmTestUtils::ExpectVariableHasValue(Stage::kFinalizing, in TEST_F()
236 UmTestUtils::ExpectVariableHasValue(Stage::kUpdatedNeedReboot, in TEST_F()
246 UmTestUtils::ExpectVariableHasValue(Stage::kReportingErrorEvent, in TEST_F()
256 UmTestUtils::ExpectVariableHasValue(Stage::kAttemptingRollback, in TEST_F()
Dfake_updater_provider.h48 FakeVariable<Stage>* var_stage() override { in var_stage()
99 FakeVariable<Stage> var_stage_{ // NOLINT(whitespace/braces)
Dreal_updater_provider.h59 Variable<Stage>* var_stage() override { in var_stage()
108 std::unique_ptr<Variable<Stage>> var_stage_;