SystemUI: fix current window minimize animation in recents

This is how it's implemented by default on stock

Change-Id: I07ffd8ab7236782e23fba20057232ca518c0a4d1
Signed-off-by: Roman Birg <romanbirg@gmail.com>
SystemUI: fix long-press navring targets not opening in keyguard

Change-Id: I80d63b7a9b8429d19bcad5a15419c9e72def1f70
Signed-off-by: Roman Birg <romanbirg@gmail.com>
fixes to make wifi priority work

Change-Id: Ia2832f8469808975ddd5d0f5104f9b9dc9ef6f9c
frameworks/base: Increase Zygote preload GC threshold to half the heapgrowthlimit.

Increase Zygote preload GC threshold to half the heapgrowthlimit,
to reduce boot up time.

ps2: add missing include

Change-Id: I6ea0f115e5f96836adec5ba9b796f54e6e898643
fix potential memory leak

use fclose() before return.

Change-Id: I3ed193464cc0dc90e9935ae19162667ad367628b
Fix array index oob in Matrix3f.loadRotate().

https://code.google.com/p/android/issues/detail?id=42860

Change-Id: Idbf18576da3ad5b84b4209147dad34cc2f9044d2
One more fix for incorrect indices.

Change-Id: I283f2f09cd0a17eefed4a763b08df856bbae76b3
Fix potential deadlock between LockScreen and WindowManagerService

If LockScreen is enhanced using SurfaceView/GLSurfaceView,
deadlock problem between LockScreen and WindowManagerService
can occur because of IWindow.resized() callback.
And it must lead to watchdog and reset.

IWindow.resized() callback is one-way function so calling resized()
callback of a remote IWindow object is never blocked.
However, calling resized() callback of a local IWindow object
(LockScreen is running on the same system_server process)
is always blocked until resized() callback returns.
Because resized() callback of SurfaceView/GLSurfaceView can lead to
WindowManagerService.relayoutWindow() call, deadlock can occur
between relayoutWindow() and performLayoutAndPlaceSurfacesLockedInner().
(Both functions need locking mWindowMap)

So this patch simulate one-way call when calling resized() callback
of a local IWindow object.

Change-Id: I2a6a5c74ed22d8e6b7a3bea3424ff2879d227105
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
[webkit] Postpone sending scroll message to webcore thread

Post a message to the UI thread instead, to send the
scroll message later. Thus reduce the computation until
currnet scrolling finishes

Change-Id: Iff94af37e9070e63e0797195c7588343ab077bb3
[webkit]Change the thread priority

Change the values used to dynamically modify thread priority to
improve scrolling and pinc to zoom use cases.

Change-Id: I861b3042079058fdd614390c563f23d3cab3acd9
frameworks/base: Fix to avoid crash when the tab is not set from app

As the current tab is not set from application, getChildTabViewAt
returns Null value. Added a condition which checks whether mSelectTab
is set to first Tab.

(cherry picked from commit 9be6755efb149b22c36aa3eb7cc4ffe7e765e08a)

Change-Id: I11c77ca96333e2663d28db1b5fdb46602bd9e745
CRs-Fixed: 321176
Add Power Menu Tile

Click once: Brings up Power Menu.

Long click: Will let you to reboot your phone/tablet.

Ported from:

Rascarlo's (https://github.com/rascarlo/platform_frameworks_base/commit/d9dbc4f6f9bb78683c21f8d28fb35c54cfe323b1)
CyanogenMod (http://review.cyanogenmod.org/#/c/30502/)

PS2: Add Holo Light toggle
PS3: Fix other strings on Screen Tile?
PS4: make another wmfuncs for it's own tile itself, due it will do some breaking, will review this again for code cleanup.
PS5: EMERGHERD, nicer lighter
PS6: Remove swagger strings and xml for the moment
Merge branch 'jellybean' of https://github.com/XYAOSP/frameworks_base into jellybean