Lines Matching defs:brightness
103 /** Minimum brightness at which the indicator is shown at half-full and ON */
105 /** Minimum brightness at which the indicator is shown at full */
685 final int brightness = getBrightness(context);
687 if (brightness > FULL_BRIGHTNESS_THRESHOLD) {
690 } else if (brightness > HALF_BRIGHTNESS_THRESHOLD) {
698 if (brightness > HALF_BRIGHTNESS_THRESHOLD) {
770 * Gets brightness level.
773 * @return brightness level between 0 and 255.
780 int brightness = Settings.System.getInt(context.getContentResolver(),
782 return brightness;
790 * Gets state of brightness mode.
793 * @return true if auto brightness is on.
811 * Increases or decreases the brightness.
821 int brightness = Settings.System.getInt(cr,
824 //Only get brightness setting if available
834 brightness = MINIMUM_BACKLIGHT;
836 } else if (brightness < DEFAULT_BACKLIGHT) {
837 brightness = DEFAULT_BACKLIGHT;
838 } else if (brightness < MAXIMUM_BACKLIGHT) {
839 brightness = MAXIMUM_BACKLIGHT;
842 brightness = MINIMUM_BACKLIGHT;
847 // Set screen brightness mode (automatic or manual)
852 // Make sure we set the brightness if automatic mode isn't available
856 power.setBacklightBrightness(brightness);
857 Settings.System.putInt(cr, Settings.System.SCREEN_BRIGHTNESS, brightness);
867 /** Observer to watch for changes to the BRIGHTNESS setting */
879 // Listen to brightness and brightness mode