[2/2] Frameworks: HALO

Forward port from jb.
PS1:  Initial port
      Fix conficts with notification LED
      Fix derp
      Major derp
      HALO Mods
      Rebase
      Fix blackist, code clean and added some TODOs
PS2:  Fix build
PS3:  Fix bubble sometimes doesn't respond on new notification
PS4:  Align halo icon
PS5:  Keep floating app in recents and disable transparent layer temporarily
PS6:  Fix conflict after recent merges
PS7:  Cosmetic fixes:
      Fix buttons layout in status bar.
      Status bar button holders show halo + qs switch on notification and qs edit mode + notification switch on qs.
      Update new margins size.
PS8:  Rebase
      Clean white spaces
      Toggle on/off from notification shade icon (remove red X)
      Standardize behavior (remove option to reverse tap/double tap)
PS9:  Remove references to LayerActivity
PS14: Rebase
PS15: update halo strings to prevent conflict with latest changes
PS16: Wrap all things!
      Modify halo behavior
PS17: Get the correct activity stack: this makes all windows in the same stack to get the floating mode
PS18: Stop pop-out on rotation
      Catch "silent" notifications
PS19: Rebase
PS20: Rebase, fix conflicts with recent merges
PS21: Fix missing commit messages from previous undefined patchset (19) and other conflicts

Change-Id: I3e79945433d61da090ca263f4e2989be9987f11d
Conflicts:
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	services/java/com/android/server/NotificationManagerService.java

Conflicts:
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	services/java/com/android/server/NotificationManagerService.java
Revert "Revert "[1/3]Quiet Hours""

This reverts commit a7455c03ab5994f53964cc4814314e7c7e50169b.

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
Update BaseStatusBar.java
Disable safe headset volume warning

In some countries, regulations require that a warning be displayed
when the media volume is being raised above recommended level while
using a headset. As this is regulation we don't simply remove the
warning, but instead give the user the option to disable it.

In this implementation, the user is presented with the warning at
least once, at which point they are given the option to disable it
completely (via on-the-spot preference).

PS1: initial commit
PS2: update to reflect changes to https://gerrit.paranoidandroid.co/#/c/3702/
PS3: add new drawable (thanks Arz....finally)

Change-Id: Ib29ddb7f0ed5b1d45ed56d13bd6f7e14d005da79

Conflicts:
	packages/SystemUI/res/values/pa_strings.xml
Spanish translations

Change-Id: I82918b674d0289cb37c8aa83d45c9fe9e456a9c5
VolumePanel: Don't force navigation bar

It always annoyed me that when changing volume while in immersive the navigation bar is shown.
Quicksettings: Fix derp in QuickSettingsTouchListener.

Change-Id: I08b6019fcdfeed042f8f7c532a52289e2417b7c7
Fix: Correct string reference error

Introduced in https://gerrit.paranoidandroid.co/#/c/3729/

Change-Id: I1e2ce2e4ab0e01a95383b4933044f14f4124bc4c
allow forcing HighEndGfx mode

people have already started fipping the lomRam prop to enable
transparent status bar, this will enable it with fewer
repercussions

Change-Id: Ied6de65276425fa1e7db0bf9da35f1932a355172
Switch quick settings drag to long click

PS2: Remove unused variables
PS3: Fix build

Change-Id: I441b7467127990f387d976132bffc8f881a55095
Fix derp on imports

Change-Id: I3ea2b1767d8788e7ab1ce3972d38b8d1a96477ff
Quicksettings: Bump dual switch icon(s).

* Replace with less intrusive ones one more time, these looks beautiful.
  Drawables by Arz Bathia.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Quicksettings: Update immersive IT translations.

* Fix offset.
  Addressing JIRA AOSPA-40 issue.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Quicksettings: New transition animation.

Also new moron effect :D

Signed-off-by: Jesus David <jesdga95@gmail.com>
Change-Id: I7838bced9568c30237a2839e4ef68b24f884d8a5
Update the color of the expandable volume panel icon

This still retains the old settings icon since it
happens to fit perfectly. Pressing it does indeed
show you a bunch of sliders like the icon indicates.

Also add xhdpi and xxhdpi versions.

Conflicts:
	core/res/res/drawable-hdpi/ic_sysbar_quicksettings.png
	core/res/res/drawable-mdpi/ic_sysbar_quicksettings.png
	core/res/res/drawable-xhdpi/ic_sysbar_quicksettings.png
	core/res/res/drawable-xxhdpi/ic_sysbar_quicksettings.png
Update the color of the expandable volume panel icon

This still retains the old settings icon since it
happens to fit perfectly. Pressing it does indeed
show you a bunch of sliders like the icon indicates.

Also add xhdpi and xxhdpi versions.

Conflicts:
	core/res/res/drawable-hdpi/ic_sysbar_quicksettings.png
	core/res/res/drawable-mdpi/ic_sysbar_quicksettings.png
[2/2] Frameworks: HALO

Forward port from jb.
PS1:  Initial port
      Fix conficts with notification LED
      Fix derp
      Major derp
      HALO Mods
      Rebase
      Fix blackist, code clean and added some TODOs
PS2:  Fix build
PS3:  Fix bubble sometimes doesn't respond on new notification
PS4:  Align halo icon
PS5:  Keep floating app in recents and disable transparent layer temporarily
PS6:  Fix conflict after recent merges
PS7:  Cosmetic fixes:
      Fix buttons layout in status bar.
      Status bar button holders show halo + qs switch on notification and qs edit mode + notification switch on qs.
      Update new margins size.
PS8:  Rebase
      Clean white spaces
      Toggle on/off from notification shade icon (remove red X)
      Standardize behavior (remove option to reverse tap/double tap)
PS9:  Remove references to LayerActivity
PS14: Rebase
PS15: update halo strings to prevent conflict with latest changes
PS16: Wrap all things!
      Modify halo behavior
PS17: Get the correct activity stack: this makes all windows in the same stack to get the floating mode
PS18: Stop pop-out on rotation
      Catch "silent" notifications
PS19: Rebase
PS20: Rebase, fix conflicts with recent merges
PS21: Fix missing commit messages from previous undefined patchset (19) and other conflicts

Change-Id: I3e79945433d61da090ca263f4e2989be9987f11d
Conflicts:
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	services/java/com/android/server/NotificationManagerService.java

Conflicts:
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	services/java/com/android/server/NotificationManagerService.java
Revert "Revert "[1/3]Quiet Hours""

This reverts commit a7455c03ab5994f53964cc4814314e7c7e50169b.

Conflicts:
	services/java/com/android/server/NotificationManagerService.java
Update BaseStatusBar.java
Disable safe headset volume warning

In some countries, regulations require that a warning be displayed
when the media volume is being raised above recommended level while
using a headset. As this is regulation we don't simply remove the
warning, but instead give the user the option to disable it.

In this implementation, the user is presented with the warning at
least once, at which point they are given the option to disable it
completely (via on-the-spot preference).

PS1: initial commit
PS2: update to reflect changes to https://gerrit.paranoidandroid.co/#/c/3702/
PS3: add new drawable (thanks Arz....finally)

Change-Id: Ib29ddb7f0ed5b1d45ed56d13bd6f7e14d005da79

Conflicts:
	packages/SystemUI/res/values/pa_strings.xml