aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Wei Liew <zhaoweiliew@gmail.com>2016-11-21 17:01:56 +0800
committerMichael Bestas <mikeioannina@cyanogenmod.org>2016-12-03 18:34:16 +0200
commit80b588c415f550897d2d590bbe8372d056f5ce3a (patch)
treef1ea359fdd076d17350c28030827b74beae8289b
parentc6644d6ded92ee840a24e19ee5179e3889371be3 (diff)
find7: Switch to the unified LED capabilities overlay
* The old overlays have now been removed in favor of a single unified and extensible overlay. Change-Id: I3c1ec399a19e9dd3ad97e74993133cec9ffb5fb8
-rw-r--r--overlay/vendor/cmsdk/cm/res/res/values/config.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/overlay/vendor/cmsdk/cm/res/res/values/config.xml b/overlay/vendor/cmsdk/cm/res/res/values/config.xml
index db2dce4..b9918bc 100644
--- a/overlay/vendor/cmsdk/cm/res/res/values/config.xml
+++ b/overlay/vendor/cmsdk/cm/res/res/values/config.xml
@@ -16,7 +16,19 @@
-->
<resources>
- <!-- Is the notification LED brightness adjustable ? Used to decide if the user can set LED brightness -->
- <bool name="config_adjustableNotificationLedBrightness">true</bool>
+ <!-- All the capabilities of the LEDs on this device, stored as a bit field.
+ This integer should equal the sum of the corresponding value for each
+ of the following capabilities present:
+
+ LIGHTS_RGB_NOTIFICATION_LED = 1
+ LIGHTS_RGB_BATTERY_LED = 2
+ LIGHTS_MULTIPLE_NOTIFICATION_LED = 4
+ LIGHTS_PULSATING_LED = 8
+ LIGHTS_SEGMENTED_BATTERY_LED = 16
+ LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32
+
+ For example, a device support pulsating, RGB notification and
+ battery LEDs would set this config to 11. -->
+ <integer name="config_deviceLightCapabilities">40</integer>
</resources>