diff options
| author | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-12-04 22:56:26 +0000 |
|---|---|---|
| committer | Rygebin <kaankulahli@gmail.com> | 2016-12-05 20:51:35 +0000 |
| commit | 22ad0f0a8d91f74db5d10272981bd0081f36475b (patch) | |
| tree | b55de98320116ff4f036318c379b146dba3a1924 | |
| parent | 2b26f6bdacf0b237b5e818352d4ea47d8e717618 (diff) | |
shamrock: 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: I16b45fb2859634cb76331ec5ed91e799c58ed2ac
| -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 | 18 |
2 files changed, 16 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..9f58d37 100644 --- a/overlay/vendor/cmsdk/cm/res/res/values/config.xml +++ b/overlay/vendor/cmsdk/cm/res/res/values/config.xml @@ -16,7 +16,21 @@ --> <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">11</integer> </resources> |
