Nicolo' Mazzucato bd819cdf0f Disable hinge sensor while the screen is off
This allows to save some power while the device is unfolded but with screen off.

+ Avoiding registering more listeners if HingeSensorAngleProvider.start() is called multiple times sequentially without a `stop` in the middle. It seems that otherwise we would get duplicated callbacks.

+ Adding onScreenTurningOn and onScreenTurningOff callbacks to forward to Launcher (as only sysui is receiving them)

Bug: 240661156
Bug: 240374404
Test: DeviceFoldStateProviderTest && LauncherFoldAnimationTest (e2e)
Change-Id: I769643321c4819c145aac1b0a32a80d5738951c2
2022-08-05 09:19:59 +00:00
2022-03-18 14:20:48 -07:00
2019-11-25 20:24:07 +09:00
2021-09-21 15:25:22 -07:00
2020-01-17 11:24:43 -08:00
S
Description
No description provided
658 MiB
Languages
Java 57.2%
Kotlin 42.4%
AIDL 0.3%