Reworked transparent layer
When a halo'ed window is opened, the transparent layer will be always visible. It will manage the background dim.
This fixes some apps dimming its sandboxed processes (like chrome).

LayerActivity manages its own lifecycle. When it's focused after paused it finishes itself.

System processes (identified by "android" pkg in SystemUI and system uid in Activity) don't use the layer and still use their own background. This
has been kept this way to not interfere with their activity.

Conflicts:
	packages/SystemUI/src/com/android/systemui/Transparent.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java

Change-Id: I5dbed0d3b79caf2403bef08fc35d1fb0e0711bd9
LayerActivity: Corrected lifecycle
Should contemplate the case that the activity gets stopped
Show as floating window on recent apps

This also removes "hybrid properties" from recents menu, it is fairly unneeded
now. This is a test, It's probable that it will be removed later

Change-Id: I3db3a996fa08367e3dfa4231079fe5e811e3b08a

Conflicts:
	packages/SystemUI/res/menu/recent_popup_menu.xml
	packages/SystemUI/res/values-es/strings.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Don't bring home to the front if we're opening a floating activity
Give floating flag to previous activities in the stack
When launching stacked activities, only the last one is flagged as floating in sysui when tapping halo.
This causes the system to show the launcher when the first stacked activity is launched (this first intent gets the flag FLAG_ACTIVITY_TASK_ON_HOME
in TaskStackBuilder).
This change makes all the stacked activities get the floating flag if the last one has it.
Enable Halo pressed image in expanded status bar
Revert removing FLAG_ACTIVITY_CLEAR_TOP from intent
Removing that flag from the intent provokes some apps not being able to finish pressing the back key.
This change doesn't affect other opened apps.

Change-Id: I81a47f8e648114d8e2144a3b9854ede299d67871
HALO: keep apps in recents

Change-Id: I9ede8a1aba8d6721f077a39a31b6cc5cd8272dc2

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

Conflicts:
	core/java/android/app/Activity.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
	services/java/com/android/server/am/ActivityRecord.java
Finish the floating activity again

Change-Id: I1db29ddd2c056d7645f1028e084face815a44e0c
Fix floating window activity result cancellation

Setting Intent.FLAG_ACTIVITY_NEW_TASK on *all* floating window intents
will result in Android dropping activity results for non-new task
activities trying to get results back.

Cheers,
SlimRoms

Change-Id: Ib125bd03733dc73859f7426150110d88319f7625
HALO: make a trusted overlay

Change-Id: I009be0361c73ec536277641d235b0c495bc43db6
FLAG_ACTIVITY_NEW_TASK re-added to floating windows

ActivityStack modified to not cancel results if window is floating and "new".

Change-Id: I45f3dcc816092daa4192be91828592a0b2b2ac59
Kill floating activities running in the same thread when tapping outside
This change makes all activities from the same app to be finished when we tap outside the halo window. Other apps running in different threads
(floating or not) won't be finished.

Change-Id: I3c51eafdcee7032fa90876411da3ff1eae0106c3
Fix recent apps clear all

Change-Id: I776e56f3a982592ba22acbd5c983916c508aa263

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Halo: Add master switch to disable Halo (1/2)
-Port master switch from @Der-Schubi.
-Fixed Halo not showed at first notifiction pulldown.

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

Change-Id: I93b59da79c63c3154bec1dba4490e4f4447a1564
HALO: Option to pause the underlying app (1/2)

- adds an option to pause the active app when using HALO
- this is enabled by default for devices with low memory
- (currently: <640MB RAM available to the kernel)

Conflicts:
	core/java/android/provider/Settings.java
	services/java/com/android/server/am/ActivityStack.java

Change-Id: I09c90d615b1b2954293214d5e6107e2e2caab803
Reverts: "Fix recent apps clear all" + some other fixes

Change-Id: I2fea2e6b118021d3f09c259aee92b1a35fe72302

Conflicts:
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
Floating window (1/2)
This is the setting part for the framework commit. This is a simple checkbox that allows the user to not make use of the floating window function seen in conjunction with PA's Halo feature. We are taking a different route on that Halo stuff and this is a very early start of it.

Change-Id: I3d1e4bad7dc7ff61809ea91ff8fcd1dd671d9e06
App sidebar [1/2]
- This implementation contains all the commits and chagnes of ChameleonOS until 18/07/2013

Change-Id: I501f00c647ac26b0134a7da2e4b32aa24dd1a074

Conflicts:
	packages/SystemUI/res/values/cm_strings.xml
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/config.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Add gesture based lockscreen security. [1/2]
This adds the ability to us a hand drawn gesture as
a means to unlock the device.

In the case that the gesture is forgotton or not
being recognized correctly, the fallback will be the
same as when using patterns.

PS2:
Return SecurityMode.Account as backup for gesture login.

PS3:
Poke the wakelock when a gesture is detected so the screen
will not timeout when an invalid gesture is entered.

PS4:
Clean things up a bit.

Change-Id: I4ca8d7edff0a8906220cf4561d8b90896520e0cd

Conflicts:
	core/java/com/android/internal/widget/LockPatternUtils.java
	core/java/com/android/internal/widget/LockSettingsService.java