aidl: vibrator: improve amplitude values

Change-Id: Ic1c08841e00a927c138663880f4e6361e59453bd
tirimbino
Tim Zimmermann 3 years ago
parent 1bc99f564c
commit 7bd22b0eb6
No known key found for this signature in database
GPG Key ID: 6DC21A63F819C5EF
  1. 4
      aidl/vibrator/Vibrator.cpp

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

Loading…
Cancel
Save