projects
/
GitHub
/
LineageOS
/
android_hardware_samsung.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc99f5
)
aidl: vibrator: improve amplitude values
author
Tim Zimmermann
<tim@linux4.de>
Tue, 23 Nov 2021 20:50:14 +0000
(21:50 +0100)
committer
Tim Zimmermann
<tim@linux4.de>
Thu, 13 Jan 2022 19:05:41 +0000
(20:05 +0100)
Change-Id: Ic1c08841e00a927c138663880f4e6361e59453bd
aidl/vibrator/Vibrator.cpp
patch
|
blob
|
blame
|
history
diff --git
a/aidl/vibrator/Vibrator.cpp
b/aidl/vibrator/Vibrator.cpp
index df2ed90746a52292ba01f7a4f148b0cb625ca320..f21eee3119e6570d2ae925519d2a64a6fb1bde5e 100644
(file)
--- a/
aidl/vibrator/Vibrator.cpp
+++ b/
aidl/vibrator/Vibrator.cpp
@@
-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 2
04
;
+ return 2
55
;
}
*status = ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION);