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
Loading
Please register or sign in to comment