AOSB Recent App iPhoney UI

PS1:
Use CM RecentsHorizontalScrollView

PS2:
Remove commented out line and add method descriptions.

PS3:
Persist locked tasks.

PS4:
Use persistentTaskId.

PS5:
Fix landscape layout

PS6:
Check NavBar Height size Set Clean Image layout

PS7:
Fix UI animation

PS8:
Add pressed drawables

PS9:
Apps can be locked and unlocked from being clearable in
the recents panel by selecting the option in the popup
menu when long pressing the item

thanks for: CM Team , wfmtooopa , 0xD34D

Signed-off-by: hany <hany.alsamman@gmail.com>
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/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
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
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

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
fix npe casuing AD to crash on some devices
Remove extra text style
Fix tracking of broadcast reference count

Decrement the mBroadcastrefCount when an element is
deleted from mTriggeredUids list. And in failure case
reset mBroadcastRefCount to 0.

Change-Id: Id002bb7a8439ef93eabe031bf318bd424cefc88b
Bluetooth-OBEX: Reduce the MTU size if default OBEX MTU > 8k

Add a check for default OBEX MTU. If MTU is greater than 8k and
setMTU flag is true then reduce the MTU to 8k.

CRs-Fixed: 613931
Change-Id: I5785fd372241f682427ea3aca0b56ac747820d52
VideoView: Correct a type error in the previous patch

- Correct the type error, change "http://" to "https://"

Change-Id: Id914d669a5c9e1fc73f51f428abdc2249b2d52b9
Bluetooth: Fix for FileDescriptor leakage causing ANR

Fix to close the native fds gracefully. detachFD has been removed
in order to close the native fds

Change-Id: I6afca60bcf6adc82ad6a63d8706267d8ed3bd579
CRs-fixed: 623575
Bluetooth: Added new key to store last connected A2dp Sep type

Changes made to add new key and API to store, retrieve the last
connected A2dp Sep type using Content Resolver.

CRs-fixed: 599358
Change-Id: I2648603cc456921ec1896fb498b602416bd79e72
Frameworks: Ability to Enable/Disable Smart Wake covers

Change-Id: I83d96696fefedc19fc3bce7265a4fcf2d4c894bc
Fix status bar clock actions

Change-Id: I0b7bc60aa8c98f9ac12cc433a7525598891d61be
Show/Hide Battery icon on statusbar [1/2]

Change-Id: I77435f92bfc6aefbf3de85bb07d3d3f708b4a078
Signed-off-by: STELIX <ssspinni@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
reset progressbar defaults to ~ what we had before

Change-Id: I29942eb462bee71299d35f784dfc5b8033d613ea
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

Conflicts:
	core/java/com/android/internal/util/liquid/DeviceUtils.java
	packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.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

Conflicts:
	core/res/res/values/liquid_arrays.xml
	core/res/res/values/liquid_symbols.xml