Lines Matching refs:state
58 auto getOtherArg(const State &state, std::size_t index) const { in getOtherArg() argument
59 return state.range(index + 0); in getOtherArg()
102 void performBench(State *state, Return<void> (I::*performApi)(Effect, EffectStrength, in performBench() argument
104 auto effect = getEffect(*state); in performBench()
105 auto strength = getStrength(*state); in performBench()
118 for (auto _ : *state) { in performBench()
119 state->ResumeTiming(); in performBench()
122 state->PauseTiming(); in performBench()
128 auto getEffect(const State &state) const { in getEffect()
129 return static_cast<Effect>(this->getOtherArg(state, 0)); in getEffect()
132 auto getStrength(const State &state) const { in getStrength()
133 return static_cast<EffectStrength>(this->getOtherArg(state, 1)); in getStrength()
140 (State & state) { \
154 for (auto _ : state) {
155 state.ResumeTiming();
157 state.PauseTiming();
165 for (auto _ : state) {
166 state.PauseTiming();
168 state.ResumeTiming();
174 for (auto _ : state) {
188 for (auto _ : state) {
198 { performBench(&state, &V1_0::IVibrator::perform); });
204 { performBench(&state, &V1_1::IVibrator::perform_1_1); });
210 { performBench(&state, &V1_2::IVibrator::perform_1_2); });
215 for (auto _ : state) {
227 for (auto _ : state) {
228 state.ResumeTiming();
230 state.PauseTiming();
242 for (auto _ : state) {
262 for (auto _ : state) {
272 { performBench(&state, &V1_3::IVibrator::perform_1_3); });