Hover: exclude from insecure lockscreen (2/2)

Enable/disable hover notifications from insecure lockscreen

Change-Id: I011cfe31adae06e7ec43e08d9d8286cd9b554540
(cherry picked from commit 981841d01ff1956afe952f179131db23fb573bf1)

Conflicts:
	res/values/cr_strings.xml
DisplaySettings: Add hardware-framework support for color enhancement

Change-Id: I9fa4e7409266ce9e658c93ae32940050cfe437d2
(cherry picked from commit b01e27ba76e2a225a7c880c28120214305bf00b4)
Reset Pattern:
 - If user cancels while creating new pattern, old pattern is restored

Change-Id: I55955b1ffadca2ba712c40c7d443c4fc4b0f528c
(cherry picked from commit 19a428b8b8b26a98657e5a42355f2fec4b9640cf)
Settings: Add heads up blacklist options. (2/2)

Change-Id: I13d849b49bee6f516b591625c2ea2e69dff12885

Conflicts:

	src/com/android/settings/cyanogenmod/NotificationDrawer.java

(cherry picked from commit 6168f962f0d2fd1b50bd95ffb241c1ebebadb202)
Deduplicate adapter-of-installed-packages code.

Change-Id: I454ba79eddaaff86233a2cc341f4c8bebe94729e
(cherry picked from commit 6dbcae4bfad2efb0f751374a04f64af48ad1e721)
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:
	src/com/android/settings/cyanogenmod/NotificationDrawer.java

(cherry picked from commit eab982b41c99e649c6e766edb0f857e34f3e0961)
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
(cherry picked from commit aa9898fd868bf8985c2b221a7743b13730729279)
Settings: Add heads up quicksettings tile. (2/2)

Change-Id: Ib1db69671d9f5c2c6dfa019739674fee50df9340
(cherry picked from commit bc3fe3bf7d90c19e57bbd72519aeded53540e661)
Fix build

Add back required code due to eab982b41c99e649c6e766edb0f857e34f3e0961

(cherry picked from commit 565663be28cbe76d00ab091f239be6d0f1ab1c8c)
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
(cherry picked from commit 33ed236a7dd8778866ac67f8759caf88201d72e0)