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
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
hwui: Always enable the scissor while composing layer

Due to scissor optimization feature added in KK, scissor was disabled
all the time. Hence the undefined areas/region of textures are not
masking properly with GL_LINEAR filter mode.

Change-Id: Ifbbde2c67a4c01e45eda07ada709e066255fffcb
CRs-fixed: 645077
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
Merge pull request #9 from LiquidSmooth/kitkat2

merge latest liquid changes