summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/BrightnessPreference.java
Commit message (Collapse)AuthorAgeFilesLines
* Use activity for brightness dialogAlan Viverette2014-07-141-2/+2
| | | | | BUG: 15512088 Change-Id: Ibe38525b78d06e97cdf7e6369ca8179ab63e59d7
* Update Settings app to use new brightness dialogMichael Wright2013-02-201-316/+7
| | | | | Bug: 7304957 Change-Id: I3894f6fc9ae1aef92bff328006601af518111983
* Correct check box visibility in Display / BrightnessBenn Porscke2012-12-181-0/+1
| | | | | | | | | The check box for "Automatic brightness" should not be visible in Brightness screen if the product configuration config_automatic_brightness_available in config.xml is set to false. Change-Id: I0d81137723d0eacd97aa88bf08b69e12dd4d73fa Signed-off-by: Benn Porscke <benn.porscke@stericsson.com>
* Enable auto-brightness adjustment feature with system prop.Jeff Brown2012-09-081-1/+2
| | | | | | This feature is experimental and disabled by default. Change-Id: I9c3c77d6d207ceec65e0babc7915db8d439d5da2
* Add a flag to control auto-brightness adjustment.Jeff Brown2012-08-211-5/+9
| | | | | | | The feature is still disabled, it's just disabled using a flag now. Change-Id: I43ceaa5ab9b7252e3882c8b2d48c9844afb806c3
* Use new power manager API.Jeff Brown2012-08-141-12/+13
| | | | Change-Id: If0c58a9bee05ec0de434879e78cd95299e54e3fe
* Fix issue #6603152: User-adjustable autobrightness broken?Dianne Hackborn2012-06-041-2/+19
| | | | | | | | | | | | | | | Two issues: - The new brightness was not being applied when switching out of auto-brightness mode. - We were resetting to the last brightness level when switching modes. This is because at that point we read the current brightness setting, but that isn't changed as the user adjusts only when the final value is committed. To fix this, we have a new local variable keeping track of the last brightness value we have shown and use that when we haven't committed the brightness to settings. Change-Id: I7cc02c9f90128eacec427587a3f6b8f25ede4bd3
* Update references to PowerManager constants that have moved.Jeff Brown2012-05-111-1/+1
| | | | | Bug: 6435382 Change-Id: Ieea857644dc0cf758e0ff4fd595c6a0115457df0
* Remove auto-brightness adjustment setting.Dianne Hackborn2012-05-091-13/+20
| | | | | | Not yet ready for release. Change-Id: I4668e890080d63a29aeeeab4daad6a6466ae36af
* Fix manual brightness adjustment.Jeff Brown2012-04-301-7/+8
| | | | | | | | | getBrightness() was calculating the brightness ratio the wrong way, resulting in brightness fractions always greater than 1.0 being produced (maximum brightness). Bug: 6377115 Change-Id: Ia2fbae505ffdc382005722d25301bfb689b585fb
* Deal correctly with an unset brightness adjustment.Dianne Hackborn2012-04-231-13/+10
| | | | Change-Id: I191051989bad68f31210bbc717fbabd59d4585a1
* When auto-brightness is on, you can now adjust its brightness.Dianne Hackborn2012-01-231-38/+62
| | | | Change-Id: Ie152def12cf7befd9c15a19f9975c207cbb5c541
* Settings use minimum manual brightness from configTodd Poynor2011-10-251-8/+9
| | | | | | | Remove use of deprecated android.os.Power.BRIGHTNESS_DIM (20) + 10. Change-Id: I24aff7d7fc93b4b67dedb1047bbbd4dbe3fae382 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* SeekBarPreference -> SeekBarDialogPreferenceJohn Reck2011-06-151-2/+2
| | | | Change-Id: Ie1fba2633806a50b5282728dce447be2162ad67f
* Track changes to brightness and orientation lock in Settings.Amith Yamasani2011-02-281-18/+71
| | | | | | | | | | | | | | Bug: 3491814 Bug: 3482859 Bug: 3497535 Since the system bar can now change brightness and orientation lock, Settings needs to listen to changes to those settings and reflect in the UI. Also fix a problem with restoring state on cancel when the brightness dialog is invoked a second time. Change-Id: I3ada6e77df9a6b013a16061877fcb6b55c94a903
* Save and restore brightness on orientation changes.Amith Yamasani2011-01-031-11/+97
| | | | Bug: 2524213
* Fix for 2284833 : Remove big brightness icon and make it a small one on the ↵Amith Yamasani2010-02-261-0/+1
| | | | title bar.
* Avoid setting screen brightness when initializing brightness dialog in ↵Mike Lockwood2009-10-301-1/+1
| | | | | | | | | automatic mode. Fixes bug b/2226257 (Brightness wonky) Change-Id: Ibe1d06fc907960dcb6a70faa92e6c3a562016865 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Don't restore old brightness when cancelling brightness dialog in automatic ↵Mike Lockwood2009-10-281-2/+3
| | | | | | | | | | | | mode. Fixes a problem that could result in the backlight getting set to a bogus brightness level if you open the dialog and cancel when in automatic mode. Bug b/2015734 Change-Id: I302697e4ebd37afcdbfdd74ba0b1cc9be27ee40b Signed-off-by: Mike Lockwood <lockwood@android.com>
* Remove PowerManager.setAutoBrightness()Mike Lockwood2009-10-141-16/+6
| | | | | | | We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead. Change-Id: I1850549f513e3541b5761aae28ebc615410377de Signed-off-by: Mike Lockwood <lockwood@android.com>
* Restore backlight brightness after restoring auto ALS mode.Mike Lockwood2009-09-161-1/+2
| | | | | | | Fixes b/2121632 Change-Id: I14228a4fd1d599de1e5fdbb3c8b4b3c02a1460ac Signed-off-by: Mike Lockwood <lockwood@android.com>
* Move backlight brightness from HardwareService to PowerManagerMike Lockwood2009-09-151-9/+9
| | | | | | | | to prevent apps from changing the hardware behind its back. Fixes b/2041941 Lock screen flashes the screen very bright before dimming Change-Id: Ic4faa008357fd3d74225ba90f05801c5127fd8c0 Signed-off-by: Mike Lockwood <lockwood@android.com>
* apps/settings: Add auto/manual brightness control to Brightness settingsDan Murphy2009-09-141-1/+57
| | | | | | | | | | | | | | | | | | Add changes to have the ability to turn on and off the automatic light sensing for the device. This is fully configurable and is by default not present. Vendors should override the ALS setting to enable the automatic lighting controls. These changes will add a check box to the Brightness settings menu to give control to the user to allow the device's display lighting to be controlled via the slide bar or the auto lighting system. If the user selects auto then the slide bar will become invisible. Manual mode will present the slide bar to the user. Change-Id: I512c9d5dd72ddd831b33eb8fcd4680e2fc7f786e Signed-off-by: Dan Murphy <D.Murphy@motorola.com> Signed-off-by: Mike Lockwood <lockwood@android.com>
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-1/+1
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+103
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-103/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+103