Revert "Add location (GPS) tile"

This reverts commit c9eb510f0a4c04bad15f384a120212919464dfbb.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
HALO (1/2)

HALO is Androids one and only multitasking solution.

We explicitly do not go the Samsung/Cornerstone route. This solution is basically an extension of
the regular notificationshade, which is an aggregator for notifications that can be checked out when
time permits. HALO completes it by allowing you to respond to tasks on the spot, trying to be as
unintrusive as possible and flexible in regards to policies (white/black lists).

Features:

- Apps open up in floating state, apps underneath do not pause
- complete SystemUI & Core integration, making HALO feel like a native feature, source/SDK and UI/UX
- HALO has white and blacklists, which for now allow fine control for apps pinging through HALO
- multiple gestures to navigate HALO:
  - double-tap-move: move
  - tap-drag-left/right: task through notifications, finger up launches
  - tap-drag-up: dismiss notification
  - tap-drag-down: put HALO into semi-hidden state
  - swipe while HALO is hidden wakes it up
  - drag-to-X to remove HALO altogether
- comes with as few settings as possible, everything should be self explanatory and intutive,
  users must be informed about the double-tap gestures which is the only catch.

Known issues:

- Integration has been finished for PhoneUI. TabletUI and PIE must be integrated still.
- Packageinstaller must allow HALO through its overlay check or it will disable the install-app button.
- The low level has a few remaining issues:
  - Some apps still go up fullscale (they trick us with services, circumventing the intent flagging)
  - Some 3D games still pause
  - There is one known app that refuses to end on back or touch-outside, that is WeChat
  - The activitystack pause implementation works but is makeshift

To-Do:

- On-screen tutorial at first start up to teach users the gestures
- Fixing all known issues, full integration in the remaining UI's
- Perhaps hybrid engine integration for running floating apps in a decreased size

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	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

Some marginal fixes

Signed-off-by: Paul Beeler <sparksco@gmail.com>
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.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Fix Floating Window

Change-Id: Icf48df5d6ffbfb8e6b16a632f5135a0fa02dd946
Halo: Add master switch to disable Halo (1/2)

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Fix build
Signed-off-by: Paul Beeler <sparksco@gmail.com>
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.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
LayerActivity: Corrected lifecycle
Should contemplate the case that the activity gets stopped
Fix little derp causing visual bug

To reproduce, disable halo, and press "clear all notifications" button

Change-Id: Ice7ab62229e27db53ef51fd5df55dbcd0a86358b
Revert "Fix Floating Window"

This reverts commit 6d949ea8be51b16994d1ca911cca487203284286.
Revert "Floating window (1/2)"

This reverts commit 639d99f8c43cdb0dccff04032ba4e257bd91cdb0.
Allow theming of lockscreen

Change-Id: I10799482e0b393746b4c9818f94862109fac6006