Go to sleep on fold for foldable devices.

Allow configuration of foldable states to indicate the device
should sleep when entering certain states.

Test: Check that device still wakes up on unfold, and sleeps on fold.
Bug: 180154690
Change-Id: I179d93ec506deee7e9da7d9190934c52a0bc188f
This commit is contained in:
Santos Cordon
2021-10-14 21:42:41 +01:00
parent e43cf93ec4
commit 4f7ca41f6f
8 changed files with 143 additions and 33 deletions

View File

@@ -371,6 +371,13 @@ public abstract class DisplayManagerInternal {
*/
public abstract Point getDisplaySurfaceDefaultSize(int displayId);
/**
* Receives early interactivity changes from power manager.
*
* @param interactive The interactive state that the device is moving into.
*/
public abstract void onEarlyInteractivityChange(boolean interactive);
/**
* Describes the requested power state of the display.
*