land: 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: I56f5bfa2baa7bb9bf546bd5e59cebb74ac71732f
This commit is contained in:
parent
748a0b50ad
commit
491d531511
2 changed files with 15 additions and 23 deletions
|
@ -80,29 +80,6 @@
|
|||
<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
|
||||
<bool name="config_intrusiveBatteryLed">true</bool>
|
||||
|
||||
<!-- What can the LEDs on this device do? If defined, this overrides all of the
|
||||
older settings:
|
||||
com.android.internal.R.bool.config_multiColorNotificationLed
|
||||
com.android.internal.R.bool.config_multiColorBatteryLed
|
||||
org.cyanogenmod.platform.internal.R.bool.config_multipleNotificationLeds
|
||||
com.android.internal.R.bool.config_ledCanPulse
|
||||
org.cyanogenmod.platform.internal.R.bool.config_useSegmentedBatteryLed
|
||||
org.cyanogenmod.platform.internal.R.bool.config_adjustableNotificationLedBrightness
|
||||
Use the following values from NotificationManager:
|
||||
LIGHTS_RGB_NOTIFICATION = 0
|
||||
LIGHTS_RGB_BATTERY = 1
|
||||
LIGHTS_MULTIPLE_LED = 2
|
||||
LIGHTS_LED_PULSE = 3
|
||||
LIGHTS_SEGMENTED_BATTERY_LIGHTS = 4
|
||||
LIGHTS_ADJUSTABLE_NOTIFICATION_BRIGHTNESS = 5
|
||||
-->
|
||||
|
||||
<integer-array translatable="false" name="config_deviceLightCapabilities">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
<item>3</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- When true use the linux /dev/input/event subsystem to detect the switch changes
|
||||
on the headphone/microphone jack. When false use the older uevent framework. -->
|
||||
<bool name="config_useDevInputEventForAudioJack">true</bool>
|
||||
|
|
|
@ -20,4 +20,19 @@
|
|||
<bool name="config_proximityCheckOnWake">true</bool>
|
||||
<integer name="config_proximityCheckTimeout">100</integer>
|
||||
<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" translatable="false">11</integer>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue