From 3b07c2843222b99d49831e22d5487d44fc2556d2 Mon Sep 17 00:00:00 2001 From: "Harpreet \\\"Eli\\\" Sangha" Date: Thu, 5 Dec 2019 14:03:12 +0900 Subject: [PATCH] VibratorService: Fix Typo in AIDL Perform Effect Test: Trigger Haptics at Varying Intensity Settigns Change-Id: Ia731c69025cf2092681ff7e250839148aabca9c6 Signed-off-by: Harpreet \"Eli\" Sangha --- services/core/jni/com_android_server_VibratorService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/jni/com_android_server_VibratorService.cpp b/services/core/jni/com_android_server_VibratorService.cpp index 612a1e7074f97..dcff5a11aca05 100644 --- a/services/core/jni/com_android_server_VibratorService.cpp +++ b/services/core/jni/com_android_server_VibratorService.cpp @@ -338,7 +338,7 @@ static jlong vibratorPerformEffect(JNIEnv* env, jclass, jlong effect, jlong stre if (auto hal = getHal()) { int32_t lengthMs; sp effectCallback = new AidlVibratorCallback(env, vibration); - aidl::Effect effectType(static_cast(strength)); + aidl::Effect effectType(static_cast(effect)); aidl::EffectStrength effectStrength(static_cast(strength)); auto status = hal->call(&aidl::IVibrator::perform, effectType, effectStrength, effectCallback, &lengthMs);