Home
last modified time | relevance | path

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

/system/chre/apps/test/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
64 void TimerSetTest::Stage::start() { in start()
75 void TimerSetTest::Stage::processEvent(uint64_t timestamp, TimerSetTest *test) { in processEvent()
110 mStages = static_cast<Stage *>(chreHeapAlloc(sizeof(*mStages) * kStageCount)); in initStages()
118 new (&mStages[0]) Stage(0, kShortDuration, nullptr, true); in initStages()
120 new (&mStages[1]) Stage(1, kShortDuration, COOKIE(-1), true); in initStages()
122 new (&mStages[2]) Stage(2, kShortDuration, COOKIE(2), true); in initStages()
124 new (&mStages[3]) Stage(3, kLongDuration, COOKIE(3), true); in initStages()
126 new (&mStages[4]) Stage(4, kLongDuration, COOKIE(4), false); in initStages()
128 new (&mStages[5]) Stage(5, kShortDuration, COOKIE(5), false); in initStages()
[all …]
Dtimer_cancel_test.cc47 Stage *stage = &mStages[i]; in startStages()
76 Stage(0, false, false), in TimerCancelTest()
77 Stage(1, true, false), in TimerCancelTest()
78 Stage(2, false, true ), in TimerCancelTest()
79 Stage(3, true, true )}, in TimerCancelTest()
104 void TimerCancelTest::handleStageEvent(Stage *stage) { in handleStageEvent()
144 const Stage *stage = static_cast<const Stage *>(eventData); in handleEvent()
148 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
57 Stage mStages[kStageCount];
63 void handleStageEvent(Stage *stage);
Dtimer_set_test.h42 class Stage {
44 Stage(uint32_t stage, uint64_t duration, const void *cookie, bool oneShot);
65 Stage *mStages;
73 Stage *getStageFromCookie(const void *cookie);
/system/update_engine/update_manager/
Dboxed_value_unittest.cc227 EXPECT_EQ("Idle", BoxedValue(new Stage(Stage::kIdle)).ToString()); in TEST()
229 BoxedValue(new Stage(Stage::kCheckingForUpdate)).ToString()); in TEST()
231 BoxedValue(new Stage(Stage::kUpdateAvailable)).ToString()); in TEST()
233 BoxedValue(new Stage(Stage::kDownloading)).ToString()); in TEST()
234 EXPECT_EQ("Verifying", BoxedValue(new Stage(Stage::kVerifying)).ToString()); in TEST()
235 EXPECT_EQ("Finalizing", BoxedValue(new Stage(Stage::kFinalizing)).ToString()); in TEST()
237 BoxedValue(new Stage(Stage::kUpdatedNeedReboot)).ToString()); in TEST()
239 BoxedValue(new Stage(Stage::kReportingErrorEvent)).ToString()); in TEST()
241 BoxedValue(new Stage(Stage::kAttemptingRollback)).ToString()); in TEST()
Dboxed_value.cc160 string BoxedValue::ValuePrinter<Stage>(const void* value) { in ValuePrinter()
161 const Stage* val = reinterpret_cast<const Stage*>(value); in ValuePrinter()
163 case Stage::kIdle: in ValuePrinter()
165 case Stage::kCheckingForUpdate: in ValuePrinter()
167 case Stage::kUpdateAvailable: in ValuePrinter()
169 case Stage::kDownloading: in ValuePrinter()
171 case Stage::kVerifying: in ValuePrinter()
173 case Stage::kFinalizing: in ValuePrinter()
175 case Stage::kUpdatedNeedReboot: in ValuePrinter()
177 case Stage::kReportingErrorEvent: in ValuePrinter()
[all …]
Dreal_updater_provider.cc134 class StageVariable : public UpdaterVariableBase<Stage> {
137 : UpdaterVariableBase<Stage>(name, kVariableModePoll) {} in StageVariable()
142 Stage stage;
147 const Stage* GetValue(TimeDelta /* timeout */, string* errmsg) override;
153 {update_engine::kUpdateStatusIdle, Stage::kIdle},
154 {update_engine::kUpdateStatusCheckingForUpdate, Stage::kCheckingForUpdate},
155 {update_engine::kUpdateStatusUpdateAvailable, Stage::kUpdateAvailable},
156 {update_engine::kUpdateStatusDownloading, Stage::kDownloading},
157 {update_engine::kUpdateStatusVerifying, Stage::kVerifying},
158 {update_engine::kUpdateStatusFinalizing, Stage::kFinalizing},
[all …]
Dupdater_provider.h29 enum class Stage { enum
82 virtual Variable<Stage>* var_stage() = 0;
Dreal_updater_provider_unittest.cc194 UmTestUtils::ExpectVariableHasValue(Stage::kIdle, provider_->var_stage()); in TEST_F()
202 UmTestUtils::ExpectVariableHasValue(Stage::kCheckingForUpdate, in TEST_F()
211 UmTestUtils::ExpectVariableHasValue(Stage::kUpdateAvailable, in TEST_F()
220 UmTestUtils::ExpectVariableHasValue(Stage::kDownloading, in TEST_F()
229 UmTestUtils::ExpectVariableHasValue(Stage::kVerifying, in TEST_F()
238 UmTestUtils::ExpectVariableHasValue(Stage::kFinalizing, in TEST_F()
247 UmTestUtils::ExpectVariableHasValue(Stage::kUpdatedNeedReboot, in TEST_F()
256 UmTestUtils::ExpectVariableHasValue(Stage::kReportingErrorEvent, in TEST_F()
265 UmTestUtils::ExpectVariableHasValue(Stage::kAttemptingRollback, in TEST_F()
Dfake_updater_provider.h46 FakeVariable<Stage>* var_stage() override { return &var_stage_; } in var_stage()
98 FakeVariable<Stage> var_stage_{"stage", kVariableModePoll};
Dreal_updater_provider.h55 Variable<Stage>* var_stage() override { return var_stage_.get(); } in var_stage()
105 std::unique_ptr<Variable<Stage>> var_stage_;
/system/bt/
DREADME.md71 ### Stage your build environment