From 7790b73220e18e501b6e51b092ec60e5b7090a17 Mon Sep 17 00:00:00 2001 From: Sean Stout Date: Sun, 15 Nov 2020 23:27:07 -0800 Subject: Implement Phase 5 of Separate Power States DisplayPowerRequestManager listens for the addition, removal, and change of Displays and will appropriately create DisplayPowerRequests to manage their power states. At this stage the DisplayPowerRequests are simply created; only the DisplayPowerRequest associated with the default display is interacted with. Test: manual Bug: 138328918 Change-Id: I03f0c95aa23fc711d8d66150f315eed52bc57b2c --- core/java/android/hardware/display/DisplayManagerInternal.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/java/android') diff --git a/core/java/android/hardware/display/DisplayManagerInternal.java b/core/java/android/hardware/display/DisplayManagerInternal.java index defcab7c3035..5a03adee4eab 100644 --- a/core/java/android/hardware/display/DisplayManagerInternal.java +++ b/core/java/android/hardware/display/DisplayManagerInternal.java @@ -64,6 +64,12 @@ public abstract class DisplayManagerInternal { */ public abstract boolean isProximitySensorAvailable(); + /** + * Returns the id of the {@link com.android.server.display.DisplayGroup} to which the provided + * display belongs. + */ + public abstract int getDisplayGroupId(int displayId); + /** * Screenshot for internal system-only use such as rotation, etc. This method includes * secure layers and the result should never be exposed to non-system applications. -- cgit v1.2.3