Commit Graph

5 Commits

Author SHA1 Message Date
Michael Wright
3e8e659997 Upgrade vibrator to HAL 1.2
Bug: 64184692
Test: build, flash and play with device
Change-Id: I44d82371e6a6d7dc7e05e740aa5f2fdb5c3f8df6
2018-02-22 12:25:36 -08:00
Chih-Hung Hsieh
7d0bdbefcd Use -Werror in device/google/wahoo
* Remove unused variables.
* Return result of registerAsService().

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I79d1add6190e835de20a0b0c247bbbb259096c14
2017-11-02 15:26:20 -07:00
David Lin
e2ac78d27f haptics: implements vibrator 1.1 HAL
Obtain tick/click effect duration from system property and implement the
new perform 1.1 function for supporting tick effect.

Bug: 62176703
Test: VtsHalVibratorV1_1TargetTest
Change-Id: Icbd50c2e7d05fd520aeda4511ba95151dde2a5ed
Signed-off-by: David Lin <dtwlin@google.com>
2017-06-05 16:21:17 -07:00
David Lin
89b4aa84af haptics: update effect waveform
EFFECT_CLICK
- Walleye: On resonance (f1=155 Hz), square wave full amplitude
  (A1=127), auto-brake, duration T1=6ms.
- Taimen: On resonance (f1=155 Hz), square wave full amplitude
  (A1=127), auto-brake, duration T1=10 ms.

EFFECT_DOUBLE_CLICK
- Two actuations T1=25 ms, A1=63, T3=100ms, T2=10 ms, A2=127

LONG_PRESS
- Walleye: 8ms duration with full amplitude
- Taimen: 12ms duration with full amplitude

Bug: 62176703
Test: VTS 1.0
Change-Id: Idf728ad793b3dd64f52d1ea95e8ea2cf3085a72a
Signed-off-by: David Lin <dtwlin@google.com>
2017-06-01 13:32:11 -07:00
David Lin
971ea5d074 vibrator hal: add support for drv2624 haptics driver on wahoo
This adds the vibrator HAL that implements the new setAmplitude and
perform(Effect) API.

Test done: vibrator_hidl_hal_test
Bug: 36782452

Change-Id: If9988434277790becb469d4dd928e75f7e6af41a
Signed-off-by: David Lin <dtwlin@google.com>
2017-04-05 12:44:20 -07:00