History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
106b1c0d804bcf4b875f987d8f3855f1ff67734a 24-Apr-2018 Fan Zhang <zhfan@google.com> Move brightness color conversion from SysUI to settingslib

The color space conversion logic in BrightnessController is also needed
by Settings app to display brightness percentage correctly. This change
moves the conversion logic to settingslib so it can be shared by other
UIs such as Settings/VrSettings.

Bug: 73810208
Test: atest RunSettingsLibRoboTests
Change-Id: If92f0da2d930fec797902b5d1b3731100e1d0ea4
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
585ff988bbc116f318741f3ed3916ed44558a3fb 13-Apr-2018 Michael Wright <michaelwr@google.com> Convert the BrightnessController to a log scale control.

Currently, the BrightnessController's UI is a linear scale control on
top of a linear backlight control, but humans perceive brightness on a
roughly logarithmic scale. By moving to a non-linear control, we both
give users more fine-grained control over the brightness of the display
as well as a UI that works more intuitively.

Test: manual
Bug: 73810208
Change-Id: I67090ad7c4ced0420314458473c9124cb9c61906
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
fe80061c2412f247d1f77a8268613933b4d06e32 13-Mar-2018 Michael Wright <michaelwr@google.com> Differentiate between automatic and manual brightness in metrics.

We want to make sure the trend for number of interactions with the
brightness slider goes down over time with automatic brightness enabled.
Rather than trying to correlate the setting and this metric, it's much
easier to just use a different metric.

Bug: 74610647
Test: Flash, see what gets logged
Change-Id: I9985de0c665e8d36bbe7416fe70f52098d6c2d50
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
a72faf947f3efe23543d7cead4451641456e6ec9 29-Jan-2018 Michael Wright <michaelwr@google.com> Re-initialize the brightness slider when out of sync.

Whenever the brightness controller stops listening to brightness events,
it could get out of sync and so will animate when next opened and it
re-registers. We want to avoid this animation since it looks odd to the
user so we always re-initialize whenever we might get out of sync.

Bug: 72635553
Test: manual
Change-Id: I3a7e05e18652af33511a5de5a8ebeee01d2f0349
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
eb2bf7d188b28096ae2b933483c121256c0d04ee 23-Jan-2018 yuemingw <yuemingw@google.com> Block brightness slider quick settings when DISALLOW_CONFIG_BRIGHTNESS is set.

Test: manual
Bug: 67628870
Change-Id: I30af889e7758c7ea30fa796138d4ca3fefc6e8e9
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
d846023804ddadcd692666152db420c54594ddb9 16-Jan-2018 Michael Wright <michaelwr@google.com> Slider always represents absolute brightness

Currently the slider represents a gamma adjustment to the brightness
curve when auto brightness is enabled and the absolute screen brightness
when it's not. This is a fairly confusing behavior to most people, so
this consolidates them to a single behavior: the slider always
represents the current brightness and auto-brightness will automatically
adjust it.

This also moves a bunch of the brightness methods from PowerManager over
to DisplayManager, since it's really the DisplayPowerController that's
responsible for determining and setting the display brightness.

Test: atest com.android.server.display.BrightnessMappingStrategyTest
Bug: 69406898
Change-Id: I73b5982809a94cd50d563426a72d7965e923c994
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
8deb67cb64b0cd93be545caf7887a12ed3611841 08-Feb-2017 Craig Donner <cdonner@google.com> Use the Context name to publish and use vrmanager

Bug: 34736524
Test: build
Change-Id: I8aabb4d242fb2378b24dd30a972c382a7f8f4934
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
9c7844cb91b43929d0a86b1c90aa1efb37f5463a 18-Jan-2017 Jason Monk <jmonk@google.com> Work on sysui dependencies

One of the many problems with PhoneStatusBar is that it holds
dependencies for many other parts of SysUI. Fix this by creating
a static method of grabbing dependencies that are global to sysui
this cleans up a lot of chains of interdependence.

Also add easy way to inject mocks of these dependencies for the
purpose of testing.

Test: runtest systemui
Change-Id: Ia0e947faea62d15b665facada47ac9916c99f895
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
3107d29c8f6f40b98533978a7e19e5c328f73d24 21-Sep-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.

This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Test: runtests frameworks-core
Test: Turn vr mode on and change brightness (should remain separate from
normal brightness)

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
7e96654f1b2e7c97f52cdc68d343139a5186d54d 27-Dec-2016 Ian Pedowitz <ijpedowitz@google.com> Revert "Add Brightness setting for VR Mode."

This reverts commit c7e853f51110b9b6893d526f1f7340b2966f928a.

Bug: 33895226
Bug: 30984614
Change-Id: Icca320e02651b7dd7b8db84ab414f41edee32760
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
c7e853f51110b9b6893d526f1f7340b2966f928a 21-Sep-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.

This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
383db5ebcc3a4a615faf249bf4f126f42e80b82e 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
4adee26d9914f9b492d3fb09ff1512b2742dec41 21-Sep-2016 Jorim Jaggi <jjaggi@google.com> Fix missing break

Test: Whether brightness control still works
Change-Id: I4d3c6728b8b407a661cda57bb5666c79126a9d46
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
869dd3a3ae920fb640ee6638179ad64ea782fda0 03-Aug-2016 Winson <winsonc@google.com> Adding support for blacklisting apps from Recents transition. am: fc73eec235 am: 4daa466016
am: 6e35a3d522

Change-Id: Ifa10eb5598f3cfaa5a048438fa50468b45ddced1
c6da82fb9cfd7bfd01c658bcbb19b1a2cbe8dc25 02-Aug-2016 Jorim Jaggi <jjaggi@google.com> Move brightness handling to a background thread

Bug: 30442298
Change-Id: I6650ffe2373cc68dd5a374a54e107913f2e2e093
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
3b0f892c8f38d610679dc9f0aed123e8611a387f 19-Apr-2016 Muyuan Li <muyuanli@google.com> sysui: refactor for extensibility.

1. Refactor the interfaces of the slider out side the ToggleSlider class.
2. BrightnessController now takes in only an IToggleSlider interface instead of
the view.

Bug: 28172423
Change-Id: Iff463a30e149f17795ccaffca66040d64f44a643
(cherry picked from commit 89c0cb853175c66769d287b8d6cf82c7166e0e6e)
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
f6e9228b8a97603d3ceb8f0d61e8d87cf19bd21f 27-Jan-2016 Chris Wren <cwren@android.com> move framework metrics over to new proto

Change-Id: Ie46e946dc787350c15c10aa4385a6b7df7e181a8
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
97b87a99297144e9c3e4a57a444fe1402dee7e4f 23-Jun-2015 Jason Monk <jmonk@google.com> Add metrics to brightness slider

Had to add a way for BrightnessController to know when its the end
of a touch, so that we don't spam the event logs with intermediate
values.

Added visibility to BrightnessDialog as this is what settings
launches.

Bug: 21528168
Change-Id: Ie214b4ddb0c9f9bbe8c4f182f9c59f229963ebc7
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
27a2ce2e425f0a291344bd1d41fbbaf8afa14f0e 02-Jun-2015 Adrian Roos <roosa@google.com> Continuous brightness slider

Changes the brightness slider to have no visible steps
when in auto brightness mode. Also changes mirror
logic to dispatching touches instead of forwarding values.

Bug: 19516826
Change-Id: Ib0233c2dcc6807da96a71d1f5619a117ca2a73bd
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
b7ebbded5f1512c5747acc0f06a42399d7710728 15-Aug-2014 Adrian Roos <roosa@google.com> Fix errors that could lead to brightness flickering

Ensures that changing the brightness doesn't lead to
another write to settings from SystemUI. Also makes
sure that a BrightnessDialog from a background user
is never showing. While we're in there, fix the obsolete
window flags as well and ensure BrightnessDialog only ever
allocates one BrightnessController.

Bug: 16297345
Change-Id: Id95b598b0fa99680072bc160afb00d2cd49f05ca
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
5fd872e8ea44ffcd4fce1d1196736dca4f270508 12-Aug-2014 Adrian Roos <roosa@google.com> Hide panel while changing brightness

Bug: 15408618
Change-Id: Ic1f934f9ddbb582453b4b52a4b4402c71ac79654
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
5a399490c2185ebfd458b1a1d9394f3a68c5fde2 15-Jul-2014 Alan Viverette <alanv@google.com> Use activity for brightness dialog

Also fixes brightness controller failure to unregister callbacks.

BUG: 15512088
Change-Id: Ia665e006d93391d5a66d4ace614660c4e6d2d5b5
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
3f48f46d7e9073edbc4d8613a6dd4d68a37a11b6 08-Jul-2014 Jorim Jaggi <jjaggi@google.com> Update QS header to spec

- Move brightness slider down.
- Make clock bigger when expanded.
- Show date in collapsed state.
- Change size of avatar depending on collapsed/expanded.

Bug: 15865202
Bug: 15381387
Change-Id: I7894edae495b5a2d12b4fe4637a9aa3fd2e58963
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
6d20526adfd18f7347674d61fe784d456b1b7b61 11-Jun-2014 John Spurlock <jspurlock@google.com> Brightness slider no longer displays the automatic icon.

Bug:15414855
Change-Id: I3a1b8e7758e41abd172c20177f42452077bfc7a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
6e2d465b9c8fdf66957264a07c16729ff22fda22 14-May-2014 Adrian Roos <roosa@google.com> Follow up for "A better auto brightness"

Original CL: I62d0695b7da16ffa7a27c465c3b6bc4b1515f9c0

Change-Id: I79c307586c0ba9be275d3920a3805f45b6006ce8
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
daf7d410fc97647f2b3ab4254f73c09c923018de 13-May-2014 Adrian Roos <roosa@google.com> A better auto brightness

Bug: 14927472
Change-Id: I62d0695b7da16ffa7a27c465c3b6bc4b1515f9c0
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
f056e35a34a8846a1d7c7a3fd55b9d69b559a590 11-May-2014 Jorim Jaggi <jjaggi@google.com> Implement intermediate brigthness control on header.

This just reuses the views from BrigthnessDialog. Later, we will move
to a model where we only have one single slider.

Change-Id: Ib8116741802b7de930331648e50ff55fc869d7af
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
de84f0e77ea2bf713d15c290264059a413c2486a 12-Jun-2013 John Spurlock <jspurlock@google.com> Organize the imports in systemui.

To follow android conventions, more importantly to remove the
unused.

Change-Id: I75881718e84360a579a3b02c26489ad250bc9227
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
cd686b5b6d4166b510df8e32138479a9559bc117 05-Jun-2013 John Spurlock <jspurlock@google.com> Migrate systemui Slog calls to Log

Change-Id: Ib6734c85960f06fed646599565b8eeba26b9e98e
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java
0087a14d4b4bcfe57c6f6e36c70eec966088d7bb 06-Feb-2013 Michael Wright <michaelwr@google.com> Add brightness dialog to SystemUI

Change-Id: If31406c9144bb2583876f08dd54b259d1dfa3601
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java