From a464fb4db6669a171496c3202fc32a5c6e006fd9 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Thu, 12 May 2022 10:25:58 +0800 Subject: [PATCH] vibrator: turn off vibrator after testing ChangeVibrationAmplitude Turn off vibrator explicitly after testing ChangeVibrationAmplitude. Bug: 232319176 Test: VtsHalVibratorTargetTest Change-Id: I482ea8266378636340c614eda832f4237d22e005 --- vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp b/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp index 5251529760..f8f3cbdc40 100644 --- a/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp +++ b/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp @@ -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()); } }