/hardware/interfaces/vibrator/bench/ |
D | benchmark.cpp | 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())) { [all …]
|
/hardware/google/pixel/vibrator/cs40l25/bench/ |
D | benchmark.cpp | 79 mVibrator = ndk::SharedRefBase::make<Vibrator>( in SetUp() 96 std::shared_ptr<IVibrator> mVibrator; member in aidl::android::hardware::vibrator::VibratorBench 108 mVibrator->on(duration, nullptr); 114 mVibrator->off(); 122 mVibrator->setAmplitude(amplitude); 128 mVibrator->setExternalControl(true); 134 mVibrator->setExternalControl(false); 142 mVibrator->getCapabilities(&capabilities); 151 ndk::ScopedAStatus status = mVibrator->perform(effect, strength, nullptr, &lengthMs); 158 mVibrator->perform(effect, strength, nullptr, &lengthMs);
|
/hardware/google/pixel/vibrator/drv2624/bench/ |
D | benchmark.cpp | 69 mVibrator = ndk::SharedRefBase::make<Vibrator>(HwApi::Create(), std::make_unique<HwCal>()); in SetUp() 93 std::shared_ptr<IVibrator> mVibrator; member in aidl::android::hardware::vibrator::VibratorBench 107 mVibrator->on(duration, nullptr); 113 mVibrator->off(); 121 mVibrator->setAmplitude(amplitude); 127 mVibrator->setExternalControl(true); 133 mVibrator->setExternalControl(false); 141 mVibrator->getCapabilities(&capabilities); 173 ndk::ScopedAStatus status = mVibrator->perform(effect, strength, nullptr, &lengthMs); 180 mVibrator->perform(effect, strength, nullptr, &lengthMs);
|
/hardware/google/pixel/vibrator/drv2624/tests/ |
D | test-vibrator.cpp | 183 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator() 193 mVibrator.reset(); in deleteVibrator() 238 std::shared_ptr<IVibrator> mVibrator; member in aidl::android::hardware::vibrator::VibratorTestTemplate 311 EXPECT_EQ(EX_NONE, mVibrator->on(duration, nullptr).getExceptionCode()); in TEST_P() 321 EXPECT_EQ(EX_NONE, mVibrator->on(duration, nullptr).getExceptionCode()); in TEST_P() 331 EXPECT_EQ(EX_NONE, mVibrator->on(duration, nullptr).getExceptionCode()); in TEST_P() 337 EXPECT_EQ(EX_NONE, mVibrator->off().getExceptionCode()); in TEST_P() 344 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_P() 352 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_P() 361 EXPECT_EQ(EX_NONE, mVibrator->setAmplitude(amplitude).getExceptionCode()); in TEST_P() [all …]
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-vibrator.cpp | 206 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal), in createVibrator() 217 mVibrator.reset(); in deleteVibrator() 283 std::shared_ptr<IVibrator> mVibrator; member in aidl::android::hardware::vibrator::VibratorTest 358 EXPECT_TRUE(mVibrator->on(duration, nullptr).isOk()); in TEST_F() 365 EXPECT_TRUE(mVibrator->off().isOk()); in TEST_F() 373 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() 382 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() 391 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() 400 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() 413 EXPECT_TRUE(mVibrator->setAmplitude(amplitude).isOk()); in TEST_F() [all …]
|
/hardware/google/pixel/vibrator/cs40l26/tests/ |
D | test-vibrator.cpp | 265 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal), in createVibrator() 276 mVibrator.reset(); in deleteVibrator() 335 std::shared_ptr<IVibrator> mVibrator; member in aidl::android::hardware::vibrator::VibratorTest 424 EXPECT_TRUE(mVibrator->on(duration, nullptr).isOk()); in TEST_F() 430 EXPECT_TRUE(mVibrator->off().isOk()); in TEST_F() 438 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() 447 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() 456 EXPECT_TRUE(mVibrator->setAmplitude(amplitude).isOk()); in TEST_F() 464 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() 473 EXPECT_TRUE(mVibrator->getCapabilities(&capabilities).isOk()); in TEST_F() [all …]
|