Make the short term brightness model configurable.
Bug: 146141793 Test: atest BrightnessConfigurationTest Test: atest AutomaticBrightnessControllerTest Test: manual - use reflection to configure the new parameters from turbo app and check dumpsys Change-Id: I78af8009f15400f2f91e55363066d97f008a7922
This commit is contained in:
@@ -2353,9 +2353,13 @@ package android.hardware.display {
|
||||
method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByCategory(int);
|
||||
method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByPackageName(@NonNull String);
|
||||
method public android.util.Pair<float[],float[]> getCurve();
|
||||
method public float getShortTermModelLowerLuxMultiplier();
|
||||
method public long getShortTermModelTimeout();
|
||||
method public float getShortTermModelUpperLuxMultiplier();
|
||||
method public boolean shouldCollectColorSamples();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessConfiguration> CREATOR;
|
||||
field public static final long SHORT_TERM_TIMEOUT_UNSET = -1L; // 0xffffffffffffffffL
|
||||
}
|
||||
|
||||
public static class BrightnessConfiguration.Builder {
|
||||
@@ -2366,6 +2370,9 @@ package android.hardware.display {
|
||||
method public int getMaxCorrectionsByCategory();
|
||||
method public int getMaxCorrectionsByPackageName();
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nullable String);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShortTermModelLowerLuxMultiplier(@FloatRange(from=0.0f) float);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShortTermModelTimeout(long);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShortTermModelUpperLuxMultiplier(@FloatRange(from=0.0f) float);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShouldCollectColorSamples(boolean);
|
||||
}
|
||||
|
||||
|
||||
@@ -1023,9 +1023,13 @@ package android.hardware.display {
|
||||
method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByCategory(int);
|
||||
method @Nullable public android.hardware.display.BrightnessCorrection getCorrectionByPackageName(@NonNull String);
|
||||
method public android.util.Pair<float[],float[]> getCurve();
|
||||
method public float getShortTermModelLowerLuxMultiplier();
|
||||
method public long getShortTermModelTimeout();
|
||||
method public float getShortTermModelUpperLuxMultiplier();
|
||||
method public boolean shouldCollectColorSamples();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field @NonNull public static final android.os.Parcelable.Creator<android.hardware.display.BrightnessConfiguration> CREATOR;
|
||||
field public static final long SHORT_TERM_TIMEOUT_UNSET = -1L; // 0xffffffffffffffffL
|
||||
}
|
||||
|
||||
public static class BrightnessConfiguration.Builder {
|
||||
@@ -1036,6 +1040,9 @@ package android.hardware.display {
|
||||
method public int getMaxCorrectionsByCategory();
|
||||
method public int getMaxCorrectionsByPackageName();
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setDescription(@Nullable String);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShortTermModelLowerLuxMultiplier(@FloatRange(from=0.0f) float);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShortTermModelTimeout(long);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShortTermModelUpperLuxMultiplier(@FloatRange(from=0.0f) float);
|
||||
method @NonNull public android.hardware.display.BrightnessConfiguration.Builder setShouldCollectColorSamples(boolean);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user