diff options
| author | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-12-05 23:15:43 +0300 |
|---|---|---|
| committer | doc HD <doc.divxm@gmail.com> | 2016-12-05 23:15:57 +0300 |
| commit | 4e4ae672c0e60a6d26ed51fbc5c047d9aa6bfd08 (patch) | |
| tree | a494bd54993104ee32cb01d52b8115afb60de089 | |
| parent | bb381c7c1c0c8b6fb9852e1992c44296d97f53e9 (diff) | |
msm8952-common: Switch to the unified LED capabilities overlay
The old overlays have now been removed in favour
of a single unified and extensible overlay.
Change-Id: I95b0b746909ba175a2085e49e8d7ae3f7e9ce9c0
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 7 | ||||
| -rw-r--r-- | overlay/vendor/cmsdk/cm/res/res/values/config.xml | 16 |
2 files changed, 14 insertions, 9 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 1378138..01d2387 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -104,16 +104,9 @@ <!-- Is the notification LED intrusive? Used to decide if there should be a disable option --> <bool name="config_intrusiveNotificationLed">true</bool> - <!-- Does the notification LED support multiple colors? - Used to decide if the user can change the colors --> - <bool name="config_multiColorNotificationLed">true</bool> - <!-- Is the battery LED intrusive? Used to decide if there should be a disable option --> <bool name="config_intrusiveBatteryLed">true</bool> - <!-- Does the battery LED support multiple colors? Used to decide if the user can change the colors --> - <bool name="config_multiColorBatteryLed">true</bool> - <!-- Default color for notification LED is white. --> <color name="config_defaultNotificationColor">#ffffffff</color> diff --git a/overlay/vendor/cmsdk/cm/res/res/values/config.xml b/overlay/vendor/cmsdk/cm/res/res/values/config.xml index 3b23b2d..066a9ff 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">43</integer> </resources> |
