Methods Summary |
---|
public abstract android.view.DisplayInfo | getDisplayInfo(int displayId)Returns information about the specified logical display.
|
public abstract void | initPowerManagement(android.hardware.display.DisplayManagerInternal$DisplayPowerCallbacks callbacks, android.os.Handler handler, android.hardware.SensorManager sensorManager)Called by the power manager to initialize power management facilities.
|
public abstract boolean | isProximitySensorAvailable()Returns true if the proximity sensor screen-off function is available.
|
public abstract void | performTraversalInTransactionFromWindowManager()Called by the window manager to perform traversals while holding a
surface flinger transaction.
|
public abstract void | registerDisplayTransactionListener(android.hardware.display.DisplayManagerInternal$DisplayTransactionListener listener)Registers a display transaction listener to provide the client a chance to
update its surfaces within the same transaction as any display layout updates.
|
public abstract boolean | requestPowerState(android.hardware.display.DisplayManagerInternal$DisplayPowerRequest request, boolean waitForNegativeProximity)Called by the power manager to request a new power state.
The display power controller makes a copy of the provided object and then
begins adjusting the power state to match what was requested.
|
public abstract void | setDisplayInfoOverrideFromWindowManager(int displayId, android.view.DisplayInfo info)Overrides the display information of a particular logical display.
This is used by the window manager to control the size and characteristics
of the default display. It is expected to apply the requested change
to the display information synchronously so that applications will immediately
observe the new state.
NOTE: This method must be the only entry point by which the window manager
influences the logical configuration of displays.
|
public abstract void | setDisplayProperties(int displayId, boolean hasContent, float requestedRefreshRate, boolean inTraversal)Tells the display manager about properties of the display that depend on the windows on it.
This includes whether there is interesting unique content on the specified logical display,
and whether the one of the windows has a preferred refresh rate.
If the display has unique content, then the display manager arranges for it
to be presented on a physical display if appropriate. Otherwise, the display manager
may choose to make the physical display mirror some other logical display.
If one of the windows on the display has a preferred refresh rate that's supported by the
display, then the display manager will request its use.
|
public abstract void | unregisterDisplayTransactionListener(android.hardware.display.DisplayManagerInternal$DisplayTransactionListener listener)Unregisters a display transaction listener to provide the client a chance to
update its surfaces within the same transaction as any display layout updates.
|