Separate configuration of auto-brightness for button/keyboard backlights.

Presently, light-sensor based automatic brightness
(config_autoBrightnessLevels) controls both button and keyboard backlights
in addition to the screen backlight.  Unfortunately auto-brightness for
button/keyboard backlights doesn't work well on devices (e.g., epicmtd)
with neither (i) dimmable button/keyboard backlights (so when they're on,
they're very bright even if the screen backlight is relatively dark) nor
(ii) identifiable surface features on capacitive buttons (so they can't be
found if the backlights are permanently turned off).

For these devices, the non-auto-brightness behavior of button/keyboard
backlights, whereby they turn on during screen-on events and user activity
and timeout-to-off shortly thereafter, is preferable.  Thus, this commit
adds a config option, config_autoBrightnessButtonKeyboard (defaults to
true), that when disabled allows for automatic brightness control of the
screen backlight, but retains the timeout-based behavior for button and
keyboard backlights.

Also addressed is a bug that disables the button and keyboard backlights on
screen unlock, and reenables the backlights on touch events so that
capacitive keys may be located.

Additional fixes for button/keyboard backlight auto-brightness.

- Use sensor-determined brightness values when the button and/or keyboard
  lights are on, even if button/keyboard auto-brightness is disabled, since
  users may want to specify a custom brightness setting that disables the
  button/keyboard backlight entirely in low-ambient light situations.

- When button/keyboard auto-brightness is disabled, don't update button and
  keyboard brightnesses immediately if ambient light (the sensor) changes,
  as this may reactivate these lights after they've turned off in absense of
  user activity.  This is a particular problem when watching video or other
  circumstances when the lights are not expected to reactivate.

Change-Id: Idb26aa907ce4b04fb1f52a884e4e5bcb40fe695f
In jellybean the initial patch for "abnormal hardware orientation" does not work anymore as it is not used in setRotation.

Change-Id: I40d34c000d14a040535993a6c911034ab16bddae
Implement additional keycodes

Adds keys for

*) WLAN, Bluetooth, touchpad toggle,
*) brightness down, up, auto and
*) screenshot

as found on docks of current Asus Transformer devices.

Change-Id: I5fa143da3786eaebc1fc2d630bcdccd699256a82
Dispatch keys to a device specific key handler

Injects a device key handler into the input path to handle additional
keys (as found on some docks with a hardware keyboard).

Configurable via overlay settings config_deviceKeyHandlerLib and
config_deviceKeyHandlerClass.

Change-Id: I6678c89c7530fdb1d4d516ba4f1d2c9e30ce79a4
Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpc

Change-Id: I8f891fc9a3ee48845b11b8b77dab33c8d12c0e51
Make Norwegian use HH:MM time format instead of HH.MM.

Fixes bug #3798.
Merge "In jellybean the initial patch for "abnormal hardware orientation" does not work anymore as it is not used in setRotation." into jellybean
Merge "Dispatch keys to a device specific key handler" into jellybean
Merge "Add group qcom_oncrpc and give permissions to ril-daemon and /dev/oncrpc" into jellybean
Merge "Make Norwegian use HH:MM time format instead of HH.MM." into jellybean
Framework: Port CM9 features to CM10 (WIP) (Part 2 of 2)

This commit includes:
 - Power menu Reboot
 - Power menu screenshot
 - Profiles
 - Lock screen Calendar
 - Lock screen Weather
 - Notification light customization
 - Battery light customization
 - IME Selector notification toggle
 - and a few more things to support Settings

I still need to add the attributions of all the original
authors.

Patch set 4  - Fixes Power menu reboot (Thx Ryan Welton for confirmation)
Patch set 5  - Rebase
Patch set 6  - IME Selector notification toggle (Rick C)
Patch set 7  - Add missing XHDPI ic_lockscreen_alarm_activated drawable
Patch set 8  - Preference support for Power Widget (WIP)
Patch set 9  - Add Chrome and Search Lock screen shortcut drawables
Patch seg 10 - Rebase, add Vol Wake support
Patch set 11 - Remove Lockscreen shortcut commit overlap

Change-Id: Ibd63116df90b06f6ce6adb8a0343059bbb999bfb
Merge remote branch 'upstream/jellybean' into jellybean