Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ceed6f0b authored by Nick Chameyev's avatar Nick Chameyev
Browse files

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
parent 323b6a27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment