Remove HAVE_SELINUX guards

Android 4.3, and by extension CM 10.2, default to having SELinux on

Change-Id: I0f83c0b9712388216b89dfbe6184ad0a220a74d6
Merge branch 'cm-10.2' of git://github.com/CyanogenMod/android_frameworks_base into cm-10.2
Halo (1/2)

Change-Id: Ib623ea74e9cf308dd8e7cbfe79c81b90c789fc01
Halo full with 4.3 commits

Inside:
- HALO: cleanup: 4f4dd8dceaeafa182d75606f7c3adf59b37d973d
- HALO: new drawables for hdpi and mdpi: d76f23efbc101e14d3423b8dd0645d64f7425555
- HALO: unregister settings obeservers: 2048e663d2205ac304c8e5bc6da51b8cc442a12b
- HALO: halo can save last position now: 05f4f5c55f5e8639ec03c4d3c701cfe9904b7e9c
- HALO: Style revamp: f0ce74b71835e5912e52576bb503e88176f02883
- HALO: hiddenstate-fix + smaller numberbatch: 7fae5c9df0f71194a2a59fcafd3610176fbc4623
- HALO: cleanup & better drawables: 6ed0d9a613d0bf14ceeff141bc0650094b4323b5
- HALO: hide bugfix, smaller numberbatch still: 1eaed47beb6286d37c78a95c841ba71d2ee02f8c
- HALO: new vertical gestures (NOT READY FOR RELEASE): d54725ab41e239b6a6f096dcb19c69770749c7bd
- HALO: clearall/silence (STILL NOT READY FOR RELEASE): 212b639759826fd53503534ee52add96ec367868
- HALO: clearall-fix + dismiss icon (READY, BUT NEW STYLE IS XHDPI ONLY!): 6af90d1aca25fda9351ddea9caf5e4cd0df73e7a
- HALO: cleanup & clearall-nap: 019cf36e9bee15c0b3701d8fa00509ad6dc1848f
- HALO: Fix vertical gesture touch calculations: 8cf0d5c62d5fa6c5e8fa51b8273893d32c5b787e
- HALO: bugfixes: 4a8c02330602a56d58f790165af0379ad2b1cbd9
- HALO: Revert "Fix vertical gesture touch calculations": a4c65e878fbc3c37d6b18c1a9e07308de04c8311
- HALO: Gesture Fix v2: 135d937eb2848c2ea2fe327165d255a1d8025d6e
- HALO: Size (1/2): c3c4706f290fc96ac817337612a4f5605be55371
- HALO: Avoid showing Halo))) icons in status bar while added to Halo: a404d6eaf9206fc658f050ccc2d974a589edfe3b
- HALO: Completely hide Halo))) icons while tasking: 086962098bf1e966232dbdbf7f25759904274d3f
- HALO: new transitions for number batch: fa86cc276e99b2679bcb310f8ca1ccb1b8aa4235
- HALO: first_start tutorial & gesture dead-zone: 82ccafb7c53238742a8c70d9cffa3e586c93de47
- HALO: NEW ICON SET (XHDPI ONLY!): f0bfc45e77b1b72e4ffd9d6e4f1f2e8235259cf1
- HALO: dismiss/flip fix, clearall/last-notif-empty fix: 7106b09364bb250a532251cad1403da9b652f6de
- HALO: first-run turorial less choppy + overlay: 7b995b44e1b4d5e2c8219de0831c1c257152e92f
- HALO: bigger update: 5231f7da4568f017c7470c22c788f231118f574e
- HALO: hdpi & mdpi icon update: 47c63c53907194210eb1541472cd2c88b48234d9
- HALO: black toasts, italics, blue text: 3fd7c25b77b225036c68a502f9df575aba574eaf
- HALO: batch envelope icon for non-numbered items: 28e7aacd9f526a1d7beb87774edc2b2948365d31
- HALO: bugfixes: d41ff17fd420d3612255d10218bf7982324e3cda
- HALO: vibration fix: 773d817f1abb960c943e60f56c82e23c688cd7fb
- HALO: fix the integer division bug: 4ed9a25b414287b435cd5cba96603abe969187bc
- HALO: batch message icon for hdpi and mdpi: ce9f94323c07f8dab5cd32208c5cd9afa7125863
- HALO: what else, style changes: 586183976136707259385634d3daf8a083d9ecf8
- HALO: fix speech fade out: 615f52bc7ad7701c1f6418e87a36b0f985707c3e
- HALO: smoother operation: 6a67e60e985d6412a70ed87bd6eeca3f8271ff89
- HALO: crash?: 6e1252dcb882c7bb0ebc81fc163cc24882b75ae3

Change-Id: Ie705ccec63c706e366adb9acc356c80db52fc49d

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/cm_strings.xml
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
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

Conflicts:

	core/java/android/provider/Settings.java