gesture sleep
quick peek
fix quick peek
Toggle: Port TeamBAKED's Random color for Tiles

Pretty much thanks to travp624 for his codebase and commitment to TeamBAKED.

// TODO - Make state_press drawable

Conflicts:

	packages/SystemUI/res/layout/toggle_tile.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/BaseToggle.java
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/StatefulToggle.java
multiwindow/display apps in dialogs

first draft. after much trying i found the one single combination of flags that
makes it possible without trashing the actionbar or getting crashes.
its hardcoded for mms, chrome, gmail, gtalk and recents. --> for testing ofc

we need to track down why it blacks out the background. a slight dim and we're
pretty much done - then we just need to add intelligent triggers to make it
happen only for notifications.

Change-Id: I18f1eab3ad199204df384fdb7e7ad8a709e1f7fe
multiwindow: first working draft

Change-Id: I9d645af2d6f92c8fe1859b7ceb6366fef127a796

Conflicts:
	services/java/com/android/server/am/ActivityStack.java
multiwindow: bugfixes

- activity->dialog: solved
- fullscreen animation: solved

Change-Id: I1049fb6ba8739774762e3108747b3f2471b61971

Conflicts:
	services/java/com/android/server/am/ActivityStack.java

Conflicts:

	services/java/com/android/server/AttributeCache.java
	services/java/com/android/server/am/ActivityRecord.java
multiwindow: badparcel exception

Change-Id: I0623d74d69b35cf9ba81b9733c4a9ab8a7d473b1
multiwindow: FLAG_MULTI_WINDOW

Change-Id: Ifbb6bf5ad5cca5d72f6f44d1ae28890f013ad0c1
multiwindow: correct actionbars, dynamic windowsize depending on screen and portrait/landscape

Change-Id: Iab8c70a8cce4b614019e07a3e1e280dc8f7c8005

Conflicts:
	core/java/android/app/Activity.java
multiwindow: fix some flags to enforce task re-loading

Change-Id: I20b9bf1d7a9fa4bf905974b157a68666f97f7050

Conflicts:
	services/java/com/android/server/am/ActivityStack.java
multiwindow: climb through history stack to take care of intents within intents

unfortunately mms still leads back home because it starts an unrelated intent
via the NEW_TASK flag, which is stupid. we can take out its flag and it'll
probably be fine.

Change-Id: I643849637b28c6d42b52d6c40f7a62a5541bd61e
multiwindow: light/dark theming, flags

Change-Id: Ib9650996aaec69d78d854cb5f1de02ec00fcf78c

Conflicts:

	services/java/com/android/server/am/ActivityRecord.java
multiwindow: mms doesnot jump home, facebook ends on tap-outside

Change-Id: Icb161f26f751b2e366e29c94e29fcd3b1868586c
multiwindow: multiwindow minds activity/stack life cycle

Change-Id: I43efd5df5e43ec677421e488f178129ab975050e

Conflicts:

	services/java/com/android/server/am/ActivityRecord.java
multiwindow: fixes activitystacksfor onHomePress, GMusic does not stop music

Change-Id: I7a904247781b8772b7de9d71e3bca7a8a8732943

Conflicts:

	services/java/com/android/server/am/ActivityStack.java
Not needed Activity Info.
Floating window (1/2)
This is the popup code from Paranoid Android's HALO, which has already been commited. This commit just allows it to be on or off as some users may not want to use this function. We have a better idea on how to use this functionaility which will be seen later.

For now though, this is the messy way of turning it on and off.

Conflicts:

	core/java/android/provider/Settings.java