HOVER: Options to exclude non-clearable and low priority notifications [1/2]

Change-Id: I0563a5a05f697202d11343451c481d8a150717d5
Master switch to disable Hover [1/2]

Change-Id: I928bf5c42fb4a33109198475cc136bd86f11056d

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

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
HOVER: Option to disable HOVER-Button in StatusBar [1/2]

If the button is hidden, user can activate Hover in the Settings instead

Change-Id: I76e99da7a83b6a5dd35c2965b311009dfc819085
FB: Add color values for ease of TRDS theming

This adds color values that I can use for TRDS theming.  I needed values
for colors that are white when TRDS is on and black when off, and vice
versa. Google is implementing framework public value redirects in the
smali code of several Google apps I'm trying to bring TRDS compatibility
to. This will make it much easier to redirect text colors.

PS6: Remove whitespaces. Sorry 'bout that!
PS7: Remove unnecessary duplicated colors in holodark.
Change-Id: Ia3f21b6891ca59d98b79d3ca6e32f6710d9321f3

Conflicts:
	core/res/res/values/colors.xml
Make sure slashes don't appear in the Quick Recording files

Change-Id: If246b1fa261fd37254d999f651231c9a2211f971
HOVER: Option to only show up in Fullscreen-Mode [1/2]

Change-Id: I913fce9e54fc0c79f0b3406a4173bb4b55fd6e25
Add UUID (re-)scan support for vold-mounted volume (1/2)

Consider the following scenario:
* Using physical primary only storage cofigurations with the sdcard
  daemon
* On first boot, the UUID is plumbed to the framework via vold, but this
  is only done when a volume is mounted (via the extractMetadata()
  function).
* When the framework crashes/restarts, vold does not need to mount any
  volumes (as the sdcard daemon will still be running), which means
  that the UUID is never plumbed to the framework upon restart.
* MediaProvider will continuously crash with an NPE due to the UUID being
  null.

Workaround the issue by adding "scanuuid" to the "vdc volume" command
list, and trigger a scan when the framework detects that a volume is
mounted but the UUID is null.

Change-Id: I01fceadf85dac97fbf19c41eb865abed714fe0f4
Base: Add CM Profiles (1/2)

Autor:    AlvaroOrduna <alvaro.orduna.92@gmail.com>

	modified:   Android.mk
	new file:   core/java/android/app/AirplaneModeSettings.java
	new file:   core/java/android/app/ConnectionSettings.java
	modified:   core/java/android/app/ContextImpl.java
	new file:   core/java/android/app/IProfileManager.aidl
	new file:   core/java/android/app/NotificationGroup.aidl
	new file:   core/java/android/app/NotificationGroup.java
	new file:   core/java/android/app/Profile.aidl
	new file:   core/java/android/app/Profile.java
	new file:   core/java/android/app/ProfileGroup.java
	new file:   core/java/android/app/ProfileManager.java
	new file:   core/java/android/app/RingModeSettings.java
	new file:   core/java/android/app/StreamSettings.java
	modified:   core/java/android/app/admin/DevicePolicyManager.java
	modified:   core/java/android/app/admin/IDevicePolicyManager.aidl
	modified:   core/java/android/content/Context.java
	new file:   core/java/android/preference/ListPreferenceMultiSelect.java
	modified:   core/java/android/provider/Settings.java
	modified:   core/java/com/android/internal/widget/LockPatternUtils.java
	new file:   core/res/res/drawable-hdpi/ic_lock_profile.png
	new file:   core/res/res/drawable-mdpi/ic_lock_profile.png
	new file:   core/res/res/drawable-xhdpi/ic_lock_profile.png
	modified:   core/res/res/values/kang_strings.xml
	modified:   core/res/res/values/slim_symbols.xml
	new file:   core/res/res/xml/profile_default.xml
	modified:   media/java/android/media/AudioManager.java
	modified:   media/java/android/media/RingtoneManager.java
	modified:   packages/Keyguard/src/com/android/keyguard/KeyguardSecurityModel.java
	modified:   packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
	modified:   packages/SettingsProvider/AndroidManifest.xml
	new file:   packages/SettingsProvider/src/com/android/providers/settings/ProfilePickerActivity.java
	modified:   policy/src/com/android/internal/policy/impl/GlobalActions.java
	modified:   services/java/com/android/server/DevicePolicyManagerService.java
	modified:   services/java/com/android/server/NotificationManagerService.java
	new file:   services/java/com/android/server/ProfileManagerService.java
	new file:   services/java/com/android/server/ProfileTriggerHelper.java
	modified:   services/java/com/android/server/SystemBackupAgent.java
	modified:   services/java/com/android/server/SystemServer.java

Change-Id: I62b7140bb85263269d7da3ffe87ce68e90fa7e9d

Conflicts:
	core/res/res/values/kang_strings.xml
	core/res/res/values/slim_symbols.xml

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/liquid_symbols.xml
Add Profiles to SlimActions

Change-Id: Ib36c6a77abc871eaff84407fdd94822b24f32da5
QuickSettings: Added ProfileTile [1/2]

- Adds the option for a Profile Tile to System settings
- Profile tile will show selected profile
- On click a profile selection will pop up

Patchset 2:
  Using blundens profile png resource
  fixing broadcast
  adding longClick action to updated system settings
Patchset 3:
  only show tile, if profiles are enabled
Patchset 4:
  removed reduntant check
  removed reduntant parameter from constructor

Change-Id: I74548af63531a245c700cc5b50f97919de7cfcf8

Conflicts:
	core/java/com/android/internal/util/liquid/QSConstants.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
QuickRecord: Fix crash on other languages

With the new multiple recordings,
	some languages parse the DateFormat
	where it was being split by the regex
	and incompatible recording files were
	formed.  Use a java formatted regex
	to remove the possibility of slashes
	sneaking in for different languages

Change-Id: I754f589cd9c3646151a6e7e7de228b1c71c8c0ca
Slim Recents: Option to show topmost task [1/2]

Change-Id: Ib39d9b87b0fd30b4d34d4292af39e891038f337a
Slim Recents: Always show topmost task collapsed

PS2: Also restore expanded state of topmost task when on homescreen
PS3: Fix code style

Change-Id: I64956410fb389d8e880979a84b51321d8b372217
SystemUI: Update circle battery UI to be in line with CM

Paranoid Android circle battery icon was too thin and had the wrong shade of white.

Fixes: AOSPA-179, community request

Fixed color to match other battery icons

PS2: Fixed spacing

Src: https://gerrit.paranoidandroid.co/#/c/4030/
How it looks/origin: https://paranoidandroid.atlassian.net/browse/AOSPA-179

Change-Id: I084bbacefb37fdf64368f80baa95d79e2bd8e2bc
HOVER: Disabling HOVER isn't necessary at all [1/2] …

as we can just hide the HOVER-Button in StatusBar

Change-Id: Idde34acc859e6191a71239616b2b69f09650ef49

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
HOVER: Add QS Tile [1/2]

Change-Id: I73b41f80762cb71fa86630314891e9670b43ea87

Conflicts:
	core/java/com/android/internal/util/liquid/QSConstants.java
	packages/SystemUI/res/values/liquid_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
HOVER: Option to exclude topmost app [1/2]

Originally taken from Tigger2014:
https://github.com/Tigger2014/android_frameworks_base-1/commit/5af0e1c84e86e9b4e6947163aaf58e9ab541079d

Change-Id: I6da9027af4c7bc74945a06b97b876f94cf817844

Conflicts:
	core/java/android/provider/Settings.java
Protected App [1/3]
 PackageManager:
   Add support for Protected App Components
   Adding protect flag to ApplicationInfo

 SettingsProvider:
   New DB entry for protected app components

Change-Id: If04843e93b572191d4654c01f4da8f087ba9fba8

Conflicts:
	core/java/android/content/pm/ApplicationInfo.java

Conflicts:
	core/java/android/content/pm/ApplicationInfo.java
QS: Fliptile animation [1/2]

Credits to TeamBAMF for the original work

Change-Id: I8382e110dd218d625f38beaa7592172905e08f3e

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/quicksettings/FChargeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/ThemeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/TorchTile.java
Enable power menu user switcher [1/2]

Change-Id: Ic1900246b699a58fd4493e23a21f9e77b859a410