Commit graph

3 commits

Author SHA1 Message Date
Chris Paulo
ad95139b97 [DO NOT MERGE] lynx/vibrator: Fix Capodetector on AoC restart
Update pointers used in protobuf interface for configuring the detector.
When AoC has an SSR, it causes CapoDetector to go down by null pointer
dereference.

Bug: 261349596
Test: Verified 10x forced AoC SSR - adb shell 'echo mem dump 0 > /dev/acd-debug'
Change-Id: I48d94b721fc3ba689a48e415d04fa4152f4f8865
Signed-off-by: Chris Paulo <chrispaulo@google.com>
2022-12-29 02:23:42 +00:00
Chris Paulo
0db068b63c device/vibrator: Add contextual haptics feature
Add capability for vibrator HAL to detect whether the device is face-up
and adjust/scale haptic alerts to avoid loud and startling buzzing when
there is no case on the device. Added global compile-time disable that
can be set in the environment.

Bug: 198239103
Test: Verified tests and functionality
Change-Id: I6b2355acb7fa5e0323b8eca6327bb19ac42a2c56
Signed-off-by: Chris Paulo <chrispaulo@google.com>
2022-11-16 20:19:54 +00:00
Chris Paulo
24789fe332 device/vibrator: Move vibrator HAL into device folder for l26
Moved L26 portion of vibrator hal from hardware/google/pixel to
device/google.

Bug: 198239103
Test: None
Change-Id: I4dc77f5770929337905878c7ee6acbbfa489bc57
Signed-off-by: Chris Paulo <chrispaulo@google.com>
2022-11-16 20:19:54 +00:00