Lines Matching refs:brightness
98 /** Minimum brightness at which the indicator is shown at half-full and ON */
100 /** Minimum brightness at which the indicator is shown at full */
716 final int brightness = getBrightness(context);
723 if (brightness > full) {
729 } else if (brightness > half) {
743 if (brightness > half) {
814 * Gets brightness level.
817 * @return brightness level between 0 and 255.
821 int brightness = Settings.System.getInt(context.getContentResolver(),
823 return brightness;
830 * Gets state of brightness mode.
833 * @return true if auto brightness is on.
847 * Increases or decreases the brightness.
859 int brightness = Settings.System.getInt(cr,
862 //Only get brightness setting if available
872 brightness = pm.getMinimumScreenBrightnessSetting();
874 } else if (brightness < pm.getDefaultScreenBrightnessSetting()) {
875 brightness = pm.getDefaultScreenBrightnessSetting();
876 } else if (brightness < pm.getMaximumScreenBrightnessSetting()) {
877 brightness = pm.getMaximumScreenBrightnessSetting();
880 brightness = pm.getMinimumScreenBrightnessSetting();
885 // Set screen brightness mode (automatic or manual)
890 // Make sure we set the brightness if automatic mode isn't available
894 power.setTemporaryScreenBrightnessSettingOverride(brightness);
895 Settings.System.putInt(cr, Settings.System.SCREEN_BRIGHTNESS, brightness);
905 /** Observer to watch for changes to the BRIGHTNESS setting */
917 // Listen to brightness and brightness mode