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
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
multiwindow: mms doesnot jump home, facebook ends on tap-outside

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

Change-Id: I43efd5df5e43ec677421e488f178129ab975050e
multiwindow: fixes activitystacksfor onHomePress, GMusic does not stop music

Change-Id: I7a904247781b8772b7de9d71e3bca7a8a8732943
Not needed Activity Info.
Merge remote-tracking branch 'Secret/Secret' into cm-10.1