Keyguard: smooth background change derp fixes

no idea how this could happened. Cleanup, fixes and updates (thanks kyril)

Change-Id: Ia0e4d0000db72b5cdb6fede03791805e34fa311d
Revert "SystemUI: update internal state right after hiding transient bars."

This reverts commit 0494668f6e4be73762271be87d1986f34d873bec.

Change-Id: Ic54a4ea259bb1fe691bd4986b8a9e53e005f050a
PhoneStatusBar: fix massive surface redraws due of animation race

the wifi/carrier label is animated from AOSP via an alpha animation. Problem
is that we quiet often call this on other animations and this will end in a
animation loop which forces massive surface redraws. Whatever to avoid this
do it like for notification shortcuts and set directly the alpha value which
look so or so better in the whole animation.

As well a small code cleanup

Change-Id: If620db28d9c38ce3adeeef59fdf65c6394d45f11
UsbDebuggingManager: Fix multiple NPEs toggling USB debugging

Change-Id: I7ac039fe51a32d35ef00eaa71accb85cd57d4d8a
Signed-off-by: atl4ntis <atl4ntis@gmail.com>
Don't rely on gcc extensions

Variable-length arrays of non-POD data types are a gcc extension
not currently supported by clang.

Change-Id: I9cd1aed742ac70e642771ff455582727fbafaec2
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Fix memory leak in PatchCache

Patch object should be deleted when removing its corresponding
cache entry from PatchCache.

Change-Id: I8dfd7f557f6e5c6e9a9c04ba915372790e6f34f5
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>
Add explicit close of Scanner input

The UsbDeviceManager is using a Scanner to identify
the ALSA card/device numbers to use for USB Gadget
audio, with a FileInputStream as its input.

Since FileInputStream implements the Closeable interface
it provides a close() method that should be explictly
called in order to close the stream source and release
any system resources that it might hold.

Change-Id: Ia0ff86d1f3cdf8916becec9c8603915dcbf4d2c8
fb: fix multiuser bug in vibrator service

This value can be used by a 3rd party application. This would
result in a crash like it is now. Assign the correct userid
category to resolve that

Change-Id: Id42780ffe2f10f89788af4af0b887142de79fa34
Add Long-Click to Preference Tile

This will open the add tile activity like it was before in JB

Change-Id: Id1ac8f0fd18f7f2dffca56e7edf857536142a6ce
fix remaining blue dialog dividers

Change-Id: I0b4d2d0706f3393933e40d9c70b62aa3c9b68ed5