Frameworks: hw key rebinding. Allow virtual keys to preload recents

Apps like LMT or similar which send hw key events as virtual key
cannot load new recents right now due of missing proper preload.
Well it was before as well broken the old recents was just not that
strict then the new one....but it should be due that this was one of the
main reasons why the old one was buggy. Bad preloading

whatever fix it and simply allow virtual keys which fire app switchter
key to fire a recents preload.

Change-Id: I09b96b50894af8a91c261e17c736a66ca377952d
Revert "Fixing Recents (WIP)"

This reverts commit 76544b5f537817db6eb0bd2a36eaa70a96d9ed9b.
Revert "Revert "AOSB Recent App iPhoney UI""

This reverts commit 54ae81d84b1262550303e6454672d9b739cef9eb.
SlimRecent: Make it optional [1/2]

PS1: add toggle button between AOSB && Slim Recent
PS2: don't run slim controller if not enabled
PS3: check for correct home listener button

TODO:
Disable Home Longpress
ShutDown Default recent service if slim enabled

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fix recents switcher
	modified:   core/java/android/provider/Settings.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
audio: Add overlay to fix analog docks.

Of particular interest to devices using libhardware_legacy and
affected by commit 5a484b753cc72d6a50c1dd3bbf68b3403c741a3a: http://goo.gl/rVR1Z
which restricted the routing of AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET
to docks using FORCE_ANALOG_DOCK cases. The EXTRA_DOCK_STATE_CAR case is
returning FORCE_BT_CAR_DOCK, preventing the dock audio from routing properly.

Add an overlay option for overriding to FORCE_ANALOG_DOCK.

Change-Id: Ib7d70c242aa6f537ea5d65098ceb2c591662d8bb
Fix fatal exception due to missing looper for current thread.

While creating handler for the thread, there was fatal exception getting
thrown because the present thread does not have a looper. So passing the
applications looper to be used , while creating the handler to avoid this
exception.

Change-Id: Id2e3ed61f5691c8319eb7bc20ad970eb6758e765
(cherry picked from commit f5d1769b4357fb8d86fc31f7115b55b567a20ed1)
(cherry picked from commit d0a7c5833b90fe4d8fe8f968b53a7028720ffd8c)
Revamp default thumbnail

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/Recents.java
AOSB RecentApp : Add HTC Reflection Effect

PS1: support multi resolutions , hdpi, xhdpi , hdpi

PS2: generte small thumbnail to save memory in low resolutions

PS3: disable reflection effect if enable custon recent (slim)

thanks for Marc Landis from AOKP for the idea from 2 years
i just saw it when it suggested by liquid0624 my friend!

Stack help too :
http://stackoverflow.com/questions/22111468/thumbnail-reflection-with-drawable-instead-of-bitmap

Signed-off-by: hany <hany.alsamman@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Recents: Google Recents

Featuring:

* Mr. Jingles - when you fully wiped everything off from recents, you'll have mr. jingles jiggling for you!
* More Google Now look alike

Changelog:

PS1: Inital Animation Release, drawables kanged from Google+ http://www.youtube.com/watch?v=Iff1yGtvooo
PS2: More improvements, oneshot=true, so it won't loop
PS3: Make it Google style, WHITE! (I may need user's feedback, something i feel the hate beyond us.) http://www.youtube.com/watch?v=4cE75HbPO-Q
PS4: Lighter white transparency at the background, used lighter gray context
PS5: Clear button, colored
PS12: Fix landscape layout
============================================
AICP PS1: background back to black ;)
AICP PS2: attempt to get a working darkswitch implementation

To-Do:
maybe add the possibiltiy to change between black and white according to dark
switch position

* Change Clear-All drawable to something more recenty like

Change-Id: I2ecac931bad9f1f393e1d98a17c59b8015a3fc57

Conflicts:
	packages/SystemUI/res/layout/status_bar_no_recent_apps.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
fix npe casuing AD to crash on some devices
fix my derp
	modified:   core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
Remove extra text style
Status Bar Color [1/2]

Change-Id: I7c66b9b8bc0d733141b28d78324986ad6a27dac2

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/wm/WindowManagerService.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java
	services/java/com/android/server/wm/WindowManagerService.java
FWB: IME animations (1/3)

Original from here:
Keyboard Animation https://github.com/zst123/XuiMod/commit/975cd531a9a847769b2af306495643a55ec44aaa
thanks to zst123 for patches

Patch destiled from here:
https://gerrit.omnirom.org/#/c/4251/37

Change-Id: Ie530898e851f1ffb289a290597f534f662c08847

Conflicts:
	core/java/android/inputmethodservice/InputMethodService.java
	core/java/android/provider/Settings.java
	core/res/res/values/arrays_custom.xml
	core/res/res/values/symbols_custom.xml
FWB: Custom scrolling values 1/2

ported/modified from https://gerrit.omnirom.org/#/c/4251/
originally written by Yanuar Harry <ai.the.smarties.physics@gmail.com>

AICP:
PS2: fix build
PS3: Use default values as defaults

Change-Id: I7f23fe736507f836137c5d6dc0b5fd2ad4a95462

Conflicts:
	core/java/android/provider/Settings.java
Frameworks: Port BatteryBar (1/2)

{x} Adds Battery bar with following features:
{x} location set
{x} color
{x} aligment
{x} thickness
{x} charging animation

Change-Id: Ie9a168121dc569ec3af068a4bda6b46a4e896b2d

Frameworks: update battery bar default color to match kitkat ui (1/2)

Change-Id: I4fc0b51abb29ac0a9f0b86e4d0ad3519f697b0f6

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/res/layout/navigation_bar.xml

Conflicts:
	packages/SystemUI/res/drawable/ic_recents_clear.xml
	packages/SystemUI/res/layout/navigation_bar.xml
Implement new-ER ChaOS sidebar / Add ChaOS labs

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/app_sidebar.xml
	packages/SystemUI/res/layout/notification_shortcut_item.xml
	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/res/values/custom_dimens.xml
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/AppSidebar.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/ose_dimens.xml
	packages/SystemUI/res/values/ose_styles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Turn advanced devices and file sizes on by default

Tired of turning them on every flash
Revert "Implement new-ER ChaOS sidebar / Add ChaOS labs"

This reverts commit 7dd0d6a6779a1f12c5d3604fabaf85e995c4fe60.