Home
last modified time | relevance | path

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

/system/chre/apps/chqts/src/general_test/
Dtimer_set_test.cc55 TimerSetTest::Stage::Stage(uint32_t stage, uint64_t duration, in Stage() function in general_test::TimerSetTest::Stage
60 void TimerSetTest::Stage::start() { in start()
71 void TimerSetTest::Stage::processEvent(uint64_t timestamp, TimerSetTest *test) { in processEvent()
107 mStages = static_cast<Stage*>(chreHeapAlloc(sizeof(*mStages) * in initStages()
116 new(&mStages[0]) Stage(0, kShortDuration, nullptr, true); in initStages()
118 new(&mStages[1]) Stage(1, kShortDuration, COOKIE(-1), true); in initStages()
120 new(&mStages[2]) Stage(2, kShortDuration, COOKIE(2), true); in initStages()
122 new(&mStages[3]) Stage(3, kLongDuration, COOKIE(3), true); in initStages()
124 new(&mStages[4]) Stage(4, kLongDuration, COOKIE(4), false); in initStages()
126 new(&mStages[5]) Stage(5, kShortDuration, COOKIE(5), false); in initStages()
[all …]
Dtimer_cancel_test.cc47 Stage *stage = &mStages[i]; in startStages()
75 Stage(0, false, false), in TimerCancelTest()
76 Stage(1, true, false), in TimerCancelTest()
77 Stage(2, false, true ), in TimerCancelTest()
78 Stage(3, true, true )}, in TimerCancelTest()
104 void TimerCancelTest::handleStageEvent(Stage *stage) { in handleStageEvent()
145 const Stage *stage = static_cast<const Stage*>(eventData); in handleEvent()
149 handleStageEvent(const_cast<Stage *>(stage)); in handleEvent()
Dtimer_cancel_test.h40 struct Stage { struct
47 Stage(uint32_t stage_, bool oneShot_, bool expectCallback_) : in Stage() argument
55 Stage mStages[kStageCount];
61 void handleStageEvent(Stage *stage);
Dtimer_set_test.h42 class Stage {
44 Stage(uint32_t stage, uint64_t duration, const void *cookie,
64 Stage *mStages;
72 Stage *getStageFromCookie(const void *cookie);
/system/update_engine/update_manager/
Dboxed_value_unittest.cc237 EXPECT_EQ("Idle", BoxedValue(new Stage(Stage::kIdle)).ToString()); in TEST()
239 BoxedValue(new Stage(Stage::kCheckingForUpdate)).ToString()); in TEST()
241 BoxedValue(new Stage(Stage::kUpdateAvailable)).ToString()); in TEST()
243 BoxedValue(new Stage(Stage::kDownloading)).ToString()); in TEST()
244 EXPECT_EQ("Verifying", BoxedValue(new Stage(Stage::kVerifying)).ToString()); in TEST()
245 EXPECT_EQ("Finalizing", BoxedValue(new Stage(Stage::kFinalizing)).ToString()); in TEST()
247 BoxedValue(new Stage(Stage::kUpdatedNeedReboot)).ToString()); in TEST()
249 BoxedValue(new Stage(Stage::kReportingErrorEvent)).ToString()); in TEST()
251 BoxedValue(new Stage(Stage::kAttemptingRollback)).ToString()); in TEST()
Dboxed_value.cc181 string BoxedValue::ValuePrinter<Stage>(const void* value) { in ValuePrinter()
182 const Stage* val = reinterpret_cast<const Stage*>(value); in ValuePrinter()
184 case Stage::kIdle: in ValuePrinter()
186 case Stage::kCheckingForUpdate: in ValuePrinter()
188 case Stage::kUpdateAvailable: in ValuePrinter()
190 case Stage::kDownloading: in ValuePrinter()
192 case Stage::kVerifying: in ValuePrinter()
194 case Stage::kFinalizing: in ValuePrinter()
196 case Stage::kUpdatedNeedReboot: in ValuePrinter()
198 case Stage::kReportingErrorEvent: in ValuePrinter()
[all …]
Dreal_updater_provider.cc142 class StageVariable : public UpdaterVariableBase<Stage> {
145 : UpdaterVariableBase<Stage>(name, kVariableModePoll, system_state) {} in StageVariable()
150 Stage stage;
155 const Stage* GetValue(TimeDelta /* timeout */, string* errmsg) override;
161 {update_engine::kUpdateStatusIdle, Stage::kIdle},
162 {update_engine::kUpdateStatusCheckingForUpdate, Stage::kCheckingForUpdate},
163 {update_engine::kUpdateStatusUpdateAvailable, Stage::kUpdateAvailable},
164 {update_engine::kUpdateStatusDownloading, Stage::kDownloading},
165 {update_engine::kUpdateStatusVerifying, Stage::kVerifying},
166 {update_engine::kUpdateStatusFinalizing, Stage::kFinalizing},
[all …]
Dupdater_provider.h29 enum class Stage { enum
81 virtual Variable<Stage>* var_stage() = 0;
Dreal_updater_provider_unittest.cc199 UmTestUtils::ExpectVariableHasValue(Stage::kIdle, provider_->var_stage()); in TEST_F()
207 UmTestUtils::ExpectVariableHasValue(Stage::kCheckingForUpdate, in TEST_F()
216 UmTestUtils::ExpectVariableHasValue(Stage::kUpdateAvailable, in TEST_F()
225 UmTestUtils::ExpectVariableHasValue(Stage::kDownloading, in TEST_F()
234 UmTestUtils::ExpectVariableHasValue(Stage::kVerifying, in TEST_F()
243 UmTestUtils::ExpectVariableHasValue(Stage::kFinalizing, in TEST_F()
252 UmTestUtils::ExpectVariableHasValue(Stage::kUpdatedNeedReboot, in TEST_F()
261 UmTestUtils::ExpectVariableHasValue(Stage::kReportingErrorEvent, in TEST_F()
270 UmTestUtils::ExpectVariableHasValue(Stage::kAttemptingRollback, in TEST_F()
Dfake_updater_provider.h46 FakeVariable<Stage>* var_stage() override { return &var_stage_; } in var_stage()
94 FakeVariable<Stage> var_stage_{"stage", kVariableModePoll};
Dreal_updater_provider.h57 Variable<Stage>* var_stage() override { return var_stage_.get(); } in var_stage()
106 std::unique_ptr<Variable<Stage>> var_stage_;