bd819cdf0f09bf56e639fc6cb1e7fca0928cd32f
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
Languages
Java
56.1%
Kotlin
43%
AIDL
0.3%
JavaScript
0.2%
CSS
0.2%