OSDN Git Service

Don't scale screen brightness by electron beam level.
authorJeff Brown <jeffbrown@google.com>
Sat, 27 Oct 2012 01:22:56 +0000 (18:22 -0700)
committerJeff Brown <jeffbrown@google.com>
Sat, 27 Oct 2012 01:44:51 +0000 (18:44 -0700)
commit356bd4cf2c6db38c61c79e81fd5d9d119d299b8d
treefe9d373b276c560c21d9da40b2aa9510584a6ac7
parent8a6f6a8ca9824891cc841d8c6ebd72a74c7d2580
Don't scale screen brightness by electron beam level.

This change removes the modulation of the screen brightness
by the electron beam level.  The screen brightness remains
constant while the electron beam animation is playing.

Previously we were multiplying the screen brightness by the
electron beam level so as to animate both at the same time.
The problem is that when the screen brightness is already dim
to begin with, it may not be possible to see the electron beam
animation because the modulated screen brightness rapidly
converges on 0.  This may manifest give the appearance of
an abrupt transition or a flash as the screen turns off.

Bug: 7387800
Change-Id: I27b90f0098bbdc3de1d66fad819548d1301405cd
services/java/com/android/server/power/DisplayPowerState.java