diff options
| author | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2016-11-21 17:01:56 +0800 |
|---|---|---|
| committer | droidfivex <droidfivex@gmail.com> | 2016-12-04 22:49:06 +0900 |
| commit | 26cb4a6cb7fa1be6298e7a5c6be9fc2ad9322b1c (patch) | |
| tree | a193f505b524319b9596fb21432e836b0d02f0f8 | |
| parent | e5cd6231c3ecee2d8fc05a0647bac1fc4692908f (diff) | |
hammerhead: Switch to the unified LED capabilities overlay
The old overlays have now been removed in favour
of a single unified and extensible overlay.
- also remove defaults already in framework globally
Change-Id: I56f5bfa2baa7bb9bf546bd5e59cebb74ac71732f
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 14 | ||||
| -rw-r--r-- | overlay/vendor/cmsdk/cm/res/res/values/config.xml | 15 |
2 files changed, 15 insertions, 14 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 3a45000..4ab70e7 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -114,24 +114,10 @@ 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> - - <!-- Default color for notification LED is white. --> - <color name="config_defaultNotificationColor">#ffffffff</color> - - <!-- Default LED on time for notification LED in milliseconds. --> - <integer name="config_defaultNotificationLedOn">1000</integer> - <!-- 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> - <!-- reference volume index for music stream to limit headphone volume and display warning --> <integer name="config_safe_media_volume_index">5</integer> diff --git a/overlay/vendor/cmsdk/cm/res/res/values/config.xml b/overlay/vendor/cmsdk/cm/res/res/values/config.xml index ddfaacd..2a0ce23 100644 --- a/overlay/vendor/cmsdk/cm/res/res/values/config.xml +++ b/overlay/vendor/cmsdk/cm/res/res/values/config.xml @@ -31,4 +31,19 @@ <integer name="config_proximityCheckTimeout">100</integer> <bool name="config_proximityCheckOnWakeEnabledByDefault">false</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" translatable="false">11</integer> + </resources> |
