Fix derp
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/app/ContextImpl.java
	core/java/android/provider/Settings.java
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

Conflicts:
	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
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
Custom lockscreen wallpaper [1/2]

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	services/java/com/android/server/power/DisplayPowerController.java

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	services/java/com/android/server/power/DisplayPowerController.java
Fix lock screen blur and radius
Fix multiple derps
base: quicksettings: allow flip animation on clicking a tile (1/2)

ported from https://github.com/BeerGang/android_frameworks_base/commit/ba144b2defd209c2c020366316c65b288bf68880

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/LteTile.java

Change-Id: Ic5e3b6c1eee902fd59c1d54ac6c5efb8cffad4ba

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/PerformanceProfileTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuietHoursTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/TorchTile.java
Make more tiles flip when QS flip is enabled

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/OnTheGoTile.java
base: Fix derp

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

Change-Id: I79e0e44738ad1b32b5f30f2f1223e20711c9b3e4

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/PerformanceProfileTile.java
Fix flip tiles