commit | 77270b880570e07a5d80b23371f53638ec30fb5c | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Tue Dec 18 15:41:29 2018 -0800 |
committer | Eric Laurent <elaurent@google.com> | Wed Jan 30 15:18:23 2019 -0800 |
tree | 4cdb67f28ef7bb47dad1ac19cadb48febf2be8a7 | |
parent | 4b7f683cf9fbaa2b427f03bd067ee2588906ac44 [diff] |
Apply intensity control for haptic data. Use the same logic in VibrationEffect.scale to control the intensity of haptic playback in audio framework. Note that as the maximum amplitude of vibrator is 255, convert the haptic data to pcm_8_bit before doing scaling. Test: Manually Change-Id: I6136d27c9255a215834b6e3092aa8ad696fbae04