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

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

Conflicts:

	res/values/broken_strings.xml
Settings: enable status bar brigthness slider always

we can control now automatic mode as well

Change-Id: I0548eb6359d9db004c639ea4f154f7ce44c3d31e
Settings: add headsup manifest permission

Change-Id: I26f1a086c73030183488b563a31b60f43e028f69

Conflicts:

	AndroidManifest.xml
Automatic translation import

Change-Id: If947131e54fc77842c57575019a978900d9ba6af
Automatic translation import (Authored by andi34 @ SlimRoms lp5.0-caf Commit ID d0836e9603a1c52c5e2fa2fef03bab818e44c219
Settings: remove duplicate string

Change-Id: Ie82e7d2cb9fd4651a89a807a6065c3511ff721e3
Settings: Added a missing FR translation

Google did a bad job.
One french translation about the battery saver is missing into the official Lollipop.

Here's the fix !

Change-Id: Ie26a1993166604414eb4dff55902a80759a3a333
Settings: : add ability to change the color in battery saver mode (1/2)

User complain about the ugly orange....give the user the ability to change the
color in status and navigation bar if battery saver mode is activated.

Especially for you Tylog :D

Change-Id: I37bc2865e6af4ea84cb4b9d254f5e8b1580083a9

Conflicts:

	res/values/broken_strings.xml
Settings: fix landscape layout on color picker

Change-Id: I9ecbb4154a28fb007fb54e9d737d0cd942105174
Settings: Wi-Fi WPS Materialized icon

Both aosp and factory images the icon is not visible

Let's make it visible and materialized.

Patchset: redraw vector and add xxxhdpi versions

Change-Id: I00580cfb719dd955f243b24afd186ee2c8f9cad0
Revert "wlan: Provide runtime option to enable or disable rssi threshold (settings)"

This reverts commit d6b8cbb12629562edad5915a1273f87438215c73.

RSSI threshold parameters are now user configurable.Below are the
parameters.
THRESHOLD_UNBLACKLIST_HARD_5G
THRESHOLD_UNBLACKLIST_SOFT_5G
THRESHOLD_UNBLACKLIST_HARD_24G
THRESHOLD_UNBLACKLIST_SOFT_24G
THRESHOLD_INITIAL_AUTO_JOIN_ATTEMPT_RSSI_MIN_5G
THRESHOLD_INITIAL_AUTO_JOIN_ATTEMPT_RSSI_MIN_24G
Hence reverting the gerrit

Change-Id: If40cc281f8d13a9c3255e4306db45bc3ef4002ac
CRs-Fixed: 757958
Bluetooth: GAP: Handled scan mode during first time BT On

As the discoverability time out concept changed as per the
new design and this code snippet "setting scan mode to
connectable only when endtimestamp is null" is not
applicable.DUT remains in only connectable mode
if user remains in the settings menu.

Change-Id: I7aa2ea7d23c4a47f716e2c0645b2ad73018ada39
CRs-fixed: 714578
Bluetooth: Don't Initiate Connection if UUID not updated

 - if UUIDs are not updated don't initiate profile connection
 - add new profiles to already existing list
 -  don't delete profiles from the existing list

CRs-Fixed: 717840

Change-Id: Id71a5aad59f4004c262f3ad17f34fa0574654170
Bluetooth: Enable Page and Inquiry Scan.

When Bluetooth Setting is in foreground enable both
Page Scan and Inquiry Scan.
Changes made to make device both in connectable and
discoverable if user is in Bluetooth setting menu.
CRs-Fixed: 753990

Change-Id: I2d72ce3192f6b7fa9eb6beb5a175a3e732dac5a8
Bluetooth: GAP: Reset Alias name during virtual unplug

As per this fix Alias name get resetted when hid virtual
unplug initiated from HID device.

Change-Id: Idb1cba447072fd70c21cfecef8776b2baaf730bc
CRs-Fixed: 754689
Bluetooth: Refresh UI after checkbox is Unchecked.

 - Refresh list of auto-connectible profiles when
   Checkbox is unchecked in disconnected state.

Change-Id: Iddca04cbb06262556ea7decb39279df26e358eb6
CRs-Fixed: 758480
Bluetooth: Security: Add Null check during pairing cancel intent.

Added null check, so before posing event we can restrict events,
if cached device list is empty

Change-Id: I458d181abe5eec2497b80b1713ddbc3502b79786
CRs-Fixed: 546364
(cherry picked from commit 7d7222c3e5c1054b4e2f3e59cc40cb182a72b040)
(cherry picked from commit 8ce523155dd030d82c32cf502d317023b017645b)
(cherry picked from commit 938686e749bca911e5f63150223116d1c381da8e)
Bluetooth: GAP: Handled Null pointer deference in unregisterReceiver

Handled Null pointer deference in unregisterReceiver event of
pairing dialog

Change-Id: Ie0d0561cb3c0f09a018e1aeb20579700c6e8d783
CRs-fixed: 761872
Settings App: Fix to resolve NULL pointer exceptions

This fix resolves any NULL pointer exceptions and
Array Index Out of Bounds exceptions seen in
Settings Application code space.

CRs-Fixed: 760115
Change-Id: I8c2b7b8e19d362a5c5789d8693bcd3656c32e38d