Lines Matching refs:mVibrator

64         if (mVibrator) {  in TearDown()
65 mVibrator->off(); in TearDown()
78 sp<I> mVibrator; member in BaseBench
86 this->mVibrator = I::getService(); in SetUp()
141 (*this->mVibrator.*performApi)(effect, strength, [&](Status status, uint32_t /*lengthMs*/) { in performBench()
154 auto ret = (*this->mVibrator.*performApi)( in performBench()
163 if (this->shouldSkipWithError(*state, this->mVibrator->off())) { in performBench()
184 if (!mVibrator) { \
200 if (shouldSkipWithError(state, mVibrator->on(ms))) {
206 if (shouldSkipWithError(state, mVibrator->off())) {
219 if (shouldSkipWithError(state, mVibrator->on(ms))) {
225 if (shouldSkipWithError(state, mVibrator->off())) {
233 mVibrator->supportsAmplitudeControl();
241 if (!mVibrator->supportsAmplitudeControl()) {
246 if (shouldSkipWithError(state, mVibrator->on(ms))) {
251 if (shouldSkipWithError(state, mVibrator->setAmplitude(amplitude))) {
278 if (mVibrator) { in TearDown()
279 mVibrator->setExternalControl(false); in TearDown()
286 mVibrator->supportsExternalControl();
291 if (!mVibrator->supportsExternalControl()) {
298 if (shouldSkipWithError(state, mVibrator->setExternalControl(true))) {
304 if (shouldSkipWithError(state, mVibrator->setExternalControl(false))) {
312 if (!mVibrator->supportsExternalControl()) {
317 if (shouldSkipWithError(state, mVibrator->setExternalControl(true))) {
322 mVibrator->supportsAmplitudeControl();
329 if (!mVibrator->supportsExternalControl()) {
334 if (shouldSkipWithError(state, mVibrator->setExternalControl(true))) {
338 if (!mVibrator->supportsAmplitudeControl()) {
344 if (shouldSkipWithError(state, mVibrator->setAmplitude(amplitude))) {
359 this->mVibrator = android::waitForVintfService<Aidl::IVibrator>(); in SetUp()
364 if (mVibrator) { in TearDown()
365 mVibrator->setExternalControl(false); in TearDown()
372 this->mVibrator->getCapabilities(&deviceCapabilities); in hasCapabilities()
424 if (shouldSkipWithError(state, mVibrator->on(ms, cb))) {
430 if (shouldSkipWithError(state, mVibrator->off())) {
448 if (shouldSkipWithError(state, mVibrator->on(ms, cb))) {
454 if (shouldSkipWithError(state, mVibrator->off())) {
471 if (shouldSkipWithError(state, mVibrator->getCapabilities(&capabilities))) {
487 if (shouldSkipWithError(state, mVibrator->on(ms, cb))) {
492 if (shouldSkipWithError(state, mVibrator->setAmplitude(amplitude))) {
506 if (shouldSkipWithError(state, mVibrator->setExternalControl(true))) {
512 if (shouldSkipWithError(state, mVibrator->setExternalControl(false))) {
528 if (shouldSkipWithError(state, mVibrator->setExternalControl(true))) {
534 if (shouldSkipWithError(state, mVibrator->setAmplitude(amplitude))) {
544 if (shouldSkipWithError(state, mVibrator->getSupportedEffects(&supportedEffects))) {
559 if (shouldSkipWithError(state, mVibrator->getSupportedAlwaysOnEffects(&supportedEffects))) {
569 if (shouldSkipWithError(state, mVibrator->getSupportedPrimitives(&supportedPrimitives))) {
597 mVibrator->getSupportedEffects(&supported); in isEffectSupported()
603 mVibrator->getSupportedAlwaysOnEffects(&supported); in isAlwaysOnEffectSupported()
633 if (shouldSkipWithError(state, mVibrator->alwaysOnEnable(id, effect, strength))) {
639 if (shouldSkipWithError(state, mVibrator->alwaysOnDisable(id))) {
664 if (shouldSkipWithError(state, mVibrator->alwaysOnEnable(id, effect, strength))) {
670 if (shouldSkipWithError(state, mVibrator->alwaysOnDisable(id))) {
692 if (shouldSkipWithError(state, mVibrator->perform(effect, strength, cb, &lengthMs))) {
698 if (shouldSkipWithError(state, mVibrator->off())) {
724 mVibrator->getSupportedPrimitives(&supported); in isPrimitiveSupported()
741 if (shouldSkipWithError(state, mVibrator->getCompositionDelayMax(&ms))) {
751 if (shouldSkipWithError(state, mVibrator->getCompositionSizeMax(&size))) {
772 if (shouldSkipWithError(state, mVibrator->getPrimitiveDuration(primitive, &ms))) {
805 if (shouldSkipWithError(state, mVibrator->compose(effects, cb))) {
811 if (shouldSkipWithError(state, mVibrator->off())) {