Home
last modified time | relevance | path

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

/system/chre/apps/test/chqts/src/general_test/
Dtimer_set_test.cc59 TimerSetTest::Stage::Stage(uint32_t stage, uint64_t duration, in Stage() function in general_test::TimerSetTest::Stage
68 void TimerSetTest::Stage::start() { in start()
79 void TimerSetTest::Stage::processEvent(uint64_t timestamp, TimerSetTest *test) { in processEvent()
114 mStages = static_cast<Stage *>(chreHeapAlloc(sizeof(*mStages) * kStageCount)); in initStages()
122 new (&mStages[0]) Stage(0, kShortDuration, nullptr, true); in initStages()
124 new (&mStages[1]) Stage(1, kShortDuration, COOKIE(-1), true); in initStages()
126 new (&mStages[2]) Stage(2, kShortDuration, COOKIE(2), true); in initStages()
128 new (&mStages[3]) Stage(3, kLongDuration, COOKIE(3), true); in initStages()
130 new (&mStages[4]) Stage(4, kLongDuration, COOKIE(4), false); in initStages()
132 new (&mStages[5]) Stage(5, kShortDuration, COOKIE(5), false); in initStages()
[all …]
Dtimer_cancel_test.cc51 Stage *stage = &mStages[i]; in startStages()
80 Stage(0, false, false), in TimerCancelTest()
81 Stage(1, true, false), in TimerCancelTest()
82 Stage(2, false, true ), in TimerCancelTest()
83 Stage(3, true, true )}, in TimerCancelTest()
108 void TimerCancelTest::handleStageEvent(Stage *stage) { in handleStageEvent()
148 const Stage *stage = static_cast<const Stage *>(eventData); in handleEvent()
152 handleStageEvent(const_cast<Stage *>(stage)); in handleEvent()
Dtimer_cancel_test.h41 struct Stage { struct
48 Stage(uint32_t stage_, bool oneShot_, bool expectCallback_) in Stage() argument
58 Stage mStages[kStageCount];
64 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);