Fix Expanded Mode

This fixes the erratic behavior that causes fullscreen apps/games
to rotate into portrait, in expanded mode. Weird as usual!

PatchSet:
- small clean up

Change-Id: I72febac50a282f7b5bf570e46ef0dd38215a6bab

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Add Statusbar Quick Peek [1/2]

Adds the ability to peek at the statusbar when hidden
by swiping down from the top edge of the screen.

PS 1/3 : Fixed Derp!
PS 4   : Added Fullscreen app support!
PS 5   : Added Pie Detection
PS 6   : Derp forgot the TOP Flag!
PS 7/9 : Some fixes

Change-Id: I4beda91e21518cd2fa391ff1b0fe23ea8e24370e

Conflicts:
	core/java/android/app/Activity.java
	core/java/android/provider/Settings.java
Frameworks: fix quick peek

only react on a real swipe to avoid accidental show up
on pressing an action on eg ActionBar

as well the pass trough of mPieTop never worked. Not the
problem due that pie is overlaying this part

reduce the settings value write a bit....we need to
be as fast as possible here due that this method is
called on every touch event

PatchSet: minor code correction

Change-Id: Iced268ad043b753d93375439d7835d8570b7649c
Statusbar behaviour: Refactor everything (1/2)

Huge credit to @Bajee11 as I used his previous commits as examples for these. And of course credit
goes to @SlimRoms for their Status bar Auto-Hide and Quick Peek features!

Change-Id: I40f2e60c138e303e677b8d313c1dfb42a78e4a2f
Framework/base: Added synchronization block to avoid race condition

Fix for the synchronization issue leading to access of an array
Index out of bounds. Issue occurs due to race condition between
removing the activities of a crashed process from history stack
and resuming a separate activity.

Change-Id: I14bb5834e778c15b674248e46fe93b0ce9f37967
Add another AwesomeAction

-Add Quicksettings action to AwesomeConstants, etc
-Add Notification and Quicksettings Pie buttons (1/2)

Change-Id: I97d937624f8ddbdc1bb44ff6275d3427aa897887
Keep on notification LED while dreaming.

Change-Id: I407e34f9c60d3140f78abca133b4fda5dd45f311
JIRA:CYAN-689
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>

Conflicts:
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml