diff options
author | Bruno Martins <bgcngm@gmail.com> | 2018-06-02 10:02:40 +0100 |
---|---|---|
committer | Isaac Chen <isaacchen@isaacchen.cn> | 2018-07-19 00:00:09 +0000 |
commit | e3b3f7d5babca94a7f34eff29c69d6e97b86af43 (patch) | |
tree | 247204427efde6fc81d3e252029f26a79a4d916e /overlay-lineage | |
parent | 7712e1328f5748a1736a98ec7f88c10bc03dc211 (diff) |
wayne: Adjust overlays for recently added light capability
* Led capability LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS was recently
added to the Lineage SDK. Declare such capability, since our targets
don't have RGB battery leds, but the lights HAL supports brightness
control via the alpha channel for battery and notification lights.
Change-Id: Ifcdc4816d27f7b781712dde6eb9b2e4f73449c6c
Diffstat (limited to 'overlay-lineage')
-rw-r--r-- | overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml index d6b848c..6dd9de1 100644 --- a/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml +++ b/overlay-lineage/lineage-sdk/lineage/res/res/values/config.xml @@ -14,21 +14,42 @@ limitations under the License. --> <resources> + <!-- Default value for proximity check on screen wake + NOTE ! - Enable for devices that have a fast response proximity sensor (ideally < 300ms)--> + <bool name="config_proximityCheckOnWake">true</bool> + <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: - + // Device has a color adjustable battery light. LIGHTS_RGB_NOTIFICATION_LED = 1 + // Device has a color adjustable notification light. LIGHTS_RGB_BATTERY_LED = 2 LIGHTS_MULTIPLE_NOTIFICATION_LED = 4 (deprecated) + // The notification light has adjustable pulsing capability. LIGHTS_PULSATING_LED = 8 + // Device has a multi-segment battery light that is able to + // use the light brightness value to determine how many + // segments to show (in order to represent battery level). LIGHTS_SEGMENTED_BATTERY_LED = 16 + // The notification light supports HAL adjustable brightness + // via the alpha channel. + // Note: if a device notification light supports LIGHTS_RGB_NOTIFICATION_LED + // then HAL support is not necessary for brightness control. In this case, + // brightness support will be provided by lineage-sdk through the scaling of + // RGB color values. LIGHTS_ADJUSTABLE_NOTIFICATION_LED_BRIGHTNESS = 32 + // Device has a battery light. LIGHTS_BATTERY_LED = 64 - + // The battery light supports HAL adjustable brightness via + // the alpha channel. + // Note: if a device battery light supports LIGHTS_RGB_BATTERY_LED then HAL + // support is not necessary for brightness control. In this case, + // brightness support will be provided by lineage-sdk through the scaling of + // RGB color values. + LIGHTS_ADJUSTABLE_BATTERY_LED_BRIGHTNESS = 128 For example, a device with notification and battery lights that supports pulsating and RGB control would set this config to 75. --> - <integer name="config_deviceLightCapabilities">104</integer> - + <integer name="config_deviceLightCapabilities">232</integer> </resources> |