aidl: vibrator: improve amplitude values
authorTim Zimmermann <tim@linux4.de>
Tue, 23 Nov 2021 20:50:14 +0000 (21:50 +0100)
committerTim Zimmermann <tim@linux4.de>
Thu, 13 Jan 2022 19:05:41 +0000 (20:05 +0100)
Change-Id: Ic1c08841e00a927c138663880f4e6361e59453bd

aidl/vibrator/Vibrator.cpp

index df2ed90746a52292ba01f7a4f148b0cb625ca320..f21eee3119e6570d2ae925519d2a64a6fb1bde5e 100644 (file)
@@ -242,11 +242,11 @@ uint8_t Vibrator::strengthToAmplitude(EffectStrength strength, ndk::ScopedAStatu
 
     switch (strength) {
         case EffectStrength::LIGHT:
-            return 78;
+            return 64;
         case EffectStrength::MEDIUM:
             return 128;
         case EffectStrength::STRONG:
-            return 204;
+            return 255;
     }
 
     *status = ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION);