Secure screenshot and screenrecord

* Partial port-forward of Screenshot toggle
* Creates an android:permission for both screenshot and screenrecord,
  as well as corresponding Intents. This disallows rogue apps to access these
  methods in PhoneWindowManager ( takeScreenshot() and takeScreenrecord() ) and
  hijack our system, by locking them down to System and SystemUI with said permissions.

* This is required for the Screenshot toggle, and reimplementation of screenshot navbar action.

Change-Id: I4adac71a0ce924de96c9a7d495b42ae68441e4ad
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Add screenshot to Power Menu

PS3: Fix whitespace
PS4: Fix order of imports
PS5: Rebase

Change-Id: Ife783d4c0a47b8d24f949d4dd77141038658b21f
Screenshot Toggle

PS 3: Rebase
PS 4: Rebase

Change-Id: Ie5bdd6834a3ce4c2d2fba9bff3cce220b16ada14
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
Screenrecord Toggle

* Secured with secure intent

Change-Id: Ib545d915d961e07f9a22378c8f7e5beccd5b4e1e
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
FW: Power Menu customization

All options can now be set to one of the following:
       * Hidden
       * Showing always
       * Showing always except on keyguard if using secure method

P2: Fix issues, set defaults to match stock, and set mDialog = null when dismissed.

Change-Id: I2f84aa45dcebfcf29800a5c06320da61bb4dfe1c
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
add lockscreen wallpaper (2/2)

Change-Id: I33dcfc0acd59e5cb038ab6b95327911ebb3c0f20
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value

To be able to customize the "WiFi scan always available"
setting we need to set a default value.

Change-Id: I3673f2613ab9b6a947aed7e29d4cc876140c2180
Merge "Secure screenshot and screenrecord" into kitkat
Merge "Add screenshot to Power Menu" into kitkat
Merge "Screenshot Toggle" into kitkat
Merge "Screenrecord Toggle" into kitkat
Merge "FW: Power Menu customization" into kitkat
FW: Hardware rebinding additions

*add kill app to list of available rebinding options
*make longpress rebinding available for back key

RC part: http://gerrit.aokp.co/#/c/15686/

Change-Id: I3f456eefee5620eb7b052f5e0f98ff56988b2ea8
Signed-off-by: Jonathan Steadman <xxwhitehawk@gmail.com>
Navring changes for consistancy and cleanliness

Change-Id: I3c81ef52c14cfc9430d4a648d6b9b37dbd7c485a
Merge "add lockscreen wallpaper (2/2)" into kitkat
Merge "Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value" into kitkat
Ribbons V2

Change-Id: I9c9687cab1b5685b2859ed09228bae132b3500e8
frameworks: Custom System Animations

Allows setting of some system animations.

Current List:

Activity Open
Activity Close
Task Open
Task Close
Task Move to front
Task Move to back
Window Open
Window Close
Window Insta Open
Window Insta Close

Duration Controls

Prevent overridePendingTransition option

Change-Id: If08ec826cc0d5980e6c162bed5e366ab3869158d
Support for JCROM
Merge branch 'kitkat-jcrom' of github.com:JCROM-Android/aokp_frameworks_base into kitkat-jcrom