Commit graph

2 commits

Author SHA1 Message Date
Chris Paulo
8f4e8161ee [DO NOT MERGE] bluejay/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
Change-Id: Ifd7fcbbff4639f552c6708b5b171f0b3c9164c03
Signed-off-by: Chris Paulo <chrispaulo@google.com>
2022-12-15 21:33:17 +00:00
Chris Paulo
59662424ec [DO NOT MERGE] 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

Bug: 198239103
Test: Verified tests and functionality
Change-Id: I93875c3c1e6128d275cb8007f8e8870a7842938a
Signed-off-by: Chris Paulo <chrispaulo@google.com>
2022-11-17 01:29:52 +00:00