Lines Matching full:brightness
50 public final float brightness;
57 State(float desaturation, float brightness, float viewScale, TimeInterpolator interpolator) {
59 this.brightness = brightness;
84 // Since we don't need 256^2 values for combinations of both the brightness and saturation, we
89 // A cache of ColorFilters for optimizing brightness and saturation animations
100 // The saturation and brightness are values that are mapped to REDUCED_FILTER_VALUE_SPACE and
186 .ofFloat(this, "brightness", newState.brightness));
208 setBrightness(newState.brightness);
280 * Sets the brightness of this icon, 0 [no add. brightness] -> 1 [2bright2furious]
282 public void setBrightness(float brightness) {
283 int newBrightness = (int) Math.floor(brightness * REDUCED_FILTER_VALUE_SPACE);
295 * Updates the paint to reflect the current brightness and saturation.
303 // Compose a key with a fully saturated icon if we are just animating brightness
329 // Brightness: C-new = C-old*(1-amount) + amount