Update brightness slider code from aokp

and fix a race condition in the event handling

Squashed commit of the following:

commit b2fb70e86a410c49abe9d058fe61fd3dbafd7ca8
Author: Roman Birg <romanbirg@gmail.com>
Date:   Thu Nov 22 14:03:58 2012 -0600

    SystemUI: re-implement statusbar brightness slider

    Change-Id: I96db3d8f40adf3726f4140c3ad3a7122e0ad6add
    Signed-off-by: Roman Birg <romanbirg@gmail.com>

commit 3ce32b8ab061406ded11090adfb7c6f780a718ca
Author: nuclearmistake <nuclearmistake@gmail.com>
Date:   Sat Dec 21 12:20:49 2013 -0500

    Revert "systemui: add brightness slider 2/2"

    This reverts commit 34233ec666fc91c15e9755d493eb6cf1e49b0ced.

Change-Id: Id12a55f2a93cec9553509b9ff6c35d898264cec4
Revert "Screenrecord: Create the Screenshots directory if it doesn't exist"

This reverts commit 32fecd9d1dd7cc51c5e70609fd80119360ad9c8c.
Revert "base: Add a key combo to start/stop video recording"

This reverts commit 4d5f161bde18a5a682295f024128f8f24c5b99f5.

Conflicts:
	packages/SystemUI/res/values/bk_strings.xml
Add native java screen recorder [1/2]

This is based on the screenrecorder binary found in frameworks/av.
It has been converted to a native library with the necessary jni
hooks for interfacing withit via a ScreenRecorder java class.

Volume up + power chord is used to start and stop recording by
binding to the service found in the ScreenRecorder app:
https://github.com/ChameleonOS/android_packages_apps_ScreenRecorder

PS1:
Clean up white space.

PS2:
Fix naming convention for state field.

PS3:
Rebase

PS4:
Post mScreenRecordTimeout with 1000 millisecond delay instead
of 10000.

PS5:
Send record screen broadcast instead of using the service
directly.

PS6:
SCREEN_RECORDER_FRAMERATE should be SCREEN_RECORDER_BITRATE

Change-Id: I5b7af9b4b4f24a8c54ac0f9dcb36ace16672e2cf

Conflicts:
	core/res/res/values/vendor_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Add global action for screen recording. [1/2]

PS4:
Send record screen broadcast instead of using the service
directly.

Change-Id: Ie6d4655b074992075df0060d23c758f2af06387e
Signed-off-by: Scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/vendor_strings.xml
	core/res/res/values/vendor_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	core/res/res/values/bs_strings.xml
	core/res/res/values/bs_symbols.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java