Merge "vibrator: turn off vibrator after testing ChangeVibrationAmplitude" am: 05eb1a279b

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2104024

Change-Id: I016a1e46736fc84a024b379e369cdee044e0b57f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2022-06-08 14:27:16 +00:00 committed by Automerger Merge Worker
commit fa0ac0f30c

View file

@ -332,6 +332,7 @@ TEST_P(VibratorAidl, ChangeVibrationAmplitude) {
sleep(1);
EXPECT_EQ(Status::EX_NONE, vibrator->setAmplitude(1.0f).exceptionCode());
sleep(1);
EXPECT_TRUE(vibrator->off().isOk());
}
}