Revert "Settings: Heads up meets SlimKat....SlimKat meets Google IO [4/4]"

This reverts commit 6d9eb78786aa398cd0dda9cffebf1b11dafcd41c.

Conflicts:
	res/values/slim_strings.xml
	src/com/android/settings/slim/NotificationDrawerQsSettings.java
Settings: Add HeadsUp setting.

Change-Id: Ib7a59145843bedb16aacc87bf6d3c6da143e8d3e

Conflicts:
	res/values/cm_strings.xml
	res/xml/notification_drawer.xml
Settings: Add heads up blacklist options. (2/2)

Change-Id: I13d849b49bee6f516b591625c2ea2e69dff12885

Conflicts:
	AndroidManifest.xml
	res/values/cm_strings.xml
	res/xml/notification_drawer.xml
	src/com/android/settings/cyanogenmod/NotificationDrawer.java
Deduplicate adapter-of-installed-packages code.

Change-Id: I454ba79eddaaff86233a2cc341f4c8bebe94729e

Conflicts:
	src/com/android/settings/slim/notificationlight/NotificationLightSettings.java
Remove SystemSettingSwitchPreference.

We should not introduce one-off UI patterns when there are plenty of
examples where the same usage pattern (a feature on its own
PreferenceScreen with a global enable switch in the action bar) is
handled differently everywhere else (e.g. daydream, cast display,
blacklist). This makes for inconsistent UX.
Also, there are discoverability issues: As there's no other case of a
preference with an embedded control widget opening another preference
screen, users won't expect to find another screen behind it.
Additionally - but entirely subjective - the control looks plain ugly,
as the preference padding is too large for the large switch.

Change-Id: I61284e961babefa3748102b05055fb1d03b079b0

Conflicts:
	res/values/cm_strings.xml
	res/xml/notification_drawer.xml
	src/com/android/settings/cyanogenmod/NotificationDrawer.java
Hide heads up settings and show a notice if heads up is disabled.

This follows a UI pattern used at several other places, such as
daydream, screencast, profiles or blacklist settings.

Change-Id: I5635338ceccae8ba8450284d3078889333fb77c6

Conflicts:
	res/values/cm_strings.xml
Settings: Fix switch state being out of sync.

    - Since QS Tile can also set state of Heads up now,
    we have to set a content observer for the action bar
    switch.

Change-Id: I1c63fd2627a0f823eb6982456e1ed79ab84d1957
Add some system packages to package list adapter.

As we're using the adapter for notification control stuff, we need to
include those packages, too, as they're throwing notifications as well.

Also optimize code a little.

Change-Id: I8829041a535923e3d93d9566e27eb99c48f25abd
Settings: Remove unnecessary padding from HeadsUpSettings.

Change-Id: I823aa97f32049dc6c6baf6c859c47219952fe454
HeadsUp: option to launch in floating window (2/2)

Change-Id: Ibbdbf7957738d2301eacc190a0ab408ce20350b5
Settings: Heads up meets SlimKat....SlimKat meets Google IO [4/4]

**Orignal commit can be found here:
https://github.com/SlimRoms/packages_apps_Settings/commit/b5eacf0b6a89b8531cbbb8693ec2e096d719eeba

For detailed explanation see here: https://gerrit.slimroms.net/#/c/9937/

This patch adds the 4 possible user configurable settings.

1. Enable always expanded heads up notifications.
2. Set heads up snooze time
3. Set timout timer
4. Show updates of pending notifications

5. Add in app info screen a checkbox to enable heads up for the app.
   As another possibility aside the longpress on the notification on
   notification drawer.

Change-Id: I999df799cecb487c502e4a77626445813eeb197f

Conflicts:
	res/values/mahdi_strings.xml
	res/values/slim_arrays.xml