Settings: make unaccounted and over-counted battery usage configurable

Google disabled it for release builds here:

https://github.com/SlimRoms/packages_apps_Settings/commit/e6793771cedb47aed72f1c64f870b70357746938

well but it is enabled for whatever other type of builds beside the official release builds. That said it should
be a developer option so or so and not build type dependent.

Whatever added an option into developer settings to control it. Default value is false.

That said.....finally no complain about misc battery stat in battery settings xD

Change-Id: I7549b1c796d5d9413b4af5d80a31d6efeaf0352a
(cherry picked from commit f38ac0c1e9e9509cb87e72f32020739fbaa43ad2)

Conflicts:
	res/values/slim_strings.xml
	src/com/android/settings/DevelopmentSettings.java
Settings: : Slim heads up customizations for LP (2/2)

Basically it follows the same idea like we had on SlimKat....see here
https://github.com/SlimRoms/frameworks_base/commit/323ed77c5e5bd6d421beae1f8118eb580be5ecf1

That said there are some differences in this more or less completely recoded feature.

- Moved it into the app policy files
- Enable/Disable on every app (no system apps)  either longpress a notification and an button appears / or in notification app settings
- For now only snooze and heads up timeout configurable....other stuff will follow later.
- fix up some AOSP code for it as well fix some UX inconsitence.
- left swipe dismiss, right swipe put into background, swipe down opens notification drawer and moves the notification into it
  (aosp default behaviour is a big UX disaster....swipe up dismisses it completely and swipe down open notification drawer but heads up stays....first
   happened to me 10000 times accidentally which is really bad and second does not make sense. Hence this change of the default behaviour)

Well and a lot smaller things as usual.

Change-Id: I96c3259ad705b1776c58d2119410cd97d5f6d928
(cherry picked from commit 8016f8850e5cd185d85e254bd2f10470174fc639)

Conflicts:
	res/values/slim_strings.xml
	src/com/android/settings/notification/NotificationSettings.java
Settings: add headsup manifest permission

Change-Id: I26f1a086c73030183488b563a31b60f43e028f69

(cherry picked from commit 7a06aa3248124f89ad9c59fb62a21f2fd6ecaaa9)
Settings: Gesture Lockscreen (2/2)

Changes needed for lollipop

Change-Id: Icf2f5a5cd3474ea325097437bc2956c10e2ae9d7
(cherry picked from commit 3c65bd54bf53ca2ccaf3d1a0498076b570cf300d)

Conflicts:
	res/values/vanir_strings.xml
Gesture panel [1/2]

This includes shortcut picker addition from cm author: Danesh
https://github.com/VanirAOSP/packages_apps_Settings/commit/ed26d12ca6c8b025810b91e4a4fd6010df2d71e0

This adds a gesture panel to launch custom actions.  The panel can be
opened from the navbar or quicksettings panel.  Hardware key binding
support will be added next

Squashed commit of the following:

commit 5c3c770ce764c81d2e8b07c5c621d58d879c88ff
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Thu Aug 28 22:32:33 2014 -0400

    hide gesture menu.. it's accessible from the gesture panel now

    Change-Id: Id39b0f7bc67ebf46c6e1c7f83c746dec327afcb2

commit 7fd93ce683b136941c6a407180d905889792b4c1
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Tue Aug 26 18:29:49 2014 -0400

    QS: add Gesture panel tile

    Change-Id: I6ecb534815198204467f0bb8020640a5727b7ba5

commit b156a65dacb9579e4d588e2f870abfe3b111e9c7
Author: PrimeDirective <activethrasher00@gmail.com>
Date:   Mon Aug 25 22:26:14 2014 -0400

    Add gesture panel support

    currently only used for the navbar, will be moved to vanir actions and
    made into a QS tile and as a bindable action for hardware button devices.

    Thanks to chameleonOS for the gesture activity creater code this is based on

    Change-Id: Iacd509fa337d67b652b13ee6bc3b26ec1686c02a

Signed-off-by: DHOMD <DHO@dho.im>

Conflicts:
	res/values/colors.xml
	res/values/vanir_strings.xml
	res/xml/system_ui_settings.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/cyanogenmod/SystemUiSettings.java
	src/com/android/settings/quicksettings/QuickSettingsUtil.java

Conflicts:
	AndroidManifest.xml
	res/values/custom_arrays.xml
	res/values/custom_strings.xml
	src/com/android/settings/Settings.java
	src/com/android/settings/androidx/HomeButtonSettings.java

Change-Id: Ia4bbe4128c51768e52d94d2fd9c5db6df9884f84

Conflicts:
	AndroidManifest.xml

(cherry picked from commit bab4730e165df215e4552277f0c438a5e06ee075)

Conflicts:
	AndroidManifest.xml
	res/values/colors.xml
	res/values/vanir_strings.xml