advanced reboot: add soft reboot option

Adds a "Soft reboot" option which restarts zygote, as requested in JIRA
CYAN-3998

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

Conflicts:
	core/res/res/values/cm_arrays.xml
	core/res/res/values/cm_strings.xml
	services/java/com/android/server/power/ShutdownThread.java
ShutdownThread: set soft reboot trigger accordingly

Change-Id: I72bd52aa1492d356e368e8c60897002c1f110172

Conflicts:
	services/java/com/android/server/power/ShutdownThread.java
Move idmap to frameworks/base [2/2]

idmap depends on libandroidfw, so it should go in frameworks/base.
This follows AOSP which moved idmap to frameworks/base back in
February of 2014.

Change-Id: Ice308a5299a69fd1fbc084a7c76a317c7dec3689
frameworks: allow LockPatternView to be rotated

When displaying this view and rotating the screen, mLockPatternUtils has
the potential to be null, but the save and restore instance state
methods depend on it to be initialized. Work around this by checking if
it's null.

Change-Id: I351bd63fefbcb92fffe20dca6a0381a20ac796ea
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: don't show eq tile while casting

Change-Id: I00ae770b572535be9dca61760ad11e5f84fba63d
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: enable equalizer for Wifi display

While the EQ doesn't work while using the Chromecast, using Wireless
display (miracast) still allows for control of the EQ since it's
streaming from the device.

Change-Id: I7322429b39438e66c013456b6f8a3242e333d93a
Signed-off-by: Roman Birg <roman@cyngn.com>
Revert "SystemUI: don't show eq tile while casting"

Does not work as intended.

This reverts commit 72dc45fb1b219aafa1d4b2fe62d144739ae4a552.

Change-Id: Ifd40c70c45b038983145369287a6dae177ac0a4c
Keyguard: Can't enter PIN code when setting the SIM and PIN lock issue

By original design, after unlock SIM PIN, SIM card's state is READY and it
will invoke resetStateLocked() to inflate KeyguardHostView. So there is
only one view be created in mSecurityViewContainer.

Roll back previous solution.
Don't set mSimState before handleSimStateChange() and don't judge
isSecure() to be consistent with the original design.

CRs-Fixed: 661955

Change-Id: Ide872c50e6823bed92720c0c40aa7987207980ed
FB: Volume panel background color && transparency [2/2]

Allow user to specify background color and transparency level
    for volume panel.

PS: color now applies instantaneously after setting the preference.
Change-Id: I23a09d302fe090fe4aed6dd9024c73056d14fba1

Conflicts:
	core/java/android/provider/Settings.java
	core/java/android/view/VolumePanel.java
Themes: Fix native crash in libandroidfw

If a missing attribute needs to be added in somewhere in the middle
of the bag, a segfault would occur because we change curEntry to a
value that is beyond the set's allocated space.  This patch stores
curEntry in prevEntry before changing it's value and memmove uses
prevEntry to index the set.

Change-Id: Ie70f2ad465097c3acf76caa729999c424fb01ee2