Loading core/java/android/hardware/display/ColorDisplayManager.java +20 −0 Original line number Diff line number Diff line Loading @@ -536,6 +536,26 @@ public final class ColorDisplayManager { return context.getResources().getBoolean(R.bool.config_reduceBrightColorsAvailable); } /** * Returns the minimum allowed brightness reduction strength in percentage when activated. * * @hide */ public static int getMinimumReduceBrightColorsStrength(Context context) { return context.getResources() .getInteger(R.integer.config_reduceBrightColorsStrengthMin); } /** * Returns the maximum allowed brightness reduction strength in percentage when activated. * * @hide */ public static int getMaximumReduceBrightColorsStrength(Context context) { return context.getResources() .getInteger(R.integer.config_reduceBrightColorsStrengthMax); } /** * Check if the color transforms are color accelerated. Some transforms are experimental only * on non-accelerated platforms due to the performance implications. Loading core/res/res/values/config.xml +9 −0 Original line number Diff line number Diff line Loading @@ -848,6 +848,15 @@ <!-- y-intercept --> <item>1.000000000000000</item> </string-array> <!-- Default strength, in percentage, of bright color reduction when activated. --> <integer name="config_reduceBrightColorsStrengthDefault">0</integer> <!-- Minimum strength, in percentage, supported by bright color reduction. --> <integer name="config_reduceBrightColorsStrengthMin">0</integer> <!-- Maximum strength, in percentage, supported by bright color reduction. --> <integer name="config_reduceBrightColorsStrengthMax">100</integer> <!-- Boolean indicating whether display white balance is supported. --> <bool name="config_displayWhiteBalanceAvailable">false</bool> Loading core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3224,6 +3224,9 @@ <java-symbol type="bool" name="config_reduceBrightColorsAvailable" /> <java-symbol type="array" name="config_reduceBrightColorsCoefficients" /> <java-symbol type="array" name="config_reduceBrightColorsCoefficientsNonlinear" /> <java-symbol type="integer" name="config_reduceBrightColorsStrengthDefault" /> <java-symbol type="integer" name="config_reduceBrightColorsStrengthMin" /> <java-symbol type="integer" name="config_reduceBrightColorsStrengthMax" /> <java-symbol type="array" name="config_availableColorModes" /> <java-symbol type="array" name="config_mappedColorModes" /> <java-symbol type="string" name="config_vendorColorModesRestoreHint" /> Loading Loading
core/java/android/hardware/display/ColorDisplayManager.java +20 −0 Original line number Diff line number Diff line Loading @@ -536,6 +536,26 @@ public final class ColorDisplayManager { return context.getResources().getBoolean(R.bool.config_reduceBrightColorsAvailable); } /** * Returns the minimum allowed brightness reduction strength in percentage when activated. * * @hide */ public static int getMinimumReduceBrightColorsStrength(Context context) { return context.getResources() .getInteger(R.integer.config_reduceBrightColorsStrengthMin); } /** * Returns the maximum allowed brightness reduction strength in percentage when activated. * * @hide */ public static int getMaximumReduceBrightColorsStrength(Context context) { return context.getResources() .getInteger(R.integer.config_reduceBrightColorsStrengthMax); } /** * Check if the color transforms are color accelerated. Some transforms are experimental only * on non-accelerated platforms due to the performance implications. Loading
core/res/res/values/config.xml +9 −0 Original line number Diff line number Diff line Loading @@ -848,6 +848,15 @@ <!-- y-intercept --> <item>1.000000000000000</item> </string-array> <!-- Default strength, in percentage, of bright color reduction when activated. --> <integer name="config_reduceBrightColorsStrengthDefault">0</integer> <!-- Minimum strength, in percentage, supported by bright color reduction. --> <integer name="config_reduceBrightColorsStrengthMin">0</integer> <!-- Maximum strength, in percentage, supported by bright color reduction. --> <integer name="config_reduceBrightColorsStrengthMax">100</integer> <!-- Boolean indicating whether display white balance is supported. --> <bool name="config_displayWhiteBalanceAvailable">false</bool> Loading
core/res/res/values/symbols.xml +3 −0 Original line number Diff line number Diff line Loading @@ -3224,6 +3224,9 @@ <java-symbol type="bool" name="config_reduceBrightColorsAvailable" /> <java-symbol type="array" name="config_reduceBrightColorsCoefficients" /> <java-symbol type="array" name="config_reduceBrightColorsCoefficientsNonlinear" /> <java-symbol type="integer" name="config_reduceBrightColorsStrengthDefault" /> <java-symbol type="integer" name="config_reduceBrightColorsStrengthMin" /> <java-symbol type="integer" name="config_reduceBrightColorsStrengthMax" /> <java-symbol type="array" name="config_availableColorModes" /> <java-symbol type="array" name="config_mappedColorModes" /> <java-symbol type="string" name="config_vendorColorModesRestoreHint" /> Loading