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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user