Advanced PowerMenu

rebased by Ayysir <dresadd09691@gmail.com>
===

[*] screenshot and fastboot
<author> <drcmda>

[*]Remove safemode reboot option

Duplicated option, holding shutdown option is aosp way
<author> <D4rKn3sSyS>

[*]New reboot dialog

Nice icons and more options. Not hardcoded, used typedarray.
Credits to FNV for the original commit and safe mode drawable
<author> <D4rKn3sSyS>

[*]PowerMenu reboot

Based on Cm implmentation original author unknown
Change-Id: If478247694f2b4ae7ff4f02daeb0b4a655181751
<author> <aaronpoweruser>
Global actions cleanup

Also include spanish translations

Patchset 2: Fix build
Patchset 3: Add message to confirmation dialog
Patchset 4: More consistency with the system

Change-Id: I09bf56374a5ba9a875b94a53845be99a347417dc
Framework: Show advanced reboot menu only if device is unlocked

The advanced reboot menu will only show if the device is unlocked.
Otherwise
the reboot entry will allow the user to simply reboot the phone.

PS2: Reverted changes done to
core/java/android/view/WindowManagerPolicy.java
PS3: Removed tmp file which was created by gedit..
PS4: Only show reboot options if unlocked or not a secure lockscreen

Change-Id: I6f98eca87fa392d2f9aa918f2d3343d1489fa5fd
Signed-off-by: Parthipan Ramesh <parthipan.ramesh@gmail.com>
GlobalActions: Fix Airplane Mode on/off issue

Issue: Unable to turn off Airplane mode from power button
       after phone reboot

Fix: Initialize mHasTelephony before the PhoneStateListener is
     registered to the TelephonyManager so that correct value
     of mHasTelephony is reflected when onServiceStateChanged
     callback is called.

https://android.googlesource.com/platform/frameworks/base/+/c3b7e6fd44593c3974e989d8ccf2097b4471b2b7

Bug: 13697360
Change-Id: Ide8afd9c16ea90b98b5912dbff440c5fd67b178d
Signed-off-by: houst0nn <houstonn@gmail.com>
GlobalActions: Fix extremely broken indenting, Ty BigBrother1984