summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Nick Chameyev <nickchameyev@google.com> 2023-11-13 12:28:19 +0000
committer Nick Chameyev <nickchameyev@google.com> 2024-01-12 14:06:31 +0000
commitceed6f0b281029fc07f63fd3c230a9603abf421d (patch)
treea83b2e11919d5eab5119d6972ebaf5025388fde0 /libs/input/SpriteController.cpp
parent323b6a27b3207209c5675149c82eb15c57b53e75 (diff)
Add foldables posture based closed device state
Updates FoldableDeviceStateProvider to prefer using hall sensor instead of hinge angle sensor when possible. Hall sensor usually has much lower latency of detecting unfolding compared to hinge angle sensor, so it could reduce total unfold latency by ~100ms. This is done by estimating the position of the device (e.g. if it is likely in tent/wedge mode then use hinge angle sensor to switch at 90 degrees and switch immediately using hall sensor otherwise). Bug: 309792734 Test: manual testing Test: atest TentModeDeviceStatePolicyTest Flag: ACONFIG enable_foldables_posture_based_closed_state DISABLED Change-Id: Ic823326f2d81af6ab1b1891bebc06537215ffce4
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions