SystemUI: nav bar menu keys as left and right dpad arrows

ps3: null check
ps4/5: more consistent implementation
	now properly hides on lockscreen if keyboard is
	still up. the arrow keys should also work with any
	navigation bar configuration that we support right
	now

Change-Id: Iba75e8f1b19f299a1b7ff607c33679d9788cd925
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: refactor fast charge toggle

Device trees need to set a path to enable the toggle.
It will not show otherwise.

Moved all file operations off the main thread and use a
preference to save the last state so it persists.

	<!-- empty string to disable, or like: /sys/kernel/fast_charge/force_fast_charge
         it is disabled by default so devices need to add an overlay to enable-->
    <string name="config_fastChargePath" translatable="false"></string>

Change-Id: Ib1465a98893ec8e7854c8b80f8352016ff6248ad
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Fix aliasing and C++11 issues.

frameworks/base: Fix various aliasing violations

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix aliasing violations

Fix violations of strict aliasing rules

Change-Id: Ia83db6a0be18f52e8f274c581c3b42f031b39247
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

frameworks/base: Fix build in ISO C++11 mode

Fix various incompatibilities with ISO C++11:
- Assumption that char16_t is defined to uint16_t
- constexpr usage
- macro constructs that could be interpreted as string literals
- enum typesafety

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Signed-off-by: Evan McClain <aeroevan@gmail.com>

Conflicts:
	cmds/stagefright/SineSource.h
	core/jni/android/graphics/TextLayoutCache.cpp
	core/jni/android_util_Binder.cpp
	core/jni/android_view_KeyCharacterMap.cpp
	libs/gui/SurfaceTexture.cpp
	media/libstagefright/OMXCodec.cpp
	services/audioflinger/AudioResampler.h
	core/jni/android_server_BluetoothEventLoop.cpp

Change-Id: I185b97f07e89bed93b92546bc0fdf895bd0cc92d

Conflicts:

	core/jni/android/graphics/TextLayoutCache.cpp
	core/jni/android/graphics/TextLayoutCache.h
	core/jni/android_os_FileUtils.cpp
	core/jni/android_server_BluetoothEventLoop.cpp
	core/jni/android_view_Surface.cpp

Signed-off-by: Stevespear426 <stephen.k.spear@gmail.com>
audio: add support for ALSA headset detection

- Add new function to process headset detection
  events from the ALSA framework
- Support wired headset and headphone switch events
- Support detection while boot up
- Support headset button

Change-Id: I79665770a75f8f37f27b7b046e5c4be3e7feb89f
Merge branch 'jb-mr1' of https://github.com/AOKP/frameworks_base into jb-mr1
SystemUI: don't add tint to app icons or custom images

Change-Id: Ie5a4e308f10d2045f33b1621eac7870712e5d11f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Themability of battery text type

This allows to themers to change color of text style of battery.

  Patch Set 2: Fix whitespace and pre-existing formatting issues.

Change-Id: Ib9a96672467d45c3723c5b1fa032aca8ebe9a08c
Signed-off-by: kecinzer <kecinzer@gmail.com>
SettingsProvider: add custom quick reply holder

this is required for commit: http://gerrit.sudoservers.com/#/c/4560/

Change-Id: I0609291b78e0b38afbc603cf30ff71ba9d813d8e
Camera: add ISO mode support

Change-Id: Ied2075f950269990d836fc768b2c6c36088d494f
Merge branch 'jb-mr1' of https://github.com/AOKP/frameworks_base into jb-mr1
SystemUI: ram bar and recents performance improvements

PS2: add SettingsObserver to eliminate the need for SysUI restart
PS3: tab derp

Change-Id: Iee304142285757656129ab92542013196615a404
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Merge branch 'jb-mr1' of https://github.com/AOKP/frameworks_base into jb-mr1