summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware/display
diff options
context:
space:
mode:
authorFilip Gruszczynski <gruszczy@google.com>2015-02-25 21:30:07 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-02-25 21:31:53 +0000
commit1e74b5d6b0e964b7a9e58e64b45f50aec15b1178 (patch)
tree91e563909e2b441cadda884c79ad38206153fd6d /core/java/android/hardware/display
parentaeffc9cebd4e97889f5b2f61de38c60b83535ffa (diff)
parentd2e8640c2c1972d4f2e92d48660fa9e17d9291c4 (diff)
downloadframeworks_base-1e74b5d6b0e964b7a9e58e64b45f50aec15b1178.zip
frameworks_base-1e74b5d6b0e964b7a9e58e64b45f50aec15b1178.tar.gz
frameworks_base-1e74b5d6b0e964b7a9e58e64b45f50aec15b1178.tar.bz2
Merge "Burn in protection." into lmp-mr1-modular-dev
Diffstat (limited to 'core/java/android/hardware/display')
-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