aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/cyanogenmod/hardware
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2015-12-08 04:12:45 -0800
committerSteve Kondik <shade@chemlab.org>2015-12-09 21:02:54 -0800
commit968127f5323b9838d772368d25105292e0f13a93 (patch)
tree1c0d993874dac55e0c4af224b1cb176b20bf1a61 /src/java/cyanogenmod/hardware
parent8719ebfd17b5ddf16bc2f989b4e3249df780d7fd (diff)
downloadvendor_cmsdk-968127f5323b9838d772368d25105292e0f13a93.zip
vendor_cmsdk-968127f5323b9838d772368d25105292e0f13a93.tar.gz
vendor_cmsdk-968127f5323b9838d772368d25105292e0f13a93.tar.bz2
cmsdk: Add CMHW method to check if SRE is self managed
Change-Id: Ia5f644ce0b964a965afa47ea08016167c8b20620
Diffstat (limited to 'src/java/cyanogenmod/hardware')
-rw-r--r--src/java/cyanogenmod/hardware/CMHardwareManager.java13
-rw-r--r--src/java/cyanogenmod/hardware/ICMHardwareService.aidl1
2 files changed, 14 insertions, 0 deletions
diff --git a/src/java/cyanogenmod/hardware/CMHardwareManager.java b/src/java/cyanogenmod/hardware/CMHardwareManager.java
index d27b1fb..c28cb98 100644
--- a/src/java/cyanogenmod/hardware/CMHardwareManager.java
+++ b/src/java/cyanogenmod/hardware/CMHardwareManager.java
@@ -714,6 +714,19 @@ public final class CMHardwareManager {
}
/**
+ * @return true if this implementation does it's own lux metering
+ */
+ public boolean isSunlightEnhancementSelfManaged() {
+ try {
+ if (checkService()) {
+ return sService.isSunlightEnhancementSelfManaged();
+ }
+ } catch (RemoteException e) {
+ }
+ return false;
+ }
+
+ /**
* @return a list of available display modes on the devices
*/
public DisplayMode[] getDisplayModes() {
diff --git a/src/java/cyanogenmod/hardware/ICMHardwareService.aidl b/src/java/cyanogenmod/hardware/ICMHardwareService.aidl
index 6da7b1f..1cbcfb2 100644
--- a/src/java/cyanogenmod/hardware/ICMHardwareService.aidl
+++ b/src/java/cyanogenmod/hardware/ICMHardwareService.aidl
@@ -43,6 +43,7 @@ interface ICMHardwareService {
String getSerialNumber();
boolean requireAdaptiveBacklightForSunlightEnhancement();
+ boolean isSunlightEnhancementSelfManaged();
DisplayMode[] getDisplayModes();
DisplayMode getCurrentDisplayMode();