services: bring in some hardware keys commits

Summary:
PowerManagerService: Implement setButtonBrightnessOverrideFromWindowManager method

Differs from Android 4.1 (and earlier) implementation in that the
overridden button light still turns off after BUTTON_ON_DURATION instead of
staying on until screen off.  However, button lights are annoying, and
really the purpose of this is to allow apps (e.g., Screen Filter) to
_disable_ the button lights altogether.

Keyboard light: Fix the physical keyboard not light when it's visiable.

Change-Id: I595afd3cb6b422a17ae0f6ec20aa51979db13810

keyboard: adding functional alt/shift lights

This is useful for devices that has QWERTY keyboard
and leds for the Alt/Shift (Fn/Caps) keys, like
htc doubleshot.

Depends on libhardware patch for the light ids:
http://review.cyanogenmod.org/34902

Change-Id: I66ebc2d881438f5b51db77eaa885421e65a7da0d

Keep keyboard lit until the screen is dimmed

Do not use button timeout for keyboard (which is intrusive on QWERTY
sliders). Keep it lit until the screen dims instead of turning it off
like the buttons after 5 seconds. Also consider setting keyboard
visibility as a user activity.

services: turn button backlight off when screen dims

Remove 5 second timeout and make it work like hardware keyboard keys.

Change-Id: I57984feb39070fd2ac38efefa49163552a65c097

Test Plan: If someone else has hwkey device, feel free to check it out. I try to build cfxe at some point to test this on ace.

Reviewers: michyprima, rlasalle15, randall.rushing, synergy, Mustaavalkosta

Reviewed By: Mustaavalkosta

Differential Revision: http://review.codefirex.com/D191