Home | History | Annotate | Download | only in general_test

Lines Matching defs:Stage

38  * See initStages() for the description of each stage.  Since these all
39 * happen in parallel, we leave it to each stage to mark itself has having
55 TimerSetTest::Stage::Stage(uint32_t stage, uint64_t duration,
57 : mSetTime(0), mDuration(duration), mStage(stage), mEventCount(0),
60 void TimerSetTest::Stage::start() {
71 void TimerSetTest::Stage::processEvent(uint64_t timestamp, TimerSetTest *test) {
107 mStages = static_cast<Stage*>(chreHeapAlloc(sizeof(*mStages) *
115 // Stage 0: Test NULL cookie
116 new(&mStages[0]) Stage(0, kShortDuration, nullptr, true);
117 // Stage 1: Test (void*)-1 cookie
118 new(&mStages[1]) Stage(1, kShortDuration, COOKIE(-1), true);
119 // Stage 2: Test one shot with short duration
120 new(&mStages[2]) Stage(2, kShortDuration, COOKIE(2), true);
121 // Stage 3: Test one shot with long duration
122 new(&mStages[3]) Stage(3, kLongDuration, COOKIE(3), true);
123 // Stage 4: Test recurring with long duration
124 new(&mStages[4]) Stage(4, kLongDuration, COOKIE(4), false);
125 // Stage 5: Test recurring with short duration
126 new(&mStages[5]) Stage(5, kShortDuration, COOKIE(5), false);
172 Stage *stage = getStageFromCookie(eventData);
173 if (stage == nullptr) {
176 stage->processEvent(timestamp, this);
181 void TimerSetTest::markSuccess(uint32_t stage) {
182 chreLog(CHRE_LOG_DEBUG, "Stage %" PRIu32 " succeeded", stage);
183 uint32_t finishedBit = (1 << stage);
185 sendFatalFailureToHost("markSuccess bad stage", &stage);
193 TimerSetTest::Stage *TimerSetTest::getStageFromCookie(const void *cookie) {
194 Stage *ret = nullptr;