Skip to content

Commit

Permalink
hammerhead: Switch to the unified LED capabilities overlay
Browse files Browse the repository at this point in the history
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
  • Loading branch information
zwliew authored and razorloves committed Dec 4, 2016
1 parent d56161a commit 18f5847
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
14 changes: 0 additions & 14 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
15 changes: 15 additions & 0 deletions overlay/vendor/cmsdk/cm/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 18f5847

Please sign in to comment.