JB42 -> JB43:  Halo: bigass squash of fixes and updates

Contains:

Halo: Icon reorder in Phone/Tablet status bar (fix repositioning after flips)

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

Signed-off-by: Dan Trifan <jimsth@gmail.com>

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.

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Some changes

Signed-off-by: Dan Trifan <jimsth@gmail.com>

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

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Halo: Merge new icons order in expanded Pie notification shade

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Grey HALO icons

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Gesture Fix v2
- Add a buffer between the bubble and the first up marker,
  reduces sensitivity of UP1 gesture preventing accidental notificaion dismissal

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO new transitions for number batch

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO first_start tutorial & gesture dead-zone

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO NEW ICON SET (XHDPI ONLY!)

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO dismiss/flip fix, clearall/last-notif-empty fix

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO first-run turorial less choppy + overlay

Signed-off-by: Dan Trifan <jimsth@gmail.com>

derp

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Add HDPI And MDPI Icon Set For HALO!

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO bigger update

1. gestures icons without outlines
2. completely re-done speechbubbles
3. empty red batch says M for message
4. speech bubble is animated and moves around
5. new batch animation when gesture is active
6. dead zone buffer fixed
7. empty notification text fixed (with app name for now)

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO: Update HDPI & MDPI icon's

time to refresh these outdated icons

Signed-off-by: Dan Trifan <jimsth@gmail.com>

derp

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO black toasts, italics, blue text

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO batch envelope icon for non-numbered items

Signed-off-by: Dan Trifan <jimsth@gmail.com>

add: HALO batch envelope HDPI and MDPI icon for non-numbered items

Signed-off-by: Dan Trifan <jimsth@gmail.com>

derp

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Halo: Update toast images and back to normal text.

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Typo

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO bugfixes

- missing red batch fixed (one hopes)
- clear-all last one remaining fixed
- restart auto-hide won't trigger fixed

Signed-off-by: Dan Trifan <jimsth@gmail.com>

Derp

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO: speech padding updates

Thanks daxx

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO vibration fix

Signed-off-by: Dan Trifan <jimsth@gmail.com>

HALO: fix the integer division bug

The newHeight is calculated by an integer division, which leads to an
ugly bug. E.g. a 95x96 image will get a newHeight of 0 because
(95 / 96 * 113) equals to 0. This will lead to a SystemUI FC.

Fix it by multipling first and dividing afterwards.

Change-Id: I15f45e675632d9efe229e3aa121293c794a13196
Signed-off-by: Dan Trifan <jimsth@gmail.com>