diff options
| author | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-11-21 17:01:56 +0800 |
|---|---|---|
| committer | Drgravy <drg113001@gmail.com> | 2016-12-04 11:36:00 -0600 |
| commit | af58d763ed38c05927748896bcd9a99f6c093e31 (patch) | |
| tree | 1f6243d9dd293806d4af115c14c8c8038d89026e | |
| parent | 1840209d3cb45d4e201fcb844c42e49032dbd06a (diff) | |
g2-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: I3113bd0d5ba880a2320209961644c0f8b435991c
| -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 | 15 |
2 files changed, 15 insertions, 7 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index a23bde6..83ce485 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -31,16 +31,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> - <!-- Flag indicating whether the we should enable the automatic brightness in Settings. Software implementation will be used if config_hardware_auto_brightness_available is not set --> <bool name="config_automatic_brightness_available">true</bool> diff --git a/overlay/vendor/cmsdk/cm/res/res/values/config.xml b/overlay/vendor/cmsdk/cm/res/res/values/config.xml index c7512f9..a0dc686 100644 --- a/overlay/vendor/cmsdk/cm/res/res/values/config.xml +++ b/overlay/vendor/cmsdk/cm/res/res/values/config.xml @@ -29,4 +29,19 @@ <!-- Proximity check on screen on default --> <bool name="config_proximityCheckOnWakeEnabledByDefault">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> |
