summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-12-08 00:30:22 -0800
committerAdnan Begovic <adnan@cyngn.com>2016-03-18 20:37:36 -0700
commit94ddbc9e84a5878a39695766610869d21966bedf (patch)
tree9ef601400a2ac45bdec86c49c48582b823115c70
parent928af153a215906df6f10c81be22d35954dc17bb (diff)
downloadandroid_frameworks_opt_hardware-cm-12.1.tar.gz
android_frameworks_opt_hardware-cm-12.1.tar.bz2
android_frameworks_opt_hardware-cm-12.1.zip
cmhw: Add isSelfManaged for SRE modulecm-12.1
* Some implementations of this do their own ambient sensing. Add a flag to enable this. TICKET: CYNGNOS-2237 Change-Id: Ic575b42740de1cfcd109883013417142bed2cd4e (cherry picked from commit 595a401a0b52fa2058df7e24435921ac08fb2e3a)
-rw-r--r--src/org/cyanogenmod/hardware/SunlightEnhancement.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/org/cyanogenmod/hardware/SunlightEnhancement.java b/src/org/cyanogenmod/hardware/SunlightEnhancement.java
index 0045eed..7ddbf41 100644
--- a/src/org/cyanogenmod/hardware/SunlightEnhancement.java
+++ b/src/org/cyanogenmod/hardware/SunlightEnhancement.java
@@ -55,4 +55,17 @@ public class SunlightEnhancement {
* @return boolean False if adaptive backlight is not a dependency
*/
public static boolean isAdaptiveBacklightRequired() { return true; }
+
+ /**
+ * Set this to true if the implementation is self-managed and does
+ * it's own ambient sensing. In this case, setEnabled is assumed
+ * to toggle the feature on or off, but not activate it. If set
+ * to false, LiveDisplay will call setEnabled when the ambient lux
+ * threshold is crossed.
+ *
+ * @return true if this enhancement is self-managed
+ */
+ public static boolean isSelfManaged() {
+ return false;
+ }
}