Frameworks: 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

PS
- move it into the observer...method is called to often to call every time
  the settings value for it.

Change-Id: I48ed2e85c462a2e94770b2bc1ad75b1ca40f2304

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Frameworks: Be sure heads up view is attached before removing it

We did not have it in our tests but some user ran into it. Thing is if the
system is disabling notifications for whatever reason and till this time the
view was never attached and the system tries to detach the view on windowmanager
we run into an illegal argument exception.

Fix it with simply checking if the view was attached before removing it.

Change-Id: I0800beed3553815cc529087052138345773b32e4
Remove Slim heads up customizations [1/2]

Revert "Frameworks: Be sure heads up view is attached before removing it"

This reverts commit 45885796bf1a6e0907eb158114c63e3250cfa3d7.

Revert "Frameworks: Only set package name on user heads ups"

This reverts commit eb7564ea15357dad3879c71633c03858f469c898.

Revert "Frameworks: Slim heads up customizations for LP (1/2)"

This reverts commit d28de0b39a1257ee15a140497d4393527252a79e.

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/res/values/strings.xml

Conflicts:
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	packages/SystemUI/res/layout/notification_guts.xml
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/core/java/com/android/server/am/ActivityStack.java
Base: forward port Headsup options (1/2)

-Global on/off
-Blacklist and Do not disturb

Conflicts:
	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java

Conflicts:
	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
HeadsUp: add timeout option (1/2)

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
HeadsUp: Swipe options

-left swipe dismiss
-right swipe put into background
-swipe down opens notification drawer and moves the notification into it

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
HeadsUp: do not show if notification drawer is visible
HeadsUp: fix headsup for incoming calls
Fix Unused Space at Recents When Search Bar is Disabled

Signed-off-by: Yashar Ahmedizadeh <yashade2001@gmail.com>