diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-08-26 02:47:39 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-08-27 14:34:54 -0700 |
commit | 64a55af0ac700baecb0877235eb42caac59a3560 (patch) | |
tree | 0f3c36ce8204e6cf8eedf04ce9ae24373239ddd8 /services/java/com/android/server/display/DisplayDevice.java | |
parent | 0b722fe9ce98d97dbcb6fefd170b85ab7037e528 (diff) | |
download | frameworks_base-64a55af0ac700baecb0877235eb42caac59a3560.zip frameworks_base-64a55af0ac700baecb0877235eb42caac59a3560.tar.gz frameworks_base-64a55af0ac700baecb0877235eb42caac59a3560.tar.bz2 |
Add plumbing for new surface flinger display API.
Cleaned up the implementation of Surface and SurfaceSession
to use more consistent naming and structure.
Added JNI for all of the new surface flinger display API calls.
Enforced the requirement that all Surfaces created by
the window manager be named.
Updated the display manager service to use the new methods.
Change-Id: I2a658f1bfd0437e1c6f9d22df8d4ffcce7284ca2
Diffstat (limited to 'services/java/com/android/server/display/DisplayDevice.java')
-rw-r--r-- | services/java/com/android/server/display/DisplayDevice.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/services/java/com/android/server/display/DisplayDevice.java b/services/java/com/android/server/display/DisplayDevice.java index 57002ff..4a6dd66 100644 --- a/services/java/com/android/server/display/DisplayDevice.java +++ b/services/java/com/android/server/display/DisplayDevice.java @@ -16,6 +16,8 @@ package com.android.server.display; +import android.os.IBinder; + /** * Represents a physical display device such as the built-in display * an external monitor, or a WiFi display. @@ -29,6 +31,14 @@ public abstract class DisplayDevice { public abstract DisplayAdapter getAdapter(); /** + * Gets the Surface Flinger display token for this display. + * + * @return The display token, or null if the display is not being managed + * by Surface Flinger. + */ + public abstract IBinder getDisplayToken(); + + /** * Gets information about the display device. * * @param outInfo The object to populate with the information. |