Add Profiles.

Change-Id: Id195de6f8c0b1cd08fc0c32b4347c7c97c347bb1

Conflicts:
	core/java/android/provider/Settings.java
	media/java/android/media/AudioManager.java
	services/java/com/android/server/SystemServer.java
ProximityWake : Add support for checking proximity when waking device

Change-Id: Ia5ff446d88435773acccc7467e66009000dc20cb

Be sure to shutdown the proximity sensor after display wake

This fixes:
http://review.cyanogenmod.org/#/c/66657/

Change-Id: I1768f13cb48c3e056d0e137642690fc3d650c4ab

PowerManager : Make proximity check opt-in

Change-Id: I7cf64a82530da2e655018e43683ba7a5584d54f8

Framework : Fix proximity wakeup reference

Conflicts:
	core/res/res/values/config.xml

Change-Id: Ia40ca6fbf6e37fbb3996f2384f725c30b88c2131

Conflicts:
	core/java/android/os/IPowerManager.aidl
	core/res/res/values/config.xml
	core/res/res/values/symbols.xml
	services/core/java/com/android/server/power/PowerManagerService.java
Profiles: Add a profile picker activity

Patchset 2: Add CM Copyright
Patchset 3+4: Rebase
Patchset 5: Some optimizations

Change-Id: Ic8281e4c6fef6d2f4c56fc01acfe6e54b4c8f51c
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Ability to hide alarm clock icon

Change-Id: I452280ecb272df890ffb403301b398950210cd0a

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarPolicy.java
Fixes
Base : Initial slim lockscreen shortcuts

Thanks to slimrom and ResurrectionRemix Team.

Change-Id: I5fa0258957a47e35985fca4384a380316e3be24a

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	core/java/com/android/internal/statusbar/IStatusBarService.aidl
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/tv/TvStatusBar.java
	services/core/java/com/android/server/statusbar/StatusBarManagerService.java
Fixes
Revert "Base : Initial slim lockscreen shortcuts"

This reverts commit deb12543df36f1dc98d46dd2cd990c08c29d9ffd.

Conflicts:
	core/java/com/android/internal/statusbar/IStatusBarService.aidl
Revert "Base : Initial slim lockscreen shortcuts"

This reverts commit 8a0a990c10b186ea6d29b023f171f273b77e5942.

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/statusbar/IStatusBarService.aidl
Alarm: Add one more RTC alarm type for poweroff alarm.

Now we use type of RTC_WAKEUP for the poweroff alarm.
Actually lots of other applications also use this type.
But these applications never expect the device will
power on after it has been shut down. So we need to
add dedicated alarm type for the Deskclock or similar
applications.

Change-Id: Ib515d8a737ab73cdd809597ad8cde57030c0a0a1
AlarmManager: Set RTC_POWEROFF_WAKEUP as hidden alarm type

Hide RTC_POWEROFF_WAKEUP type to avoid any conflict with android
CDD.

Change-Id: I13a01f133a1aab2a68b32e92fc91801ceb7d43c7