diff options
| author | Kenny Guy <kennyguy@google.com> | 2018-09-12 13:25:37 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-09-12 13:25:37 +0000 |
| commit | fb59cfa0cab1d3cb7fbb8aff549084bc50245eca (patch) | |
| tree | 696339638dc34f43176da524b0b4d0310087ddfe /core/java/android | |
| parent | 2793aa846afdd56ac7ad7cfc6cbd65a5b3897a98 (diff) | |
| parent | d62c3cfcc3a6f2fec4552dbbb9b8d709da386234 (diff) | |
Merge "Remove 0 param BrightnessConfiguration.Builder constructor"
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/hardware/display/BrightnessConfiguration.java | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/core/java/android/hardware/display/BrightnessConfiguration.java b/core/java/android/hardware/display/BrightnessConfiguration.java index 6d9ba778d09a..7e52ca331f9f 100644 --- a/core/java/android/hardware/display/BrightnessConfiguration.java +++ b/core/java/android/hardware/display/BrightnessConfiguration.java @@ -141,13 +141,6 @@ public final class BrightnessConfiguration implements Parcelable { private String mDescription; /** - * STOPSHIP remove when app has stopped using this. - * @hide - */ - public Builder() { - } - - /** * Constructs the builder with the control points for the brightness curve. * * Brightness curves must have strictly increasing ambient brightness values in lux and @@ -159,24 +152,6 @@ public final class BrightnessConfiguration implements Parcelable { * @throws IllegalArgumentException if the nit levels are not monotonically increasing. */ public Builder(float[] lux, float[] nits) { - setCurve(lux, nits); - } - - /** - * Sets the control points for the brightness curve. - * - * Brightness curves must have strictly increasing ambient brightness values in lux and - * monotonically increasing display brightness values in nits. In addition, the initial - * control point must be 0 lux. - * - * @throws IllegalArgumentException if the initial control point is not at 0 lux. - * @throws IllegalArgumentException if the lux levels are not strictly increasing. - * @throws IllegalArgumentException if the nit levels are not monotonically increasing. - * - * STOPSHIP remove when app has stopped using this. - * @hide - */ - public Builder setCurve(float[] lux, float[] nits) { Preconditions.checkNotNull(lux); Preconditions.checkNotNull(nits); if (lux.length == 0 || nits.length == 0) { @@ -190,11 +165,10 @@ public final class BrightnessConfiguration implements Parcelable { } Preconditions.checkArrayElementsInRange(lux, 0, Float.MAX_VALUE, "lux"); Preconditions.checkArrayElementsInRange(nits, 0, Float.MAX_VALUE, "nits"); - checkMonotonic(lux, true/*strictly increasing*/, "lux"); + checkMonotonic(lux, true /*strictly increasing*/, "lux"); checkMonotonic(nits, false /*strictly increasing*/, "nits"); mCurveLux = lux; mCurveNits = nits; - return this; } /** |
