CRXTeam/android_frameworks_base — pull request #74 by cr3pt (2014-12-17 19:57:28+00:00)
Title: PowerManagerService: Optimize button illumination

The current implementation of button/keyboard illumination is a bit flaky
When the device goes into deepsleep before the illumination time has expired
the buttons stay illuminated all time

The issue is fixed with this commit by setting button and keyboard brightness
to 0 when wakefullness state is not WAKEFULNESS_AWAKE because there is no point
to still illuminate the buttons when device is already dozing or dreaming

Change-Id: I01e66462271df57a6840a9ab9f40a7b51228c736

Conflicts:
services/core/java/com/android/server/power/PowerManagerService.java