FW: Status Bar Hide toggle (1/3)

Adds new statusbar toggle into power menu navbar control.
Tested on maguro.

Patch-set 4: Reverted selected button logic
Patch-set 5: Reverted of reverted :)
Patch-set 6: Added czech translation and RC part
Patch-set 7: Added quicksettings tile and shortcut intent
Patch-set 8: Fixed build errors
Patch-set 10: Some czech translations
Patch-set 11: New icons, changed variable names, fixed show logic
Patch-set 12: Rebase
Patch-set 13: Removed previusly added czech translation of other words
Patch-set 14: Resolved conflicts
Patch-set 15: Finaly reversed active icon in power menu. Move some code due to conflicts
Patch-set 16: Rest of new icons
Patch-set 17: Fixed conflicts
Patch-set 18: Completly rewrite of toggle
Patch-set 19: Reversed toggle active state
Patch-Set 20: Re-do NavBar Toggle in Power Dialog to match
              existing StatusBar Toggle
Patch-Set 21:  Derp - forgot to add drawables
Patch-Set 23: Removed navbar text size dependance

Change-Id: Iafdbac9fb5830762c12ac0d9a6569723f39a64de
Signed-off-by: kecinzer <kecinzer@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/res/values/strings_toggles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/ToggleManager.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
policy: add missing spacer view

Statusbar and toggle views were squished together,
looks like this got left out.

Change-Id: I0a580662fa75d3b430536b6820df9d040eb51384
Signed-off-by: Roman Birg <romanbirg@gmail.com>
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>
It helps to catch the right exception.

Bug: 7238149
Change-Id: I7b60ec44d1d1d5ece8a871cb089f811b611f4a4a
Change boot animation to new logo (static for now)
Boot animation take 2
slight change...
Breaks Expanded Mode Revert "policy: add missing spacer view"

This reverts commit 87dc944d094c88c046ed219c08deb5a456d8b4ef.
Breaks Expanded Mode Revert "FW: Status Bar Hide toggle (1/3)"

This reverts commit 44da4bec590b6942997674b7f5e3949246c6bbb3.
Revert "Breaks Expanded Mode Revert "FW: Status Bar Hide toggle (1/3)""

This reverts commit c551853610e9e7d4e385632a56f017e6fa98c76d.
Revert "Breaks Expanded Mode Revert "policy: add missing spacer view""

This reverts commit aa0b0497288e732c3de39e0ae847834460d78c81.
NavRing: fix icon size

This will add some icon resizing if the app icon is
bigger than the standard icon for the divice density.

Formatting.

Change-Id: I1a816eccd3c77158a0c9c7631c3a7334b4fb3c24
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	core/java/com/android/internal/util/aokp/NavRingHelpers.java
Fix race condition in backlight adjustment.

When configuring the automatic backlight levels, there's a race
condition in setting the lux and brightness settings as the settings
provider doesn't allow storing multiple settings atomically. When
deleting rows, there's quite a high chance of DisplayPowerController
picking up a state where the lux values already have the lower number of
rows, but the brightness values do not, effectively leading to an
ArrayIndexOutOfBoundsException.

Fix that by
- waiting a second of cool-down time until applying the settings and
- adding a sanity check for the very unlikely case that the delay
  between writing both values is > 1 second

Change-Id: I44e41530fc5334aaefc4ab7d3a90542f78fabe0c
JIRA:CYAN-755
Fix statusbar toggle.
Xposed be gone (1/3)
hwui: This code should only be enabled with QCOM_BSP

 * Crashy crashy!

Change-Id: I1a06ac54a8ce2dccbf4a67424b0cbb6e7dd21e8b
Merge branch 'jb2' of github.com:CarbonDev/android_frameworks_base into jb2pa

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java