summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-12-08 00:30:22 -0800
committerSteve Kondik <steve@cyngn.com>2015-12-08 00:30:22 -0800
commit595a401a0b52fa2058df7e24435921ac08fb2e3a (patch)
treecf54f47de0f30cfc503bd411c7507535634b2763
parent90d3456a5491c3b9f4d7e1e0ea379132de770b13 (diff)
downloadandroid_hardware_lineage_lineagehw-595a401a0b52fa2058df7e24435921ac08fb2e3a.tar.gz
android_hardware_lineage_lineagehw-595a401a0b52fa2058df7e24435921ac08fb2e3a.tar.bz2
android_hardware_lineage_lineagehw-595a401a0b52fa2058df7e24435921ac08fb2e3a.zip
cmhw: Add isSelfManaged for SRE module
* Some implementations of this do their own ambient sensing. Add a flag to enable this. Change-Id: Ic575b42740de1cfcd109883013417142bed2cd4e
-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;
+ }
}