FW: Fix torch state for QS/Power Widget

Also add long press action for torch toggle.

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/TorchToggle.java
HALO bugfixes

1. some icons were overblown
2. tasking meant having your thumb on the speechbubbles

Change-Id: I04637a5ae96c3d9fa30188a320e13989c48f7f0c

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Always prevent wake on home keypress when kl config does not contain WAKE

http://review.cyanogenmod.org/#/c/43124/ introduced a change in behaviour
where the home key could wake a device even if the kl config lacked
the WAKE option.  This fix restores the original behaviour.

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

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

Change-Id: I45f3dcc816092daa4192be91828592a0b2b2ac59
HALO Size (1/2)

Change-Id: I2780dfee66b0b80b57c62b83c40609104fe3c279

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/layout/halo_bubble.xml
	packages/SystemUI/res/layout/halo_speech.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java
	packages/SystemUI/src/com/android/systemui/statusbar/halo/HaloProperties.java
FW: Set size for custom bg as well. (HALO)
PrivacyGuard: New icons close to AOSP style
Halo: Avoid showing Halo))) icons in status bar while added to Halo (Credits @Anu6is)
Icon reorder on expanded status bar

When tearing down notification panel halo is near quick settings button (no notifications present). When you flip to QS panel and then reflip to notification panel Halo icon change position, moves to third icon layout (as when clear-al button is there) from right instead to stay in the second one.
Icons layouts are reordered and fix this behaviour. From left to right:

Clear-All button // Halo button // QS button.

http://goo.gl/n1GjU

Credits BigBrother1984
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

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindow.java
Some changes

Conflicts:
	core/res/res/values/dimens.xml
	packages/SystemUI/res/layout/halo_speech.xml

Change-Id: I3a9befc64915fbba9b9bbe421a936f3ef5d63906
Completely hide Halo))) icons while tasking
- previous commit by BigBrother1984 stopped the highlighting of Halo))) icons
  this should remove them completely. Other status bar icons are still highlighted
Halo: Merge new icons order in expanded Pie notification shade
Grey HALO icons
Revert "Bug fix on installd with SELinux enabled kernel."

This reverts commit abb4714135188e72d57c85baf8ef7308d44d4523.
Add seinfo parsing to PackageManagerService.

This patch set allows the PMS to parse the
mac_permissions.xml file which contains the
seinfo values. Each package that is installed
on the device will be assigned an seinfo value
based on policy. This seinfo value will help label
the app process and data directory. Modifications
also include, adjustments to ApplicationInfo.java
to store the seinfo tag per package, adjustments
to installd to communicate the seinfo tag to
libselinux, and finally a set of unit tests.

Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>

Change-Id: I61ad1ea12fb6a9a6d0b108ec163bc4bf4c954b58
Added SELinux enforcing status and booleans keys to secure system settings.

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8474e
Save off the seinfo value with packages.list.

Patch adds the seinfo label per package to the file.

Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8475e
Add APIs to allow Device Admins to change SELinux settings

These calls, added to the Device Admin API, will allow Device Admin apps
to change various SELinux settings, including:
* Toggling SELinux enforcing and permissive modes
* Toggle SELinux booleans
* Load a new SELinux policy file (sepolicy)
* Load new SELinux context files ({property,file,seapp}_contexts)

In order to use these APIs, a Device Admin must first request
USES_POLICY_ENFORCE_SELINUX, then become a SELinux Admin by calling
setSELinuxAdmin(). All other set* calls relevant to SELinux are guarded
by a check against whether the admin is a SELinux Admin.

Otherwise, the style of the set* calls are very similar to the other
calls setting device policy in the Device Admin API. That is, these
calls change the Admin's internal state and then call a sync method to
update the device's state to the Admin's state.

Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8476e
Remove SELinux additions from public API

Change-Id: If2e076312b0e411145c1cd900f3ae20d998a0f24