summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware
diff options
context:
space:
mode:
authorFilip Gruszczynski <gruszczy@google.com>2015-02-19 13:05:03 -0800
committerFilip Gruszczynski <gruszczy@google.com>2015-02-25 12:22:49 -0800
commitd2e8640c2c1972d4f2e92d48660fa9e17d9291c4 (patch)
treec6ac43889a6736ee26ae44db089641fe1bfb85ff /core/java/android/hardware
parent01dd0e86546a5bf815dd9a6e7cd4b7bf8e8f5719 (diff)
downloadframeworks_base-d2e8640c2c1972d4f2e92d48660fa9e17d9291c4.zip
frameworks_base-d2e8640c2c1972d4f2e92d48660fa9e17d9291c4.tar.gz
frameworks_base-d2e8640c2c1972d4f2e92d48660fa9e17d9291c4.tar.bz2
Burn in protection.
Bug: 19373758 Change-Id: I7242f73acadd21bdee03262b4205c8af0734fccb
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r--core/java/android/hardware/display/DisplayManagerInternal.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/hardware/display/DisplayManagerInternal.java b/core/java/android/hardware/display/DisplayManagerInternal.java
index bb162153..adab9be 100644
--- a/core/java/android/hardware/display/DisplayManagerInternal.java
+++ b/core/java/android/hardware/display/DisplayManagerInternal.java
@@ -132,6 +132,19 @@ public abstract class DisplayManagerInternal {
float requestedRefreshRate, boolean inTraversal);
/**
+ * Applies an offset to the contents of a display, for example to avoid burn-in.
+ * <p>
+ * TODO: Technically this should be associated with a physical rather than logical
+ * display but this is good enough for now.
+ * </p>
+ *
+ * @param displayId The logical display id to update.
+ * @param x The X offset by which to shift the contents of the display.
+ * @param y The Y offset by which to shift the contents of the display.
+ */
+ public abstract void setDisplayOffsets(int displayId, int x, int y);
+
+ /**
* Describes the requested power state of the display.
*
* This object is intended to describe the general characteristics of the