SystemUI: NL translations

Change-Id: I04681c3b81fcd866e9ddeade4ef0be0d12c90495
(cherry picked from commit 409de6ba350a3843838c24ed754156d8b6d757ec)
SystemUI: NL translation

Change-Id: Ie970c8df3c033c1c1db09313c323cb682d5d363e
(cherry picked from commit 8739d95f87b5320d657b5aa308cba5679947ba07)
Keyguard: smooth background change derp fixes

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

Change-Id: Ia0e4d0000db72b5cdb6fede03791805e34fa311d
(cherry picked from commit 008d115104cb56fd41f8f708ba79d0b9d28c00f7)
Revert "SystemUI: update internal state right after hiding transient bars."

This reverts commit 0494668f6e4be73762271be87d1986f34d873bec.

Change-Id: Ic54a4ea259bb1fe691bd4986b8a9e53e005f050a
(cherry picked from commit 7fbfd09ef492b558213aff1bb7a166b4923cd6c4)
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
(cherry picked from commit c5940f536b303653e21467b116301b3d9d7fc3b5)
UsbDebuggingManager: Fix multiple NPEs toggling USB debugging

Change-Id: I7ac039fe51a32d35ef00eaa71accb85cd57d4d8a
Signed-off-by: atl4ntis <atl4ntis@gmail.com>
(cherry picked from commit c97d5268dd207f4ce1721f6b5714039341162e5d)
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>
(cherry picked from commit 6ad7a565bc5a582491bf79f17932b0455b1f0fc0)
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>
(cherry picked from commit 1f826f3bce0ea75762a6d6c407b0c979d6b5fc32)
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
(cherry picked from commit 9f651a09ce7b2f4304f689013c634a6626c21f72)
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
(cherry picked from commit d9e11c5e15aac57c854628cb726864ef36d924d5)
Add Long-Click to Preference Tile

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

Change-Id: Id1ac8f0fd18f7f2dffca56e7edf857536142a6ce
(cherry picked from commit 514ff923f49ac913f5f50add56920dc4f7be7f18)
base: added national roaming for ONO in spain

http://forum.xda-developers.com/showpost.php?p=48816196&postcount=21

Users of ONO in Spain (MCC 214 MNC 18) will roam on Movistar (MNC 07)

Change-Id: Ia8b7873dc647fb1a857523b9c621bccc7a66e516
(cherry picked from commit 9adf653552f467eb6eeaaa174a3f356aa6aa2a4c)
Frameworks/Base: CS translation

- fix for fcs of SystemUI

Change-Id: I81bba6339091cb023f44ee518ac6aab66fd9337b
(cherry picked from commit 014a738f19a3688ead09bfca26fc256ac442c8de)
fb: make QS again rtl aware

we removed on first version the possibility to respect rtl
add it back to be aware.

As well remove the try to fix the tablet on first boot landscape problem
It actually did not fix the problem.

Change-Id: Id71e1d4865bb84831a58813a9efdf47a2f96a1f8
(cherry picked from commit b987ffcd48bd67c9772f01ee95800e9ed9909d16)
QS: fix wrong measurement on 4 or 5 tiles per row on settingspanelview

Issue was only visible on devices which have settingspanelview (tablets - not flippable)
on boot up on landscape and had 4 or 5 tiles per row set. Problem is that due we have
the same layout situation like in portrait on this devices that the layoutparameter
height needs to be calculated in landscape as well.

Solve it with forcing (on only settingspanelview devices) the calculation on landscape
as well

Change-Id: Ib87485e0892abe798006ba5ffaaf5061d560afd6
(cherry picked from commit b1ea249a9c2f1859b52016dced12e090e542704e)
Cursor leakage due to cancellation signal

If a query call was cancelled, the cursor adaptor might leak. The
adaptor is now closed if any exception is thrown during query.

Change-Id: Ic4c2edeaf2fcef56b4ef59484a36d3233aa12dbc
(cherry picked from commit cb69407788fcbe783e7716bb852bf2100cdc9826)
Fix visibility of multiple non-fullscreen activities.

Issue detail:
Assume X, Y are non-fullscreen activities.
 a.Home starts an activity X in task A in application stack.
 b.X starts an activity Y in <task A> or <new task B>
 c.Activity X will be invisible.

How to fix:
Because the function "isActivityOverHome" means an activity is able to see home.
But there may have many non-fullscreen activities between the top non-fullscreen activity and home.
If flag "behindFullscreen" is set, those middle activities will be invisible.
So it should only take care from who is adjacent to home.
Then check two flags frontOfTask(task root) and mOnTopOfHome for constraining the condition.

Change-Id: I60bcea304976414e44835a0a38675aae365e9e19
(cherry picked from commit d70ef46bbaffe3d64d28d79f4ef8e5f68a93b647)
Fix a JNI local reference leak in MediaDrm

A reference leak was found in the subtitle usecase that also
applies to android_media_MediaDrm.cpp
(Code taken from the similar fix in android_media_MediaPlayer.cpp)

Change-Id: Icc4b25e4adc9a600ff4ac99a7a8478bb55a6e348
(cherry picked from commit d13fb1abafe843aa327b3a9f236b25f84709674c)
SystemUI: Always show translucent decor on recents panel

Change-Id: Id3e371f841b065ba6ac7693d96b38504354b4fd9
(cherry picked from commit 37e3883ffff15ab3aaafa6fd844627f5c4e15ff9)
base: added national roaming for Orange in Austria

http://jira.omnirom.org/browse/OMNI-376

Users of Orange in Autria (MCC 232 MNC 05) which is now a subcompany
of 3AT can roam on 3AT (MNC10) and also on t-mobile (MNC03) for 2G

Change-Id: I593c1bdeea3ef712541b4962369a02b2d7c86c5b
(cherry picked from commit 1d778a8da8b8372c38e9555351daccac744acad2)