zeus: overlay: Commonize several auto brightness configs
Change-Id: I9264b45c3d73eab4f49ec2ef4c502c5644fcd751
This commit is contained in:
@@ -20,18 +20,6 @@
|
||||
-2 is invalid so setting will resort to int value specified above.
|
||||
Must be in the range specified by minimum and maximum. -->
|
||||
<item format="float" name="config_screenBrightnessSettingDefaultFloat" type="dimen">0.07496032</item>
|
||||
|
||||
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
||||
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
||||
when adapting to brighter or darker environments. This parameter controls how quickly
|
||||
brightness changes occur in response to an observed change in light level that exceeds the
|
||||
hysteresis threshold. -->
|
||||
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
|
||||
<integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
|
||||
|
||||
<!-- The maximum range of gamma adjustment possible using the screen
|
||||
auto-brightness adjustment setting. -->
|
||||
<fraction name="config_autoBrightnessAdjustmentMaxGamma">100.0%</fraction>
|
||||
<item name="config_screenBrightnessDimFloat" type="dimen">0.002197534</item>
|
||||
|
||||
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
|
||||
@@ -294,61 +282,6 @@
|
||||
<item>1000.0</item>
|
||||
</array>
|
||||
|
||||
<!-- Array of ambient lux threshold values. This is used for determining hysteresis constraint
|
||||
values by calculating the index to use for lookup and then setting the constraint value
|
||||
to the corresponding value of the array. The new brightening hysteresis constraint value
|
||||
is the n-th element of config_ambientBrighteningThresholds, and the new darkening
|
||||
hysteresis constraint value is the n-th element of config_ambientDarkeningThresholds.
|
||||
|
||||
The (zero-based) index is calculated as follows: (MAX is the largest index of the array)
|
||||
condition calculated index
|
||||
value < level[0] 0
|
||||
level[n] <= value < level[n+1] n+1
|
||||
level[MAX] <= value MAX+1 -->
|
||||
<integer-array name="config_ambientThresholdLevels">
|
||||
<item>2</item>
|
||||
<item>10</item>
|
||||
<item>30</item>
|
||||
<item>100</item>
|
||||
<item>800</item>
|
||||
<item>2000</item>
|
||||
<item>4000</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of hysteresis constraint values for brightening, represented as tenths of a
|
||||
percent. The length of this array is assumed to be one greater than
|
||||
config_ambientThresholdLevels. The brightening threshold is calculated as
|
||||
lux * (1.0f + CONSTRAINT_VALUE). When the current lux is higher than this threshold,
|
||||
the screen brightness is recalculated. See the config_ambientThresholdLevels
|
||||
description for how the constraint value is chosen. -->
|
||||
<integer-array name="config_ambientBrighteningThresholds">
|
||||
<item>2</item>
|
||||
<item>6</item>
|
||||
<item>10</item>
|
||||
<item>30</item>
|
||||
<item>100</item>
|
||||
<item>400</item>
|
||||
<item>600</item>
|
||||
<item>1000</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Array of hysteresis constraint values for darkening, represented as tenths of a
|
||||
percent. The length of this array is assumed to be one greater than
|
||||
config_ambientThresholdLevels. The darkening threshold is calculated as
|
||||
lux * (1.0f - CONSTRAINT_VALUE). When the current lux is lower than this threshold,
|
||||
the screen brightness is recalculated. See the config_ambientThresholdLevels
|
||||
description for how the constraint value is chosen. -->
|
||||
<integer-array name="config_ambientDarkeningThresholds">
|
||||
<item>800</item>
|
||||
<item>800</item>
|
||||
<item>500</item>
|
||||
<item>500</item>
|
||||
<item>500</item>
|
||||
<item>500</item>
|
||||
<item>500</item>
|
||||
<item>500</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
|
||||
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user