minor fix notification panel animation fixing
Solve three memory leaks related to PatchCache

A Patch can be fairly large, holding bitmap data, but
is also frequently leaked which adds to the severity.
The feature is used in many important processes such
as Home, SystemUI and Chrome.

The following leaks are solved:

1. The Patch itself was not always freed.
PatchCache::removeDeferred() can mark patches to be
cared for by PatchCache::clearGarbage(). But
mCache.remove() would only destroy the container
and the pointer, not the Patch object itself.

2. The vertices stored in the Patch at Patch::createMesh()
would always leak. The empty/default destructor in Patch
would not properly destroy "vertices" since it's just a
pointer.

3. A BufferBlock that's added to the mFreeBlocks
in PatchCache could leak. The leak happened when a
patch later needed the entire free block, because the
object was removed from the list but never deleted
in PatchCache::setupMesh().

Change-Id: I41e60824479230b67426fc546d3dbff294c8891f
hwui: Fix a sporadic crash seen during CTS runs

 * It's possible (due to race conditions) that a patch might be
   scheduled for removal twice. Just print a warning and continue
   instead of asserting and crashing.

Change-Id: I42865f6717816a743cc49ba15b839e6c3b57ed83
SystemUI: ES translations

Change-Id: Ib4a0aeed13d013f4dc97506bab4fdd6e90d9a586
SystemUI: FR translations update

Change-Id: I258a567f597203d03e30077a18df72c8b57f2716
Add ADB over network tile: italian translation

Change-Id: I86de80104b2abe5ba4c6711efb5e3deea7977ce5
fb: translation - RU

I340846a171571a7b61d2c68f2a6875794be5d5b2

Change-Id: Ib2c9d441ac0b272d4bc5a0a66cdac977a60171e4
System UI: PL Translations

fixes and improvements

Change-Id: I91e86ee553e18a283229c079d53765db9947cfbe
Revert "PhoneWindowManager : bring inline with Slim handling of volume wake and cleanup"

This reverts commit 7e8461c1a8e9f7386f39e6205af470c47dccc47b.
Floating window : Lost in merge
frameworks/base: add SmartCover support

config part:

https://gerrit.nameless-rom.org/#/c/7597/

Change-Id: I1e196eeffd0b83d7445c2394648649939b67c6f4

Conflicts:
	packages/Keyguard/res/values-af/cm_strings.xml
	packages/Keyguard/res/values-ar/cm_strings.xml
	packages/Keyguard/res/values-ca/cm_strings.xml
	packages/Keyguard/res/values-cs/cm_strings.xml
	packages/Keyguard/res/values-da/cm_strings.xml
	packages/Keyguard/res/values-de/cm_strings.xml
	packages/Keyguard/res/values-el/cm_strings.xml
	packages/Keyguard/res/values-es-rXA/cm_strings.xml
	packages/Keyguard/res/values-es/cm_strings.xml
	packages/Keyguard/res/values-et/cm_strings.xml
	packages/Keyguard/res/values-fi/cm_strings.xml
	packages/Keyguard/res/values-fr/cm_strings.xml
	packages/Keyguard/res/values-hu/cm_strings.xml
	packages/Keyguard/res/values-in/cm_strings.xml
	packages/Keyguard/res/values-it/cm_strings.xml
	packages/Keyguard/res/values-iw/cm_strings.xml
	packages/Keyguard/res/values-ja/cm_strings.xml
	packages/Keyguard/res/values-ku/cm_strings.xml
	packages/Keyguard/res/values-lt/cm_strings.xml
	packages/Keyguard/res/values-nb/cm_strings.xml
	packages/Keyguard/res/values-nl/cm_strings.xml
	packages/Keyguard/res/values-pl/cm_strings.xml
	packages/Keyguard/res/values-pt-rBR/cm_strings.xml
	packages/Keyguard/res/values-pt-rPT/cm_strings.xml
	packages/Keyguard/res/values-ro/cm_strings.xml
	packages/Keyguard/res/values-ru/cm_strings.xml
	packages/Keyguard/res/values-si/cm_strings.xml
	packages/Keyguard/res/values-sk/cm_strings.xml
	packages/Keyguard/res/values-sr/cm_strings.xml
	packages/Keyguard/res/values-sv/cm_strings.xml
	packages/Keyguard/res/values-th/cm_strings.xml
	packages/Keyguard/res/values-tr/cm_strings.xml
	packages/Keyguard/res/values-uk/cm_strings.xml
	packages/Keyguard/res/values-zh-rCN/cm_strings.xml
	packages/Keyguard/res/values-zh-rHK/cm_strings.xml
	packages/Keyguard/res/values-zh-rTW/cm_strings.xml
	packages/Keyguard/res/values/cm_strings.xml
	packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
DERP
Smart Cover: make the weather awesome

1) change the imageview to a textview
2) load our custom typeface and apply it to the textview
3) query our provider for the condition, which is a XML code
4) apply the xml code to the textview, which transforms into a beautiful
   reflection of the current weather condition
5) call it magic

Change-Id: I9079606cbfae3f26ab9722427ea855be0e605fcc

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardSmartCoverView.java
Smart Cover: update appearance

move battery and weather icons to the top right
this frees some space on the bottom and matches smaller smart covers better

Change-Id: Ic77e08b1ef0d8b1e4a8b91f73742d6548cad88a5
smart cover: reduce space on top

Change-Id: Id0461c07714d9e50a8be8dbefcfe06393fb0317a
smart cover: change left and right padding of the content

Change-Id: Ib76a3fa62bf020448faed722c17efe5939045643
smart cover: reduce textsize of the clock and status lines to fit better

Change-Id: Ifca8364e1b76c88484c4197ee590f5923061ab77
(1/2) Base: allow to disable smartcover

Change-Id: I830928794fdfc1c42acc381458603b3554b94155

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
Update getBoolean functions with multi-user support
policy: respect FLAG_TURN_SCREEN_ON flag with device flip covers

If an application uses WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
and the device supports covers and the cover is closed, then after the
screen would turn on due to this flag, it would immediately be turned off
because PhoneWindowManager thinks the cover is closed, so it puts the device to
sleep.

Respect this flag and do nothing if it is detected.

Change-Id: I7eb36ce676730e47c551518e214b08561c401ea5
Signed-off-by: Roman Birg <roman@cyngn.com>