settings: Auto-brightness levels shouldn't fill the screen

On tall displays this ends up with a lot of useless padding
in the list.

Change-Id: I998b86ec12d531cf1db08db7d9c23d12d8641730
Deduplicate adapter-of-installed-packages code.

Change-Id: I454ba79eddaaff86233a2cc341f4c8bebe94729e

Conflicts:
	src/com/android/settings/notificationlight/NotificationLightSettings.java
	src/com/android/settings/profiles/AppGroupConfig.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/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
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 : Use split action bar when entering profiles externally

Change-Id: I2a93ea98d73d76cdc277cdf4f3a15bb5c4c4d9f4

Conflicts:
	AndroidManifest.xml
Settings: Remove unnecessary padding from HeadsUpSettings.

Change-Id: I823aa97f32049dc6c6baf6c859c47219952fe454